wallet ok

This commit is contained in:
Brice Zele 2020-05-06 14:07:53 +01:00
parent 7d5c4a105e
commit 4c45aa6e42
9 changed files with 27 additions and 15 deletions

File diff suppressed because one or more lines are too long

View File

@ -65,7 +65,7 @@
"TRANSFER_TO_PRINCIPAL_ACCOUNT": "Transfer commissions",
"PRINCIPAL": "Principal",
"ENTER_YOUR_CARD_ID": "Please enter your bank card ID",
"SELECT_YOUR_WALLET": "Selec your wallet",
"SELECT_YOUR_WALLET": "Select your wallet",
"TRANSACTIONS": "Transactions",
"TRANSACTION_HISTORY": "Transactions history",
"DEPOSIT_TRANSACTION_HISTORY_DESCRIPTION": "Deposit of",

View File

@ -65,7 +65,7 @@
"TRANSFER_TO_PRINCIPAL_ACCOUNT": "Transfer commissions",
"PRINCIPAL": "Principal",
"ENTER_YOUR_CARD_ID": "Please enter your bank card ID",
"SELECT_YOUR_WALLET": "Selec your wallet",
"SELECT_YOUR_WALLET": "Select your wallet",
"TRANSACTIONS": "Transactions",
"TRANSACTION_HISTORY": "Transactions history",
"DEPOSIT_TRANSACTION_HISTORY_DESCRIPTION": "Deposit of",

View File

@ -2,6 +2,7 @@
import { creditCancelDemand } from "./IlinkConstants";
import { store } from "../redux/store";
import axios from "axios";
import I18n from 'react-native-i18n'
import { fetchTreatCreditCancelPending, fetchTreatCreditCancelSucsess, fetchTreatCreditCancelError, fetchTreatCreditCancelReset } from "../redux/actions/CreditCancelDemandAction";
export const treatCancelDemand = (idDemand) => {
@ -16,7 +17,8 @@ export const treatCancelDemand = (idDemand) => {
url: `${creditCancelDemand}/${idDemand}`,
method: 'PUT',
headers: {
'Authorization': authKey
'Authorization': authKey,
'X-Localization': I18n.currentLocale()
}
})
.then(response => {

View File

@ -2,6 +2,7 @@
import { creditTreatDemand } from "./IlinkConstants";
import { store } from "../redux/store";
import axios from "axios";
import I18n from 'react-native-i18n'
import { fetchTreatCreditDemandPending, fetchTreatCreditDemandSucsess, fetchTreatCreditDemandError, fetchTreatCreditDemandReset } from "../redux/actions/CreditTreatDemandActions";
export const treatCreditDemand = (idDemand, montant) => {
@ -21,7 +22,8 @@ export const treatCreditDemand = (idDemand, montant) => {
url: `${creditTreatDemand}/${idDemand}`,
method: 'PUT',
headers: {
'Authorization': authKey
'Authorization': authKey,
'X-Localization': I18n.currentLocale()
},
data: dataToSend
})

View File

@ -3,6 +3,7 @@ import { transactionUrl } from "./IlinkConstants";
import { fetchDepositError, fetchDepositSuccess, fetchDepositPending, fetchDepositReset } from "../redux/actions/DepositAction";
import { store } from "../redux/store";
import axios from "axios";
import I18n from 'react-native-i18n'
/*
{
@ -26,7 +27,8 @@ export const depositAction = (data) => {
url: transactionUrl,
method: 'POST',
headers: {
'Authorization': authKey
'Authorization': authKey,
'X-Localization': I18n.currentLocale()
},
data
})

View File

@ -3,6 +3,7 @@ import { walletActionUrl, commissionAmount, walletDetailUrl } from "./IlinkConst
import { fetchWalletListPending, fetchWalletListSuccess, fetchWalletListError, fetchWalletListReset, fetchWalletListDetailPending, fetchWalletListDetailSuccess, fetchWalletListDetailError, fetchWalletListDetailReset, fetchWalletGetCommissionPending, fetchWalletGetCommissionSuccess, fetchWalleGetCommissionError, walletGetCommissionReset } from "../redux/actions/WalletActions";
import { store } from "../redux/store";
import axios from "axios";
import I18n from 'react-native-i18n'
export const getWalletActivated = (userID) => {
@ -16,7 +17,8 @@ export const getWalletActivated = (userID) => {
url: `${walletActionUrl}/${userID}/activated`,
method: 'GET',
headers: {
'Authorization': authKey
'Authorization': authKey,
'X-Localization': I18n.currentLocale()
}
})
.then(response => {

View File

@ -2,6 +2,7 @@
import { transactionUrl } from "./IlinkConstants";
import { store } from "../redux/store";
import axios from "axios";
import I18n from 'react-native-i18n'
import { fetchWalletHistoryPending, fetchWalletHistorySuccess, fetchWalletHistoryError, fetchWalletHistoryReset } from "../redux/actions/WalletActions";
export const getWalletTransactionHistory = (walletID) => {
@ -16,7 +17,8 @@ export const getWalletTransactionHistory = (walletID) => {
url: `${transactionUrl}/${walletID}`,
method: 'GET',
headers: {
'Authorization': authKey
'Authorization': authKey,
'X-Localization': I18n.currentLocale()
}
})
.then(response => {

View File

@ -2,6 +2,7 @@
import { transferCommission } from "./IlinkConstants";
import { store } from "../redux/store";
import axios from "axios";
import I18n from 'react-native-i18n'
import { fetchWalletTransferCommissionPending, fetchWalletTransferCommissionSuccess, fetchWalletTransferCommssionError, walletTransferCommissionReset } from "../redux/actions/WalletActions";
export const transferCommissionAction = (walletID) => {
@ -16,7 +17,8 @@ export const transferCommissionAction = (walletID) => {
url: `${transferCommission}/${walletID}`,
method: 'PUT',
headers: {
'Authorization': authKey
'Authorization': authKey,
'X-Localization': I18n.currentLocale()
}
})
.then(response => {