%PDF- %PDF-
Direktori : /home/emergentqj/actioncivile/pre-auth/.8352c036a19b0051d0217d27d25e3f4a/static/js/actions/ |
Current File : /home/emergentqj/actioncivile/pre-auth/.8352c036a19b0051d0217d27d25e3f4a/static/js/actions/api_actions.js |
import LIST_ACTIONS from "constants/action_types"; export const getCompaniesInfoReset = () => ({ type: LIST_ACTIONS.GET_COMPANIES_INFO_RESET, }); export const getCompanyInfoReset = () => ({ type: LIST_ACTIONS.GET_COMPANY_INFO_RESET, }); export const getCompanyVatInfoReset = () => ({ type: LIST_ACTIONS.GET_COMPANY_VAT_INFO_RESET, }); export const checkExistingUser = (phone) => ({ type: LIST_ACTIONS.GET_CHECK_EXISTING_USER_REQUEST, payload: phone, }); export const checkExistingUserReset = () => ({ type: LIST_ACTIONS.GET_CHECK_EXISTING_USER_RESET, payload: null, }); export const getParkingUserList = (payload) => ({ type: LIST_ACTIONS.GET_PARKING_USER_LIST_REQUEST, payload, }); export const registerSepaPayment = (method) => ({ type: LIST_ACTIONS.REGISTER_SEPA_PAYMENT_REQUEST, payload: method, }); export const registerDirectDebit = (method) => ({ type: LIST_ACTIONS.REGISTER_DIRECT_DEBIT_REQUEST, payload: method, }); export const checkDirectDebitStatus = (method) => ({ type: LIST_ACTIONS.CHECK_DIRECT_DEBIT_STATUS_REQUEST, payload: method, }); export const completeSepaPaymentSetUp = (payload) => ({ type: LIST_ACTIONS.COMPLETE_SEPA_PAYMENT, payload, }); export const signUp = (data, preBook = false) => ({ type: LIST_ACTIONS.SIGNUP_REQUEST, data, preBook, }); export const signUpCorporateLogin = (data) => ({ type: LIST_ACTIONS.SIGNUP_CORPORATE_LOGIN_REQUEST, data, }); export const logout = (currentLanguageCode) => ({ type: LIST_ACTIONS.LOGOUT_REQUEST, currentLanguageCode, }); export const getCompaniesInfo = (data) => ({ type: LIST_ACTIONS.GET_COMPANIES_INFO_REQUEST, data, }); export const getCompanyInfo = (data) => ({ type: LIST_ACTIONS.GET_COMPANY_INFO_REQUEST, data, }); export const getCompanyVatInfo = (data) => ({ type: LIST_ACTIONS.GET_COMPANY_VAT_INFO_REQUEST, data, }); export const getUser = (auth = false, register = false, preBook = false) => ({ type: LIST_ACTIONS.GET_USER_REQUEST, auth, register, preBook, }); export const getBusinessPaymentMethods = (customerId = 0) => ({ type: LIST_ACTIONS.GET_BUSINESS_PAYMENT_METHODS_REQUEST, customerId, }); export const setBusinessPaymentMethod = (data) => ({ type: LIST_ACTIONS.SET_BUSINESS_PAYMENT_METHOD_REQUEST, data, }); export const userLogin = (credentials) => ({ type: LIST_ACTIONS.USER_AUTH_REQUEST, credentials, }); export const setNewPassword = (newPassword, referenceId) => ({ type: LIST_ACTIONS.SET_NEW_MIGRATION_PASSWORD, newPassword, referenceId, });