import {
    ENVOIE_WALLET_TO_CARD_USER_ERROR,
    ENVOIE_WALLET_TO_CARD_USER_GET_COMMISSION_ERROR,
    ENVOIE_WALLET_TO_CARD_USER_GET_COMMISSION_PENDING,
    ENVOIE_WALLET_TO_CARD_USER_GET_COMMISSION_RESET,
    ENVOIE_WALLET_TO_CARD_USER_GET_COMMISSION_SUCCESS,
    ENVOIE_WALLET_TO_CARD_USER_PENDING,
    ENVOIE_WALLET_TO_CARD_USER_RESET,
    ENVOIE_WALLET_TO_CARD_USER_SUCCESS,
    ENVOIE_WALLET_TO_CASH_USER_ERROR,
    ENVOIE_WALLET_TO_CASH_USER_GET_COMMISSION_ERROR,
    ENVOIE_WALLET_TO_CASH_USER_GET_COMMISSION_PENDING,
    ENVOIE_WALLET_TO_CASH_USER_GET_COMMISSION_RESET,
    ENVOIE_WALLET_TO_CASH_USER_GET_COMMISSION_SUCCESS,
    ENVOIE_WALLET_TO_CASH_USER_PENDING,
    ENVOIE_WALLET_TO_CASH_USER_RESET,
    ENVOIE_WALLET_TO_CASH_USER_SUCCESS,
    ENVOIE_WALLET_TO_WALLET_USER_ERROR,
    ENVOIE_WALLET_TO_WALLET_USER_GET_COMMISSION_ERROR,
    ENVOIE_WALLET_TO_WALLET_USER_GET_COMMISSION_PENDING,
    ENVOIE_WALLET_TO_WALLET_USER_GET_COMMISSION_RESET,
    ENVOIE_WALLET_TO_WALLET_USER_GET_COMMISSION_SUCCESS,
    ENVOIE_WALLET_TO_WALLET_USER_PENDING,
    ENVOIE_WALLET_TO_WALLET_USER_RESET,
    ENVOIE_WALLET_TO_WALLET_USER_SUCCESS
} from "../types/EnvoieUserType";

export const fetchEnvoieUserWalletToWalletPending = () => ({
    type: ENVOIE_WALLET_TO_WALLET_USER_PENDING
});

export const fetchEnvoieUserWalletToWalletSuccess = (res) => ({
    type: ENVOIE_WALLET_TO_WALLET_USER_SUCCESS,
    result: res,
});

export const fetchEnvoieUserWalletToWalletError = (error) => ({
    type: ENVOIE_WALLET_TO_WALLET_USER_ERROR,
    result: error
});

export const fetchEnvoieUserWalletToWalletReset = (error) => ({
    type: ENVOIE_WALLET_TO_WALLET_USER_RESET
});

/****************/

export const fetchEnvoieUserWalletToWalleGetCommissiontPending = () => ({
    type: ENVOIE_WALLET_TO_WALLET_USER_GET_COMMISSION_PENDING
});

export const fetchEnvoieUserWalletToWalletGetCommissionSuccess = (res) => ({
    type: ENVOIE_WALLET_TO_WALLET_USER_GET_COMMISSION_SUCCESS,
    result: res,
});

export const fetchEnvoieUserWalletToWalletGetCommissionError = (error) => ({
    type: ENVOIE_WALLET_TO_WALLET_USER_GET_COMMISSION_ERROR,
    result: error
});

export const fetchEnvoieUserWalletToWalleGetCommissiontReset = (error) => ({
    type: ENVOIE_WALLET_TO_WALLET_USER_GET_COMMISSION_RESET
});

/*--------------------------------------------------------------------*/

export const fetchEnvoieUserWalletToCashPending = () => ({
    type: ENVOIE_WALLET_TO_CASH_USER_PENDING
});

export const fetchEnvoieUserWalletToCashSuccess = (res) => ({
    type: ENVOIE_WALLET_TO_CASH_USER_SUCCESS,
    result: res,
});

export const fetchEnvoieUserWalletToCashError = (error) => ({
    type: ENVOIE_WALLET_TO_CASH_USER_ERROR,
    result: error
});

export const fetchEnvoieUserWalletToCashReset = () => ({
    type: ENVOIE_WALLET_TO_CASH_USER_RESET
});

/****************/

export const fetchEnvoieUserWalletToCashGetCommissiontPending = () => ({
    type: ENVOIE_WALLET_TO_CASH_USER_GET_COMMISSION_PENDING
});

export const fetchEnvoieUserWalletToCashGetCommissionSuccess = (res) => ({
    type: ENVOIE_WALLET_TO_CASH_USER_GET_COMMISSION_SUCCESS,
    result: res,
});

export const fetchEnvoieUserWalletToCashGetCommissionError = (error) => ({
    type: ENVOIE_WALLET_TO_CASH_USER_GET_COMMISSION_ERROR,
    result: error
});

export const fetchEnvoieUserWalletToCashGetCommissiontReset = (error) => ({
    type: ENVOIE_WALLET_TO_CASH_USER_GET_COMMISSION_RESET
});

/*--------------------------------------------------------------------*/

export const fetchEnvoieUserWalletToCardPending = () => ({
    type: ENVOIE_WALLET_TO_CARD_USER_PENDING
});

export const fetchEnvoieUserWalletToCardSuccess = (res) => ({
    type: ENVOIE_WALLET_TO_CARD_USER_SUCCESS,
    result: res,
});

export const fetchEnvoieUserWalletToCardError = (error) => ({
    type: ENVOIE_WALLET_TO_CARD_USER_ERROR,
    result: error
});

export const fetchEnvoieUserWalletToCardReset = (error) => ({
    type: ENVOIE_WALLET_TO_CARD_USER_RESET
});

/****************/

export const fetchEnvoieUserWalletToCardGetCommissiontPending = () => ({
    type: ENVOIE_WALLET_TO_CARD_USER_GET_COMMISSION_PENDING
});

export const fetchEnvoieUserWalletToCardGetCommissionSuccess = (res) => ({
    type: ENVOIE_WALLET_TO_CARD_USER_GET_COMMISSION_SUCCESS,
    result: res,
});

export const fetchEnvoieUserWalletToCardGetCommissionError = (error) => ({
    type: ENVOIE_WALLET_TO_CARD_USER_GET_COMMISSION_ERROR,
    result: error
});

export const fetchEnvoieUserWalletToCardGetCommissiontReset = (error) => ({
    type: ENVOIE_WALLET_TO_CARD_USER_GET_COMMISSION_RESET
});  