import { ROOT_API_DEFAULT_HOST } from '../../helpers/constants'; import { HttpMethod } from '../../helpers/root-api'; export const quotePayload = { type: 'template_pet', species: 'dog', cover_option: 'standard', birth_year: 2020, high_risk_breed: true, sterilised: true, }; export const policyholderPayload = { id: { type: 'id', number: '9604185800083', country: 'GB', }, first_name: 'Marty', last_name: 'McFly', email: 'back@future.com', cellphone: { number: '+27829542232', country: 'ZA', }, date_of_birth: '19960418', }; export const policyholderFileContents = { id: { type: 'id', number: '9803064800087', country: 'ZA', cellphone: { number: '1234567890', country: 'ZA', }, date_of_birth: '1990-01-01', }, initials: 'E', first_name: 'Erlich', middle_name: 'Aviato', last_name: 'Bachman', email: 'erlich@avaito.com', cellphone: { number: '1234567890', country: 'ZA', }, date_of_birth: '1990-01-01', app_data: { company: 'Aviato', }, address: { line_1: '20 Demo Street', suburb: 'Woodland Hills', city: 'Cape Town', country: 'ZA', area_code: '1364', }, }; export const quotePackage = [ { quote_package_id: '12345', }, ]; export const policyholderResponse = { policyholder_id: '12345', }; export const applicationResponse = { application_id: '12345', }; export const applicationPayload = { quote_package_id: quotePackage[0].quote_package_id, policyholder_id: policyholderResponse.policyholder_id, pet_name: 'Snuffles', pet_breed: 'Mixed breed', pet_colour: 'Black', pet_gender: 'female', }; export const policyResponse = { policy_id: '12345', }; export const claimResponse = { claim_id: '12345', }; export const productModuleAuthAndConfig = { apiKey: 'sandbox_1234', config: { settings: { policyholder: { individualsAllowed: true, individualsIdAllowed: true, individualsPassportAllowed: false, individualsCellphoneAllowed: false, individualsCustomIdAllowed: false, individualsEmailAllowed: false, companiesAllowed: false, }, }, scheduledFunctions: [], fulfillmentTypes: [], stack: 'root-node-20', host: `https://${ROOT_API_DEFAULT_HOST}`, organizationId: '123', productModuleKey: 'key', productModuleName: 'name', codeFileOrder: [], alterationHooks: [], applicationAlterationHooks: [], memberAlterationHooks: [], }, }; export const quoteAPIArgs = { method: HttpMethod.Post, path: '/insurance/quote', searchParams: { version: 'draft' }, }; export const policyholderAPIArgs = { method: HttpMethod.Put, path: '/insurance/policyholders', }; export const applicationAPIArgs = { method: HttpMethod.Post, path: '/insurance/applications', searchParams: { version: 'draft' }, }; export const policyAPIArgs = { method: HttpMethod.Post, path: '/insurance/policies', body: { application_id: applicationResponse.application_id }, }; export const claimAPIArgs = { method: HttpMethod.Post, path: '/insurance/claims', body: { policy_id: policyResponse.policy_id, claimant: { first_name: 'Testing', last_name: 'Claims', email: 'example@email.com', }, }, };