450 lines
12 KiB
JavaScript
450 lines
12 KiB
JavaScript
import * as WalletType from "../types/WalletType";
|
|
import {
|
|
GET_BANK_FOR_ILINK_ERROR,
|
|
GET_BANK_FOR_ILINK_PENDING,
|
|
GET_BANK_FOR_ILINK_RESET,
|
|
GET_BANK_FOR_ILINK_SUCCESS,
|
|
GET_OPERATOR_LIST_ERROR,
|
|
GET_OPERATOR_LIST_PENDING,
|
|
GET_OPERATOR_LIST_RESET,
|
|
GET_OPERATOR_LIST_SUCCESS,
|
|
LINK_CARD_ERROR,
|
|
LINK_CARD_PENDING,
|
|
LINK_CARD_RESET,
|
|
LINK_CARD_SUCCESS,
|
|
PAY_BILL_ERROR,
|
|
PAY_BILL_PENDING,
|
|
PAY_BILL_RESET,
|
|
PAY_BILL_SUCCESS,
|
|
REATTACH_ACCOUNT_ERROR,
|
|
REATTACH_ACCOUNT_PENDING,
|
|
REATTACH_ACCOUNT_RESET,
|
|
REATTACH_ACCOUNT_SUCCESS,
|
|
WALLET_GET_COMMISSION_ERROR,
|
|
WALLET_GET_COMMISSION_PENDING,
|
|
WALLET_GET_COMMISSION_RESET,
|
|
WALLET_GET_COMMISSION_SUCCESS,
|
|
WALLET_HISTORY_ERROR,
|
|
WALLET_HISTORY_HYPER_SUPER__ERROR,
|
|
WALLET_HISTORY_HYPER_SUPER__RESET,
|
|
WALLET_HISTORY_HYPER_SUPER__SUCCESS,
|
|
WALLET_HISTORY_HYPER_SUPER_PENDING,
|
|
WALLET_HISTORY_PENDING,
|
|
WALLET_HISTORY_RESET,
|
|
WALLET_HISTORY_SUCCESS,
|
|
WALLET_LIST_DETAIL_ERROR,
|
|
WALLET_LIST_DETAIL_PENDING,
|
|
WALLET_LIST_DETAIL_RESET,
|
|
WALLET_LIST_DETAIL_SUCCESS,
|
|
WALLET_LIST_ERROR,
|
|
WALLET_LIST_PENDING,
|
|
WALLET_LIST_SUCCESS,
|
|
WALLET_TRANSFER_COMMISSION_ERROR,
|
|
WALLET_TRANSFER_COMMISSION_PENDING,
|
|
WALLET_TRANSFER_COMMISSION_RESET,
|
|
WALLET_TRANSFER_COMMISSION_SUCCESS
|
|
} from "../types/WalletType";
|
|
|
|
export const fetchWalletListPending = () => ({
|
|
type: WALLET_LIST_PENDING
|
|
});
|
|
|
|
export const fetchWalletListSuccess = (res) => ({
|
|
type: WALLET_LIST_SUCCESS,
|
|
result: res,
|
|
});
|
|
|
|
export const fetchWalletListError = (error) => ({
|
|
type: WALLET_LIST_ERROR,
|
|
result: error
|
|
});
|
|
|
|
export const fetchWalletListReset = (error) => ({
|
|
type: WALLET_LIST_RESET,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchWalletListDetailPending = () => ({
|
|
type: WALLET_LIST_DETAIL_PENDING
|
|
});
|
|
|
|
export const fetchWalletListDetailSuccess = (res) => ({
|
|
type: WALLET_LIST_DETAIL_SUCCESS,
|
|
result: res,
|
|
});
|
|
|
|
export const fetchWalletListDetailError = (error) => ({
|
|
type: WALLET_LIST_DETAIL_ERROR,
|
|
result: error
|
|
});
|
|
|
|
export const fetchWalletListDetailReset = (error) => ({
|
|
type: WALLET_LIST_DETAIL_RESET,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchWalletHistoryPending = () => ({
|
|
type: WALLET_HISTORY_PENDING
|
|
});
|
|
|
|
export const fetchWalletHistoryReset = () => ({
|
|
type: WALLET_HISTORY_RESET
|
|
});
|
|
|
|
export const fetchWalletHistorySuccess = (res) => ({
|
|
type: WALLET_HISTORY_SUCCESS,
|
|
result: res,
|
|
});
|
|
|
|
export const fetchWalletHistoryError = (error) => ({
|
|
type: WALLET_HISTORY_ERROR,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchWalletHistoryHyperSuperPending = () => ({
|
|
type: WALLET_HISTORY_HYPER_SUPER_PENDING
|
|
});
|
|
|
|
export const fetchWalletHistoryHyperSuperReset = () => ({
|
|
type: WALLET_HISTORY_HYPER_SUPER__RESET
|
|
});
|
|
|
|
export const fetchWalletHistoryHyperSuperSuccess = (res) => ({
|
|
type: WALLET_HISTORY_HYPER_SUPER__SUCCESS,
|
|
result: res,
|
|
});
|
|
|
|
export const fetchWalletHistoryHyperSuperError = (error) => ({
|
|
type: WALLET_HISTORY_HYPER_SUPER__ERROR,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchWalletTransferCommissionPending = () => ({
|
|
type: WALLET_TRANSFER_COMMISSION_PENDING
|
|
});
|
|
|
|
export const walletTransferCommissionReset = () => ({
|
|
type: WALLET_TRANSFER_COMMISSION_RESET
|
|
});
|
|
|
|
export const fetchWalletTransferCommissionSuccess = (res) => ({
|
|
type: WALLET_TRANSFER_COMMISSION_SUCCESS,
|
|
result: res,
|
|
});
|
|
|
|
export const fetchWalletTransferCommssionError = (error) => ({
|
|
type: WALLET_TRANSFER_COMMISSION_ERROR,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchWalletGetCommissionPending = () => ({
|
|
type: WALLET_GET_COMMISSION_PENDING
|
|
});
|
|
|
|
export const walletGetCommissionReset = () => ({
|
|
type: WALLET_GET_COMMISSION_RESET
|
|
});
|
|
|
|
export const fetchWalletGetCommissionSuccess = (res) => ({
|
|
type: WALLET_GET_COMMISSION_SUCCESS,
|
|
result: res,
|
|
});
|
|
|
|
export const fetchWalleGetCommissionError = (error) => ({
|
|
type: WALLET_GET_COMMISSION_ERROR,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchLinkCardPending = () => ({
|
|
type: LINK_CARD_PENDING
|
|
});
|
|
export const fetchLinkCardReset = () => ({
|
|
type: LINK_CARD_RESET
|
|
});
|
|
export const fetchLinkCardSuccess = (res) => ({
|
|
type: LINK_CARD_SUCCESS,
|
|
result: res,
|
|
});
|
|
export const fetchLinkCardError = (error) => ({
|
|
type: LINK_CARD_ERROR,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchGetBankIlinkPending = () => ({
|
|
type: GET_BANK_FOR_ILINK_PENDING
|
|
});
|
|
export const fetchGetBankIlinkReset = () => ({
|
|
type: GET_BANK_FOR_ILINK_RESET
|
|
});
|
|
export const fetchGetBankIlinkSuccess = (res) => ({
|
|
type: GET_BANK_FOR_ILINK_SUCCESS,
|
|
result: res,
|
|
});
|
|
export const fetchGetBankIlinkError = (error) => ({
|
|
type: GET_BANK_FOR_ILINK_ERROR
|
|
,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchReattachAccountPending = () => ({
|
|
type: REATTACH_ACCOUNT_PENDING
|
|
});
|
|
export const fetchReattachAccountReset = () => ({
|
|
type: REATTACH_ACCOUNT_RESET
|
|
});
|
|
export const fetchReattachAccountSuccess = (res) => ({
|
|
type: REATTACH_ACCOUNT_SUCCESS,
|
|
result: res,
|
|
});
|
|
export const fetchReattachAccountError = (error) => ({
|
|
type: REATTACH_ACCOUNT_ERROR,
|
|
result: error
|
|
});
|
|
|
|
/* export const fetchWalletGetRetraitCommissionPending = () => ({
|
|
type: WALLET_GET_RETREAIT_COMMISSION_PENDING
|
|
});
|
|
|
|
export const walletGetRetraitCommissionReset = () => ({
|
|
type: WALLET_GET_RETREAIT_COMMISSION_RESET
|
|
});
|
|
|
|
export const fetchWalletGetRetraitCommissionSuccess = (res) => ({
|
|
type: WALLET_GET_RETREAIT_COMMISSION_SUCCESS,
|
|
result: res,
|
|
});
|
|
|
|
export const fetchWalleGetRetraitCommissionError = (error) => ({
|
|
type: WALLET_GET_RETREAIT_COMMISSION_ERROR,
|
|
result: error
|
|
}); */
|
|
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchGetListOperatorPending = () => ({
|
|
type: GET_OPERATOR_LIST_PENDING
|
|
});
|
|
|
|
export const fetchGetListOperatorReset = () => ({
|
|
type: GET_OPERATOR_LIST_RESET
|
|
});
|
|
|
|
export const fetchGetListOperatorSuccess = (res) => ({
|
|
type: GET_OPERATOR_LIST_SUCCESS,
|
|
result: res,
|
|
});
|
|
|
|
export const fetchGetListOperatorError = (error) => ({
|
|
type: GET_OPERATOR_LIST_ERROR,
|
|
result: error
|
|
});
|
|
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchPayBillPending = () => ({
|
|
type: PAY_BILL_PENDING
|
|
});
|
|
export const fetchPayBillReset = () => ({
|
|
type: PAY_BILL_RESET
|
|
});
|
|
export const fetchPayBillSuccess = (res) => ({
|
|
type: PAY_BILL_SUCCESS,
|
|
result: res,
|
|
});
|
|
export const fetchPayBillError = (error) => ({
|
|
type: PAY_BILL_ERROR,
|
|
result: error
|
|
});
|
|
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchGetAvisImpossitionPending = () => ({
|
|
type: WalletType.GET_AVIS_IMPOSITION_PENDING
|
|
});
|
|
export const fetchGetAvisImpossitionReset = () => ({
|
|
type: WalletType.GET_AVIS_IMPOSITION_RESET
|
|
});
|
|
export const fetchGetAvisImpossitionSuccess = (res) => ({
|
|
type: WalletType.GET_AVIS_IMPOSITION_SUCCESS,
|
|
result: res,
|
|
});
|
|
export const fetchGetAvisImpossitionError = (error) => ({
|
|
type: WalletType.GET_AVIS_IMPOSITION_ERROR,
|
|
result: error
|
|
});
|
|
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchGetAvisImpossitionWithPenalitePending = () => ({
|
|
type: WalletType.GET_AVIS_IMPOSITION_WITH_PENALITE_PENDING
|
|
});
|
|
export const fetchGetAvisImpossitionWithPenaliteReset = () => ({
|
|
type: WalletType.GET_AVIS_IMPOSITION_WITH_PENALITE_RESET
|
|
});
|
|
export const fetchGetAvisImpossitionWithPenaliteSuccess = (res) => ({
|
|
type: WalletType.GET_AVIS_IMPOSITION_WITH_PENALITE_SUCCESS,
|
|
result: res,
|
|
});
|
|
export const fetchGetAvisImpossitionWithPenaliteError = (error) => ({
|
|
type: WalletType.GET_AVIS_IMPOSITION_WITH_PENALITE_ERROR,
|
|
result: error
|
|
});
|
|
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchModifyAvisImpositionPending = () => ({
|
|
type: WalletType.MODIFY_AVIS_IMPOSITION_PENDING
|
|
});
|
|
export const fetchModifyAvisImpositionReset = () => ({
|
|
type: WalletType.MODIFY_AVIS_IMPOSITION_RESET
|
|
});
|
|
export const fetchModifyAvisImpositionSuccess = (res) => ({
|
|
type: WalletType.MODIFY_AVIS_IMPOSITION_SUCCESS,
|
|
result: res,
|
|
});
|
|
export const fetchModifyAvisImpositionError = (error) => ({
|
|
type: WalletType.MODIFY_AVIS_IMPOSITION_ERROR,
|
|
result: error
|
|
});
|
|
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchUpdateDefaultNetworkPending = () => ({
|
|
type: WalletType.UPDATE_DEFAULT_NETWORK_PENDING
|
|
});
|
|
export const fetchUpdateDefaultNetworkReset = () => ({
|
|
type: WalletType.UPDATE_DEFAULT_NETWORK_RESET
|
|
});
|
|
export const fetchUpdateDefaultNetworkSuccess = (res) => ({
|
|
type: WalletType.UPDATE_DEFAULT_NETWORK_SUCCESS,
|
|
result: res,
|
|
});
|
|
export const fetchUpdateDefaultNetworkError = (error) => ({
|
|
type: WalletType.UPDATE_DEFAULT_NETWORK_ERROR,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchSaveActifSocietyPending = () => ({
|
|
type: WalletType.SAVE_ACTIF_SOCIETY_PENDING
|
|
});
|
|
export const fetchSaveActifSocietyReset = () => ({
|
|
type: WalletType.SAVE_ACTIF_SOCIETY_RESET
|
|
});
|
|
export const fetchSaveActifSocietySuccess = (res) => ({
|
|
type: WalletType.SAVE_ACTIF_SOCIETY_SUCCESS,
|
|
result: res,
|
|
});
|
|
export const fetchSaveActifSocietyError = (error) => ({
|
|
type: WalletType.SAVE_ACTIF_SOCIETY_ERROR,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchModifyPenalityPending = () => ({
|
|
type: WalletType.MODIFY_PENALITY_PENDING
|
|
});
|
|
export const fetchModifyPenalityReset = () => ({
|
|
type: WalletType.MODIFY_PENALITY_RESET
|
|
});
|
|
export const fetchModifyPenalitySuccess = (res) => ({
|
|
type: WalletType.MODIFY_PENALITY_SUCCESS,
|
|
result: res,
|
|
});
|
|
export const fetchModifyPenalityError = (error) => ({
|
|
type: WalletType.MODIFY_PENALITY_ERROR,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchDeletePenalityPending = () => ({
|
|
type: WalletType.DELETE_PENALITY_PENDING
|
|
});
|
|
export const fetchDeletePenalityReset = () => ({
|
|
type: WalletType.DELETE_PENALITY_RESET
|
|
});
|
|
export const fetchDeletePenalitySuccess = (res) => ({
|
|
type: WalletType.DELETE_PENALITY_SUCCESS,
|
|
result: res,
|
|
});
|
|
export const fetchDeletePenalityError = (error) => ({
|
|
type: WalletType.DELETE_PENALITY_ERROR,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchSavePenalityPending = () => ({
|
|
type: WalletType.SAVE_PENALITY_PENDING
|
|
});
|
|
export const fetchSavePenalityReset = () => ({
|
|
type: WalletType.SAVE_PENALITY_RESET
|
|
});
|
|
export const fetchSavePenalitySuccess = (res) => ({
|
|
type: WalletType.SAVE_PENALITY_SUCCESS,
|
|
result: res,
|
|
});
|
|
export const fetchSavePenalityError = (error) => ({
|
|
type: WalletType.SAVE_PENALITY_ERROR,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchSearchUserPending = () => ({
|
|
type: WalletType.SEARCH_USER_PENDING
|
|
});
|
|
export const fetchSearchUserReset = () => ({
|
|
type: WalletType.SEARCH_USER_RESET
|
|
});
|
|
export const fetchSearchUserSuccess = (res) => ({
|
|
type: WalletType.SEARCH_USER_SUCCESS,
|
|
result: res,
|
|
});
|
|
export const fetchSearchUserError = (error) => ({
|
|
type: WalletType.SEARCH_USER_ERROR,
|
|
result: error
|
|
});
|
|
/**
|
|
* ---------------------------------------------------
|
|
*/
|
|
export const fetchGetQRCodeDetailPending = () => ({
|
|
type: WalletType.GET_QR_CODE_DETAIL_PENDING
|
|
});
|
|
export const fetchGetQRCodeDetailReset = () => ({
|
|
type: WalletType.GET_QR_CODE_DETAIL_RESET
|
|
});
|
|
export const fetchGetQRCodeDetailSuccess = (res) => ({
|
|
type: WalletType.GET_QR_CODE_DETAIL_SUCCESS,
|
|
result: res,
|
|
});
|
|
export const fetchGetQRCodeDetailError = (error) => ({
|
|
type: WalletType.GET_QR_CODE_DETAIL_ERROR,
|
|
result: error
|
|
});
|