ilink-world/utils/UtilsFunction.js

735 lines
22 KiB
JavaScript
Raw Normal View History

2020-05-30 21:58:22 +00:00
import I18n from 'react-native-i18n';
2020-06-02 09:05:50 +00:00
import isEqual from 'lodash/isEqual';
2020-06-17 14:09:27 +00:00
import Toast from 'react-native-root-toast';
import { Color } from '../config/Color';
2020-06-02 09:05:50 +00:00
let slugify = require('slugify');
let route = require('./../route.json');
2020-05-30 21:58:22 +00:00
2020-05-03 09:16:24 +00:00
export const thousandsSeparators = (num) => {
var num_parts = num.toString().split(".");
num_parts[0] = num_parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, " ");
return num_parts.join(".");
2020-05-30 21:58:22 +00:00
}
2020-06-05 10:32:37 +00:00
export const cutString = (word, max) => {
2020-07-09 19:15:11 +00:00
return word === null ? ' ' : `${word.slice(0, max)}...`;
}
export const cutStringWithoutDot = (word, max) => {
return word === null ? ' ' : `${word.slice(0, max)}`;
2020-06-05 10:32:37 +00:00
}
export const isNormalInteger = (str) => {
if (/[ `!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/.test(str))
return false;
else
return true;
}
2020-06-17 14:09:27 +00:00
export const displayToast = (message) => {
Toast.show(message, {
2020-08-25 05:39:28 +00:00
duration: Toast.durations.LONG,
2020-06-17 14:09:27 +00:00
position: Toast.positions.BOTTOM,
backgroundColor: Color.primaryColor,
shadow: true,
animation: true,
hideOnPress: true,
delay: 0,
onShow: () => {
// calls on toast\`s appear animation start
},
onShown: () => {
// calls on toast\`s appear animation end.
},
onHide: () => {
// calls on toast\`s hide animation start.
},
onHidden: () => {
// calls on toast\`s hide animation end.
}
});
}
export const isIlinkWorldWallet = (walletName) => {
2020-07-28 17:37:46 +00:00
return isEqual(walletName, 'ilink');
2020-06-17 14:09:27 +00:00
}
2020-06-23 08:55:19 +00:00
2020-06-17 14:09:27 +00:00
export const isEmptyObject = (obj) => {
for (let prop in obj) {
if (obj.hasOwnProperty(prop)) {
return false;
}
}
return JSON.stringify(obj) === JSON.stringify({});
}
2020-05-30 21:58:22 +00:00
export const identityPieces = () => {
return [
{
name: I18n.t('IDENTITY_CARD')
},
{
name: I18n.t('PASSEPORT')
},
{
name: I18n.t('OTHER_IDENTITY_PIECE')
},
]
}
2020-09-07 16:10:48 +00:00
export const withdrawalMode = () => {
return [
{
name: I18n.t('WITHDRAWAL_IN_CASH')
},
{
name: I18n.t('TRANSFER_IN_ACCOUNT')
}
]
}
2020-08-27 20:04:51 +00:00
export const typeCaution = () => {
return [
{
name: I18n.t('GROUP')
},
{
name: I18n.t('INDIVIDUAL')
}
]
}
2020-09-07 16:10:48 +00:00
export const typeEpargne = () => {
return [
{
name: I18n.t('SIMPLE')
},
{
name: I18n.t('BLOCKED')
}
]
}
2020-06-23 08:55:19 +00:00
export const typeIdIDestinataire = () => {
return [
{
name: I18n.t('PHONE')
},
{
name: I18n.t('CODE_WALLET')
}
]
}
export const paysDestinationData = () => {
return [
{
name: 'Cameroun'
},
{
name: 'Gabon'
},
{
name: 'Congo'
},
{
name: 'Sénégal'
},
{
name: 'Côte d\'Ivoire'
},
]
}
export const walletActifData = () => {
return [
{
name: 'UBA'
},
{
name: 'SOGO'
},
{
name: 'Small World'
},
{
name: 'UBA fs iLink'
},
{
name: 'iLink World'
},
]
}
2020-06-05 10:32:37 +00:00
export const inputCardSource = () => [
{
name: I18n.t('NUMERO_DE_SERIE'),
value: 'serial-number'
},
{
name: I18n.t('CREDIT_CARD'),
value: 'credit-card'
},
]
2020-06-02 17:12:39 +00:00
export const transactionHistoryLabel = () => {
return [
2020-07-09 19:15:11 +00:00
/* {
icon: 'arrow-expand',
label: 'Type'
}, */
{
icon: 'inbox-arrow-up',
label: 'Source'
},
{
icon: 'cash',
label: I18n.t('AMOUNT_LABEL')
},
2020-06-02 17:12:39 +00:00
{
2020-07-09 19:15:11 +00:00
icon: 'account-arrow-right',
label: I18n.t('DESTINATAIRE')
},
{
icon: 'calendar-clock',
label: 'Date'
},
]
}
export const transactionHistoryIlinkLabel = () => {
return [
/*{
2020-06-02 17:12:39 +00:00
icon: 'arrow-expand',
label: 'Type'
},
{
icon: 'inbox-arrow-up',
label: 'Source'
2020-07-09 19:15:11 +00:00
}, */
2020-06-02 17:12:39 +00:00
{
icon: 'cash',
2020-06-05 10:32:37 +00:00
label: I18n.t('AMOUNT_LABEL')
2020-06-02 17:12:39 +00:00
},
{
icon: 'account-arrow-right',
2020-06-05 10:32:37 +00:00
label: I18n.t('DESTINATAIRE')
2020-06-02 17:12:39 +00:00
},
{
icon: 'calendar-clock',
label: 'Date'
},
]
}
export const transactionHistoryNanoCreditLabel = () => {
return [
/*{
icon: 'arrow-expand',
label: 'Type'
},
{
icon: 'inbox-arrow-up',
label: 'Source'
}, */
{
icon: 'cash',
label: 'Type'
},
{
icon: 'cash',
label: I18n.t('AMOUNT_LABEL')
},
{
icon: 'calendar-clock',
label: 'Date'
},
]
}
2020-06-02 17:12:39 +00:00
2020-05-30 21:58:22 +00:00
export const transactionHistoryUser = () => {
return [
{
2020-06-02 17:12:39 +00:00
type: 'depot',
source: 'wallet',
montant: 10000,
destinataire: 'John Doe',
date: '2020-05-15',
2020-05-30 21:58:22 +00:00
},
{
2020-06-02 17:12:39 +00:00
type: 'retrait',
source: 'wallet',
montant: 10000,
destinataire: 'John Doe',
date: '2020-05-15',
2020-05-30 21:58:22 +00:00
},
];
}
export const displayTransactionType = (transactionType) => {
return isEqual(transactionType, 'E') ? I18n.t('SAVING') : I18n.t('NANO_CREDIT');
}
2020-07-02 14:35:00 +00:00
export const optionWalletToBank = {
title: I18n.t('DEPOSIT_TO_BANK'),
subTitle: I18n.t('CHOOSE_OPERATOR'),
options: [
{
type: 'WALLET_TO_BANK_USER',
screen: route.envoieWalletToBankUser,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Banque numéro 1',
},
{
type: 'WALLET_TO_BANK_USER',
screen: route.envoieWalletToBankUser,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Banque numéro 2',
},
{
type: 'WALLET_TO_BANK_USER',
screen: route.envoieWalletToBankUser,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Banque numéro 3',
},
{
type: 'WALLET_TO_BANK_USER',
screen: route.envoieWalletToBankUser,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Banque numéro 4',
},
{
type: 'WALLET_TO_BANK_USER',
screen: route.envoieWalletToBankUser,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Banque numéro 5',
},
{
type: 'WALLET_TO_BANK_USER',
screen: route.paiementFacture,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Banque numéro 6',
},
]
}
2020-07-08 19:01:56 +00:00
export const optionDepotScreen = {
type: 'DEPOT',
title: I18n.t('ENVOIE_ARGENT'),
subTitle: I18n.t('CHOOSE_OPTION'),
options: [
{
screen: route.envoieCashVersWalletAgent,
icon: 'wallet',
title: I18n.t('DEPOSIT_CASH_TO_WALLET'),
},
{
screen: route.envoieCashVersAutreWalletAgent,
icon: 'cash-refund',
title: I18n.t('DEPOSIT_CASH_TO_OTHER_WALLET'),
},
{
screen: route.envoieCashVersCarteAgent,
icon: 'credit-card',
title: I18n.t('DEPOSIT_CASH_TO_VISA'),
},
{
screen: route.envoiCashVersCashAgent,
icon: 'cash-multiple',
title: I18n.t('DEPOSIT_CASH_TO_CASH'),
},
{
screen: route.operateurOptionSelect,
icon: 'bank-transfer-in',
title: I18n.t('DEPOSIT_CASH_TO_BANK'),
subScreenOption: optionWalletToBank,
type: 'WALLET_TO_BANK',
},
]
}
export const optionRetraitScreen = {
type: 'RETRAIT',
title: I18n.t('RETRAIT_ARGENT'),
subTitle: I18n.t('CHOOSE_OPTION'),
options: [
{
screen: route.retraitEnCashAgent,
icon: 'cash',
title: I18n.t('WITHDRAWAL_IN_CASH'),
},
{
screen: route.retraitCarteVersCashAgent,
icon: 'credit-card',
title: I18n.t('WITHDRAWAL_CARD_TO_CASH_AGENT'),
},
]
}
2020-06-02 09:05:50 +00:00
export const optionRetraitUserScreen = {
2020-06-18 05:38:10 +00:00
type: 'RETRAIT_USER',
2020-07-02 14:35:00 +00:00
title: I18n.t('RETRAIT_ARGENT'),
2020-06-02 09:05:50 +00:00
subTitle: I18n.t('CHOOSE_OPTION'),
options: [
{
2020-07-02 14:35:00 +00:00
screen: route.retraitWalletVersCashUser,
2020-06-02 09:05:50 +00:00
icon: 'wallet',
title: I18n.t('WITHDRAWAL_WALLET_TO_CASH'),
},
{
2020-07-02 14:35:00 +00:00
screen: route.retraitCarteVersCashUser,
2020-06-02 09:05:50 +00:00
icon: 'credit-card-refund',
title: I18n.t('WITHDRAWAL_CARD_TO_CASH'),
},
{
2020-07-02 14:35:00 +00:00
screen: route.retraitCarteVersWalletUser,
2020-07-04 17:38:39 +00:00
icon: 'credit-card',
2020-06-02 09:05:50 +00:00
title: I18n.t('WITHDRAWAL_CARD_TO_WALLET'),
},
]
}
export const optionDepotUserScreen = {
2020-06-18 05:38:10 +00:00
type: 'DEPOT_USER',
2020-07-02 14:35:00 +00:00
title: I18n.t('ENVOIE_ARGENT'),
2020-06-02 09:05:50 +00:00
subTitle: I18n.t('CHOOSE_OPTION'),
options: [
{
2020-06-23 08:55:19 +00:00
screen: route.envoieWalletToWalletUser,
2020-06-02 09:05:50 +00:00
icon: 'wallet',
title: I18n.t('DEPOSIT_WALLET_TO_WALLET'),
},
{
2020-06-23 10:28:52 +00:00
screen: route.envoieWalletToCashUser,
2020-06-02 09:05:50 +00:00
icon: 'cash-refund',
title: I18n.t('DEPOSIT_TO_CASH'),
},
{
2020-07-02 14:35:00 +00:00
screen: route.envoieWalletToCardUser,
2020-06-02 09:05:50 +00:00
icon: 'credit-card',
title: I18n.t('DEPOSIT_TO_CARD'),
},
{
2020-07-02 14:35:00 +00:00
type: 'WALLET_TO_BANK',
screen: route.operateurOptionSelect,
2020-06-02 09:05:50 +00:00
icon: 'bank-transfer-in',
title: I18n.t('DEPOSIT_TO_BANK'),
2020-07-02 14:35:00 +00:00
subScreenOption: optionWalletToBank
2020-06-02 09:05:50 +00:00
},
]
2020-06-10 03:10:45 +00:00
}
export const optionIdentificationScreen = {
2020-06-18 05:38:10 +00:00
type: 'IDENTIFICATION',
2020-06-10 03:10:45 +00:00
title: I18n.t('IDENTIFICATION'),
subTitle: I18n.t('CHOOSE_OPTION'),
options: [
{
screen: route.createIdentification,
icon: 'pencil-plus',
2020-06-12 11:13:59 +00:00
title: I18n.t('CREATION_IDENTIFICATION_DESCRIPTION_SUBSCREEN'),
2020-06-10 03:10:45 +00:00
},
{
screen: route.validateIdentification,
icon: 'check-circle',
2020-06-12 11:13:59 +00:00
title: I18n.t('VALIDATE_IDENTIFICATION_DESCRIPTION'),
2020-06-10 03:10:45 +00:00
},
]
2020-06-16 09:25:46 +00:00
}
2020-08-11 09:42:31 +00:00
export const optionIdentificationUserScreen = {
type: 'IDENTIFICATION',
title: I18n.t('IDENTIFICATION'),
subTitle: I18n.t('CHOOSE_OPTION'),
options: [
{
screen: route.createIdentificationUser,
icon: 'pencil-plus',
title: I18n.t('CREATE_MY_IDENTIFICATION'),
},
{
screen: route.modifyIdentificationUser,
icon: 'pencil',
title: I18n.t('MODIFY_IDENTIFICATION'),
},
]
}
export const optionNanoCreditScreen = {
type: 'NANO_CREDIT',
title: I18n.t('NANO_CREDIT'),
subTitle: I18n.t('CHOOSE_OPTION'),
options: [
{
screen: route.createGroupNanoCredit,
icon: 'account-multiple',
title: I18n.t('MANAGE_GROUP'),
2020-08-12 18:24:56 +00:00
screen: route.groupNanoCredit
2020-08-11 09:42:31 +00:00
},
/* {
screen: "",
icon: 'account-multiple-plus',
title: I18n.t('JOIN_GROUP'),
2020-08-13 07:23:23 +00:00
},
2020-08-11 09:42:31 +00:00
{
screen: "",
icon: 'account-card-details',
title: I18n.t('OPEN_ACCOUNT'),
},
2020-08-13 07:23:23 +00:00
*/
2020-09-07 16:10:48 +00:00
/* {
screen: route.askNanoCredit,
icon: 'cash',
title: I18n.t('MANAGE_CREDIT'),
}, */
2020-08-11 09:42:31 +00:00
{
2020-09-07 16:10:48 +00:00
title: I18n.t('DEMAND_NANO_CREDIT'),
2020-08-27 20:04:51 +00:00
screen: route.askNanoCredit,
2020-09-07 16:10:48 +00:00
icon: 'cash'
2020-08-11 09:42:31 +00:00
},
{
2020-09-07 16:10:48 +00:00
title: I18n.t('REFUND_NANO_CREDIT'),
screen: route.refundNanoCreditUser,
icon: "cash-refund"
},
/* {
screen: "",
icon: 'briefcase-edit',
title: I18n.t('MANAGE_SAVINGS'),
}, */
{
screen: route.epargnerArgentUser,
icon: 'cash-register',
title: I18n.t('SAVE_MONEY'),
},
{
screen: route.casserEpargneUser,
icon: 'cash-multiple',
title: I18n.t('BREAK_EPARGNE'),
},
]
}
export const optionNanoCreditAgentScreen = {
type: 'NANO_CREDIT',
title: I18n.t('NANO_CREDIT'),
subTitle: I18n.t('CHOOSE_OPTION'),
options: [
{
screen: route.cautionNanoCreditAgent,
icon: 'cash',
title: I18n.t('CAUTION_CREDIT'),
2020-08-11 09:42:31 +00:00
},
]
}
2020-06-18 05:38:10 +00:00
export const optionPaiementEauElectricite = {
2020-06-16 09:25:46 +00:00
title: I18n.t('PAIEMENT_FACTURE'),
2020-06-18 05:38:10 +00:00
subTitle: I18n.t('CHOOSE_OPERATOR'),
2020-06-16 09:25:46 +00:00
options: [
{
2020-06-23 08:55:19 +00:00
type: 'PAIEMENT_EAU_ELECTRICITE',
2020-06-18 05:38:10 +00:00
screen: route.paiementFacture,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Opérateur eau-électricité 1',
2020-06-16 09:25:46 +00:00
},
{
2020-06-23 08:55:19 +00:00
type: 'PAIEMENT_EAU_ELECTRICITE',
2020-06-18 05:38:10 +00:00
screen: route.paiementFacture,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Opérateur eau-électricité 2',
2020-06-16 09:25:46 +00:00
},
{
2020-06-23 08:55:19 +00:00
type: 'PAIEMENT_EAU_ELECTRICITE',
2020-06-18 05:38:10 +00:00
screen: route.paiementFacture,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Opérateur eau-électricité 3',
2020-06-16 09:25:46 +00:00
},
{
2020-06-23 08:55:19 +00:00
type: 'PAIEMENT_EAU_ELECTRICITE',
2020-06-18 05:38:10 +00:00
screen: route.paiementFacture,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Opérateur eau-électricité 4',
},
{
2020-06-23 08:55:19 +00:00
type: 'PAIEMENT_EAU_ELECTRICITE',
2020-06-18 05:38:10 +00:00
screen: route.paiementFacture,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Opérateur eau-électricité 5',
},
{
2020-06-23 08:55:19 +00:00
type: 'PAIEMENT_EAU_ELECTRICITE',
2020-06-18 05:38:10 +00:00
screen: route.paiementFacture,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Opérateur eau-électricité 6',
2020-06-17 14:09:27 +00:00
},
]
}
2020-06-23 08:55:19 +00:00
export const optionPaiementCreditTelephonique = {
title: I18n.t('PAIEMENT_FACTURE'),
subTitle: I18n.t('CHOOSE_OPERATOR'),
options: [
{
type: 'PAIEMENT_CREDIT_TELEPHONE',
screen: route.paiementFacture,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Opérateur téléphonique 1',
},
{
type: 'PAIEMENT_CREDIT_TELEPHONE',
screen: route.paiementFacture,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Opérateur téléphonique 2',
},
{
type: 'PAIEMENT_CREDIT_TELEPHONE',
screen: route.paiementFacture,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Opérateur téléphonique 3',
},
{
type: 'PAIEMENT_CREDIT_TELEPHONE',
screen: route.paiementFacture,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Opérateur téléphonique 4',
},
{
type: 'PAIEMENT_CREDIT_TELEPHONE',
screen: route.paiementFacture,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Opérateur téléphonique 5',
},
{
type: 'PAIEMENT_CREDIT_TELEPHONE',
screen: route.paiementFacture,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Opérateur téléphonique 6',
},
]
}
export const optionPaiementAbonnementTV = {
title: I18n.t('PAIEMENT_FACTURE'),
subTitle: I18n.t('CHOOSE_OPERATOR'),
options: [
{
type: 'PAIEMENT_ABONNEMENT_TV',
screen: route.paiementFacture,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Opérateur abonnement TV 1',
},
{
type: 'PAIEMENT_ABONNEMENT_TV',
screen: route.paiementFacture,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Opérateur abonnement TV 2',
},
{
type: 'PAIEMENT_ABONNEMENT_TV',
screen: route.paiementFacture,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Opérateur abonnement TV 3',
},
{
type: 'PAIEMENT_ABONNEMENT_TV',
screen: route.paiementFacture,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Opérateur abonnement TV 4',
},
{
type: 'PAIEMENT_ABONNEMENT_TV',
screen: route.paiementFacture,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Opérateur abonnement TV 5',
},
{
type: 'PAIEMENT_ABONNEMENT_TV',
screen: route.paiementFacture,
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
title: 'Opérateur abonnement TV 6',
},
]
}
export const optionPaiementEcole = {
2020-06-17 14:09:27 +00:00
title: I18n.t('PAIEMENT_FACTURE'),
2020-06-18 05:38:10 +00:00
subTitle: I18n.t('CHOOSE_OPERATOR'),
2020-06-17 14:09:27 +00:00
options: [
{
2020-06-18 05:38:10 +00:00
type: 'PAIEMENT_ECOLE',
screen: route.paiementFacture,
2020-06-17 14:09:27 +00:00
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
2020-06-23 08:55:19 +00:00
title: 'Opérateur école 1',
2020-06-17 14:09:27 +00:00
},
{
2020-06-18 05:38:10 +00:00
type: 'PAIEMENT_ECOLE',
screen: route.paiementFacture,
2020-06-17 14:09:27 +00:00
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
2020-06-23 08:55:19 +00:00
title: 'Opérateur école 2',
2020-06-17 14:09:27 +00:00
},
{
2020-06-18 05:38:10 +00:00
type: 'PAIEMENT_ECOLE',
screen: route.paiementFacture,
2020-06-17 14:09:27 +00:00
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
2020-06-23 08:55:19 +00:00
title: 'Opérateur école 3',
2020-06-17 14:09:27 +00:00
},
{
2020-06-18 05:38:10 +00:00
type: 'PAIEMENT_ECOLE',
screen: route.paiementFacture,
2020-06-17 14:09:27 +00:00
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
2020-06-23 08:55:19 +00:00
title: 'Opérateur école 4',
2020-06-17 14:09:27 +00:00
},
{
2020-06-18 05:38:10 +00:00
type: 'PAIEMENT_ECOLE',
screen: route.paiementFacture,
2020-06-17 14:09:27 +00:00
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
2020-06-23 08:55:19 +00:00
title: 'Opérateur école 5',
2020-06-17 14:09:27 +00:00
},
{
2020-06-18 05:38:10 +00:00
type: 'PAIEMENT_ECOLE',
screen: route.paiementFacture,
2020-06-17 14:09:27 +00:00
icon: 'http://test.ilink-app.com:8080/mobilebackend/datas/img/network/ilink-world-logo.png',
2020-06-23 08:55:19 +00:00
title: 'Opérateur école 6',
2020-06-16 09:25:46 +00:00
},
]
2020-06-18 05:38:10 +00:00
}
export const optionPaiementFacture = {
type: 'FACTURE',
title: I18n.t('PAIEMENT_FACTURE'),
subTitle: I18n.t('CHOOSE_OPTION'),
options: [
{
type: 'FACTURE_WATER_ELECTRICITY',
icon: 'water',
title: 'Paiement eau/électricité',
screen: route.operateurOptionSelect,
subScreenOption: optionPaiementEauElectricite
},
{
type: 'FACTURE_SCHOOL',
icon: 'school',
title: 'Paiement école',
screen: route.operateurOptionSelect,
2020-06-23 08:55:19 +00:00
subScreenOption: optionPaiementEcole
2020-06-18 05:38:10 +00:00
},
{
type: 'FACTURE_PHONE',
icon: 'phone-classic',
title: 'Paiement crédit téléphonique',
screen: route.operateurOptionSelect,
2020-06-23 08:55:19 +00:00
subScreenOption: optionPaiementCreditTelephonique
2020-06-18 05:38:10 +00:00
},
{
type: 'FACTURE_TV',
icon: 'television-classic',
title: 'Paiement abonnement TV',
screen: route.operateurOptionSelect,
2020-06-23 08:55:19 +00:00
subScreenOption: optionPaiementAbonnementTV
2020-06-18 05:38:10 +00:00
},
]
}