import { TREAT_CREDIT_CANCEL_PENDING, TREAT_CREDIT_CANCEL_SUCCESS, TREAT_CREDIT_CANCEL_ERROR, TREAT_CREDIT_CANCEL_RESET } from "../types/CreditManageType";

export const fetchTreatCreditCancelPending = () => ({
     type: TREAT_CREDIT_CANCEL_PENDING
});

export const fetchTreatCreditCancelSucsess = (res) => ({
     type: TREAT_CREDIT_CANCEL_SUCCESS,
     result: res,
});

export const fetchTreatCreditCancelError = (error) => ({
     type: TREAT_CREDIT_CANCEL_ERROR,
     result: error
});

export const fetchTreatCreditCancelReset = () => ({
     type: TREAT_CREDIT_CANCEL_RESET
});