wallet ok
This commit is contained in:
parent
7d5c4a105e
commit
4c45aa6e42
File diff suppressed because one or more lines are too long
|
@ -65,7 +65,7 @@
|
||||||
"TRANSFER_TO_PRINCIPAL_ACCOUNT": "Transfer commissions",
|
"TRANSFER_TO_PRINCIPAL_ACCOUNT": "Transfer commissions",
|
||||||
"PRINCIPAL": "Principal",
|
"PRINCIPAL": "Principal",
|
||||||
"ENTER_YOUR_CARD_ID": "Please enter your bank card ID",
|
"ENTER_YOUR_CARD_ID": "Please enter your bank card ID",
|
||||||
"SELECT_YOUR_WALLET": "Selec your wallet",
|
"SELECT_YOUR_WALLET": "Select your wallet",
|
||||||
"TRANSACTIONS": "Transactions",
|
"TRANSACTIONS": "Transactions",
|
||||||
"TRANSACTION_HISTORY": "Transactions history",
|
"TRANSACTION_HISTORY": "Transactions history",
|
||||||
"DEPOSIT_TRANSACTION_HISTORY_DESCRIPTION": "Deposit of",
|
"DEPOSIT_TRANSACTION_HISTORY_DESCRIPTION": "Deposit of",
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
"TRANSFER_TO_PRINCIPAL_ACCOUNT": "Transfer commissions",
|
"TRANSFER_TO_PRINCIPAL_ACCOUNT": "Transfer commissions",
|
||||||
"PRINCIPAL": "Principal",
|
"PRINCIPAL": "Principal",
|
||||||
"ENTER_YOUR_CARD_ID": "Please enter your bank card ID",
|
"ENTER_YOUR_CARD_ID": "Please enter your bank card ID",
|
||||||
"SELECT_YOUR_WALLET": "Selec your wallet",
|
"SELECT_YOUR_WALLET": "Select your wallet",
|
||||||
"TRANSACTIONS": "Transactions",
|
"TRANSACTIONS": "Transactions",
|
||||||
"TRANSACTION_HISTORY": "Transactions history",
|
"TRANSACTION_HISTORY": "Transactions history",
|
||||||
"DEPOSIT_TRANSACTION_HISTORY_DESCRIPTION": "Deposit of",
|
"DEPOSIT_TRANSACTION_HISTORY_DESCRIPTION": "Deposit of",
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
import { creditCancelDemand } from "./IlinkConstants";
|
import { creditCancelDemand } from "./IlinkConstants";
|
||||||
import { store } from "../redux/store";
|
import { store } from "../redux/store";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
import I18n from 'react-native-i18n'
|
||||||
import { fetchTreatCreditCancelPending, fetchTreatCreditCancelSucsess, fetchTreatCreditCancelError, fetchTreatCreditCancelReset } from "../redux/actions/CreditCancelDemandAction";
|
import { fetchTreatCreditCancelPending, fetchTreatCreditCancelSucsess, fetchTreatCreditCancelError, fetchTreatCreditCancelReset } from "../redux/actions/CreditCancelDemandAction";
|
||||||
|
|
||||||
export const treatCancelDemand = (idDemand) => {
|
export const treatCancelDemand = (idDemand) => {
|
||||||
|
@ -16,7 +17,8 @@ export const treatCancelDemand = (idDemand) => {
|
||||||
url: `${creditCancelDemand}/${idDemand}`,
|
url: `${creditCancelDemand}/${idDemand}`,
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': authKey
|
'Authorization': authKey,
|
||||||
|
'X-Localization': I18n.currentLocale()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
import { creditTreatDemand } from "./IlinkConstants";
|
import { creditTreatDemand } from "./IlinkConstants";
|
||||||
import { store } from "../redux/store";
|
import { store } from "../redux/store";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
import I18n from 'react-native-i18n'
|
||||||
import { fetchTreatCreditDemandPending, fetchTreatCreditDemandSucsess, fetchTreatCreditDemandError, fetchTreatCreditDemandReset } from "../redux/actions/CreditTreatDemandActions";
|
import { fetchTreatCreditDemandPending, fetchTreatCreditDemandSucsess, fetchTreatCreditDemandError, fetchTreatCreditDemandReset } from "../redux/actions/CreditTreatDemandActions";
|
||||||
|
|
||||||
export const treatCreditDemand = (idDemand, montant) => {
|
export const treatCreditDemand = (idDemand, montant) => {
|
||||||
|
@ -21,7 +22,8 @@ export const treatCreditDemand = (idDemand, montant) => {
|
||||||
url: `${creditTreatDemand}/${idDemand}`,
|
url: `${creditTreatDemand}/${idDemand}`,
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': authKey
|
'Authorization': authKey,
|
||||||
|
'X-Localization': I18n.currentLocale()
|
||||||
},
|
},
|
||||||
data: dataToSend
|
data: dataToSend
|
||||||
})
|
})
|
||||||
|
|
|
@ -3,6 +3,7 @@ import { transactionUrl } from "./IlinkConstants";
|
||||||
import { fetchDepositError, fetchDepositSuccess, fetchDepositPending, fetchDepositReset } from "../redux/actions/DepositAction";
|
import { fetchDepositError, fetchDepositSuccess, fetchDepositPending, fetchDepositReset } from "../redux/actions/DepositAction";
|
||||||
import { store } from "../redux/store";
|
import { store } from "../redux/store";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
import I18n from 'react-native-i18n'
|
||||||
|
|
||||||
/*
|
/*
|
||||||
{
|
{
|
||||||
|
@ -26,7 +27,8 @@ export const depositAction = (data) => {
|
||||||
url: transactionUrl,
|
url: transactionUrl,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': authKey
|
'Authorization': authKey,
|
||||||
|
'X-Localization': I18n.currentLocale()
|
||||||
},
|
},
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
|
|
@ -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 { fetchWalletListPending, fetchWalletListSuccess, fetchWalletListError, fetchWalletListReset, fetchWalletListDetailPending, fetchWalletListDetailSuccess, fetchWalletListDetailError, fetchWalletListDetailReset, fetchWalletGetCommissionPending, fetchWalletGetCommissionSuccess, fetchWalleGetCommissionError, walletGetCommissionReset } from "../redux/actions/WalletActions";
|
||||||
import { store } from "../redux/store";
|
import { store } from "../redux/store";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
import I18n from 'react-native-i18n'
|
||||||
|
|
||||||
export const getWalletActivated = (userID) => {
|
export const getWalletActivated = (userID) => {
|
||||||
|
|
||||||
|
@ -16,7 +17,8 @@ export const getWalletActivated = (userID) => {
|
||||||
url: `${walletActionUrl}/${userID}/activated`,
|
url: `${walletActionUrl}/${userID}/activated`,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': authKey
|
'Authorization': authKey,
|
||||||
|
'X-Localization': I18n.currentLocale()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
import { transactionUrl } from "./IlinkConstants";
|
import { transactionUrl } from "./IlinkConstants";
|
||||||
import { store } from "../redux/store";
|
import { store } from "../redux/store";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
import I18n from 'react-native-i18n'
|
||||||
import { fetchWalletHistoryPending, fetchWalletHistorySuccess, fetchWalletHistoryError, fetchWalletHistoryReset } from "../redux/actions/WalletActions";
|
import { fetchWalletHistoryPending, fetchWalletHistorySuccess, fetchWalletHistoryError, fetchWalletHistoryReset } from "../redux/actions/WalletActions";
|
||||||
|
|
||||||
export const getWalletTransactionHistory = (walletID) => {
|
export const getWalletTransactionHistory = (walletID) => {
|
||||||
|
@ -16,7 +17,8 @@ export const getWalletTransactionHistory = (walletID) => {
|
||||||
url: `${transactionUrl}/${walletID}`,
|
url: `${transactionUrl}/${walletID}`,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': authKey
|
'Authorization': authKey,
|
||||||
|
'X-Localization': I18n.currentLocale()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
import { transferCommission } from "./IlinkConstants";
|
import { transferCommission } from "./IlinkConstants";
|
||||||
import { store } from "../redux/store";
|
import { store } from "../redux/store";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
import I18n from 'react-native-i18n'
|
||||||
import { fetchWalletTransferCommissionPending, fetchWalletTransferCommissionSuccess, fetchWalletTransferCommssionError, walletTransferCommissionReset } from "../redux/actions/WalletActions";
|
import { fetchWalletTransferCommissionPending, fetchWalletTransferCommissionSuccess, fetchWalletTransferCommssionError, walletTransferCommissionReset } from "../redux/actions/WalletActions";
|
||||||
|
|
||||||
export const transferCommissionAction = (walletID) => {
|
export const transferCommissionAction = (walletID) => {
|
||||||
|
@ -16,7 +17,8 @@ export const transferCommissionAction = (walletID) => {
|
||||||
url: `${transferCommission}/${walletID}`,
|
url: `${transferCommission}/${walletID}`,
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': authKey
|
'Authorization': authKey,
|
||||||
|
'X-Localization': I18n.currentLocale()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
|
Loading…
Reference in New Issue