@epilot/customer-portal-client 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e,t){for(var a in t)e[a]=t[a];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(exports,(()=>{"use strict";var e={914:function(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var p=i(a(279));t.default=p.default},279:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"Customer Portal API","description":"Backend for epilot end customer portals","version":"1.0.0"},"tags":[{"name":"ECP","description":"ECP"},{"name":"ECP Admin","description":"ECP Admin"}],"security":[{"CustomerPortalAuth":[]},{"AsOrganization":[]},{"AsBrand":[]},{"AsCustomer":[]}],"paths":{"/v1/customer-portal/portal":{"post":{"operationId":"createPortal","summary":"creates a portal","description":"Creates a portal and db item","security":[{"EpilotAuth":[]}],"tags":["ECP Admin"],"requestBody":{"description":"Portal payload","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","example":12345},"domain":{"type":"string","example":"test@test.com"},"organization_id":{"type":"string","example":66},"design_id":{"type":"string","example":3134},"cognito_details":{"type":"object","properties":{"cognito_user_pool_client_id":{"type":"string","example":"6bsd0jkgoie74k2i8mrhc1vest"},"cognito_user_pool_arn":{"type":"string","example":"arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341"},"cognito_user_pool_id":{"type":"string","example":"eu-central-1_CUEQRNbUb"}}},"config":{"type":"string"},"contact_secondary_identifier":{"type":"string","example":"full_name"}}}}}},"responses":{"201":{"description":"Success - portal created with success.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"400":{"description":"Validation Errors","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"401":{"description":"Authentication Errors","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"500":{"description":"Other errors","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}}}},"/v1/customer-portal/public/user":{"post":{"operationId":"createUser","summary":"creates a user","description":"Creates a user in cognito pool and db item","security":[],"tags":["ECP Admin"],"requestBody":{"description":"Portal payload","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","example":"testemail921@yopmail.com"},"password":{"type":"string","example":"Pass1234!"},"orgId":{"type":"string","example":728},"userPoolId":{"type":"string","example":"eu-central-1_391JDA1HFO"},"clientId":{"type":"string","example":"aj123jfoavnashf2fj"},"brandId":{"type":"string","example":123456},"secondaryIdentifier":{"type":"string","example":123456}}}}}},"responses":{"201":{"description":"Success - user created with success.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"400":{"description":"Validation Errors","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"401":{"description":"Authentication Errors","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"500":{"description":"Other errors","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}}}},"/v1/customer-portal/public/activate":{"post":{"operationId":"activateUser","summary":"activateUser","description":"Activates the user","security":[],"tags":["ECP Admin"],"parameters":[{"in":"query","name":"token","schema":{"type":"string"},"required":true,"description":"Invite Token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"display_name":{"type":"string","description":"User\'s display name (default: email address)","example":"Example User"},"password":{"type":"string","description":"User\'s password","example":"AKjhdakjsdh@!34"}}}}}},"responses":{"200":{"description":"Activated successfully"},"404":{"description":"Token not found for the user"}}}},"/v1/customer-portal/auth":{"get":{"operationId":"testAuth","summary":"testAuth","description":"TODO","tags":["ECP"],"responses":{"200":{"description":"ok"}}}},"/v1/customer-portal/public/config":{"get":{"operationId":"getPortalConfigByDomain","summary":"getPortalConfigByDomain","description":"TODO","tags":["ECP"],"security":[],"parameters":[{"in":"query","name":"domain","required":true,"schema":{"type":"string","example":"example.com"}}],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","example":12454},"organization_id":{"type":"string","example":66},"design_id":{"type":"string","example":3134},"cognito_details":{"type":"object","properties":{"cognito_user_pool_client_id":{"type":"string","example":"6bsd0jkgoie74k2i8mrhc1vest"},"cognito_user_pool_arn":{"type":"string","example":"arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341"},"cognito_user_pool_id":{"type":"string","example":"eu-central-1_CUEQRNbUb"}}},"config":{"type":"string"},"secondary_identifier":{"type":"string","example":1234},"network":{"type":"object"}}}}}}}}},"/v1/customer-portal/config":{"get":{"operationId":"getPortalConfig","summary":"getPortalConfig","description":"TODO","tags":["ECP Admin"],"security":[{"EpilotAuth":[]}],"parameters":[{"in":"query","name":"brand_id","required":true,"schema":{"type":"string","example":12324}},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":2342}}],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","example":12454},"organization_id":{"type":"string","example":66},"design_id":{"type":"string","example":3134},"cognito_details":{"type":"object","properties":{"cognito_user_pool_client_id":{"type":"string","example":"6bsd0jkgoie74k2i8mrhc1vest"},"cognito_user_pool_arn":{"type":"string","example":"arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341"},"cognito_user_pool_id":{"type":"string","example":"eu-central-1_CUEQRNbUb"}}},"config":{"type":"string"},"secondary_identifier":{"type":"string","example":1234},"network":{"type":"object"}}}}}}}}},"/v1/customer-portal/contact/{id}":{"get":{"operationId":"getContact","summary":"getContact","description":"Get the Contact by id","tags":["ECP"],"security":[{"CustomerPortalAuth":[]}],"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The Id of contact"},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"responses":{"200":{"description":"The returned contact","content":{"application/json":{"schema":{"type":"object","properties":{"customer_number":{"type":"string","example":12454},"first_name":{"type":"string","example":"xyz"},"last_name":{"type":"string","example":"xyz"},"title":{"type":"string","example":"xyz"},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}}}}},"phone":{"type":"array","items":{"type":"object","properties":{"phone":{"type":"string","example":"+1 123"},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}}}}}}}}}},"500":{"description":"Other errors","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}}},"patch":{"operationId":"updateContact","summary":"updateContact","description":"Update the contact details","tags":["ECP"],"security":[{"CustomerPortalAuth":[]}],"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The Id of contact"},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"customer_number":{"type":"string","example":12454},"first_name":{"type":"string","example":"xyz"},"last_name":{"type":"string","example":"xyz"},"title":{"type":"string","example":"xyz"},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}}}}},"phone":{"type":"array","items":{"type":"object","properties":{"phone":{"type":"string","example":"+1 123"},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}}}}}}}}}},"responses":{"200":{"description":"The returned contact","content":{"application/json":{"schema":{"type":"object","properties":{"customer_number":{"type":"string","example":12454},"first_name":{"type":"string","example":"xyz"},"last_name":{"type":"string","example":"xyz"},"title":{"type":"string","example":"xyz"},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}}}}},"phone":{"type":"array","items":{"type":"object","properties":{"phone":{"type":"string","example":"+1 123"},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}}}}}}}}}}}}},"/v1/customer-portal/contact/email/count":{"get":{"operationId":"getCountByEmail","summary":"getCountByEmail","description":"Check Contact by email","tags":["ECP"],"security":[],"parameters":[{"in":"query","name":"email","required":true,"schema":{"type":"string","example":"test@test.com"}},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"responses":{"200":{"description":"The returned count of contact","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number","example":2}}}}}}}}},"/v1/customer-portal/contact/valid/secondary/attributes":{"get":{"operationId":"getValidSecondaryAttributes","summary":"getValidSecondaryAttributes","description":"Get Valid Secondary Attributes","tags":["ECP"],"security":[{"EpilotAuth":[]}],"responses":{"200":{"description":"The returned count of contact","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"first_name"},"type":{"type":"string","example":"string"}}}}}}}}}}}},"/v1/customer-portal/user/{id}":{"get":{"operationId":"getPortalUser","summary":"getPortalUser","description":"TODO","tags":["ECP"],"security":[{"CustomerPortalAuth":[]}],"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The Id of portal user id"},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"responses":{"200":{"description":"The returned portal user","content":{"application/json":{"schema":{"type":"object","properties":{"mapped_contact":{"type":"object"},"mapping_status":{"type":"boolean","example":true},"registration_status":{"type":"string","example":"user_created"},"language":{"type":"string","example":"en"},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}}}}}}}}}}}},"patch":{"operationId":"updatePortalUser","summary":"updatePortalUser","description":"Update the portal user details","tags":["ECP"],"security":[{"CustomerPortalAuth":[]}],"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The Id of portal user"},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"mapped_contact":{"type":"object"},"mapping_status":{"type":"boolean","example":true},"registration_status":{"type":"string","example":"user_created"},"language":{"type":"string","example":"en"},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}}}}}}}}}},"responses":{"200":{"description":"The returned portal user","content":{"application/json":{"schema":{"type":"object","properties":{"mapped_contact":{"type":"object"},"mapping_status":{"type":"boolean","example":true},"registration_status":{"type":"string","example":"user_created"},"language":{"type":"string","example":"en"},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}}}}}}}}}}}},"delete":{"operationId":"deletePortalUser","summary":"deletePortalUser","description":"TODO","tags":["ECP"],"security":[{"CustomerPortalAuth":[]}],"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The Id of portal user id"},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"responses":{"200":{"description":"The returned portal user id","content":{"application/json":{"schema":{"type":"string","example":123}}}}}}},"/v1/customer-portal/user/confirm/{id}":{"get":{"operationId":"confirmUser","summary":"confirmUser","description":"TODO","tags":["ECP"],"security":[],"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The Id of portal user id"},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"responses":{"200":{"description":"The returned portal user","content":{"application/json":{"schema":{"type":"object","properties":{"mapped_contact":{"type":"object"},"mapping_status":{"type":"boolean","example":true},"registration_status":{"type":"string","example":"user_created"},"language":{"type":"string","example":"en"},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}}}}}}}}}}}}},"/v1/customer-portal/public/user/exists":{"get":{"operationId":"userExists","summary":"userExists","description":"Checks whether a user exists in the customer portal","tags":["ECP"],"security":[],"parameters":[{"in":"query","name":"email","required":true,"schema":{"type":"string","example":"user@example.com"}},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"responses":{"200":{"description":"User exists in the portal","content":{"application/json":{"schema":{"type":"object","properties":{"exists":{"type":"boolean","example":true},"user":{"type":"object","properties":{"mapped_contact":{"type":"object"},"mapping_status":{"type":"boolean","example":true},"registration_status":{"type":"string","example":"user_created"},"language":{"type":"string","example":"en"},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}}}}}}}}}}}},"404":{"description":"User does not exist in the portal","content":{"application/json":{"schema":{"type":"object","properties":{"exists":{"type":"boolean","example":false}}}}}}}}},"/v1/customer-portal/configure-distribution":{"get":{"operationId":"configureDistribution","summary":"configureDistribution","description":"TODO","tags":["ECP"],"security":[],"parameters":[{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}},{"in":"query","name":"brand_id","required":true,"schema":{"type":"string","example":123}}],"responses":{"200":{"description":"The returned configured distribution id","content":{"application/json":{"schema":{"type":"object","properties":{"domainName":{"type":"string","example":"dsj8op4ha01jha23.cloudfront.net"}}}}}}}}},"/v1/customer-portal/order":{"get":{"operationId":"getAllOrders","summary":"getAllOrders","description":"TODO","tags":["ECP"],"security":[{"CustomerPortalAuth":[]}],"parameters":[{"in":"query","name":"user_id","required":true,"schema":{"type":"string","example":123}},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"responses":{"200":{"description":"The returned orders","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":123},"metadata":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"_origin"},"value":{"type":"string","example":"journey checkout"}}}},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}},"order_number":{"type":"string","example":123234},"status":{"type":"string","example":"Draft"},"billing_first_name":{"type":"string","example":"John"},"billing_last_name":{"type":"string","example":"Doe"},"billing_email":{"type":"string","example":"john@doe.com"},"billing_phone":{"type":"string","example":12344556},"billing_company_name":{"type":"string","example":"ABC Company"},"billing_vat":{"type":"string","example":123456},"billing_address":{"type":"array","items":{"type":"object","properties":{"street":{"type":"string","example":"Street 1"},"street_number":{"type":"string","example":11},"city":{"type":"string","example":"Cologne"},"postal_code":{"type":"string","example":10201},"country":{"type":"string","example":"de"}}}},"delivery_address":{"type":"array","items":{"type":"object","properties":{"street":{"type":"string","example":"Street 1"},"street_number":{"type":"string","example":11},"city":{"type":"string","example":"Cologne"},"postal_code":{"type":"string","example":10201},"country":{"type":"string","example":"de"}}}},"payment_method":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"BankTransfer"}}}},"currency":{"type":"string","example":"EUR"},"line_items":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string","example":"4f92b831-6465-4929-9dd3-3d64b5a33514"},"price_id":{"type":"string","example":"4db12bb3-1773-409e-9f97-a2d8f5482142"},"_product":{"type":"object","properties":{"type":{"type":"string","example":"Product"},"name":{"type":"string","example":"JUICE CHARGER Wallbox"},"active":{"type":"boolean"},"code":{"type":"string","example":"EL-JCME11"},"categories":{"type":"array","items":{"type":"string","example":"House Connection"}},"feature":{"type":"array","items":{"type":"object","properties":{"_tags":{"type":"array","items":null},"feature":{"type":"string","example":"Test new feature"}}}},"_schema":{"type":"string","example":"product"},"_id":{"type":"string","example":"4f92b831-6465-4929-9dd3-3d64b5a33514"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T09:48:16.834Z"},"_updated_at":{"type":"string","example":"2021-12-08T10:37:21.833Z"},"_title":{"type":"string","example":"JUICE CHARGER Wallbox"},"price_options":{"type":"object","properties":{"$relation":{"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string","example":"48e1792e-79a5-49be-92dc-e50c7ddbf96c"}}}}}},"_images":{"type":"object","properties":{"type":{"type":"string","example":"image"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga2n1000009mifvbs1z0m/original"},"mime":{"type":"string","example":"image/jpeg"},"name":{"type":"string","example":"juice-charger-me_set.jpeg"},"size":{"type":"integer","format":"int32","example":25618},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original"},"alt_text":{"type":"string","example":null}}}}}},"_files":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}}}},"_price":{"type":"object","properties":{"_id":{"type":"string","example":"4db12bb3-1773-409e-9f97-a2d8f5482142"},"unit_amount":{"type":"integer","format":"int32","example":12055},"type":{"type":"string","example":"Recurring"},"billing_period":{"type":"string","example":"Monthly"},"billing_duration_amount":{"type":"string","example":1},"billing_duration_unit":{"type":"string","example":"Years"},"notice_time_amount":{"type":"string","example":3},"notice_time_unit":{"type":"string","example":"Months"},"termination_time_amount":{"type":"string","example":1},"termination_time_unit":{"type":"string","example":"Months"},"renewal_duration_amount":{"type":"string","example":1},"renewal_duration_unit":{"type":"string","example":"Years"},"active":{"type":"boolean"},"sales_tax":{"type":"string","example":"Standard (19%)"},"tax_behavior":{"type":"string","example":"Exclusive (Price amount excludes Tax)"},"description":{"type":"string","example":"Winter Lease"},"billing_scheme":{"type":"string","example":"Per Unit"},"tiers_mode":{"type":"string","example":"Standard"},"_schema":{"type":"string","example":"price"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T11:58:24.322Z"},"_updated_at":{"type":"string","example":"2021-11-26T11:50:15.574Z"},"_title":{"type":"string","example":"Winter Lease"},"unit_amount_decimal":{"type":"string","example":120.55456634},"unit_amount_currency":{"type":"string","example":"EUR"}}},"quantity":{"type":"integer","format":"int32","example":1},"currency":{"type":"string","example":"EUR"},"description":{"type":"string","example":"Winter Lease"},"unit_amount":{"type":"integer","format":"int32","example":12055},"amount_subtotal":{"type":"integer","format":"int32","example":12055},"amount_total":{"type":"integer","format":"int32","example":14346},"taxes":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"string","example":"Standard (19%)"},"amount":{"type":"integer","format":"int32","example":2291}}}}}}},"amount_subtotal":{"type":"number","example":100},"amount_total":{"type":"number","example":100},"total_details":{"type":"object","properties":{"type":{"amount_tax":"string","example":300},"breakdown":{"type":"object","properties":{"taxes":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"string","example":"Standard (19%)"},"amount":{"type":"integer","format":"int32","example":2291}}}}}}}},"org":{"properties":{"id":{"type":"string","example":123},"logo_url":{"type":"string","example":"https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png"},"logo_thumbnail_url":{"type":"string","example":"https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png"}}}}}}}}}}}}}},"/v1/customer-portal/order/{id}":{"get":{"operationId":"getOrder","summary":"getOrder","description":"TODO","tags":["ECP"],"security":[{"CustomerPortalAuth":[]}],"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The Id of order"},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"responses":{"200":{"description":"The returned order","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","example":123},"metadata":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"_origin"},"value":{"type":"string","example":"journey checkout"}}}},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}},"order_number":{"type":"string","example":123234},"status":{"type":"string","example":"Draft"},"billing_first_name":{"type":"string","example":"John"},"billing_last_name":{"type":"string","example":"Doe"},"billing_email":{"type":"string","example":"john@doe.com"},"billing_phone":{"type":"string","example":12344556},"billing_company_name":{"type":"string","example":"ABC Company"},"billing_vat":{"type":"string","example":123456},"billing_address":{"type":"array","items":{"type":"object","properties":{"street":{"type":"string","example":"Street 1"},"street_number":{"type":"string","example":11},"city":{"type":"string","example":"Cologne"},"postal_code":{"type":"string","example":10201},"country":{"type":"string","example":"de"}}}},"delivery_address":{"type":"array","items":{"type":"object","properties":{"street":{"type":"string","example":"Street 1"},"street_number":{"type":"string","example":11},"city":{"type":"string","example":"Cologne"},"postal_code":{"type":"string","example":10201},"country":{"type":"string","example":"de"}}}},"payment_method":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"BankTransfer"}}}},"currency":{"type":"string","example":"EUR"},"line_items":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string","example":"4f92b831-6465-4929-9dd3-3d64b5a33514"},"price_id":{"type":"string","example":"4db12bb3-1773-409e-9f97-a2d8f5482142"},"_product":{"type":"object","properties":{"type":{"type":"string","example":"Product"},"name":{"type":"string","example":"JUICE CHARGER Wallbox"},"active":{"type":"boolean"},"code":{"type":"string","example":"EL-JCME11"},"categories":{"type":"array","items":{"type":"string","example":"House Connection"}},"feature":{"type":"array","items":{"type":"object","properties":{"_tags":{"type":"array","items":null},"feature":{"type":"string","example":"Test new feature"}}}},"_schema":{"type":"string","example":"product"},"_id":{"type":"string","example":"4f92b831-6465-4929-9dd3-3d64b5a33514"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T09:48:16.834Z"},"_updated_at":{"type":"string","example":"2021-12-08T10:37:21.833Z"},"_title":{"type":"string","example":"JUICE CHARGER Wallbox"},"price_options":{"type":"object","properties":{"$relation":{"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string","example":"48e1792e-79a5-49be-92dc-e50c7ddbf96c"}}}}}},"_images":{"type":"object","properties":{"type":{"type":"string","example":"image"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga2n1000009mifvbs1z0m/original"},"mime":{"type":"string","example":"image/jpeg"},"name":{"type":"string","example":"juice-charger-me_set.jpeg"},"size":{"type":"integer","format":"int32","example":25618},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original"},"alt_text":{"type":"string","example":null}}}}}},"_files":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}}}},"_price":{"type":"object","properties":{"_id":{"type":"string","example":"4db12bb3-1773-409e-9f97-a2d8f5482142"},"unit_amount":{"type":"integer","format":"int32","example":12055},"type":{"type":"string","example":"Recurring"},"billing_period":{"type":"string","example":"Monthly"},"billing_duration_amount":{"type":"string","example":1},"billing_duration_unit":{"type":"string","example":"Years"},"notice_time_amount":{"type":"string","example":3},"notice_time_unit":{"type":"string","example":"Months"},"termination_time_amount":{"type":"string","example":1},"termination_time_unit":{"type":"string","example":"Months"},"renewal_duration_amount":{"type":"string","example":1},"renewal_duration_unit":{"type":"string","example":"Years"},"active":{"type":"boolean"},"sales_tax":{"type":"string","example":"Standard (19%)"},"tax_behavior":{"type":"string","example":"Exclusive (Price amount excludes Tax)"},"description":{"type":"string","example":"Winter Lease"},"billing_scheme":{"type":"string","example":"Per Unit"},"tiers_mode":{"type":"string","example":"Standard"},"_schema":{"type":"string","example":"price"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T11:58:24.322Z"},"_updated_at":{"type":"string","example":"2021-11-26T11:50:15.574Z"},"_title":{"type":"string","example":"Winter Lease"},"unit_amount_decimal":{"type":"string","example":120.55456634},"unit_amount_currency":{"type":"string","example":"EUR"}}},"quantity":{"type":"integer","format":"int32","example":1},"currency":{"type":"string","example":"EUR"},"description":{"type":"string","example":"Winter Lease"},"unit_amount":{"type":"integer","format":"int32","example":12055},"amount_subtotal":{"type":"integer","format":"int32","example":12055},"amount_total":{"type":"integer","format":"int32","example":14346},"taxes":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"string","example":"Standard (19%)"},"amount":{"type":"integer","format":"int32","example":2291}}}}}}},"amount_subtotal":{"type":"number","example":100},"amount_total":{"type":"number","example":100},"total_details":{"type":"object","properties":{"type":{"amount_tax":"string","example":300},"breakdown":{"type":"object","properties":{"taxes":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"string","example":"Standard (19%)"},"amount":{"type":"integer","format":"int32","example":2291}}}}}}}},"org":{"properties":{"id":{"type":"string","example":123},"logo_url":{"type":"string","example":"https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png"},"logo_thumbnail_url":{"type":"string","example":"https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png"}}}}}}}}}}}}}},"components":{"securitySchemes":{"CustomerPortalAuth":{"type":"http","scheme":"bearer","description":"Customer Portal Cognito Token"},"EpilotAuth":{"type":"http","scheme":"bearer","description":"Epilot Bearer Token"},"AsOrganization":{"type":"apiKey","in":"header","name":"x-ivy-org-id","description":"Set organization id as internal user"},"AsBrand":{"type":"apiKey","in":"header","name":"x-ivy-brand-id","description":"Set brand id as internal user"},"AsContact":{"type":"apiKey","in":"header","name":"x-contact-id","description":"Set contact id as internal user"},"AsCustomer":{"type":"apiKey","in":"header","name":"x-portal-id","description":"Set portal id as customer"}},"schemas":{"InviteToken":{"type":"string"},"ContactId":{"type":"string"},"PortalUserId":{"type":"string"},"OrderId":{"type":"string"},"UserActivationPayload":{"type":"object","properties":{"display_name":{"type":"string","description":"User\'s display name (default: email address)","example":"Example User"},"password":{"type":"string","description":"User\'s password","example":"AKjhdakjsdh@!34"}}},"PortalConfig":{"type":"object","properties":{"auth_config":{"type":"object","properties":{"user_pool_id":{"type":"string","example":"eu-central-1_CUEQRNbUb"},"user_pool_client_id":{"type":"string","example":"6bsd0jkgoie74k2i8mrhc1vest"},"user_pool_identity_pool_id":{"type":"string","example":"eu-central-1:a63af1f7-ab86-4ab5-a0eb-f461cb37c2b1"},"portal_id":{"type":"string","example":"7h2hwdj7hhjsdcjkq03eidna3ep"}},"required":["user_pool_id","user_pool_client_id","portal_id"]}}},"ErrorResp":{"type":"object","properties":{"message":{"type":"string"}}},"AddPortalResp":{"type":"object","properties":{"message":{"type":"string"}}},"BrandCreate":{"type":"object","properties":{"id":{"type":"string","example":12345},"domain":{"type":"string","example":"test@test.com"},"organization_id":{"type":"string","example":66},"design_id":{"type":"string","example":3134},"cognito_details":{"type":"object","properties":{"cognito_user_pool_client_id":{"type":"string","example":"6bsd0jkgoie74k2i8mrhc1vest"},"cognito_user_pool_arn":{"type":"string","example":"arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341"},"cognito_user_pool_id":{"type":"string","example":"eu-central-1_CUEQRNbUb"}}},"config":{"type":"string"},"contact_secondary_identifier":{"type":"string","example":"full_name"}}},"Brand":{"type":"object","properties":{"id":{"type":"string","example":12454},"organization_id":{"type":"string","example":66},"design_id":{"type":"string","example":3134},"cognito_details":{"type":"object","properties":{"cognito_user_pool_client_id":{"type":"string","example":"6bsd0jkgoie74k2i8mrhc1vest"},"cognito_user_pool_arn":{"type":"string","example":"arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341"},"cognito_user_pool_id":{"type":"string","example":"eu-central-1_CUEQRNbUb"}}},"config":{"type":"string"},"secondary_identifier":{"type":"string","example":1234},"network":{"type":"object"}}},"AuthConfig":{"type":"object","properties":{"user_pool_id":{"type":"string","example":"eu-central-1_CUEQRNbUb"},"user_pool_client_id":{"type":"string","example":"6bsd0jkgoie74k2i8mrhc1vest"},"user_pool_identity_pool_id":{"type":"string","example":"eu-central-1:a63af1f7-ab86-4ab5-a0eb-f461cb37c2b1"},"portal_id":{"type":"string","example":"7h2hwdj7hhjsdcjkq03eidna3ep"}},"required":["user_pool_id","user_pool_client_id","portal_id"]},"Exists":{"type":"object","required":["exists"],"properties":{"exists":{"type":"boolean"},"active":{"type":"boolean"}},"example":{"exists":true,"active":false}},"Tag":{"type":"string","example":"primary"},"Contact":{"type":"object","properties":{"customer_number":{"type":"string","example":12454},"first_name":{"type":"string","example":"xyz"},"last_name":{"type":"string","example":"xyz"},"title":{"type":"string","example":"xyz"},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}}}}},"phone":{"type":"array","items":{"type":"object","properties":{"phone":{"type":"string","example":"+1 123"},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}}}}}}},"PortalUser":{"type":"object","properties":{"mapped_contact":{"type":"object"},"mapping_status":{"type":"boolean","example":true},"registration_status":{"type":"string","example":"user_created"},"language":{"type":"string","example":"en"},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}}}}}}},"Tax":{"type":"object","properties":{"rate":{"type":"string","example":"Standard (19%)"},"amount":{"type":"integer","format":"int32","example":2291}}},"Image":{"type":"object","properties":{"type":{"type":"string","example":"image"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga2n1000009mifvbs1z0m/original"},"mime":{"type":"string","example":"image/jpeg"},"name":{"type":"string","example":"juice-charger-me_set.jpeg"},"size":{"type":"integer","format":"int32","example":25618},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original"},"alt_text":{"type":"string","example":null}}}}}},"File":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}},"Product":{"type":"object","properties":{"type":{"type":"string","example":"Product"},"name":{"type":"string","example":"JUICE CHARGER Wallbox"},"active":{"type":"boolean"},"code":{"type":"string","example":"EL-JCME11"},"categories":{"type":"array","items":{"type":"string","example":"House Connection"}},"feature":{"type":"array","items":{"type":"object","properties":{"_tags":{"type":"array","items":null},"feature":{"type":"string","example":"Test new feature"}}}},"_schema":{"type":"string","example":"product"},"_id":{"type":"string","example":"4f92b831-6465-4929-9dd3-3d64b5a33514"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T09:48:16.834Z"},"_updated_at":{"type":"string","example":"2021-12-08T10:37:21.833Z"},"_title":{"type":"string","example":"JUICE CHARGER Wallbox"},"price_options":{"type":"object","properties":{"$relation":{"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string","example":"48e1792e-79a5-49be-92dc-e50c7ddbf96c"}}}}}},"_images":{"type":"object","properties":{"type":{"type":"string","example":"image"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga2n1000009mifvbs1z0m/original"},"mime":{"type":"string","example":"image/jpeg"},"name":{"type":"string","example":"juice-charger-me_set.jpeg"},"size":{"type":"integer","format":"int32","example":25618},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original"},"alt_text":{"type":"string","example":null}}}}}},"_files":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}}}},"Price":{"type":"object","properties":{"_id":{"type":"string","example":"4db12bb3-1773-409e-9f97-a2d8f5482142"},"unit_amount":{"type":"integer","format":"int32","example":12055},"type":{"type":"string","example":"Recurring"},"billing_period":{"type":"string","example":"Monthly"},"billing_duration_amount":{"type":"string","example":1},"billing_duration_unit":{"type":"string","example":"Years"},"notice_time_amount":{"type":"string","example":3},"notice_time_unit":{"type":"string","example":"Months"},"termination_time_amount":{"type":"string","example":1},"termination_time_unit":{"type":"string","example":"Months"},"renewal_duration_amount":{"type":"string","example":1},"renewal_duration_unit":{"type":"string","example":"Years"},"active":{"type":"boolean"},"sales_tax":{"type":"string","example":"Standard (19%)"},"tax_behavior":{"type":"string","example":"Exclusive (Price amount excludes Tax)"},"description":{"type":"string","example":"Winter Lease"},"billing_scheme":{"type":"string","example":"Per Unit"},"tiers_mode":{"type":"string","example":"Standard"},"_schema":{"type":"string","example":"price"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T11:58:24.322Z"},"_updated_at":{"type":"string","example":"2021-11-26T11:50:15.574Z"},"_title":{"type":"string","example":"Winter Lease"},"unit_amount_decimal":{"type":"string","example":120.55456634},"unit_amount_currency":{"type":"string","example":"EUR"}}},"OrderLineItem":{"type":"object","properties":{"product_id":{"type":"string","example":"4f92b831-6465-4929-9dd3-3d64b5a33514"},"price_id":{"type":"string","example":"4db12bb3-1773-409e-9f97-a2d8f5482142"},"_product":{"type":"object","properties":{"type":{"type":"string","example":"Product"},"name":{"type":"string","example":"JUICE CHARGER Wallbox"},"active":{"type":"boolean"},"code":{"type":"string","example":"EL-JCME11"},"categories":{"type":"array","items":{"type":"string","example":"House Connection"}},"feature":{"type":"array","items":{"type":"object","properties":{"_tags":{"type":"array","items":null},"feature":{"type":"string","example":"Test new feature"}}}},"_schema":{"type":"string","example":"product"},"_id":{"type":"string","example":"4f92b831-6465-4929-9dd3-3d64b5a33514"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T09:48:16.834Z"},"_updated_at":{"type":"string","example":"2021-12-08T10:37:21.833Z"},"_title":{"type":"string","example":"JUICE CHARGER Wallbox"},"price_options":{"type":"object","properties":{"$relation":{"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string","example":"48e1792e-79a5-49be-92dc-e50c7ddbf96c"}}}}}},"_images":{"type":"object","properties":{"type":{"type":"string","example":"image"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga2n1000009mifvbs1z0m/original"},"mime":{"type":"string","example":"image/jpeg"},"name":{"type":"string","example":"juice-charger-me_set.jpeg"},"size":{"type":"integer","format":"int32","example":25618},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original"},"alt_text":{"type":"string","example":null}}}}}},"_files":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}}}},"_price":{"type":"object","properties":{"_id":{"type":"string","example":"4db12bb3-1773-409e-9f97-a2d8f5482142"},"unit_amount":{"type":"integer","format":"int32","example":12055},"type":{"type":"string","example":"Recurring"},"billing_period":{"type":"string","example":"Monthly"},"billing_duration_amount":{"type":"string","example":1},"billing_duration_unit":{"type":"string","example":"Years"},"notice_time_amount":{"type":"string","example":3},"notice_time_unit":{"type":"string","example":"Months"},"termination_time_amount":{"type":"string","example":1},"termination_time_unit":{"type":"string","example":"Months"},"renewal_duration_amount":{"type":"string","example":1},"renewal_duration_unit":{"type":"string","example":"Years"},"active":{"type":"boolean"},"sales_tax":{"type":"string","example":"Standard (19%)"},"tax_behavior":{"type":"string","example":"Exclusive (Price amount excludes Tax)"},"description":{"type":"string","example":"Winter Lease"},"billing_scheme":{"type":"string","example":"Per Unit"},"tiers_mode":{"type":"string","example":"Standard"},"_schema":{"type":"string","example":"price"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T11:58:24.322Z"},"_updated_at":{"type":"string","example":"2021-11-26T11:50:15.574Z"},"_title":{"type":"string","example":"Winter Lease"},"unit_amount_decimal":{"type":"string","example":120.55456634},"unit_amount_currency":{"type":"string","example":"EUR"}}},"quantity":{"type":"integer","format":"int32","example":1},"currency":{"type":"string","example":"EUR"},"description":{"type":"string","example":"Winter Lease"},"unit_amount":{"type":"integer","format":"int32","example":12055},"amount_subtotal":{"type":"integer","format":"int32","example":12055},"amount_total":{"type":"integer","format":"int32","example":14346},"taxes":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"string","example":"Standard (19%)"},"amount":{"type":"integer","format":"int32","example":2291}}}}}},"Order":{"type":"object","properties":{"id":{"type":"string","example":123},"metadata":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"_origin"},"value":{"type":"string","example":"journey checkout"}}}},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}},"order_number":{"type":"string","example":123234},"status":{"type":"string","example":"Draft"},"billing_first_name":{"type":"string","example":"John"},"billing_last_name":{"type":"string","example":"Doe"},"billing_email":{"type":"string","example":"john@doe.com"},"billing_phone":{"type":"string","example":12344556},"billing_company_name":{"type":"string","example":"ABC Company"},"billing_vat":{"type":"string","example":123456},"billing_address":{"type":"array","items":{"type":"object","properties":{"street":{"type":"string","example":"Street 1"},"street_number":{"type":"string","example":11},"city":{"type":"string","example":"Cologne"},"postal_code":{"type":"string","example":10201},"country":{"type":"string","example":"de"}}}},"delivery_address":{"type":"array","items":{"type":"object","properties":{"street":{"type":"string","example":"Street 1"},"street_number":{"type":"string","example":11},"city":{"type":"string","example":"Cologne"},"postal_code":{"type":"string","example":10201},"country":{"type":"string","example":"de"}}}},"payment_method":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"BankTransfer"}}}},"currency":{"type":"string","example":"EUR"},"line_items":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string","example":"4f92b831-6465-4929-9dd3-3d64b5a33514"},"price_id":{"type":"string","example":"4db12bb3-1773-409e-9f97-a2d8f5482142"},"_product":{"type":"object","properties":{"type":{"type":"string","example":"Product"},"name":{"type":"string","example":"JUICE CHARGER Wallbox"},"active":{"type":"boolean"},"code":{"type":"string","example":"EL-JCME11"},"categories":{"type":"array","items":{"type":"string","example":"House Connection"}},"feature":{"type":"array","items":{"type":"object","properties":{"_tags":{"type":"array","items":null},"feature":{"type":"string","example":"Test new feature"}}}},"_schema":{"type":"string","example":"product"},"_id":{"type":"string","example":"4f92b831-6465-4929-9dd3-3d64b5a33514"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T09:48:16.834Z"},"_updated_at":{"type":"string","example":"2021-12-08T10:37:21.833Z"},"_title":{"type":"string","example":"JUICE CHARGER Wallbox"},"price_options":{"type":"object","properties":{"$relation":{"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string","example":"48e1792e-79a5-49be-92dc-e50c7ddbf96c"}}}}}},"_images":{"type":"object","properties":{"type":{"type":"string","example":"image"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga2n1000009mifvbs1z0m/original"},"mime":{"type":"string","example":"image/jpeg"},"name":{"type":"string","example":"juice-charger-me_set.jpeg"},"size":{"type":"integer","format":"int32","example":25618},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original"},"alt_text":{"type":"string","example":null}}}}}},"_files":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}},"_tags":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}}}}},"_price":{"type":"object","properties":{"_id":{"type":"string","example":"4db12bb3-1773-409e-9f97-a2d8f5482142"},"unit_amount":{"type":"integer","format":"int32","example":12055},"type":{"type":"string","example":"Recurring"},"billing_period":{"type":"string","example":"Monthly"},"billing_duration_amount":{"type":"string","example":1},"billing_duration_unit":{"type":"string","example":"Years"},"notice_time_amount":{"type":"string","example":3},"notice_time_unit":{"type":"string","example":"Months"},"termination_time_amount":{"type":"string","example":1},"termination_time_unit":{"type":"string","example":"Months"},"renewal_duration_amount":{"type":"string","example":1},"renewal_duration_unit":{"type":"string","example":"Years"},"active":{"type":"boolean"},"sales_tax":{"type":"string","example":"Standard (19%)"},"tax_behavior":{"type":"string","example":"Exclusive (Price amount excludes Tax)"},"description":{"type":"string","example":"Winter Lease"},"billing_scheme":{"type":"string","example":"Per Unit"},"tiers_mode":{"type":"string","example":"Standard"},"_schema":{"type":"string","example":"price"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T11:58:24.322Z"},"_updated_at":{"type":"string","example":"2021-11-26T11:50:15.574Z"},"_title":{"type":"string","example":"Winter Lease"},"unit_amount_decimal":{"type":"string","example":120.55456634},"unit_amount_currency":{"type":"string","example":"EUR"}}},"quantity":{"type":"integer","format":"int32","example":1},"currency":{"type":"string","example":"EUR"},"description":{"type":"string","example":"Winter Lease"},"unit_amount":{"type":"integer","format":"int32","example":12055},"amount_subtotal":{"type":"integer","format":"int32","example":12055},"amount_total":{"type":"integer","format":"int32","example":14346},"taxes":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"string","example":"Standard (19%)"},"amount":{"type":"integer","format":"int32","example":2291}}}}}}},"amount_subtotal":{"type":"number","example":100},"amount_total":{"type":"number","example":100},"total_details":{"type":"object","properties":{"type":{"amount_tax":"string","example":300},"breakdown":{"type":"object","properties":{"taxes":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"string","example":"Standard (19%)"},"amount":{"type":"integer","format":"int32","example":2291}}}}}}}},"org":{"properties":{"id":{"type":"string","example":123},"logo_url":{"type":"string","example":"https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png"},"logo_thumbnail_url":{"type":"string","example":"https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png"}}}}}}}}')}},t={};return function a(i){if(t[i])return t[i].exports;var p=t[i]={exports:{}};return e[i].call(p.exports,p,p.exports,a),p.exports}(914)})());
1
+ !function(e,t){for(var a in t)e[a]=t[a];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(exports,(()=>{"use strict";var e={914:function(e,t,a){var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=p(a(279));t.default=r.default},279:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"Customer Portal API","description":"Backend for epilot end customer portals","version":"1.0.0"},"tags":[{"name":"ECP","description":"ECP"},{"name":"ECP Admin","description":"ECP Admin"}],"security":[{"CustomerPortalAuth":[]},{"AsOrganization":[]},{"AsBrand":[]},{"AsCustomer":[]}],"paths":{"/v1/customer-portal/portal":{"post":{"operationId":"createPortal","summary":"creates a portal","description":"Creates a portal and db item","security":[{"EpilotAuth":[]}],"tags":["ECP Admin"],"requestBody":{"description":"Portal payload","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","example":12345},"domain":{"type":"string","example":"test@test.com"},"organization_id":{"type":"string","example":66},"design_id":{"type":"string","example":3134},"cognito_details":{"type":"object","properties":{"cognito_user_pool_client_id":{"type":"string","example":"6bsd0jkgoie74k2i8mrhc1vest"},"cognito_user_pool_arn":{"type":"string","example":"arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341"},"cognito_user_pool_id":{"type":"string","example":"eu-central-1_CUEQRNbUb"}}},"config":{"type":"string"},"contact_secondary_identifier":{"type":"string","example":"full_name"}}}}}},"responses":{"201":{"description":"Success - portal created with success.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"400":{"description":"Validation Errors","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"401":{"description":"Authentication Errors","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"500":{"description":"Other errors","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}}}},"/v1/customer-portal/public/user":{"post":{"operationId":"createUser","summary":"creates a user","description":"Creates a user in cognito pool and db item","security":[],"tags":["ECP Admin"],"requestBody":{"description":"Portal payload","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","example":"testemail921@yopmail.com"},"password":{"type":"string","example":"Pass1234!"},"orgId":{"type":"string","example":728},"userPoolId":{"type":"string","example":"eu-central-1_391JDA1HFO"},"clientId":{"type":"string","example":"aj123jfoavnashf2fj"},"brandId":{"type":"string","example":123456},"secondaryIdentifier":{"type":"string","example":123456}}}}}},"responses":{"201":{"description":"Success - user created with success.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"400":{"description":"Validation Errors","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"401":{"description":"Authentication Errors","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"500":{"description":"Other errors","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}}}},"/v1/customer-portal/public/activate":{"post":{"operationId":"activateUser","summary":"activateUser","description":"Activates the user","security":[],"tags":["ECP Admin"],"parameters":[{"in":"query","name":"token","schema":{"type":"string"},"required":true,"description":"Invite Token"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"display_name":{"type":"string","description":"User\'s display name (default: email address)","example":"Example User"},"password":{"type":"string","description":"User\'s password","example":"AKjhdakjsdh@!34"}}}}}},"responses":{"200":{"description":"Activated successfully"},"404":{"description":"Token not found for the user"}}}},"/v1/customer-portal/auth":{"get":{"operationId":"testAuth","summary":"testAuth","description":"TODO","tags":["ECP"],"responses":{"200":{"description":"ok"}}}},"/v1/customer-portal/public/config":{"get":{"operationId":"getPortalConfigByDomain","summary":"getPortalConfigByDomain","description":"TODO","tags":["ECP"],"security":[],"parameters":[{"in":"query","name":"domain","required":true,"schema":{"type":"string","example":"example.com"}}],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","example":12454},"organization_id":{"type":"string","example":66},"design_id":{"type":"string","example":3134},"cognito_details":{"type":"object","properties":{"cognito_user_pool_client_id":{"type":"string","example":"6bsd0jkgoie74k2i8mrhc1vest"},"cognito_user_pool_arn":{"type":"string","example":"arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341"},"cognito_user_pool_id":{"type":"string","example":"eu-central-1_CUEQRNbUb"}}},"config":{"type":"string"},"secondary_identifier":{"type":"string","example":1234},"network":{"type":"object"}}}}}}}}},"/v1/customer-portal/config":{"get":{"operationId":"getPortalConfig","summary":"getPortalConfig","description":"TODO","tags":["ECP Admin"],"security":[{"EpilotAuth":[]}],"parameters":[{"in":"query","name":"brand_id","required":true,"schema":{"type":"string","example":12324}},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":2342}}],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","example":12454},"organization_id":{"type":"string","example":66},"design_id":{"type":"string","example":3134},"cognito_details":{"type":"object","properties":{"cognito_user_pool_client_id":{"type":"string","example":"6bsd0jkgoie74k2i8mrhc1vest"},"cognito_user_pool_arn":{"type":"string","example":"arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341"},"cognito_user_pool_id":{"type":"string","example":"eu-central-1_CUEQRNbUb"}}},"config":{"type":"string"},"secondary_identifier":{"type":"string","example":1234},"network":{"type":"object"}}}}}}}}},"/v1/customer-portal/contact/{id}":{"get":{"operationId":"getContact","summary":"getContact","description":"Get the Contact by id","tags":["ECP"],"security":[{"CustomerPortalAuth":[]}],"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The Id of contact"},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"responses":{"200":{"description":"The returned contact","content":{"application/json":{"schema":{"type":"object","properties":{"customer_number":{"type":"string","example":12454},"first_name":{"type":"string","example":"Mohammad Jamal"},"last_name":{"type":"string","example":"Dashtaki"},"address":{"type":"array","items":{"type":"object","properties":{"_ivy_address_id":{"type":"string","example":21082},"_tags":{"type":"array","items":{"type":"string","example":"primary"}},"country":{"type":"string","example":"DE"},"city":{"type":"string","example":"Koln"},"postal_code":{"type":"string","example":null},"street":{"type":"string","example":"Im media park"},"street_number":{"type":"string","example":null},"additional_info":{"type":"string","example":null}}}},"_schema":{"type":"string","example":"contact"},"_id":{"type":"string","example":"4f7db3f7-2efd-42e4-a77f-9c6819d19d12"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-12-06T14:10:25.114Z"},"_title":{"type":"string","example":"Mohammad Jamal Dashtaki"},"_ivy_customer_id":{"type":"number","example":21080},"language":{"type":"string","example":"en"},"birthdate":{"type":"string","example":"2000-12-08T18:30:00.000Z"},"_updated_at":{"type":"string","example":"2021-12-14T16:14:53.367Z"},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"string","example":"primary"}}}}},"phone":{"type":"array","items":{"type":"object","properties":{"phone":{"type":"string","example":"+1 123"},"_tags":{"type":"array","items":{"type":"string","example":"primary"}}}}}}}}}},"500":{"description":"Other errors","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}}},"patch":{"operationId":"updateContact","summary":"updateContact","description":"Update the contact details","tags":["ECP"],"security":[{"CustomerPortalAuth":[]}],"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The Id of contact"},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"customer_number":{"type":"string","example":12454},"first_name":{"type":"string","example":"Mohammad Jamal"},"last_name":{"type":"string","example":"Dashtaki"},"address":{"type":"array","items":{"type":"object","properties":{"_ivy_address_id":{"type":"string","example":21082},"_tags":{"type":"array","items":{"type":"string","example":"primary"}},"country":{"type":"string","example":"DE"},"city":{"type":"string","example":"Koln"},"postal_code":{"type":"string","example":null},"street":{"type":"string","example":"Im media park"},"street_number":{"type":"string","example":null},"additional_info":{"type":"string","example":null}}}},"_schema":{"type":"string","example":"contact"},"_id":{"type":"string","example":"4f7db3f7-2efd-42e4-a77f-9c6819d19d12"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-12-06T14:10:25.114Z"},"_title":{"type":"string","example":"Mohammad Jamal Dashtaki"},"_ivy_customer_id":{"type":"number","example":21080},"language":{"type":"string","example":"en"},"birthdate":{"type":"string","example":"2000-12-08T18:30:00.000Z"},"_updated_at":{"type":"string","example":"2021-12-14T16:14:53.367Z"},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"string","example":"primary"}}}}},"phone":{"type":"array","items":{"type":"object","properties":{"phone":{"type":"string","example":"+1 123"},"_tags":{"type":"array","items":{"type":"string","example":"primary"}}}}}}}}}},"responses":{"200":{"description":"The returned contact","content":{"application/json":{"schema":{"type":"object","properties":{"customer_number":{"type":"string","example":12454},"first_name":{"type":"string","example":"Mohammad Jamal"},"last_name":{"type":"string","example":"Dashtaki"},"address":{"type":"array","items":{"type":"object","properties":{"_ivy_address_id":{"type":"string","example":21082},"_tags":{"type":"array","items":{"type":"string","example":"primary"}},"country":{"type":"string","example":"DE"},"city":{"type":"string","example":"Koln"},"postal_code":{"type":"string","example":null},"street":{"type":"string","example":"Im media park"},"street_number":{"type":"string","example":null},"additional_info":{"type":"string","example":null}}}},"_schema":{"type":"string","example":"contact"},"_id":{"type":"string","example":"4f7db3f7-2efd-42e4-a77f-9c6819d19d12"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-12-06T14:10:25.114Z"},"_title":{"type":"string","example":"Mohammad Jamal Dashtaki"},"_ivy_customer_id":{"type":"number","example":21080},"language":{"type":"string","example":"en"},"birthdate":{"type":"string","example":"2000-12-08T18:30:00.000Z"},"_updated_at":{"type":"string","example":"2021-12-14T16:14:53.367Z"},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"string","example":"primary"}}}}},"phone":{"type":"array","items":{"type":"object","properties":{"phone":{"type":"string","example":"+1 123"},"_tags":{"type":"array","items":{"type":"string","example":"primary"}}}}}}}}}}}}},"/v1/customer-portal/contact/email/count":{"get":{"operationId":"getCountByEmail","summary":"getCountByEmail","description":"Check Contact by email","tags":["ECP"],"security":[],"parameters":[{"in":"query","name":"email","required":true,"schema":{"type":"string","example":"test@test.com"}},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"responses":{"200":{"description":"The returned count of contact","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number","example":2}}}}}}}}},"/v1/customer-portal/contact/valid/secondary/attributes":{"get":{"operationId":"getValidSecondaryAttributes","summary":"getValidSecondaryAttributes","description":"Get Valid Secondary Attributes","tags":["ECP"],"security":[{"EpilotAuth":[]}],"responses":{"200":{"description":"The returned count of contact","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"first_name"},"type":{"type":"string","example":"string"}}}}}}}}}}}},"/v1/customer-portal/user/{id}":{"get":{"operationId":"getPortalUser","summary":"getPortalUser","description":"TODO","tags":["ECP"],"security":[{"CustomerPortalAuth":[]}],"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The Id of portal user id"},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"responses":{"200":{"description":"The returned portal user","content":{"application/json":{"schema":{"type":"object","properties":{"_id":{"type":"string","example":"cfb2621a-062d-44cf-b019-e047ded4e7cf"},"mapping_status":{"type":"string","example":"Mapped"},"registration_status":{"type":"string","example":"Registered"},"brand_id":{"type":"string","example":739225},"password":{"type":"string","format":"nullable"},"_schema":{"type":"string","example":"portal_user"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-12-06T14:04:54.409Z"},"_title":{"type":"string","example":"m.dashtaki@epilot.cloud"},"_updated_at":{"type":"string","example":"2021-12-06T14:10:34.027Z"},"mapped_contact":{"type":"object","properties":{"$relation":{"type":"array","items":{"type":"object","properties":{"_tags":{"type":"array","items":{"type":"string","example":"primary"}},"entity_id":{"type":"string","example":"4f7db3f7-2efd-42e4-a77f-9c6819d19d12"}}}}}},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"string","example":"primary"}}}}}}}}}}}},"patch":{"operationId":"updatePortalUser","summary":"updatePortalUser","description":"Update the portal user details","tags":["ECP"],"security":[{"CustomerPortalAuth":[]}],"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The Id of portal user"},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"_id":{"type":"string","example":"cfb2621a-062d-44cf-b019-e047ded4e7cf"},"mapping_status":{"type":"string","example":"Mapped"},"registration_status":{"type":"string","example":"Registered"},"brand_id":{"type":"string","example":739225},"password":{"type":"string","format":"nullable"},"_schema":{"type":"string","example":"portal_user"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-12-06T14:04:54.409Z"},"_title":{"type":"string","example":"m.dashtaki@epilot.cloud"},"_updated_at":{"type":"string","example":"2021-12-06T14:10:34.027Z"},"mapped_contact":{"type":"object","properties":{"$relation":{"type":"array","items":{"type":"object","properties":{"_tags":{"type":"array","items":{"type":"string","example":"primary"}},"entity_id":{"type":"string","example":"4f7db3f7-2efd-42e4-a77f-9c6819d19d12"}}}}}},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"string","example":"primary"}}}}}}}}}},"responses":{"200":{"description":"The returned portal user","content":{"application/json":{"schema":{"type":"object","properties":{"_id":{"type":"string","example":"cfb2621a-062d-44cf-b019-e047ded4e7cf"},"mapping_status":{"type":"string","example":"Mapped"},"registration_status":{"type":"string","example":"Registered"},"brand_id":{"type":"string","example":739225},"password":{"type":"string","format":"nullable"},"_schema":{"type":"string","example":"portal_user"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-12-06T14:04:54.409Z"},"_title":{"type":"string","example":"m.dashtaki@epilot.cloud"},"_updated_at":{"type":"string","example":"2021-12-06T14:10:34.027Z"},"mapped_contact":{"type":"object","properties":{"$relation":{"type":"array","items":{"type":"object","properties":{"_tags":{"type":"array","items":{"type":"string","example":"primary"}},"entity_id":{"type":"string","example":"4f7db3f7-2efd-42e4-a77f-9c6819d19d12"}}}}}},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"string","example":"primary"}}}}}}}}}}}},"delete":{"operationId":"deletePortalUser","summary":"deletePortalUser","description":"TODO","tags":["ECP"],"security":[{"CustomerPortalAuth":[]}],"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The Id of portal user id"},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"responses":{"200":{"description":"The returned portal user id","content":{"application/json":{"schema":{"type":"string","example":123}}}}}}},"/v1/customer-portal/user/confirm/{id}":{"get":{"operationId":"confirmUser","summary":"confirmUser","description":"TODO","tags":["ECP"],"security":[],"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The Id of portal user id"},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"responses":{"200":{"description":"The returned portal user","content":{"application/json":{"schema":{"type":"object","properties":{"_id":{"type":"string","example":"cfb2621a-062d-44cf-b019-e047ded4e7cf"},"mapping_status":{"type":"string","example":"Mapped"},"registration_status":{"type":"string","example":"Registered"},"brand_id":{"type":"string","example":739225},"password":{"type":"string","format":"nullable"},"_schema":{"type":"string","example":"portal_user"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-12-06T14:04:54.409Z"},"_title":{"type":"string","example":"m.dashtaki@epilot.cloud"},"_updated_at":{"type":"string","example":"2021-12-06T14:10:34.027Z"},"mapped_contact":{"type":"object","properties":{"$relation":{"type":"array","items":{"type":"object","properties":{"_tags":{"type":"array","items":{"type":"string","example":"primary"}},"entity_id":{"type":"string","example":"4f7db3f7-2efd-42e4-a77f-9c6819d19d12"}}}}}},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"string","example":"primary"}}}}}}}}}}}}},"/v1/customer-portal/public/user/exists":{"get":{"operationId":"userExists","summary":"userExists","description":"Checks whether a user exists in the customer portal","tags":["ECP"],"security":[],"parameters":[{"in":"query","name":"email","required":true,"schema":{"type":"string","example":"user@example.com"}},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"responses":{"200":{"description":"User exists in the portal","content":{"application/json":{"schema":{"type":"object","properties":{"exists":{"type":"boolean","example":true},"user":{"type":"object","properties":{"_id":{"type":"string","example":"cfb2621a-062d-44cf-b019-e047ded4e7cf"},"mapping_status":{"type":"string","example":"Mapped"},"registration_status":{"type":"string","example":"Registered"},"brand_id":{"type":"string","example":739225},"password":{"type":"string","format":"nullable"},"_schema":{"type":"string","example":"portal_user"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-12-06T14:04:54.409Z"},"_title":{"type":"string","example":"m.dashtaki@epilot.cloud"},"_updated_at":{"type":"string","example":"2021-12-06T14:10:34.027Z"},"mapped_contact":{"type":"object","properties":{"$relation":{"type":"array","items":{"type":"object","properties":{"_tags":{"type":"array","items":{"type":"string","example":"primary"}},"entity_id":{"type":"string","example":"4f7db3f7-2efd-42e4-a77f-9c6819d19d12"}}}}}},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"string","example":"primary"}}}}}}}}}}}},"404":{"description":"User does not exist in the portal","content":{"application/json":{"schema":{"type":"object","properties":{"exists":{"type":"boolean","example":false}}}}}}}}},"/v1/customer-portal/configure-distribution":{"get":{"operationId":"configureDistribution","summary":"configureDistribution","description":"TODO","tags":["ECP"],"security":[],"parameters":[{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}},{"in":"query","name":"brand_id","required":true,"schema":{"type":"string","example":123}}],"responses":{"200":{"description":"The returned configured distribution id","content":{"application/json":{"schema":{"type":"object","properties":{"domainName":{"type":"string","example":"dsj8op4ha01jha23.cloudfront.net"}}}}}}}}},"/v1/customer-portal/order":{"get":{"operationId":"getAllOrders","summary":"getAllOrders","description":"TODO","tags":["ECP"],"security":[{"CustomerPortalAuth":[]}],"parameters":[{"in":"query","name":"user_id","required":true,"schema":{"type":"string","example":123}},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"responses":{"200":{"description":"The returned orders","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":123},"metadata":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"_origin"},"value":{"type":"string","example":"journey checkout"}}}},"_tags":{"type":"array","items":{"type":"string","example":"primary"}},"order_number":{"type":"string","example":123234},"status":{"type":"string","example":"Draft"},"billing_first_name":{"type":"string","example":"John"},"billing_last_name":{"type":"string","example":"Doe"},"billing_email":{"type":"string","example":"john@doe.com"},"billing_phone":{"type":"string","example":12344556},"billing_company_name":{"type":"string","example":"ABC Company"},"billing_vat":{"type":"string","example":123456},"billing_address":{"type":"array","items":{"type":"object","properties":{"street":{"type":"string","example":"Street 1"},"street_number":{"type":"string","example":11},"city":{"type":"string","example":"Cologne"},"postal_code":{"type":"string","example":10201},"country":{"type":"string","example":"de"}}}},"delivery_address":{"type":"array","items":{"type":"object","properties":{"street":{"type":"string","example":"Street 1"},"street_number":{"type":"string","example":11},"city":{"type":"string","example":"Cologne"},"postal_code":{"type":"string","example":10201},"country":{"type":"string","example":"de"}}}},"payment_method":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"BankTransfer"}}}},"currency":{"type":"string","example":"EUR"},"line_items":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string","example":"4f92b831-6465-4929-9dd3-3d64b5a33514"},"price_id":{"type":"string","example":"4db12bb3-1773-409e-9f97-a2d8f5482142"},"_product":{"type":"object","properties":{"type":{"type":"string","example":"Product"},"name":{"type":"string","example":"JUICE CHARGER Wallbox"},"active":{"type":"boolean"},"code":{"type":"string","example":"EL-JCME11"},"categories":{"type":"array","items":{"type":"string","example":"House Connection"}},"feature":{"type":"array","items":{"type":"object","properties":{"_tags":{"type":"array","items":{"type":"string","example":"primary"}},"feature":{"type":"string","example":"Test new feature"}}}},"_schema":{"type":"string","example":"product"},"_id":{"type":"string","example":"4f92b831-6465-4929-9dd3-3d64b5a33514"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T09:48:16.834Z"},"_updated_at":{"type":"string","example":"2021-12-08T10:37:21.833Z"},"_title":{"type":"string","example":"JUICE CHARGER Wallbox"},"price_options":{"type":"object","properties":{"$relation":{"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string","example":"48e1792e-79a5-49be-92dc-e50c7ddbf96c"}}}}}},"_images":{"type":"object","properties":{"type":{"type":"string","example":"image"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga2n1000009mifvbs1z0m/original"},"mime":{"type":"string","example":"image/jpeg"},"name":{"type":"string","example":"juice-charger-me_set.jpeg"},"size":{"type":"integer","format":"int32","example":25618},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original"},"alt_text":{"type":"string","example":null}}}}}},"_files":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}},"_tags":{"type":"array","items":{"type":"string","example":"primary"}}}},"_price":{"type":"object","properties":{"_id":{"type":"string","example":"4db12bb3-1773-409e-9f97-a2d8f5482142"},"unit_amount":{"type":"integer","format":"int32","example":12055},"type":{"type":"string","example":"Recurring"},"billing_period":{"type":"string","example":"Monthly"},"billing_duration_amount":{"type":"string","example":1},"billing_duration_unit":{"type":"string","example":"Years"},"notice_time_amount":{"type":"string","example":3},"notice_time_unit":{"type":"string","example":"Months"},"termination_time_amount":{"type":"string","example":1},"termination_time_unit":{"type":"string","example":"Months"},"renewal_duration_amount":{"type":"string","example":1},"renewal_duration_unit":{"type":"string","example":"Years"},"active":{"type":"boolean"},"sales_tax":{"type":"string","example":"Standard (19%)"},"tax_behavior":{"type":"string","example":"Exclusive (Price amount excludes Tax)"},"description":{"type":"string","example":"Winter Lease"},"billing_scheme":{"type":"string","example":"Per Unit"},"tiers_mode":{"type":"string","example":"Standard"},"_schema":{"type":"string","example":"price"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T11:58:24.322Z"},"_updated_at":{"type":"string","example":"2021-11-26T11:50:15.574Z"},"_title":{"type":"string","example":"Winter Lease"},"unit_amount_decimal":{"type":"string","example":120.55456634},"unit_amount_currency":{"type":"string","example":"EUR"}}},"quantity":{"type":"integer","format":"int32","example":1},"currency":{"type":"string","example":"EUR"},"description":{"type":"string","example":"Winter Lease"},"unit_amount":{"type":"integer","format":"int32","example":12055},"amount_subtotal":{"type":"integer","format":"int32","example":12055},"amount_total":{"type":"integer","format":"int32","example":14346},"taxes":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"string","example":"Standard (19%)"},"amount":{"type":"number","example":2291}}}}}}},"amount_subtotal":{"type":"number","example":100},"amount_total":{"type":"number","example":100},"total_details":{"type":"object","properties":{"amount_tax":{"type":"number","example":300},"breakdown":{"type":"object","properties":{"taxes":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"string","example":"Standard (19%)"},"amount":{"type":"number","example":2291}}}}}}}},"org":{"properties":{"id":{"type":"string","example":123},"logo_url":{"type":"string","example":"https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png"},"logo_thumbnail_url":{"type":"string","example":"https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png"}}}}}}}}}}}}}},"/v1/customer-portal/order/{id}":{"get":{"operationId":"getOrder","summary":"getOrder","description":"TODO","tags":["ECP"],"security":[{"CustomerPortalAuth":[]}],"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The Id of order"},{"in":"query","name":"org_id","required":true,"schema":{"type":"string","example":123}}],"responses":{"200":{"description":"The returned order","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","example":123},"metadata":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"_origin"},"value":{"type":"string","example":"journey checkout"}}}},"_tags":{"type":"array","items":{"type":"string","example":"primary"}},"order_number":{"type":"string","example":123234},"status":{"type":"string","example":"Draft"},"billing_first_name":{"type":"string","example":"John"},"billing_last_name":{"type":"string","example":"Doe"},"billing_email":{"type":"string","example":"john@doe.com"},"billing_phone":{"type":"string","example":12344556},"billing_company_name":{"type":"string","example":"ABC Company"},"billing_vat":{"type":"string","example":123456},"billing_address":{"type":"array","items":{"type":"object","properties":{"street":{"type":"string","example":"Street 1"},"street_number":{"type":"string","example":11},"city":{"type":"string","example":"Cologne"},"postal_code":{"type":"string","example":10201},"country":{"type":"string","example":"de"}}}},"delivery_address":{"type":"array","items":{"type":"object","properties":{"street":{"type":"string","example":"Street 1"},"street_number":{"type":"string","example":11},"city":{"type":"string","example":"Cologne"},"postal_code":{"type":"string","example":10201},"country":{"type":"string","example":"de"}}}},"payment_method":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"BankTransfer"}}}},"currency":{"type":"string","example":"EUR"},"line_items":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string","example":"4f92b831-6465-4929-9dd3-3d64b5a33514"},"price_id":{"type":"string","example":"4db12bb3-1773-409e-9f97-a2d8f5482142"},"_product":{"type":"object","properties":{"type":{"type":"string","example":"Product"},"name":{"type":"string","example":"JUICE CHARGER Wallbox"},"active":{"type":"boolean"},"code":{"type":"string","example":"EL-JCME11"},"categories":{"type":"array","items":{"type":"string","example":"House Connection"}},"feature":{"type":"array","items":{"type":"object","properties":{"_tags":{"type":"array","items":{"type":"string","example":"primary"}},"feature":{"type":"string","example":"Test new feature"}}}},"_schema":{"type":"string","example":"product"},"_id":{"type":"string","example":"4f92b831-6465-4929-9dd3-3d64b5a33514"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T09:48:16.834Z"},"_updated_at":{"type":"string","example":"2021-12-08T10:37:21.833Z"},"_title":{"type":"string","example":"JUICE CHARGER Wallbox"},"price_options":{"type":"object","properties":{"$relation":{"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string","example":"48e1792e-79a5-49be-92dc-e50c7ddbf96c"}}}}}},"_images":{"type":"object","properties":{"type":{"type":"string","example":"image"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga2n1000009mifvbs1z0m/original"},"mime":{"type":"string","example":"image/jpeg"},"name":{"type":"string","example":"juice-charger-me_set.jpeg"},"size":{"type":"integer","format":"int32","example":25618},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original"},"alt_text":{"type":"string","example":null}}}}}},"_files":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}},"_tags":{"type":"array","items":{"type":"string","example":"primary"}}}},"_price":{"type":"object","properties":{"_id":{"type":"string","example":"4db12bb3-1773-409e-9f97-a2d8f5482142"},"unit_amount":{"type":"integer","format":"int32","example":12055},"type":{"type":"string","example":"Recurring"},"billing_period":{"type":"string","example":"Monthly"},"billing_duration_amount":{"type":"string","example":1},"billing_duration_unit":{"type":"string","example":"Years"},"notice_time_amount":{"type":"string","example":3},"notice_time_unit":{"type":"string","example":"Months"},"termination_time_amount":{"type":"string","example":1},"termination_time_unit":{"type":"string","example":"Months"},"renewal_duration_amount":{"type":"string","example":1},"renewal_duration_unit":{"type":"string","example":"Years"},"active":{"type":"boolean"},"sales_tax":{"type":"string","example":"Standard (19%)"},"tax_behavior":{"type":"string","example":"Exclusive (Price amount excludes Tax)"},"description":{"type":"string","example":"Winter Lease"},"billing_scheme":{"type":"string","example":"Per Unit"},"tiers_mode":{"type":"string","example":"Standard"},"_schema":{"type":"string","example":"price"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T11:58:24.322Z"},"_updated_at":{"type":"string","example":"2021-11-26T11:50:15.574Z"},"_title":{"type":"string","example":"Winter Lease"},"unit_amount_decimal":{"type":"string","example":120.55456634},"unit_amount_currency":{"type":"string","example":"EUR"}}},"quantity":{"type":"integer","format":"int32","example":1},"currency":{"type":"string","example":"EUR"},"description":{"type":"string","example":"Winter Lease"},"unit_amount":{"type":"integer","format":"int32","example":12055},"amount_subtotal":{"type":"integer","format":"int32","example":12055},"amount_total":{"type":"integer","format":"int32","example":14346},"taxes":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"string","example":"Standard (19%)"},"amount":{"type":"number","example":2291}}}}}}},"amount_subtotal":{"type":"number","example":100},"amount_total":{"type":"number","example":100},"total_details":{"type":"object","properties":{"amount_tax":{"type":"number","example":300},"breakdown":{"type":"object","properties":{"taxes":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"string","example":"Standard (19%)"},"amount":{"type":"number","example":2291}}}}}}}},"org":{"properties":{"id":{"type":"string","example":123},"logo_url":{"type":"string","example":"https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png"},"logo_thumbnail_url":{"type":"string","example":"https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png"}}}}}}}}}}}}}},"components":{"securitySchemes":{"CustomerPortalAuth":{"type":"http","scheme":"bearer","description":"Customer Portal Cognito Token"},"EpilotAuth":{"type":"http","scheme":"bearer","description":"Epilot Bearer Token"},"AsOrganization":{"type":"apiKey","in":"header","name":"x-ivy-org-id","description":"Set organization id as internal user"},"AsBrand":{"type":"apiKey","in":"header","name":"x-ivy-brand-id","description":"Set brand id as internal user"},"AsContact":{"type":"apiKey","in":"header","name":"x-contact-id","description":"Set contact id as internal user"},"AsCustomer":{"type":"apiKey","in":"header","name":"x-portal-id","description":"Set portal id as customer"}},"schemas":{"InviteToken":{"type":"string"},"ContactId":{"type":"string"},"PortalUserId":{"type":"string"},"OrderId":{"type":"string"},"UserActivationPayload":{"type":"object","properties":{"display_name":{"type":"string","description":"User\'s display name (default: email address)","example":"Example User"},"password":{"type":"string","description":"User\'s password","example":"AKjhdakjsdh@!34"}}},"PortalConfig":{"type":"object","properties":{"auth_config":{"type":"object","properties":{"user_pool_id":{"type":"string","example":"eu-central-1_CUEQRNbUb"},"user_pool_client_id":{"type":"string","example":"6bsd0jkgoie74k2i8mrhc1vest"},"user_pool_identity_pool_id":{"type":"string","example":"eu-central-1:a63af1f7-ab86-4ab5-a0eb-f461cb37c2b1"},"portal_id":{"type":"string","example":"7h2hwdj7hhjsdcjkq03eidna3ep"}},"required":["user_pool_id","user_pool_client_id","portal_id"]}}},"ErrorResp":{"type":"object","properties":{"message":{"type":"string"}}},"AddPortalResp":{"type":"object","properties":{"message":{"type":"string"}}},"BrandCreate":{"type":"object","properties":{"id":{"type":"string","example":12345},"domain":{"type":"string","example":"test@test.com"},"organization_id":{"type":"string","example":66},"design_id":{"type":"string","example":3134},"cognito_details":{"type":"object","properties":{"cognito_user_pool_client_id":{"type":"string","example":"6bsd0jkgoie74k2i8mrhc1vest"},"cognito_user_pool_arn":{"type":"string","example":"arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341"},"cognito_user_pool_id":{"type":"string","example":"eu-central-1_CUEQRNbUb"}}},"config":{"type":"string"},"contact_secondary_identifier":{"type":"string","example":"full_name"}}},"Brand":{"type":"object","properties":{"id":{"type":"string","example":12454},"organization_id":{"type":"string","example":66},"design_id":{"type":"string","example":3134},"cognito_details":{"type":"object","properties":{"cognito_user_pool_client_id":{"type":"string","example":"6bsd0jkgoie74k2i8mrhc1vest"},"cognito_user_pool_arn":{"type":"string","example":"arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341"},"cognito_user_pool_id":{"type":"string","example":"eu-central-1_CUEQRNbUb"}}},"config":{"type":"string"},"secondary_identifier":{"type":"string","example":1234},"network":{"type":"object"}}},"AuthConfig":{"type":"object","properties":{"user_pool_id":{"type":"string","example":"eu-central-1_CUEQRNbUb"},"user_pool_client_id":{"type":"string","example":"6bsd0jkgoie74k2i8mrhc1vest"},"user_pool_identity_pool_id":{"type":"string","example":"eu-central-1:a63af1f7-ab86-4ab5-a0eb-f461cb37c2b1"},"portal_id":{"type":"string","example":"7h2hwdj7hhjsdcjkq03eidna3ep"}},"required":["user_pool_id","user_pool_client_id","portal_id"]},"Exists":{"type":"object","required":["exists"],"properties":{"exists":{"type":"boolean"},"active":{"type":"boolean"}},"example":{"exists":true,"active":false}},"Tag":{"type":"string","example":"primary"},"Contact":{"type":"object","properties":{"customer_number":{"type":"string","example":12454},"first_name":{"type":"string","example":"Mohammad Jamal"},"last_name":{"type":"string","example":"Dashtaki"},"address":{"type":"array","items":{"type":"object","properties":{"_ivy_address_id":{"type":"string","example":21082},"_tags":{"type":"array","items":{"type":"string","example":"primary"}},"country":{"type":"string","example":"DE"},"city":{"type":"string","example":"Koln"},"postal_code":{"type":"string","example":null},"street":{"type":"string","example":"Im media park"},"street_number":{"type":"string","example":null},"additional_info":{"type":"string","example":null}}}},"_schema":{"type":"string","example":"contact"},"_id":{"type":"string","example":"4f7db3f7-2efd-42e4-a77f-9c6819d19d12"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-12-06T14:10:25.114Z"},"_title":{"type":"string","example":"Mohammad Jamal Dashtaki"},"_ivy_customer_id":{"type":"number","example":21080},"language":{"type":"string","example":"en"},"birthdate":{"type":"string","example":"2000-12-08T18:30:00.000Z"},"_updated_at":{"type":"string","example":"2021-12-14T16:14:53.367Z"},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"string","example":"primary"}}}}},"phone":{"type":"array","items":{"type":"object","properties":{"phone":{"type":"string","example":"+1 123"},"_tags":{"type":"array","items":{"type":"string","example":"primary"}}}}}}},"PortalUser":{"type":"object","properties":{"_id":{"type":"string","example":"cfb2621a-062d-44cf-b019-e047ded4e7cf"},"mapping_status":{"type":"string","example":"Mapped"},"registration_status":{"type":"string","example":"Registered"},"brand_id":{"type":"string","example":739225},"password":{"type":"string","format":"nullable"},"_schema":{"type":"string","example":"portal_user"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-12-06T14:04:54.409Z"},"_title":{"type":"string","example":"m.dashtaki@epilot.cloud"},"_updated_at":{"type":"string","example":"2021-12-06T14:10:34.027Z"},"mapped_contact":{"type":"object","properties":{"$relation":{"type":"array","items":{"type":"object","properties":{"_tags":{"type":"array","items":{"type":"string","example":"primary"}},"entity_id":{"type":"string","example":"4f7db3f7-2efd-42e4-a77f-9c6819d19d12"}}}}}},"email":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","example":"xyz@asd.com"},"_tags":{"type":"array","items":{"type":"string","example":"primary"}}}}}}},"Tax":{"type":"object","properties":{"rate":{"type":"string","example":"Standard (19%)"},"amount":{"type":"number","example":2291}}},"Image":{"type":"object","properties":{"type":{"type":"string","example":"image"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga2n1000009mifvbs1z0m/original"},"mime":{"type":"string","example":"image/jpeg"},"name":{"type":"string","example":"juice-charger-me_set.jpeg"},"size":{"type":"integer","format":"int32","example":25618},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original"},"alt_text":{"type":"string","example":null}}}}}},"File":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}},"Product":{"type":"object","properties":{"type":{"type":"string","example":"Product"},"name":{"type":"string","example":"JUICE CHARGER Wallbox"},"active":{"type":"boolean"},"code":{"type":"string","example":"EL-JCME11"},"categories":{"type":"array","items":{"type":"string","example":"House Connection"}},"feature":{"type":"array","items":{"type":"object","properties":{"_tags":{"type":"array","items":{"type":"string","example":"primary"}},"feature":{"type":"string","example":"Test new feature"}}}},"_schema":{"type":"string","example":"product"},"_id":{"type":"string","example":"4f92b831-6465-4929-9dd3-3d64b5a33514"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T09:48:16.834Z"},"_updated_at":{"type":"string","example":"2021-12-08T10:37:21.833Z"},"_title":{"type":"string","example":"JUICE CHARGER Wallbox"},"price_options":{"type":"object","properties":{"$relation":{"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string","example":"48e1792e-79a5-49be-92dc-e50c7ddbf96c"}}}}}},"_images":{"type":"object","properties":{"type":{"type":"string","example":"image"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga2n1000009mifvbs1z0m/original"},"mime":{"type":"string","example":"image/jpeg"},"name":{"type":"string","example":"juice-charger-me_set.jpeg"},"size":{"type":"integer","format":"int32","example":25618},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original"},"alt_text":{"type":"string","example":null}}}}}},"_files":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}},"_tags":{"type":"array","items":{"type":"string","example":"primary"}}}},"Price":{"type":"object","properties":{"_id":{"type":"string","example":"4db12bb3-1773-409e-9f97-a2d8f5482142"},"unit_amount":{"type":"integer","format":"int32","example":12055},"type":{"type":"string","example":"Recurring"},"billing_period":{"type":"string","example":"Monthly"},"billing_duration_amount":{"type":"string","example":1},"billing_duration_unit":{"type":"string","example":"Years"},"notice_time_amount":{"type":"string","example":3},"notice_time_unit":{"type":"string","example":"Months"},"termination_time_amount":{"type":"string","example":1},"termination_time_unit":{"type":"string","example":"Months"},"renewal_duration_amount":{"type":"string","example":1},"renewal_duration_unit":{"type":"string","example":"Years"},"active":{"type":"boolean"},"sales_tax":{"type":"string","example":"Standard (19%)"},"tax_behavior":{"type":"string","example":"Exclusive (Price amount excludes Tax)"},"description":{"type":"string","example":"Winter Lease"},"billing_scheme":{"type":"string","example":"Per Unit"},"tiers_mode":{"type":"string","example":"Standard"},"_schema":{"type":"string","example":"price"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T11:58:24.322Z"},"_updated_at":{"type":"string","example":"2021-11-26T11:50:15.574Z"},"_title":{"type":"string","example":"Winter Lease"},"unit_amount_decimal":{"type":"string","example":120.55456634},"unit_amount_currency":{"type":"string","example":"EUR"}}},"OrderLineItem":{"type":"object","properties":{"product_id":{"type":"string","example":"4f92b831-6465-4929-9dd3-3d64b5a33514"},"price_id":{"type":"string","example":"4db12bb3-1773-409e-9f97-a2d8f5482142"},"_product":{"type":"object","properties":{"type":{"type":"string","example":"Product"},"name":{"type":"string","example":"JUICE CHARGER Wallbox"},"active":{"type":"boolean"},"code":{"type":"string","example":"EL-JCME11"},"categories":{"type":"array","items":{"type":"string","example":"House Connection"}},"feature":{"type":"array","items":{"type":"object","properties":{"_tags":{"type":"array","items":{"type":"string","example":"primary"}},"feature":{"type":"string","example":"Test new feature"}}}},"_schema":{"type":"string","example":"product"},"_id":{"type":"string","example":"4f92b831-6465-4929-9dd3-3d64b5a33514"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T09:48:16.834Z"},"_updated_at":{"type":"string","example":"2021-12-08T10:37:21.833Z"},"_title":{"type":"string","example":"JUICE CHARGER Wallbox"},"price_options":{"type":"object","properties":{"$relation":{"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string","example":"48e1792e-79a5-49be-92dc-e50c7ddbf96c"}}}}}},"_images":{"type":"object","properties":{"type":{"type":"string","example":"image"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga2n1000009mifvbs1z0m/original"},"mime":{"type":"string","example":"image/jpeg"},"name":{"type":"string","example":"juice-charger-me_set.jpeg"},"size":{"type":"integer","format":"int32","example":25618},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original"},"alt_text":{"type":"string","example":null}}}}}},"_files":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}},"_tags":{"type":"array","items":{"type":"string","example":"primary"}}}},"_price":{"type":"object","properties":{"_id":{"type":"string","example":"4db12bb3-1773-409e-9f97-a2d8f5482142"},"unit_amount":{"type":"integer","format":"int32","example":12055},"type":{"type":"string","example":"Recurring"},"billing_period":{"type":"string","example":"Monthly"},"billing_duration_amount":{"type":"string","example":1},"billing_duration_unit":{"type":"string","example":"Years"},"notice_time_amount":{"type":"string","example":3},"notice_time_unit":{"type":"string","example":"Months"},"termination_time_amount":{"type":"string","example":1},"termination_time_unit":{"type":"string","example":"Months"},"renewal_duration_amount":{"type":"string","example":1},"renewal_duration_unit":{"type":"string","example":"Years"},"active":{"type":"boolean"},"sales_tax":{"type":"string","example":"Standard (19%)"},"tax_behavior":{"type":"string","example":"Exclusive (Price amount excludes Tax)"},"description":{"type":"string","example":"Winter Lease"},"billing_scheme":{"type":"string","example":"Per Unit"},"tiers_mode":{"type":"string","example":"Standard"},"_schema":{"type":"string","example":"price"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T11:58:24.322Z"},"_updated_at":{"type":"string","example":"2021-11-26T11:50:15.574Z"},"_title":{"type":"string","example":"Winter Lease"},"unit_amount_decimal":{"type":"string","example":120.55456634},"unit_amount_currency":{"type":"string","example":"EUR"}}},"quantity":{"type":"integer","format":"int32","example":1},"currency":{"type":"string","example":"EUR"},"description":{"type":"string","example":"Winter Lease"},"unit_amount":{"type":"integer","format":"int32","example":12055},"amount_subtotal":{"type":"integer","format":"int32","example":12055},"amount_total":{"type":"integer","format":"int32","example":14346},"taxes":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"string","example":"Standard (19%)"},"amount":{"type":"number","example":2291}}}}}},"Order":{"type":"object","properties":{"id":{"type":"string","example":123},"metadata":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"_origin"},"value":{"type":"string","example":"journey checkout"}}}},"_tags":{"type":"array","items":{"type":"string","example":"primary"}},"order_number":{"type":"string","example":123234},"status":{"type":"string","example":"Draft"},"billing_first_name":{"type":"string","example":"John"},"billing_last_name":{"type":"string","example":"Doe"},"billing_email":{"type":"string","example":"john@doe.com"},"billing_phone":{"type":"string","example":12344556},"billing_company_name":{"type":"string","example":"ABC Company"},"billing_vat":{"type":"string","example":123456},"billing_address":{"type":"array","items":{"type":"object","properties":{"street":{"type":"string","example":"Street 1"},"street_number":{"type":"string","example":11},"city":{"type":"string","example":"Cologne"},"postal_code":{"type":"string","example":10201},"country":{"type":"string","example":"de"}}}},"delivery_address":{"type":"array","items":{"type":"object","properties":{"street":{"type":"string","example":"Street 1"},"street_number":{"type":"string","example":11},"city":{"type":"string","example":"Cologne"},"postal_code":{"type":"string","example":10201},"country":{"type":"string","example":"de"}}}},"payment_method":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"BankTransfer"}}}},"currency":{"type":"string","example":"EUR"},"line_items":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string","example":"4f92b831-6465-4929-9dd3-3d64b5a33514"},"price_id":{"type":"string","example":"4db12bb3-1773-409e-9f97-a2d8f5482142"},"_product":{"type":"object","properties":{"type":{"type":"string","example":"Product"},"name":{"type":"string","example":"JUICE CHARGER Wallbox"},"active":{"type":"boolean"},"code":{"type":"string","example":"EL-JCME11"},"categories":{"type":"array","items":{"type":"string","example":"House Connection"}},"feature":{"type":"array","items":{"type":"object","properties":{"_tags":{"type":"array","items":{"type":"string","example":"primary"}},"feature":{"type":"string","example":"Test new feature"}}}},"_schema":{"type":"string","example":"product"},"_id":{"type":"string","example":"4f92b831-6465-4929-9dd3-3d64b5a33514"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T09:48:16.834Z"},"_updated_at":{"type":"string","example":"2021-12-08T10:37:21.833Z"},"_title":{"type":"string","example":"JUICE CHARGER Wallbox"},"price_options":{"type":"object","properties":{"$relation":{"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string","example":"48e1792e-79a5-49be-92dc-e50c7ddbf96c"}}}}}},"_images":{"type":"object","properties":{"type":{"type":"string","example":"image"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga2n1000009mifvbs1z0m/original"},"mime":{"type":"string","example":"image/jpeg"},"name":{"type":"string","example":"juice-charger-me_set.jpeg"},"size":{"type":"integer","format":"int32","example":25618},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga2n1000009mifvbs1z0m/original"},"alt_text":{"type":"string","example":null}}}}}},"_files":{"type":"object","properties":{"type":{"type":"string","example":"file"},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"files/ckvtga827000109mibnwu2got/original"},"mime":{"type":"string","example":"application/pdf"},"name":{"type":"string","example":"Wallbox_Pulsar-Plus_technisches-Datenblatt.pdf"},"size":{"type":"integer","format":"int32","example":171501},"image_url":{"type":"string","example":"https://avkhavsdjq.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original?w=100"},"download_url":{"type":"string","example":"https://e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/ckvtga827000109mibnwu2got/original"},"alt_text":{"type":"string","example":null}}}}}},"_tags":{"type":"array","items":{"type":"string","example":"primary"}}}},"_price":{"type":"object","properties":{"_id":{"type":"string","example":"4db12bb3-1773-409e-9f97-a2d8f5482142"},"unit_amount":{"type":"integer","format":"int32","example":12055},"type":{"type":"string","example":"Recurring"},"billing_period":{"type":"string","example":"Monthly"},"billing_duration_amount":{"type":"string","example":1},"billing_duration_unit":{"type":"string","example":"Years"},"notice_time_amount":{"type":"string","example":3},"notice_time_unit":{"type":"string","example":"Months"},"termination_time_amount":{"type":"string","example":1},"termination_time_unit":{"type":"string","example":"Months"},"renewal_duration_amount":{"type":"string","example":1},"renewal_duration_unit":{"type":"string","example":"Years"},"active":{"type":"boolean"},"sales_tax":{"type":"string","example":"Standard (19%)"},"tax_behavior":{"type":"string","example":"Exclusive (Price amount excludes Tax)"},"description":{"type":"string","example":"Winter Lease"},"billing_scheme":{"type":"string","example":"Per Unit"},"tiers_mode":{"type":"string","example":"Standard"},"_schema":{"type":"string","example":"price"},"_org":{"type":"string","example":739224},"_created_at":{"type":"string","example":"2021-11-10T11:58:24.322Z"},"_updated_at":{"type":"string","example":"2021-11-26T11:50:15.574Z"},"_title":{"type":"string","example":"Winter Lease"},"unit_amount_decimal":{"type":"string","example":120.55456634},"unit_amount_currency":{"type":"string","example":"EUR"}}},"quantity":{"type":"integer","format":"int32","example":1},"currency":{"type":"string","example":"EUR"},"description":{"type":"string","example":"Winter Lease"},"unit_amount":{"type":"integer","format":"int32","example":12055},"amount_subtotal":{"type":"integer","format":"int32","example":12055},"amount_total":{"type":"integer","format":"int32","example":14346},"taxes":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"string","example":"Standard (19%)"},"amount":{"type":"number","example":2291}}}}}}},"amount_subtotal":{"type":"number","example":100},"amount_total":{"type":"number","example":100},"total_details":{"type":"object","properties":{"amount_tax":{"type":"number","example":300},"breakdown":{"type":"object","properties":{"taxes":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"string","example":"Standard (19%)"},"amount":{"type":"number","example":2291}}}}}}}},"org":{"properties":{"id":{"type":"string","example":123},"logo_url":{"type":"string","example":"https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png"},"logo_thumbnail_url":{"type":"string","example":"https://epilot-playground-organization-data.s3.eu-central-1.amazonaws.com/epilot-logo.png"}}}}}}}}')}},t={};return function a(p){if(t[p])return t[p].exports;var r=t[p]={exports:{}};return e[p].call(r.exports,r,r.exports,a),r.exports}(914)})());
package/dist/openapi.d.ts CHANGED
@@ -129,26 +129,101 @@ declare namespace Components {
129
129
  customer_number?: string;
130
130
  /**
131
131
  * example:
132
- * xyz
132
+ * Mohammad Jamal
133
133
  */
134
134
  first_name?: string;
135
135
  /**
136
136
  * example:
137
- * xyz
137
+ * Dashtaki
138
138
  */
139
139
  last_name?: string;
140
+ address?: {
141
+ /**
142
+ * example:
143
+ * 21082
144
+ */
145
+ _ivy_address_id?: string;
146
+ _tags?: Tag[];
147
+ /**
148
+ * example:
149
+ * DE
150
+ */
151
+ country?: string;
152
+ /**
153
+ * example:
154
+ * Koln
155
+ */
156
+ city?: string;
157
+ /**
158
+ * example:
159
+ */
160
+ postal_code?: string;
161
+ /**
162
+ * example:
163
+ * Im media park
164
+ */
165
+ street?: string;
166
+ /**
167
+ * example:
168
+ */
169
+ street_number?: string;
170
+ /**
171
+ * example:
172
+ */
173
+ additional_info?: string;
174
+ }[];
175
+ /**
176
+ * example:
177
+ * contact
178
+ */
179
+ _schema?: string;
180
+ /**
181
+ * example:
182
+ * 4f7db3f7-2efd-42e4-a77f-9c6819d19d12
183
+ */
184
+ _id?: string;
185
+ /**
186
+ * example:
187
+ * 739224
188
+ */
189
+ _org?: string;
190
+ /**
191
+ * example:
192
+ * "2021-12-06T14:10:25.114Z"
193
+ */
194
+ _created_at?: string;
195
+ /**
196
+ * example:
197
+ * Mohammad Jamal Dashtaki
198
+ */
199
+ _title?: string;
140
200
  /**
141
201
  * example:
142
- * xyz
202
+ * 21080
143
203
  */
144
- title?: string;
204
+ _ivy_customer_id?: number;
205
+ /**
206
+ * example:
207
+ * en
208
+ */
209
+ language?: string;
210
+ /**
211
+ * example:
212
+ * "2000-12-08T18:30:00.000Z"
213
+ */
214
+ birthdate?: string;
215
+ /**
216
+ * example:
217
+ * "2021-12-14T16:14:53.367Z"
218
+ */
219
+ _updated_at?: string;
145
220
  email?: {
146
221
  /**
147
222
  * example:
148
223
  * xyz@asd.com
149
224
  */
150
225
  email?: string;
151
- _tags?: File[];
226
+ _tags?: Tag[];
152
227
  }[];
153
228
  phone?: {
154
229
  /**
@@ -156,7 +231,7 @@ declare namespace Components {
156
231
  * +1 123
157
232
  */
158
233
  phone?: string;
159
- _tags?: File[];
234
+ _tags?: Tag[];
160
235
  }[];
161
236
  }
162
237
  export type ContactId = string;
@@ -279,7 +354,7 @@ declare namespace Components {
279
354
  */
280
355
  value?: string;
281
356
  }[];
282
- _tags?: File[];
357
+ _tags?: Tag[];
283
358
  /**
284
359
  * example:
285
360
  * 123234
@@ -402,7 +477,7 @@ declare namespace Components {
402
477
  * example:
403
478
  * 300
404
479
  */
405
- type?: any;
480
+ amount_tax?: number;
406
481
  breakdown?: {
407
482
  taxes?: Tax[];
408
483
  };
@@ -475,30 +550,69 @@ declare namespace Components {
475
550
  auth_config?: AuthConfig;
476
551
  }
477
552
  export interface PortalUser {
478
- mapped_contact?: {
479
- };
480
553
  /**
481
554
  * example:
482
- * true
555
+ * cfb2621a-062d-44cf-b019-e047ded4e7cf
556
+ */
557
+ _id?: string;
558
+ /**
559
+ * example:
560
+ * Mapped
483
561
  */
484
- mapping_status?: boolean;
562
+ mapping_status?: string;
485
563
  /**
486
564
  * example:
487
- * user_created
565
+ * Registered
488
566
  */
489
567
  registration_status?: string;
490
568
  /**
491
569
  * example:
492
- * en
570
+ * 739225
493
571
  */
494
- language?: string;
572
+ brand_id?: string;
573
+ password?: string; // nullable
574
+ /**
575
+ * example:
576
+ * portal_user
577
+ */
578
+ _schema?: string;
579
+ /**
580
+ * example:
581
+ * 739224
582
+ */
583
+ _org?: string;
584
+ /**
585
+ * example:
586
+ * "2021-12-06T14:04:54.409Z"
587
+ */
588
+ _created_at?: string;
589
+ /**
590
+ * example:
591
+ * m.dashtaki@epilot.cloud
592
+ */
593
+ _title?: string;
594
+ /**
595
+ * example:
596
+ * "2021-12-06T14:10:34.027Z"
597
+ */
598
+ _updated_at?: string;
599
+ mapped_contact?: {
600
+ $relation?: {
601
+ _tags?: string[];
602
+ /**
603
+ * example:
604
+ * 4f7db3f7-2efd-42e4-a77f-9c6819d19d12
605
+ */
606
+ entity_id?: string;
607
+ }[];
608
+ };
495
609
  email?: {
496
610
  /**
497
611
  * example:
498
612
  * xyz@asd.com
499
613
  */
500
614
  email?: string;
501
- _tags?: File[];
615
+ _tags?: Tag[];
502
616
  }[];
503
617
  }
504
618
  export type PortalUserId = string;
@@ -644,7 +758,7 @@ declare namespace Components {
644
758
  code?: string;
645
759
  categories?: string[];
646
760
  feature?: {
647
- _tags?: any[];
761
+ _tags?: Tag[];
648
762
  /**
649
763
  * example:
650
764
  * Test new feature
@@ -692,7 +806,7 @@ declare namespace Components {
692
806
  };
693
807
  _images?: Image;
694
808
  _files?: File;
695
- _tags?: File[];
809
+ _tags?: Tag[];
696
810
  }
697
811
  /**
698
812
  * example:
@@ -709,7 +823,7 @@ declare namespace Components {
709
823
  * example:
710
824
  * 2291
711
825
  */
712
- amount?: number; // int32
826
+ amount?: number;
713
827
  }
714
828
  export interface UserActivationPayload {
715
829
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/customer-portal-client",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "API Client for epilot customer-portal API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/openapi.d.ts CHANGED
@@ -129,26 +129,101 @@ declare namespace Components {
129
129
  customer_number?: string;
130
130
  /**
131
131
  * example:
132
- * xyz
132
+ * Mohammad Jamal
133
133
  */
134
134
  first_name?: string;
135
135
  /**
136
136
  * example:
137
- * xyz
137
+ * Dashtaki
138
138
  */
139
139
  last_name?: string;
140
+ address?: {
141
+ /**
142
+ * example:
143
+ * 21082
144
+ */
145
+ _ivy_address_id?: string;
146
+ _tags?: Tag[];
147
+ /**
148
+ * example:
149
+ * DE
150
+ */
151
+ country?: string;
152
+ /**
153
+ * example:
154
+ * Koln
155
+ */
156
+ city?: string;
157
+ /**
158
+ * example:
159
+ */
160
+ postal_code?: string;
161
+ /**
162
+ * example:
163
+ * Im media park
164
+ */
165
+ street?: string;
166
+ /**
167
+ * example:
168
+ */
169
+ street_number?: string;
170
+ /**
171
+ * example:
172
+ */
173
+ additional_info?: string;
174
+ }[];
175
+ /**
176
+ * example:
177
+ * contact
178
+ */
179
+ _schema?: string;
180
+ /**
181
+ * example:
182
+ * 4f7db3f7-2efd-42e4-a77f-9c6819d19d12
183
+ */
184
+ _id?: string;
185
+ /**
186
+ * example:
187
+ * 739224
188
+ */
189
+ _org?: string;
190
+ /**
191
+ * example:
192
+ * "2021-12-06T14:10:25.114Z"
193
+ */
194
+ _created_at?: string;
195
+ /**
196
+ * example:
197
+ * Mohammad Jamal Dashtaki
198
+ */
199
+ _title?: string;
140
200
  /**
141
201
  * example:
142
- * xyz
202
+ * 21080
143
203
  */
144
- title?: string;
204
+ _ivy_customer_id?: number;
205
+ /**
206
+ * example:
207
+ * en
208
+ */
209
+ language?: string;
210
+ /**
211
+ * example:
212
+ * "2000-12-08T18:30:00.000Z"
213
+ */
214
+ birthdate?: string;
215
+ /**
216
+ * example:
217
+ * "2021-12-14T16:14:53.367Z"
218
+ */
219
+ _updated_at?: string;
145
220
  email?: {
146
221
  /**
147
222
  * example:
148
223
  * xyz@asd.com
149
224
  */
150
225
  email?: string;
151
- _tags?: File[];
226
+ _tags?: Tag[];
152
227
  }[];
153
228
  phone?: {
154
229
  /**
@@ -156,7 +231,7 @@ declare namespace Components {
156
231
  * +1 123
157
232
  */
158
233
  phone?: string;
159
- _tags?: File[];
234
+ _tags?: Tag[];
160
235
  }[];
161
236
  }
162
237
  export type ContactId = string;
@@ -279,7 +354,7 @@ declare namespace Components {
279
354
  */
280
355
  value?: string;
281
356
  }[];
282
- _tags?: File[];
357
+ _tags?: Tag[];
283
358
  /**
284
359
  * example:
285
360
  * 123234
@@ -402,7 +477,7 @@ declare namespace Components {
402
477
  * example:
403
478
  * 300
404
479
  */
405
- type?: any;
480
+ amount_tax?: number;
406
481
  breakdown?: {
407
482
  taxes?: Tax[];
408
483
  };
@@ -475,30 +550,69 @@ declare namespace Components {
475
550
  auth_config?: AuthConfig;
476
551
  }
477
552
  export interface PortalUser {
478
- mapped_contact?: {
479
- };
480
553
  /**
481
554
  * example:
482
- * true
555
+ * cfb2621a-062d-44cf-b019-e047ded4e7cf
556
+ */
557
+ _id?: string;
558
+ /**
559
+ * example:
560
+ * Mapped
483
561
  */
484
- mapping_status?: boolean;
562
+ mapping_status?: string;
485
563
  /**
486
564
  * example:
487
- * user_created
565
+ * Registered
488
566
  */
489
567
  registration_status?: string;
490
568
  /**
491
569
  * example:
492
- * en
570
+ * 739225
493
571
  */
494
- language?: string;
572
+ brand_id?: string;
573
+ password?: string; // nullable
574
+ /**
575
+ * example:
576
+ * portal_user
577
+ */
578
+ _schema?: string;
579
+ /**
580
+ * example:
581
+ * 739224
582
+ */
583
+ _org?: string;
584
+ /**
585
+ * example:
586
+ * "2021-12-06T14:04:54.409Z"
587
+ */
588
+ _created_at?: string;
589
+ /**
590
+ * example:
591
+ * m.dashtaki@epilot.cloud
592
+ */
593
+ _title?: string;
594
+ /**
595
+ * example:
596
+ * "2021-12-06T14:10:34.027Z"
597
+ */
598
+ _updated_at?: string;
599
+ mapped_contact?: {
600
+ $relation?: {
601
+ _tags?: string[];
602
+ /**
603
+ * example:
604
+ * 4f7db3f7-2efd-42e4-a77f-9c6819d19d12
605
+ */
606
+ entity_id?: string;
607
+ }[];
608
+ };
495
609
  email?: {
496
610
  /**
497
611
  * example:
498
612
  * xyz@asd.com
499
613
  */
500
614
  email?: string;
501
- _tags?: File[];
615
+ _tags?: Tag[];
502
616
  }[];
503
617
  }
504
618
  export type PortalUserId = string;
@@ -644,7 +758,7 @@ declare namespace Components {
644
758
  code?: string;
645
759
  categories?: string[];
646
760
  feature?: {
647
- _tags?: any[];
761
+ _tags?: Tag[];
648
762
  /**
649
763
  * example:
650
764
  * Test new feature
@@ -692,7 +806,7 @@ declare namespace Components {
692
806
  };
693
807
  _images?: Image;
694
808
  _files?: File;
695
- _tags?: File[];
809
+ _tags?: Tag[];
696
810
  }
697
811
  /**
698
812
  * example:
@@ -709,7 +823,7 @@ declare namespace Components {
709
823
  * example:
710
824
  * 2291
711
825
  */
712
- amount?: number; // int32
826
+ amount?: number;
713
827
  }
714
828
  export interface UserActivationPayload {
715
829
  /**