2020-06-23 08:55:19 +00:00
|
|
|
import { CREATE_IDENTIFICATION_PENDING, CREATE_IDENTIFICATION_SUCCESS, CREATE_IDENTIFICATION_ERROR, CREATE_IDENTIFICATION_RESET, GET_NUMBER_DETAIL_PENDING, GET_NUMBER_DETAIL_SUCCESS, GET_NUMBER_DETAIL_ERROR, GET_NUMBER_DETAIL_RESET, GET_USER_IDENTIFICATION_PENDING, GET_USER_IDENTIFICATION_SUCCESS, GET_USER_IDENTIFICATION_ERROR, GET_USER_IDENTIFICATION_RESET, VALIDATE_IDENTIFICATION_PENDING, VALIDATE_IDENTIFICATION_SUCCESS, VALIDATE_IDENTIFICATION_ERROR, VALIDATE_IDENTIFICATION_RESET } from "../types/IdentificationType";
|
2020-06-12 11:13:59 +00:00
|
|
|
|
|
|
|
export const fetchCreateIdentificationPending = () => ({
|
|
|
|
type: CREATE_IDENTIFICATION_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchCreateIdentificationSuccess = (res) => ({
|
|
|
|
type: CREATE_IDENTIFICATION_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchCreateIdentificationError = (error) => ({
|
|
|
|
type: CREATE_IDENTIFICATION_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchCreateIdentificationReset = () => ({
|
|
|
|
type: CREATE_IDENTIFICATION_RESET
|
2020-06-16 09:25:46 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetNumberInformationPending = () => ({
|
|
|
|
type: GET_NUMBER_DETAIL_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetNumberInformationSuccess = (res) => ({
|
|
|
|
type: GET_NUMBER_DETAIL_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetNumberInformationError = (error) => ({
|
|
|
|
type: GET_NUMBER_DETAIL_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchGetNumberInformationReset = () => ({
|
|
|
|
type: GET_NUMBER_DETAIL_RESET
|
2020-06-17 14:09:27 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchUserIdentificationPending = () => ({
|
|
|
|
type: GET_USER_IDENTIFICATION_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchUserIdentificationSuccess = (res) => ({
|
|
|
|
type: GET_USER_IDENTIFICATION_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchUserIdentificationError = (error) => ({
|
|
|
|
type: GET_USER_IDENTIFICATION_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchUserIdentificationReset = () => ({
|
|
|
|
type: GET_USER_IDENTIFICATION_RESET
|
2020-06-23 08:55:19 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchValidateIndentificationPending = () => ({
|
|
|
|
type: VALIDATE_IDENTIFICATION_PENDING
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchValidateIndentificationSuccess = (res) => ({
|
|
|
|
type: VALIDATE_IDENTIFICATION_SUCCESS,
|
|
|
|
result: res,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchValidateIndentificationError = (error) => ({
|
|
|
|
type: VALIDATE_IDENTIFICATION_ERROR,
|
|
|
|
result: error
|
|
|
|
});
|
|
|
|
|
|
|
|
export const fetchValidateIndentificationReset = () => ({
|
|
|
|
type: VALIDATE_IDENTIFICATION_RESET
|
2020-06-12 11:13:59 +00:00
|
|
|
});
|