ilink-world/app/redux/actions/NanoCreditAction.js

442 lines
11 KiB
JavaScript
Raw Normal View History

2020-08-27 20:04:51 +00:00
import {
2020-11-11 10:18:19 +00:00
ASK_NANO_CREDIT_ERROR,
ASK_NANO_CREDIT_PENDING,
ASK_NANO_CREDIT_RESET,
ASK_NANO_CREDIT_SUCCESS,
CASSER_EPARGNE_USER_ERROR,
CASSER_EPARGNE_USER_PENDING,
CASSER_EPARGNE_USER_RESET,
CASSER_EPARGNE_USER_SUCCESS,
CAUTION_CREDIT_DEMAND_AGENT_ERROR,
CAUTION_CREDIT_DEMAND_AGENT_PENDING,
CAUTION_CREDIT_DEMAND_AGENT_RESET,
CAUTION_CREDIT_DEMAND_AGENT_SUCCESS,
CREATE_GROUP_ERROR,
CREATE_GROUP_PENDING,
CREATE_GROUP_RESET,
CREATE_GROUP_SUCCESS,
EPARGNER_ARGENT_USER_ERROR,
EPARGNER_ARGENT_USER_PENDING,
EPARGNER_ARGENT_USER_RESET,
EPARGNER_ARGENT_USER_SUCCESS,
GET_DEMAND_GROUP_ERROR,
GET_DEMAND_GROUP_PENDING,
GET_DEMAND_GROUP_RESET,
GET_DEMAND_GROUP_SUCCESS,
GET_EPARGNE_HISTORY_PENDING_USER_ERROR,
GET_EPARGNE_HISTORY_PENDING_USER_PENDING,
GET_EPARGNE_HISTORY_PENDING_USER_RESET,
GET_EPARGNE_HISTORY_PENDING_USER_SUCCESS,
GET_NANO_CREDIT_ACCOUNT_USER_ERROR,
GET_NANO_CREDIT_ACCOUNT_USER_PENDING,
GET_NANO_CREDIT_ACCOUNT_USER_RESET,
GET_NANO_CREDIT_ACCOUNT_USER_SUCCESS,
GET_NANO_CREDIT_DEMAND_DETAIL_ERROR,
GET_NANO_CREDIT_DEMAND_DETAIL_PENDING,
GET_NANO_CREDIT_DEMAND_DETAIL_RESET,
GET_NANO_CREDIT_DEMAND_DETAIL_SUCCESS,
GET_NANO_CREDIT_DEMAND_DURATION_ERROR,
GET_NANO_CREDIT_DEMAND_DURATION_PENDING,
GET_NANO_CREDIT_DEMAND_DURATION_RESET,
GET_NANO_CREDIT_DEMAND_DURATION_SUCCESS,
GET_NANO_CREDIT_HISTORY_PENDING_USER_ERROR,
GET_NANO_CREDIT_HISTORY_PENDING_USER_PENDING,
GET_NANO_CREDIT_HISTORY_PENDING_USER_RESET,
GET_NANO_CREDIT_HISTORY_PENDING_USER_SUCCESS,
GET_NANO_CREDIT_HISTORY_USER_ERROR,
GET_NANO_CREDIT_HISTORY_USER_PENDING,
GET_NANO_CREDIT_HISTORY_USER_RESET,
GET_NANO_CREDIT_HISTORY_USER_SUCCESS,
GET_NOTIFICATIONS_ERROR,
GET_NOTIFICATIONS_PENDING,
GET_NOTIFICATIONS_RESET,
GET_NOTIFICATIONS_SUCCESS,
GET_UNIQUE_DEMAND_GROUP_ERROR,
GET_UNIQUE_DEMAND_GROUP_PENDING,
GET_UNIQUE_DEMAND_GROUP_RESET,
GET_UNIQUE_DEMAND_GROUP_SUCCESS,
GET_USER_GROUP_DETAIL_ERROR,
GET_USER_GROUP_DETAIL_PENDING,
GET_USER_GROUP_DETAIL_RESET,
GET_USER_GROUP_DETAIL_SUCCESS,
JOIN_GROUP_ERROR,
JOIN_GROUP_PENDING,
JOIN_GROUP_RESET,
JOIN_GROUP_SUCCESS,
REFUND_CREDIT_DEMAND_USER_ERROR,
REFUND_CREDIT_DEMAND_USER_PENDING,
REFUND_CREDIT_DEMAND_USER_RESET,
REFUND_CREDIT_DEMAND_USER_SUCCESS,
TREAT_DEMAND_GROUP_ERROR,
TREAT_DEMAND_GROUP_PENDING,
TREAT_DEMAND_GROUP_RESET,
TREAT_DEMAND_GROUP_SUCCESS
2020-08-27 20:04:51 +00:00
} from "../types/NanoCreditType";
2022-02-28 09:41:54 +00:00
import InsuranceActions from "../insurance/insurance.type";
2020-08-11 09:42:31 +00:00
export const fetchCreateGroupPending = () => ({
2020-11-11 10:18:19 +00:00
type: CREATE_GROUP_PENDING
2020-08-11 09:42:31 +00:00
});
export const fetchCreateGroupSuccess = (res) => ({
2020-11-11 10:18:19 +00:00
type: CREATE_GROUP_SUCCESS,
result: res,
2020-08-11 09:42:31 +00:00
});
export const fetchCreateGroupError = (error) => ({
2020-11-11 10:18:19 +00:00
type: CREATE_GROUP_ERROR,
result: error
2020-08-11 09:42:31 +00:00
});
export const fetchCreateGroupReset = () => ({
2020-11-11 10:18:19 +00:00
type: CREATE_GROUP_RESET
2020-08-12 18:24:56 +00:00
});
export const fetchGetDemandsGroupPending = () => ({
2020-11-11 10:18:19 +00:00
type: GET_DEMAND_GROUP_PENDING
2020-08-12 18:24:56 +00:00
});
export const fetchGetDemandsGroupSuccess = (res) => ({
2020-11-11 10:18:19 +00:00
type: GET_DEMAND_GROUP_SUCCESS,
result: res,
2020-08-12 18:24:56 +00:00
});
export const fetchGetDemandsGroupError = (error) => ({
2020-11-11 10:18:19 +00:00
type: GET_DEMAND_GROUP_ERROR,
result: error
2020-08-12 18:24:56 +00:00
});
export const fetchGetDemandsGroupReset = () => ({
2020-11-11 10:18:19 +00:00
type: GET_DEMAND_GROUP_RESET
2020-08-13 05:17:57 +00:00
});
export const fetchGetUniqueDemandsGroupPending = () => ({
2020-11-11 10:18:19 +00:00
type: GET_UNIQUE_DEMAND_GROUP_PENDING
2020-08-13 05:17:57 +00:00
});
export const fetchGetUniqueDemandsGroupSuccess = (res) => ({
2020-11-11 10:18:19 +00:00
type: GET_UNIQUE_DEMAND_GROUP_SUCCESS,
result: res,
2020-08-13 05:17:57 +00:00
});
export const fetchGetUniqueDemandsGroupError = (error) => ({
2020-11-11 10:18:19 +00:00
type: GET_UNIQUE_DEMAND_GROUP_ERROR,
result: error
2020-08-13 05:17:57 +00:00
});
export const fetchGetUniqueDemandsGroupReset = () => ({
2020-11-11 10:18:19 +00:00
type: GET_UNIQUE_DEMAND_GROUP_RESET
2020-08-13 07:23:23 +00:00
});
export const fetchTreatDemandsGroupPending = () => ({
2020-11-11 10:18:19 +00:00
type: TREAT_DEMAND_GROUP_PENDING
2020-08-13 07:23:23 +00:00
});
export const fetchTreatDemandsGroupSuccess = (res) => ({
2020-11-11 10:18:19 +00:00
type: TREAT_DEMAND_GROUP_SUCCESS,
result: res,
2020-08-13 07:23:23 +00:00
});
export const fetchTreatDemandsGroupError = (error) => ({
2020-11-11 10:18:19 +00:00
type: TREAT_DEMAND_GROUP_ERROR,
result: error
2020-08-13 07:23:23 +00:00
});
export const fetchTreatDemandsGroupReset = () => ({
2020-11-11 10:18:19 +00:00
type: TREAT_DEMAND_GROUP_RESET
2020-08-19 06:25:24 +00:00
});
export const fetchJoinGroupPending = () => ({
2020-11-11 10:18:19 +00:00
type: JOIN_GROUP_PENDING
2020-08-19 06:25:24 +00:00
});
export const fetchJoinGroupSuccess = (res) => ({
2020-11-11 10:18:19 +00:00
type: JOIN_GROUP_SUCCESS,
result: res,
2020-08-19 06:25:24 +00:00
});
export const fetchJoinGroupError = (error) => ({
2020-11-11 10:18:19 +00:00
type: JOIN_GROUP_ERROR,
result: error
2020-08-19 06:25:24 +00:00
});
export const fetchJoinGroupReset = () => ({
2020-11-11 10:18:19 +00:00
type: JOIN_GROUP_RESET
2020-08-23 21:41:29 +00:00
});
export const fetchGetUserGroupDetailPending = () => ({
2020-11-11 10:18:19 +00:00
type: GET_USER_GROUP_DETAIL_PENDING
2020-08-23 21:41:29 +00:00
});
export const fetchGetUserGroupDetailSuccess = (res) => ({
2020-11-11 10:18:19 +00:00
type: GET_USER_GROUP_DETAIL_SUCCESS,
result: res,
2020-08-23 21:41:29 +00:00
});
export const fetchGetUserGroupDetailError = (error) => ({
2020-11-11 10:18:19 +00:00
type: GET_USER_GROUP_DETAIL_ERROR,
result: error
2020-08-23 21:41:29 +00:00
});
export const fetchGetUserGroupDetailReset = () => ({
2020-11-11 10:18:19 +00:00
type: GET_USER_GROUP_DETAIL_RESET
2020-08-24 19:18:19 +00:00
});
export const fetchGetNotificationPending = () => ({
2020-11-11 10:18:19 +00:00
type: GET_NOTIFICATIONS_PENDING
2020-08-24 19:18:19 +00:00
});
export const fetchGetNotificationSuccess = (res) => ({
2020-11-11 10:18:19 +00:00
type: GET_NOTIFICATIONS_SUCCESS,
result: res,
2020-08-24 19:18:19 +00:00
});
export const fetchGetNotificationError = (error) => ({
2020-11-11 10:18:19 +00:00
type: GET_NOTIFICATIONS_ERROR,
result: error
2020-08-24 19:18:19 +00:00
});
export const fetchGetNotificationReset = () => ({
2020-11-11 10:18:19 +00:00
type: GET_NOTIFICATIONS_RESET
2020-08-27 20:04:51 +00:00
});
export const fetchAskNanoCreditPending = () => ({
2020-11-11 10:18:19 +00:00
type: ASK_NANO_CREDIT_PENDING
2020-08-27 20:04:51 +00:00
});
export const fetchAskNanoCreditSuccess = (res) => ({
2020-11-11 10:18:19 +00:00
type: ASK_NANO_CREDIT_SUCCESS,
result: res,
2020-08-27 20:04:51 +00:00
});
export const fetchAskNanoCreditError = (error) => ({
2020-11-11 10:18:19 +00:00
type: ASK_NANO_CREDIT_ERROR,
result: error
2020-08-27 20:04:51 +00:00
});
export const fetchAskNanoCreditReset = () => ({
2020-11-11 10:18:19 +00:00
type: ASK_NANO_CREDIT_RESET
2020-08-27 20:04:51 +00:00
});
export const fetchGetNanoCreditDemandDurationPending = () => ({
2020-11-11 10:18:19 +00:00
type: GET_NANO_CREDIT_DEMAND_DURATION_PENDING
2020-08-27 20:04:51 +00:00
});
export const fetchGetNanoCreditDemandDurationSuccess = (res) => ({
2020-11-11 10:18:19 +00:00
type: GET_NANO_CREDIT_DEMAND_DURATION_SUCCESS,
result: res,
2020-08-27 20:04:51 +00:00
});
export const fetchGetNanoCreditDemandDurationError = (error) => ({
2020-11-11 10:18:19 +00:00
type: GET_NANO_CREDIT_DEMAND_DURATION_ERROR,
result: error
2020-08-27 20:04:51 +00:00
});
export const fetchGetNanoCreditDemandDurationReset = () => ({
2020-11-11 10:18:19 +00:00
type: GET_NANO_CREDIT_DEMAND_DURATION_RESET
2020-09-07 16:10:48 +00:00
});
export const fetchCautionCreditDemandUserPending = () => ({
2020-11-11 10:18:19 +00:00
type: REFUND_CREDIT_DEMAND_USER_PENDING
2020-09-07 16:10:48 +00:00
});
export const fetchCautionCreditDemandUserSuccess = (res) => ({
2020-11-11 10:18:19 +00:00
type: REFUND_CREDIT_DEMAND_USER_SUCCESS,
result: res,
2020-09-07 16:10:48 +00:00
});
export const fetchCautionCreditDemandUserError = (error) => ({
2020-11-11 10:18:19 +00:00
type: REFUND_CREDIT_DEMAND_USER_ERROR,
result: error
2020-09-07 16:10:48 +00:00
});
export const fetchCautionCreditDemandUserReset = () => ({
2020-11-11 10:18:19 +00:00
type: REFUND_CREDIT_DEMAND_USER_RESET
2020-09-07 16:10:48 +00:00
});
export const fetchCautionCreditDemandAgentPending = () => ({
2020-11-11 10:18:19 +00:00
type: CAUTION_CREDIT_DEMAND_AGENT_PENDING
2020-09-07 16:10:48 +00:00
});
export const fetchCautionCreditDemandAgentSuccess = (res) => ({
2020-11-11 10:18:19 +00:00
type: CAUTION_CREDIT_DEMAND_AGENT_SUCCESS,
result: res,
2020-09-07 16:10:48 +00:00
});
export const fetchCautionCreditDemandAgentError = (error) => ({
2020-11-11 10:18:19 +00:00
type: CAUTION_CREDIT_DEMAND_AGENT_ERROR,
result: error
2020-09-07 16:10:48 +00:00
});
export const fetchCautionCreditDemandAgentReset = () => ({
2020-11-11 10:18:19 +00:00
type: CAUTION_CREDIT_DEMAND_AGENT_RESET
2020-09-07 16:10:48 +00:00
});
export const fetchGetNanoCreditDemandDetailPending = () => ({
2020-11-11 10:18:19 +00:00
type: GET_NANO_CREDIT_DEMAND_DETAIL_PENDING
2020-09-07 16:10:48 +00:00
});
export const fetchGetNanoCreditDemandDetailSuccess = (res) => ({
2020-11-11 10:18:19 +00:00
type: GET_NANO_CREDIT_DEMAND_DETAIL_SUCCESS,
result: res,
2020-09-07 16:10:48 +00:00
});
export const fetchGetNanoCreditDemandDetailError = (error) => ({
2020-11-11 10:18:19 +00:00
type: GET_NANO_CREDIT_DEMAND_DETAIL_ERROR,
result: error
2020-09-07 16:10:48 +00:00
});
export const fetchGetNanoCreditDemandDetailReset = () => ({
2020-11-11 10:18:19 +00:00
type: GET_NANO_CREDIT_DEMAND_DETAIL_RESET
2020-09-07 16:10:48 +00:00
});
export const fetchEpargnerArgentUserPending = () => ({
2020-11-11 10:18:19 +00:00
type: EPARGNER_ARGENT_USER_PENDING
2020-09-07 16:10:48 +00:00
});
export const fetchEpargnerArgentUserSuccess = (res) => ({
2020-11-11 10:18:19 +00:00
type: EPARGNER_ARGENT_USER_SUCCESS,
result: res,
2020-09-07 16:10:48 +00:00
});
export const fetchEpargnerArgentUserError = (error) => ({
2020-11-11 10:18:19 +00:00
type: EPARGNER_ARGENT_USER_ERROR,
result: error
2020-09-07 16:10:48 +00:00
});
export const fetchEpargnerArgentUserReset = () => ({
2020-11-11 10:18:19 +00:00
type: EPARGNER_ARGENT_USER_RESET
2020-09-07 16:10:48 +00:00
});
export const fetchCasserEpargneUserPending = () => ({
2020-11-11 10:18:19 +00:00
type: CASSER_EPARGNE_USER_PENDING
2020-09-07 16:10:48 +00:00
});
export const fetchCasserEpargneUserSuccess = (res) => ({
2020-11-11 10:18:19 +00:00
type: CASSER_EPARGNE_USER_SUCCESS,
result: res,
2020-09-07 16:10:48 +00:00
});
export const fetchCasserEpargneUserError = (error) => ({
2020-11-11 10:18:19 +00:00
type: CASSER_EPARGNE_USER_ERROR,
result: error
2020-09-07 16:10:48 +00:00
});
export const fetchCasserEpargneUserReset = () => ({
2020-11-11 10:18:19 +00:00
type: CASSER_EPARGNE_USER_RESET
2020-09-30 05:46:30 +00:00
});
export const fetchGetNanoCreditUserAccountPending = () => ({
2020-11-11 10:18:19 +00:00
type: GET_NANO_CREDIT_ACCOUNT_USER_PENDING
2020-09-30 05:46:30 +00:00
});
export const fetchGetNanoCreditUserAccountSuccess = (res) => ({
2020-11-11 10:18:19 +00:00
type: GET_NANO_CREDIT_ACCOUNT_USER_SUCCESS,
result: res,
2020-09-30 05:46:30 +00:00
});
export const fetchGetNanoCreditUserAccountError = (error) => ({
2020-11-11 10:18:19 +00:00
type: GET_NANO_CREDIT_ACCOUNT_USER_ERROR,
result: error
2020-09-30 05:46:30 +00:00
});
export const fetchGetNanoCreditUserAccountReset = () => ({
2020-11-11 10:18:19 +00:00
type: GET_NANO_CREDIT_ACCOUNT_USER_RESET
});
export const fetchGetNanoCreditUserHistoryPending = () => ({
2020-11-11 10:18:19 +00:00
type: GET_NANO_CREDIT_HISTORY_USER_PENDING
});
export const fetchGetNanoCreditUserHistorySuccess = (res) => ({
2020-11-11 10:18:19 +00:00
type: GET_NANO_CREDIT_HISTORY_USER_SUCCESS,
result: res,
});
export const fetchGetNanoCreditUserHistoryError = (error) => ({
2020-11-11 10:18:19 +00:00
type: GET_NANO_CREDIT_HISTORY_USER_ERROR,
result: error
});
export const fetchGetNanoCreditUserHistoryReset = () => ({
2020-11-11 10:18:19 +00:00
type: GET_NANO_CREDIT_HISTORY_USER_RESET
});
export const fetchGetNanoCreditUserHistoryInProgressPending = () => ({
type: GET_NANO_CREDIT_HISTORY_PENDING_USER_PENDING
});
export const fetchGetNanoCreditUserHistoryInProgressSuccess = (res) => ({
type: GET_NANO_CREDIT_HISTORY_PENDING_USER_SUCCESS,
result: res,
});
export const fetchGetNanoCreditUserHistoryInProgressError = (error) => ({
type: GET_NANO_CREDIT_HISTORY_PENDING_USER_ERROR,
result: error
});
export const fetchGetNanoCreditUserHistoryInProgressReset = () => ({
type: GET_NANO_CREDIT_HISTORY_PENDING_USER_RESET
});
export const fetchGetEpargneInProgressPending = () => ({
type: GET_EPARGNE_HISTORY_PENDING_USER_PENDING
});
export const fetchGetEpargneInProgressSuccess = (res) => ({
type: GET_EPARGNE_HISTORY_PENDING_USER_SUCCESS,
result: res,
});
export const fetchGetEpargneInProgressError = (error) => ({
type: GET_EPARGNE_HISTORY_PENDING_USER_ERROR,
result: error
});
export const fetchGetEpargneInProgressReset = () => ({
type: GET_EPARGNE_HISTORY_PENDING_USER_RESET
2022-02-28 09:41:54 +00:00
});
export const fetchFacturerSoinPending = () => ({
type: InsuranceActions.FACTURER_SOINS_PENDING
});
export const fetchFacturerSoinSuccess = (res) => ({
type: InsuranceActions.FACTURER_SOINS_SUCCESS,
result: res,
});
export const fetchFacturerSoinError = (error) => ({
type: InsuranceActions.FACTURER_SOINS_ERROR,
result: error
});
export const fetchFacturerSoinReset = () => ({
type: InsuranceActions.FACTURER_SOINS_RESET
});
export const fetchInvoiceHistoryPending = () => ({
type: InsuranceActions.INVOICE_HISTORY_PENDING
});
export const fetchInvoiceHistorySuccess = (res) => ({
type: InsuranceActions.INVOICE_HISTORY_SUCCESS,
result: res,
});
export const fetchInvoiceHistoryError = (error) => ({
type: InsuranceActions.INVOICE_HISTORY_ERROR,
result: error
});
export const fetchInvoiceHistoryReset = () => ({
type: InsuranceActions.INVOICE_HISTORY_RESET
2020-08-11 09:42:31 +00:00
});