@emilgroup/customer-sdk-node 1.6.1 → 1.9.0

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.
Files changed (204) hide show
  1. package/.openapi-generator/FILES +18 -0
  2. package/README.md +2 -2
  3. package/api/claims-api.ts +557 -0
  4. package/api/customers-api.ts +305 -684
  5. package/api/policies-api.ts +980 -0
  6. package/api/products-api.ts +357 -0
  7. package/api.ts +7 -1
  8. package/base.ts +24 -32
  9. package/common.ts +2 -1
  10. package/configuration.ts +1 -1
  11. package/dist/api/claims-api.d.ts +327 -0
  12. package/dist/api/claims-api.js +508 -0
  13. package/dist/api/customers-api.d.ts +213 -443
  14. package/dist/api/customers-api.js +232 -475
  15. package/dist/api/policies-api.d.ts +578 -0
  16. package/dist/api/policies-api.js +808 -0
  17. package/dist/api/products-api.d.ts +215 -0
  18. package/dist/api/products-api.js +341 -0
  19. package/dist/api.d.ts +4 -1
  20. package/dist/api.js +4 -1
  21. package/dist/base.d.ts +2 -3
  22. package/dist/base.js +20 -21
  23. package/dist/common.d.ts +1 -1
  24. package/dist/common.js +2 -2
  25. package/dist/configuration.d.ts +1 -1
  26. package/dist/configuration.js +1 -1
  27. package/dist/index.d.ts +1 -1
  28. package/dist/index.js +1 -1
  29. package/dist/models/account-class.d.ts +1 -1
  30. package/dist/models/account-class.js +1 -1
  31. package/dist/models/account-policy-class.d.ts +1 -1
  32. package/dist/models/account-policy-class.js +1 -1
  33. package/dist/models/authentication-result-class.d.ts +1 -1
  34. package/dist/models/authentication-result-class.js +1 -1
  35. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
  36. package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
  37. package/dist/models/complete-payment-setup-psp-request.d.ts +32 -0
  38. package/dist/models/complete-payment-setup-psp-request.js +15 -0
  39. package/dist/models/complete-payment-setup-response-class.d.ts +24 -0
  40. package/dist/models/complete-payment-setup-response-class.js +15 -0
  41. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
  42. package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
  43. package/dist/models/create-account-request-dto.d.ts +96 -0
  44. package/dist/models/create-account-request-dto.js +21 -0
  45. package/dist/models/create-customer-claim-request-dto.d.ts +108 -0
  46. package/dist/models/create-customer-claim-request-dto.js +15 -0
  47. package/dist/models/create-customer-request-dto.d.ts +8 -1
  48. package/dist/models/create-customer-request-dto.js +1 -1
  49. package/dist/models/create-customer-response-class.d.ts +1 -1
  50. package/dist/models/create-customer-response-class.js +1 -1
  51. package/dist/models/create-presigned-post-response-class.d.ts +30 -0
  52. package/dist/models/create-presigned-post-response-class.js +15 -0
  53. package/dist/models/customer-class.d.ts +8 -2
  54. package/dist/models/customer-class.js +1 -1
  55. package/dist/models/customer-document-class.d.ts +2 -2
  56. package/dist/models/customer-document-class.js +1 -1
  57. package/dist/models/customer-product-class.d.ts +54 -0
  58. package/dist/models/customer-product-class.js +15 -0
  59. package/dist/models/forgot-password-request-dto.d.ts +1 -1
  60. package/dist/models/forgot-password-request-dto.js +1 -1
  61. package/dist/models/get-customer-document-download-url-response-class.d.ts +1 -1
  62. package/dist/models/get-customer-document-download-url-response-class.js +1 -1
  63. package/dist/models/get-customer-response-class.d.ts +1 -1
  64. package/dist/models/get-customer-response-class.js +1 -1
  65. package/dist/models/get-policy-response-class.d.ts +1 -1
  66. package/dist/models/get-policy-response-class.js +1 -1
  67. package/dist/models/get-product-response-class.d.ts +25 -0
  68. package/dist/models/get-product-response-class.js +15 -0
  69. package/dist/models/index.d.ts +15 -0
  70. package/dist/models/index.js +15 -0
  71. package/dist/models/initiate-auth-request-dto.d.ts +1 -1
  72. package/dist/models/initiate-auth-request-dto.js +1 -1
  73. package/dist/models/initiate-auth-response-class.d.ts +1 -1
  74. package/dist/models/initiate-auth-response-class.js +1 -1
  75. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
  76. package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
  77. package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
  78. package/dist/models/initiate-payment-setup-response-class.js +15 -0
  79. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
  80. package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
  81. package/dist/models/invite-by-customer-request-dto.d.ts +1 -1
  82. package/dist/models/invite-by-customer-request-dto.js +1 -1
  83. package/dist/models/invite-by-customer-response-class.d.ts +1 -1
  84. package/dist/models/invite-by-customer-response-class.js +1 -1
  85. package/dist/models/invite-by-tenant-response-class.d.ts +1 -1
  86. package/dist/models/invite-by-tenant-response-class.js +1 -1
  87. package/dist/models/invite-class.d.ts +1 -1
  88. package/dist/models/invite-class.js +1 -1
  89. package/dist/models/invoice-class.d.ts +3 -3
  90. package/dist/models/invoice-class.js +1 -1
  91. package/dist/models/list-documents-response-class.d.ts +1 -1
  92. package/dist/models/list-documents-response-class.js +1 -1
  93. package/dist/models/list-invoices-response-class.d.ts +1 -1
  94. package/dist/models/list-invoices-response-class.js +1 -1
  95. package/dist/models/list-policies-response-class.d.ts +5 -5
  96. package/dist/models/list-policies-response-class.js +1 -1
  97. package/dist/models/policy-class.d.ts +14 -1
  98. package/dist/models/policy-class.js +1 -1
  99. package/dist/models/policy-object-class.d.ts +1 -1
  100. package/dist/models/policy-object-class.js +1 -1
  101. package/dist/models/policy-premium-class.d.ts +1 -1
  102. package/dist/models/policy-premium-class.js +1 -1
  103. package/dist/models/policy-premium-item-class.d.ts +1 -1
  104. package/dist/models/policy-premium-item-class.js +1 -1
  105. package/dist/models/policy-version-class.d.ts +1 -1
  106. package/dist/models/policy-version-class.js +1 -1
  107. package/dist/models/refresh-token-dto.d.ts +1 -1
  108. package/dist/models/refresh-token-dto.js +1 -1
  109. package/dist/models/request-policy-update-request-dto.d.ts +1 -1
  110. package/dist/models/request-policy-update-request-dto.js +1 -1
  111. package/dist/models/request-policy-update-response-class.d.ts +1 -1
  112. package/dist/models/request-policy-update-response-class.js +1 -1
  113. package/dist/models/reset-password-by-customer-request-dto.d.ts +1 -1
  114. package/dist/models/reset-password-by-customer-request-dto.js +1 -1
  115. package/dist/models/respond-to-auth-challenge-class.d.ts +1 -1
  116. package/dist/models/respond-to-auth-challenge-class.js +1 -1
  117. package/dist/models/respond-to-auth-challenge-request-dto.d.ts +1 -1
  118. package/dist/models/respond-to-auth-challenge-request-dto.js +1 -1
  119. package/dist/models/shared-customer-policy-object-request-dto.d.ts +1 -1
  120. package/dist/models/shared-customer-policy-object-request-dto.js +1 -1
  121. package/dist/models/shared-invoice-item-class.d.ts +1 -1
  122. package/dist/models/shared-invoice-item-class.js +1 -1
  123. package/dist/models/terminate-customer-policy-request-dto.d.ts +1 -1
  124. package/dist/models/terminate-customer-policy-request-dto.js +1 -1
  125. package/dist/models/terminate-customer-policy-response-class.d.ts +1 -1
  126. package/dist/models/terminate-customer-policy-response-class.js +1 -1
  127. package/dist/models/timeslice-class.d.ts +1 -1
  128. package/dist/models/timeslice-class.js +1 -1
  129. package/dist/models/update-account-request-dto.d.ts +2 -2
  130. package/dist/models/update-account-request-dto.js +1 -1
  131. package/dist/models/update-customer-claim-request-dto.d.ts +120 -0
  132. package/dist/models/update-customer-claim-request-dto.js +15 -0
  133. package/dist/models/update-customer-request-dto.d.ts +1 -1
  134. package/dist/models/update-customer-request-dto.js +1 -1
  135. package/dist/models/update-customer-response-class.d.ts +1 -1
  136. package/dist/models/update-customer-response-class.js +1 -1
  137. package/dist/models/upload-customer-claim-documents-request-dto.d.ts +36 -0
  138. package/dist/models/upload-customer-claim-documents-request-dto.js +15 -0
  139. package/dist/models/upload-customer-policy-documents-request-dto.d.ts +47 -0
  140. package/dist/models/upload-customer-policy-documents-request-dto.js +20 -0
  141. package/dist/models/verify-customer-invite-response-class.d.ts +1 -1
  142. package/dist/models/verify-customer-invite-response-class.js +1 -1
  143. package/dist/models/withdraw-customer-policy-response-class.d.ts +1 -1
  144. package/dist/models/withdraw-customer-policy-response-class.js +1 -1
  145. package/index.ts +1 -1
  146. package/models/account-class.ts +1 -1
  147. package/models/account-policy-class.ts +1 -1
  148. package/models/authentication-result-class.ts +1 -1
  149. package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
  150. package/models/complete-payment-setup-psp-request.ts +38 -0
  151. package/models/complete-payment-setup-response-class.ts +30 -0
  152. package/models/complete-stripe-payment-setup-request-dto.ts +66 -0
  153. package/models/create-account-request-dto.ts +105 -0
  154. package/models/create-customer-claim-request-dto.ts +114 -0
  155. package/models/create-customer-request-dto.ts +8 -1
  156. package/models/create-customer-response-class.ts +1 -1
  157. package/models/create-presigned-post-response-class.ts +36 -0
  158. package/models/customer-class.ts +8 -2
  159. package/models/customer-document-class.ts +1 -1
  160. package/models/customer-product-class.ts +60 -0
  161. package/models/forgot-password-request-dto.ts +1 -1
  162. package/models/get-customer-document-download-url-response-class.ts +1 -1
  163. package/models/get-customer-response-class.ts +1 -1
  164. package/models/get-policy-response-class.ts +1 -1
  165. package/models/get-product-response-class.ts +31 -0
  166. package/models/index.ts +15 -0
  167. package/models/initiate-auth-request-dto.ts +1 -1
  168. package/models/initiate-auth-response-class.ts +1 -1
  169. package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
  170. package/models/initiate-payment-setup-response-class.ts +38 -0
  171. package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
  172. package/models/invite-by-customer-request-dto.ts +1 -1
  173. package/models/invite-by-customer-response-class.ts +1 -1
  174. package/models/invite-by-tenant-response-class.ts +1 -1
  175. package/models/invite-class.ts +1 -1
  176. package/models/invoice-class.ts +1 -1
  177. package/models/list-documents-response-class.ts +1 -1
  178. package/models/list-invoices-response-class.ts +1 -1
  179. package/models/list-policies-response-class.ts +5 -5
  180. package/models/policy-class.ts +14 -1
  181. package/models/policy-object-class.ts +1 -1
  182. package/models/policy-premium-class.ts +1 -1
  183. package/models/policy-premium-item-class.ts +1 -1
  184. package/models/policy-version-class.ts +1 -1
  185. package/models/refresh-token-dto.ts +1 -1
  186. package/models/request-policy-update-request-dto.ts +1 -1
  187. package/models/request-policy-update-response-class.ts +1 -1
  188. package/models/reset-password-by-customer-request-dto.ts +1 -1
  189. package/models/respond-to-auth-challenge-class.ts +1 -1
  190. package/models/respond-to-auth-challenge-request-dto.ts +1 -1
  191. package/models/shared-customer-policy-object-request-dto.ts +1 -1
  192. package/models/shared-invoice-item-class.ts +1 -1
  193. package/models/terminate-customer-policy-request-dto.ts +1 -1
  194. package/models/terminate-customer-policy-response-class.ts +1 -1
  195. package/models/timeslice-class.ts +1 -1
  196. package/models/update-account-request-dto.ts +1 -1
  197. package/models/update-customer-claim-request-dto.ts +126 -0
  198. package/models/update-customer-request-dto.ts +1 -1
  199. package/models/update-customer-response-class.ts +1 -1
  200. package/models/upload-customer-claim-documents-request-dto.ts +42 -0
  201. package/models/upload-customer-policy-documents-request-dto.ts +56 -0
  202. package/models/verify-customer-invite-response-class.ts +1 -1
  203. package/models/withdraw-customer-policy-response-class.ts +1 -1
  204. package/package.json +2 -3
@@ -3,7 +3,7 @@
3
3
  * The EMIL CustomerService API description
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
- *
6
+ * Contact: kontakt@emil.de
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -12,37 +12,44 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
+ import { CompletePaymentSetupPspRequest } from '../models';
16
+ import { CompletePaymentSetupResponseClass } from '../models';
15
17
  import { CreateCustomerRequestDto } from '../models';
16
18
  import { CreateCustomerResponseClass } from '../models';
19
+ import { CreatePresignedPostResponseClass } from '../models';
17
20
  import { ForgotPasswordRequestDto } from '../models';
18
21
  import { GetCustomerDocumentDownloadUrlResponseClass } from '../models';
19
22
  import { GetCustomerResponseClass } from '../models';
20
- import { GetPolicyResponseClass } from '../models';
21
23
  import { InitiateAuthRequestDto } from '../models';
22
24
  import { InitiateAuthResponseClass } from '../models';
25
+ import { InitiatePaymentSetupResponseClass } from '../models';
23
26
  import { InviteByCustomerRequestDto } from '../models';
24
27
  import { InviteByCustomerResponseClass } from '../models';
25
28
  import { InviteByTenantResponseClass } from '../models';
26
29
  import { ListDocumentsResponseClass } from '../models';
27
30
  import { ListInvoicesResponseClass } from '../models';
28
- import { ListPoliciesResponseClass } from '../models';
29
31
  import { RefreshTokenDto } from '../models';
30
- import { RequestPolicyUpdateRequestDto } from '../models';
31
- import { RequestPolicyUpdateResponseClass } from '../models';
32
32
  import { ResetPasswordByCustomerRequestDto } from '../models';
33
33
  import { RespondToAuthChallengeClass } from '../models';
34
34
  import { RespondToAuthChallengeRequestDto } from '../models';
35
- import { TerminateCustomerPolicyRequestDto } from '../models';
36
- import { TerminateCustomerPolicyResponseClass } from '../models';
37
35
  import { UpdateCustomerRequestDto } from '../models';
38
36
  import { UpdateCustomerResponseClass } from '../models';
39
37
  import { VerifyCustomerInviteResponseClass } from '../models';
40
- import { WithdrawCustomerPolicyResponseClass } from '../models';
41
38
  /**
42
39
  * CustomersApi - axios parameter creator
43
40
  * @export
44
41
  */
45
42
  export declare const CustomersApiAxiosParamCreator: (configuration?: Configuration) => {
43
+ /**
44
+ * Request to complete a payment change by customer.
45
+ * @summary Request payment setup complete by customer
46
+ * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
47
+ * @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
48
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ */
52
+ completePaymentSetup: (customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
46
53
  /**
47
54
  * Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
48
55
  * @summary Register a customer after invite
@@ -60,9 +67,9 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
60
67
  */
61
68
  forgotPassword: (forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
62
69
  /**
63
- * Get customer details
70
+ * Get customer details.
64
71
  * @summary Get customer details
65
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
72
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
66
73
  * @param {string} [expand] Fields to expand response by - [account]
67
74
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
68
75
  * @param {*} [options] Override http request option.
@@ -70,26 +77,15 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
70
77
  */
71
78
  getCustomer: (customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
72
79
  /**
73
- * Get a presigned download url for document
80
+ * Get a presigned download url for document.
74
81
  * @summary Get a presigned download url for document
75
- * @param {string} documentCode The document code
76
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
82
+ * @param {string} documentCode The document code.
83
+ * @param {string} customerCode
77
84
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
78
85
  * @param {*} [options] Override http request option.
79
86
  * @throws {RequiredError}
80
87
  */
81
88
  getCustomerDocumentDownloadUrl: (documentCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
82
- /**
83
- * Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
84
- * @summary Get policy details
85
- * @param {string} policyCode The policy code
86
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
87
- * @param {string} [expand] Fields to expand response by - [versions, premiumItems]
88
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
89
- * @param {*} [options] Override http request option.
90
- * @throws {RequiredError}
91
- */
92
- getPolicy: (policyCode: string, customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
93
89
  /**
94
90
  * Start auth process to get new access token, refresh token after successful login.
95
91
  * @summary Initiate auth by customer
@@ -98,11 +94,20 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
98
94
  * @throws {RequiredError}
99
95
  */
100
96
  initiateAuth: (initiateAuthRequestDto: InitiateAuthRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
97
+ /**
98
+ * Request to initiate a payment change by customer.
99
+ * @summary Request payment setup initiation by customer
100
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
101
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
102
+ * @param {*} [options] Override http request option.
103
+ * @throws {RequiredError}
104
+ */
105
+ initiatePaymentSetup: (customerCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
101
106
  /**
102
107
  * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
103
108
  * @summary Invite a customer by self
104
109
  * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
105
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
110
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
106
111
  * @param {*} [options] Override http request option.
107
112
  * @throws {RequiredError}
108
113
  */
@@ -111,15 +116,15 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
111
116
  * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
112
117
  * @summary Invite a customer by tenant
113
118
  * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
114
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
119
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
115
120
  * @param {*} [options] Override http request option.
116
121
  * @throws {RequiredError}
117
122
  */
118
123
  inviteByTenant: (inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
119
124
  /**
120
- * List all the documents of a customer
125
+ * List all the documents of a customer.
121
126
  * @summary List documents of a customer
122
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
127
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
123
128
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
124
129
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
125
130
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -132,9 +137,9 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
132
137
  */
133
138
  listDocuments: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
134
139
  /**
135
- * List all the invoices of a customer
140
+ * List all the invoices of a customer.
136
141
  * @summary List invoices of a customer
137
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
142
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
138
143
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
139
144
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
140
145
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -146,21 +151,6 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
146
151
  * @throws {RequiredError}
147
152
  */
148
153
  listInvoices: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
149
- /**
150
- * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
151
- * @summary List policies of a customer
152
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
153
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
154
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
155
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
156
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
157
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
158
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
159
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
160
- * @param {*} [options] Override http request option.
161
- * @throws {RequiredError}
162
- */
163
- listPolicies: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
164
154
  /**
165
155
  * Get new access token, new refresh token.
166
156
  * @summary Refresh token by customer
@@ -170,17 +160,6 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
170
160
  * @throws {RequiredError}
171
161
  */
172
162
  refreshToken: (refreshTokenDto: RefreshTokenDto, cookie?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
173
- /**
174
- * Request to update an existing policy by customer
175
- * @summary Request policy update by customer
176
- * @param {string} policyCode The policy code
177
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
178
- * @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
179
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
180
- * @param {*} [options] Override http request option.
181
- * @throws {RequiredError}
182
- */
183
- requestPolicyUpdate: (policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
184
163
  /**
185
164
  * Change customer\'s password using the token provided by the reset password endpoint.
186
165
  * @summary Change password by customer
@@ -198,26 +177,23 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
198
177
  */
199
178
  respondToAuthChallenge: (respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
200
179
  /**
201
- * Request to terminate an existing policy by customer
202
- * @summary Terminate a policy by customer
203
- * @param {string} policyCode The policy code
204
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
205
- * @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
180
+ * Update customer details like phone, email, names, addresses etc.
181
+ * @summary Update customer details
182
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
183
+ * @param {UpdateCustomerRequestDto} updateCustomerRequestDto
206
184
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
207
185
  * @param {*} [options] Override http request option.
208
186
  * @throws {RequiredError}
209
187
  */
210
- terminateCustomerPolicy: (policyCode: string, customerCode: string, terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
188
+ updateCustomer: (customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
211
189
  /**
212
- * Update customer details like phone, email, names, addresses etc
213
- * @summary Update customer details
214
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
215
- * @param {UpdateCustomerRequestDto} updateCustomerRequestDto
216
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
190
+ * API to upload and attach documents to an account.
191
+ * @summary Upload account documents
192
+ * @param {string} customerCode
217
193
  * @param {*} [options] Override http request option.
218
194
  * @throws {RequiredError}
219
195
  */
220
- updateCustomer: (customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
196
+ uploadAccountDocuments: (customerCode: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
221
197
  /**
222
198
  * Verify the invite sent to the customer via email.
223
199
  * @summary Verify customer\'s invite token
@@ -234,22 +210,22 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
234
210
  * @throws {RequiredError}
235
211
  */
236
212
  verifyResetPasswordToken: (resetToken: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
237
- /**
238
- * Withdraw policy by customer
239
- * @summary Withdraw policy by customer
240
- * @param {string} policyCode The policy code
241
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
242
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
243
- * @param {*} [options] Override http request option.
244
- * @throws {RequiredError}
245
- */
246
- withdrawCustomerPolicy: (policyCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
247
213
  };
248
214
  /**
249
215
  * CustomersApi - functional programming interface
250
216
  * @export
251
217
  */
252
218
  export declare const CustomersApiFp: (configuration?: Configuration) => {
219
+ /**
220
+ * Request to complete a payment change by customer.
221
+ * @summary Request payment setup complete by customer
222
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
223
+ * @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
224
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ */
228
+ completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>>;
253
229
  /**
254
230
  * Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
255
231
  * @summary Register a customer after invite
@@ -267,9 +243,9 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
267
243
  */
268
244
  forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
269
245
  /**
270
- * Get customer details
246
+ * Get customer details.
271
247
  * @summary Get customer details
272
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
248
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
273
249
  * @param {string} [expand] Fields to expand response by - [account]
274
250
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
275
251
  * @param {*} [options] Override http request option.
@@ -277,26 +253,15 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
277
253
  */
278
254
  getCustomer(customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerResponseClass>>;
279
255
  /**
280
- * Get a presigned download url for document
256
+ * Get a presigned download url for document.
281
257
  * @summary Get a presigned download url for document
282
- * @param {string} documentCode The document code
283
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
258
+ * @param {string} documentCode The document code.
259
+ * @param {string} customerCode
284
260
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
285
261
  * @param {*} [options] Override http request option.
286
262
  * @throws {RequiredError}
287
263
  */
288
264
  getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>>;
289
- /**
290
- * Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
291
- * @summary Get policy details
292
- * @param {string} policyCode The policy code
293
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
294
- * @param {string} [expand] Fields to expand response by - [versions, premiumItems]
295
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
296
- * @param {*} [options] Override http request option.
297
- * @throws {RequiredError}
298
- */
299
- getPolicy(policyCode: string, customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>>;
300
265
  /**
301
266
  * Start auth process to get new access token, refresh token after successful login.
302
267
  * @summary Initiate auth by customer
@@ -305,11 +270,20 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
305
270
  * @throws {RequiredError}
306
271
  */
307
272
  initiateAuth(initiateAuthRequestDto: InitiateAuthRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateAuthResponseClass>>;
273
+ /**
274
+ * Request to initiate a payment change by customer.
275
+ * @summary Request payment setup initiation by customer
276
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
277
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ */
281
+ initiatePaymentSetup(customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>>;
308
282
  /**
309
283
  * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
310
284
  * @summary Invite a customer by self
311
285
  * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
312
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
286
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
313
287
  * @param {*} [options] Override http request option.
314
288
  * @throws {RequiredError}
315
289
  */
@@ -318,15 +292,15 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
318
292
  * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
319
293
  * @summary Invite a customer by tenant
320
294
  * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
321
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
295
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
322
296
  * @param {*} [options] Override http request option.
323
297
  * @throws {RequiredError}
324
298
  */
325
299
  inviteByTenant(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteByTenantResponseClass>>;
326
300
  /**
327
- * List all the documents of a customer
301
+ * List all the documents of a customer.
328
302
  * @summary List documents of a customer
329
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
303
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
330
304
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
331
305
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
332
306
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -339,9 +313,9 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
339
313
  */
340
314
  listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocumentsResponseClass>>;
341
315
  /**
342
- * List all the invoices of a customer
316
+ * List all the invoices of a customer.
343
317
  * @summary List invoices of a customer
344
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
318
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
345
319
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
346
320
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
347
321
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -353,21 +327,6 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
353
327
  * @throws {RequiredError}
354
328
  */
355
329
  listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>>;
356
- /**
357
- * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
358
- * @summary List policies of a customer
359
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
360
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
361
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
362
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
363
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
364
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
365
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
366
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
367
- * @param {*} [options] Override http request option.
368
- * @throws {RequiredError}
369
- */
370
- listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>>;
371
330
  /**
372
331
  * Get new access token, new refresh token.
373
332
  * @summary Refresh token by customer
@@ -377,17 +336,6 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
377
336
  * @throws {RequiredError}
378
337
  */
379
338
  refreshToken(refreshTokenDto: RefreshTokenDto, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
380
- /**
381
- * Request to update an existing policy by customer
382
- * @summary Request policy update by customer
383
- * @param {string} policyCode The policy code
384
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
385
- * @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
386
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
387
- * @param {*} [options] Override http request option.
388
- * @throws {RequiredError}
389
- */
390
- requestPolicyUpdate(policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPolicyUpdateResponseClass>>;
391
339
  /**
392
340
  * Change customer\'s password using the token provided by the reset password endpoint.
393
341
  * @summary Change password by customer
@@ -405,26 +353,23 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
405
353
  */
406
354
  respondToAuthChallenge(respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RespondToAuthChallengeClass>>;
407
355
  /**
408
- * Request to terminate an existing policy by customer
409
- * @summary Terminate a policy by customer
410
- * @param {string} policyCode The policy code
411
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
412
- * @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
356
+ * Update customer details like phone, email, names, addresses etc.
357
+ * @summary Update customer details
358
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
359
+ * @param {UpdateCustomerRequestDto} updateCustomerRequestDto
413
360
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
414
361
  * @param {*} [options] Override http request option.
415
362
  * @throws {RequiredError}
416
363
  */
417
- terminateCustomerPolicy(policyCode: string, customerCode: string, terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerminateCustomerPolicyResponseClass>>;
364
+ updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>>;
418
365
  /**
419
- * Update customer details like phone, email, names, addresses etc
420
- * @summary Update customer details
421
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
422
- * @param {UpdateCustomerRequestDto} updateCustomerRequestDto
423
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
366
+ * API to upload and attach documents to an account.
367
+ * @summary Upload account documents
368
+ * @param {string} customerCode
424
369
  * @param {*} [options] Override http request option.
425
370
  * @throws {RequiredError}
426
371
  */
427
- updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>>;
372
+ uploadAccountDocuments(customerCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
428
373
  /**
429
374
  * Verify the invite sent to the customer via email.
430
375
  * @summary Verify customer\'s invite token
@@ -441,22 +386,22 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
441
386
  * @throws {RequiredError}
442
387
  */
443
388
  verifyResetPasswordToken(resetToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
444
- /**
445
- * Withdraw policy by customer
446
- * @summary Withdraw policy by customer
447
- * @param {string} policyCode The policy code
448
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
449
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
450
- * @param {*} [options] Override http request option.
451
- * @throws {RequiredError}
452
- */
453
- withdrawCustomerPolicy(policyCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WithdrawCustomerPolicyResponseClass>>;
454
389
  };
455
390
  /**
456
391
  * CustomersApi - factory interface
457
392
  * @export
458
393
  */
459
394
  export declare const CustomersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
395
+ /**
396
+ * Request to complete a payment change by customer.
397
+ * @summary Request payment setup complete by customer
398
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
399
+ * @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
400
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
401
+ * @param {*} [options] Override http request option.
402
+ * @throws {RequiredError}
403
+ */
404
+ completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass>;
460
405
  /**
461
406
  * Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
462
407
  * @summary Register a customer after invite
@@ -474,9 +419,9 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
474
419
  */
475
420
  forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: any): AxiosPromise<void>;
476
421
  /**
477
- * Get customer details
422
+ * Get customer details.
478
423
  * @summary Get customer details
479
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
424
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
480
425
  * @param {string} [expand] Fields to expand response by - [account]
481
426
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
482
427
  * @param {*} [options] Override http request option.
@@ -484,26 +429,15 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
484
429
  */
485
430
  getCustomer(customerCode: string, expand?: string, authorization?: string, options?: any): AxiosPromise<GetCustomerResponseClass>;
486
431
  /**
487
- * Get a presigned download url for document
432
+ * Get a presigned download url for document.
488
433
  * @summary Get a presigned download url for document
489
- * @param {string} documentCode The document code
490
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
434
+ * @param {string} documentCode The document code.
435
+ * @param {string} customerCode
491
436
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
492
437
  * @param {*} [options] Override http request option.
493
438
  * @throws {RequiredError}
494
439
  */
495
440
  getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, authorization?: string, options?: any): AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>;
496
- /**
497
- * Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
498
- * @summary Get policy details
499
- * @param {string} policyCode The policy code
500
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
501
- * @param {string} [expand] Fields to expand response by - [versions, premiumItems]
502
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
503
- * @param {*} [options] Override http request option.
504
- * @throws {RequiredError}
505
- */
506
- getPolicy(policyCode: string, customerCode: string, expand?: string, authorization?: string, options?: any): AxiosPromise<GetPolicyResponseClass>;
507
441
  /**
508
442
  * Start auth process to get new access token, refresh token after successful login.
509
443
  * @summary Initiate auth by customer
@@ -512,11 +446,20 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
512
446
  * @throws {RequiredError}
513
447
  */
514
448
  initiateAuth(initiateAuthRequestDto: InitiateAuthRequestDto, options?: any): AxiosPromise<InitiateAuthResponseClass>;
449
+ /**
450
+ * Request to initiate a payment change by customer.
451
+ * @summary Request payment setup initiation by customer
452
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
453
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
454
+ * @param {*} [options] Override http request option.
455
+ * @throws {RequiredError}
456
+ */
457
+ initiatePaymentSetup(customerCode: string, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass>;
515
458
  /**
516
459
  * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
517
460
  * @summary Invite a customer by self
518
461
  * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
519
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
462
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
520
463
  * @param {*} [options] Override http request option.
521
464
  * @throws {RequiredError}
522
465
  */
@@ -525,15 +468,15 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
525
468
  * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
526
469
  * @summary Invite a customer by tenant
527
470
  * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
528
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
471
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
529
472
  * @param {*} [options] Override http request option.
530
473
  * @throws {RequiredError}
531
474
  */
532
475
  inviteByTenant(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<InviteByTenantResponseClass>;
533
476
  /**
534
- * List all the documents of a customer
477
+ * List all the documents of a customer.
535
478
  * @summary List documents of a customer
536
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
479
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
537
480
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
538
481
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
539
482
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -546,9 +489,9 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
546
489
  */
547
490
  listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListDocumentsResponseClass>;
548
491
  /**
549
- * List all the invoices of a customer
492
+ * List all the invoices of a customer.
550
493
  * @summary List invoices of a customer
551
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
494
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
552
495
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
553
496
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
554
497
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -560,21 +503,6 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
560
503
  * @throws {RequiredError}
561
504
  */
562
505
  listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListInvoicesResponseClass>;
563
- /**
564
- * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
565
- * @summary List policies of a customer
566
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
567
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
568
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
569
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
570
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
571
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
572
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
573
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
574
- * @param {*} [options] Override http request option.
575
- * @throws {RequiredError}
576
- */
577
- listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass>;
578
506
  /**
579
507
  * Get new access token, new refresh token.
580
508
  * @summary Refresh token by customer
@@ -584,17 +512,6 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
584
512
  * @throws {RequiredError}
585
513
  */
586
514
  refreshToken(refreshTokenDto: RefreshTokenDto, cookie?: string, options?: any): AxiosPromise<void>;
587
- /**
588
- * Request to update an existing policy by customer
589
- * @summary Request policy update by customer
590
- * @param {string} policyCode The policy code
591
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
592
- * @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
593
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
594
- * @param {*} [options] Override http request option.
595
- * @throws {RequiredError}
596
- */
597
- requestPolicyUpdate(policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: any): AxiosPromise<RequestPolicyUpdateResponseClass>;
598
515
  /**
599
516
  * Change customer\'s password using the token provided by the reset password endpoint.
600
517
  * @summary Change password by customer
@@ -612,26 +529,23 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
612
529
  */
613
530
  respondToAuthChallenge(respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options?: any): AxiosPromise<RespondToAuthChallengeClass>;
614
531
  /**
615
- * Request to terminate an existing policy by customer
616
- * @summary Terminate a policy by customer
617
- * @param {string} policyCode The policy code
618
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
619
- * @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
532
+ * Update customer details like phone, email, names, addresses etc.
533
+ * @summary Update customer details
534
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
535
+ * @param {UpdateCustomerRequestDto} updateCustomerRequestDto
620
536
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
621
537
  * @param {*} [options] Override http request option.
622
538
  * @throws {RequiredError}
623
539
  */
624
- terminateCustomerPolicy(policyCode: string, customerCode: string, terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<TerminateCustomerPolicyResponseClass>;
540
+ updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomerResponseClass>;
625
541
  /**
626
- * Update customer details like phone, email, names, addresses etc
627
- * @summary Update customer details
628
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
629
- * @param {UpdateCustomerRequestDto} updateCustomerRequestDto
630
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
542
+ * API to upload and attach documents to an account.
543
+ * @summary Upload account documents
544
+ * @param {string} customerCode
631
545
  * @param {*} [options] Override http request option.
632
546
  * @throws {RequiredError}
633
547
  */
634
- updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomerResponseClass>;
548
+ uploadAccountDocuments(customerCode: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
635
549
  /**
636
550
  * Verify the invite sent to the customer via email.
637
551
  * @summary Verify customer\'s invite token
@@ -648,17 +562,32 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
648
562
  * @throws {RequiredError}
649
563
  */
650
564
  verifyResetPasswordToken(resetToken: string, options?: any): AxiosPromise<void>;
565
+ };
566
+ /**
567
+ * Request parameters for completePaymentSetup operation in CustomersApi.
568
+ * @export
569
+ * @interface CustomersApiCompletePaymentSetupRequest
570
+ */
571
+ export interface CustomersApiCompletePaymentSetupRequest {
651
572
  /**
652
- * Withdraw policy by customer
653
- * @summary Withdraw policy by customer
654
- * @param {string} policyCode The policy code
655
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
656
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
657
- * @param {*} [options] Override http request option.
658
- * @throws {RequiredError}
573
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
574
+ * @type {string}
575
+ * @memberof CustomersApiCompletePaymentSetup
659
576
  */
660
- withdrawCustomerPolicy(policyCode: string, customerCode: string, authorization?: string, options?: any): AxiosPromise<WithdrawCustomerPolicyResponseClass>;
661
- };
577
+ readonly customerCode: string;
578
+ /**
579
+ *
580
+ * @type {CompletePaymentSetupPspRequest}
581
+ * @memberof CustomersApiCompletePaymentSetup
582
+ */
583
+ readonly completePaymentSetupPspRequest: CompletePaymentSetupPspRequest;
584
+ /**
585
+ * Bearer Token: provided by the login endpoint under the name accessToken.
586
+ * @type {string}
587
+ * @memberof CustomersApiCompletePaymentSetup
588
+ */
589
+ readonly authorization?: string;
590
+ }
662
591
  /**
663
592
  * Request parameters for createCustomer operation in CustomersApi.
664
593
  * @export
@@ -692,7 +621,7 @@ export interface CustomersApiForgotPasswordRequest {
692
621
  */
693
622
  export interface CustomersApiGetCustomerRequest {
694
623
  /**
695
- * The customer code or \&quot;me\&quot; for the currently logged in customer
624
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
696
625
  * @type {string}
697
626
  * @memberof CustomersApiGetCustomer
698
627
  */
@@ -717,13 +646,13 @@ export interface CustomersApiGetCustomerRequest {
717
646
  */
718
647
  export interface CustomersApiGetCustomerDocumentDownloadUrlRequest {
719
648
  /**
720
- * The document code
649
+ * The document code.
721
650
  * @type {string}
722
651
  * @memberof CustomersApiGetCustomerDocumentDownloadUrl
723
652
  */
724
653
  readonly documentCode: string;
725
654
  /**
726
- * The customer code or \&quot;me\&quot; for the currently logged in customer
655
+ *
727
656
  * @type {string}
728
657
  * @memberof CustomersApiGetCustomerDocumentDownloadUrl
729
658
  */
@@ -736,49 +665,37 @@ export interface CustomersApiGetCustomerDocumentDownloadUrlRequest {
736
665
  readonly authorization?: string;
737
666
  }
738
667
  /**
739
- * Request parameters for getPolicy operation in CustomersApi.
668
+ * Request parameters for initiateAuth operation in CustomersApi.
740
669
  * @export
741
- * @interface CustomersApiGetPolicyRequest
670
+ * @interface CustomersApiInitiateAuthRequest
742
671
  */
743
- export interface CustomersApiGetPolicyRequest {
672
+ export interface CustomersApiInitiateAuthRequest {
744
673
  /**
745
- * The policy code
746
- * @type {string}
747
- * @memberof CustomersApiGetPolicy
674
+ *
675
+ * @type {InitiateAuthRequestDto}
676
+ * @memberof CustomersApiInitiateAuth
748
677
  */
749
- readonly policyCode: string;
678
+ readonly initiateAuthRequestDto: InitiateAuthRequestDto;
679
+ }
680
+ /**
681
+ * Request parameters for initiatePaymentSetup operation in CustomersApi.
682
+ * @export
683
+ * @interface CustomersApiInitiatePaymentSetupRequest
684
+ */
685
+ export interface CustomersApiInitiatePaymentSetupRequest {
750
686
  /**
751
- * The customer code or \&quot;me\&quot; for the currently logged in customer
687
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
752
688
  * @type {string}
753
- * @memberof CustomersApiGetPolicy
689
+ * @memberof CustomersApiInitiatePaymentSetup
754
690
  */
755
691
  readonly customerCode: string;
756
- /**
757
- * Fields to expand response by - [versions, premiumItems]
758
- * @type {string}
759
- * @memberof CustomersApiGetPolicy
760
- */
761
- readonly expand?: string;
762
692
  /**
763
693
  * Bearer Token: provided by the login endpoint under the name accessToken.
764
694
  * @type {string}
765
- * @memberof CustomersApiGetPolicy
695
+ * @memberof CustomersApiInitiatePaymentSetup
766
696
  */
767
697
  readonly authorization?: string;
768
698
  }
769
- /**
770
- * Request parameters for initiateAuth operation in CustomersApi.
771
- * @export
772
- * @interface CustomersApiInitiateAuthRequest
773
- */
774
- export interface CustomersApiInitiateAuthRequest {
775
- /**
776
- *
777
- * @type {InitiateAuthRequestDto}
778
- * @memberof CustomersApiInitiateAuth
779
- */
780
- readonly initiateAuthRequestDto: InitiateAuthRequestDto;
781
- }
782
699
  /**
783
700
  * Request parameters for inviteByCustomer operation in CustomersApi.
784
701
  * @export
@@ -792,7 +709,7 @@ export interface CustomersApiInviteByCustomerRequest {
792
709
  */
793
710
  readonly inviteByCustomerRequestDto: InviteByCustomerRequestDto;
794
711
  /**
795
- * Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
712
+ * Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
796
713
  * @type {string}
797
714
  * @memberof CustomersApiInviteByCustomer
798
715
  */
@@ -811,7 +728,7 @@ export interface CustomersApiInviteByTenantRequest {
811
728
  */
812
729
  readonly inviteByCustomerRequestDto: InviteByCustomerRequestDto;
813
730
  /**
814
- * Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
731
+ * Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
815
732
  * @type {string}
816
733
  * @memberof CustomersApiInviteByTenant
817
734
  */
@@ -824,7 +741,7 @@ export interface CustomersApiInviteByTenantRequest {
824
741
  */
825
742
  export interface CustomersApiListDocumentsRequest {
826
743
  /**
827
- * The customer code or \&quot;me\&quot; for the currently logged in customer
744
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
828
745
  * @type {string}
829
746
  * @memberof CustomersApiListDocuments
830
747
  */
@@ -879,7 +796,7 @@ export interface CustomersApiListDocumentsRequest {
879
796
  */
880
797
  export interface CustomersApiListInvoicesRequest {
881
798
  /**
882
- * The customer code or \&quot;me\&quot; for the currently logged in customer
799
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
883
800
  * @type {string}
884
801
  * @memberof CustomersApiListInvoices
885
802
  */
@@ -927,61 +844,6 @@ export interface CustomersApiListInvoicesRequest {
927
844
  */
928
845
  readonly authorization?: string;
929
846
  }
930
- /**
931
- * Request parameters for listPolicies operation in CustomersApi.
932
- * @export
933
- * @interface CustomersApiListPoliciesRequest
934
- */
935
- export interface CustomersApiListPoliciesRequest {
936
- /**
937
- * The customer code or \&quot;me\&quot; for the currently logged in customer
938
- * @type {string}
939
- * @memberof CustomersApiListPolicies
940
- */
941
- readonly customerCode: string;
942
- /**
943
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
944
- * @type {any}
945
- * @memberof CustomersApiListPolicies
946
- */
947
- readonly pageSize?: any;
948
- /**
949
- * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
950
- * @type {any}
951
- * @memberof CustomersApiListPolicies
952
- */
953
- readonly pageToken?: any;
954
- /**
955
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
956
- * @type {any}
957
- * @memberof CustomersApiListPolicies
958
- */
959
- readonly filter?: any;
960
- /**
961
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
962
- * @type {any}
963
- * @memberof CustomersApiListPolicies
964
- */
965
- readonly search?: any;
966
- /**
967
- * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
968
- * @type {any}
969
- * @memberof CustomersApiListPolicies
970
- */
971
- readonly order?: any;
972
- /**
973
- * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
974
- * @type {any}
975
- * @memberof CustomersApiListPolicies
976
- */
977
- readonly expand?: any;
978
- /**
979
- * Bearer Token: provided by the login endpoint under the name accessToken.
980
- * @type {string}
981
- * @memberof CustomersApiListPolicies
982
- */
983
- readonly authorization?: string;
984
- }
985
847
  /**
986
848
  * Request parameters for refreshToken operation in CustomersApi.
987
849
  * @export
@@ -1001,37 +863,6 @@ export interface CustomersApiRefreshTokenRequest {
1001
863
  */
1002
864
  readonly cookie?: string;
1003
865
  }
1004
- /**
1005
- * Request parameters for requestPolicyUpdate operation in CustomersApi.
1006
- * @export
1007
- * @interface CustomersApiRequestPolicyUpdateRequest
1008
- */
1009
- export interface CustomersApiRequestPolicyUpdateRequest {
1010
- /**
1011
- * The policy code
1012
- * @type {string}
1013
- * @memberof CustomersApiRequestPolicyUpdate
1014
- */
1015
- readonly policyCode: string;
1016
- /**
1017
- * The customer code or \&quot;me\&quot; for the currently logged in customer
1018
- * @type {string}
1019
- * @memberof CustomersApiRequestPolicyUpdate
1020
- */
1021
- readonly customerCode: string;
1022
- /**
1023
- *
1024
- * @type {RequestPolicyUpdateRequestDto}
1025
- * @memberof CustomersApiRequestPolicyUpdate
1026
- */
1027
- readonly requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto;
1028
- /**
1029
- * Bearer Token: provided by the login endpoint under the name accessToken.
1030
- * @type {string}
1031
- * @memberof CustomersApiRequestPolicyUpdate
1032
- */
1033
- readonly authorization?: string;
1034
- }
1035
866
  /**
1036
867
  * Request parameters for resetPassword operation in CustomersApi.
1037
868
  * @export
@@ -1058,37 +889,6 @@ export interface CustomersApiRespondToAuthChallengeRequest {
1058
889
  */
1059
890
  readonly respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto;
1060
891
  }
1061
- /**
1062
- * Request parameters for terminateCustomerPolicy operation in CustomersApi.
1063
- * @export
1064
- * @interface CustomersApiTerminateCustomerPolicyRequest
1065
- */
1066
- export interface CustomersApiTerminateCustomerPolicyRequest {
1067
- /**
1068
- * The policy code
1069
- * @type {string}
1070
- * @memberof CustomersApiTerminateCustomerPolicy
1071
- */
1072
- readonly policyCode: string;
1073
- /**
1074
- * The customer code or \&quot;me\&quot; for the currently logged in customer
1075
- * @type {string}
1076
- * @memberof CustomersApiTerminateCustomerPolicy
1077
- */
1078
- readonly customerCode: string;
1079
- /**
1080
- *
1081
- * @type {TerminateCustomerPolicyRequestDto}
1082
- * @memberof CustomersApiTerminateCustomerPolicy
1083
- */
1084
- readonly terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto;
1085
- /**
1086
- * Bearer Token: provided by the login endpoint under the name accessToken.
1087
- * @type {string}
1088
- * @memberof CustomersApiTerminateCustomerPolicy
1089
- */
1090
- readonly authorization?: string;
1091
- }
1092
892
  /**
1093
893
  * Request parameters for updateCustomer operation in CustomersApi.
1094
894
  * @export
@@ -1096,7 +896,7 @@ export interface CustomersApiTerminateCustomerPolicyRequest {
1096
896
  */
1097
897
  export interface CustomersApiUpdateCustomerRequest {
1098
898
  /**
1099
- * The customer code or \&quot;me\&quot; for the currently logged in customer
899
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
1100
900
  * @type {string}
1101
901
  * @memberof CustomersApiUpdateCustomer
1102
902
  */
@@ -1114,6 +914,19 @@ export interface CustomersApiUpdateCustomerRequest {
1114
914
  */
1115
915
  readonly authorization?: string;
1116
916
  }
917
+ /**
918
+ * Request parameters for uploadAccountDocuments operation in CustomersApi.
919
+ * @export
920
+ * @interface CustomersApiUploadAccountDocumentsRequest
921
+ */
922
+ export interface CustomersApiUploadAccountDocumentsRequest {
923
+ /**
924
+ *
925
+ * @type {string}
926
+ * @memberof CustomersApiUploadAccountDocuments
927
+ */
928
+ readonly customerCode: string;
929
+ }
1117
930
  /**
1118
931
  * Request parameters for verifyInvite operation in CustomersApi.
1119
932
  * @export
@@ -1140,31 +953,6 @@ export interface CustomersApiVerifyResetPasswordTokenRequest {
1140
953
  */
1141
954
  readonly resetToken: string;
1142
955
  }
1143
- /**
1144
- * Request parameters for withdrawCustomerPolicy operation in CustomersApi.
1145
- * @export
1146
- * @interface CustomersApiWithdrawCustomerPolicyRequest
1147
- */
1148
- export interface CustomersApiWithdrawCustomerPolicyRequest {
1149
- /**
1150
- * The policy code
1151
- * @type {string}
1152
- * @memberof CustomersApiWithdrawCustomerPolicy
1153
- */
1154
- readonly policyCode: string;
1155
- /**
1156
- * The customer code or \&quot;me\&quot; for the currently logged in customer
1157
- * @type {string}
1158
- * @memberof CustomersApiWithdrawCustomerPolicy
1159
- */
1160
- readonly customerCode: string;
1161
- /**
1162
- * Bearer Token: provided by the login endpoint under the name accessToken.
1163
- * @type {string}
1164
- * @memberof CustomersApiWithdrawCustomerPolicy
1165
- */
1166
- readonly authorization?: string;
1167
- }
1168
956
  /**
1169
957
  * CustomersApi - object-oriented interface
1170
958
  * @export
@@ -1172,6 +960,15 @@ export interface CustomersApiWithdrawCustomerPolicyRequest {
1172
960
  * @extends {BaseAPI}
1173
961
  */
1174
962
  export declare class CustomersApi extends BaseAPI {
963
+ /**
964
+ * Request to complete a payment change by customer.
965
+ * @summary Request payment setup complete by customer
966
+ * @param {CustomersApiCompletePaymentSetupRequest} requestParameters Request parameters.
967
+ * @param {*} [options] Override http request option.
968
+ * @throws {RequiredError}
969
+ * @memberof CustomersApi
970
+ */
971
+ completePaymentSetup(requestParameters: CustomersApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompletePaymentSetupResponseClass, any>>;
1175
972
  /**
1176
973
  * Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
1177
974
  * @summary Register a customer after invite
@@ -1191,7 +988,7 @@ export declare class CustomersApi extends BaseAPI {
1191
988
  */
1192
989
  forgotPassword(requestParameters: CustomersApiForgotPasswordRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1193
990
  /**
1194
- * Get customer details
991
+ * Get customer details.
1195
992
  * @summary Get customer details
1196
993
  * @param {CustomersApiGetCustomerRequest} requestParameters Request parameters.
1197
994
  * @param {*} [options] Override http request option.
@@ -1200,7 +997,7 @@ export declare class CustomersApi extends BaseAPI {
1200
997
  */
1201
998
  getCustomer(requestParameters: CustomersApiGetCustomerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCustomerResponseClass, any>>;
1202
999
  /**
1203
- * Get a presigned download url for document
1000
+ * Get a presigned download url for document.
1204
1001
  * @summary Get a presigned download url for document
1205
1002
  * @param {CustomersApiGetCustomerDocumentDownloadUrlRequest} requestParameters Request parameters.
1206
1003
  * @param {*} [options] Override http request option.
@@ -1209,23 +1006,23 @@ export declare class CustomersApi extends BaseAPI {
1209
1006
  */
1210
1007
  getCustomerDocumentDownloadUrl(requestParameters: CustomersApiGetCustomerDocumentDownloadUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCustomerDocumentDownloadUrlResponseClass, any>>;
1211
1008
  /**
1212
- * Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
1213
- * @summary Get policy details
1214
- * @param {CustomersApiGetPolicyRequest} requestParameters Request parameters.
1009
+ * Start auth process to get new access token, refresh token after successful login.
1010
+ * @summary Initiate auth by customer
1011
+ * @param {CustomersApiInitiateAuthRequest} requestParameters Request parameters.
1215
1012
  * @param {*} [options] Override http request option.
1216
1013
  * @throws {RequiredError}
1217
1014
  * @memberof CustomersApi
1218
1015
  */
1219
- getPolicy(requestParameters: CustomersApiGetPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPolicyResponseClass, any>>;
1016
+ initiateAuth(requestParameters: CustomersApiInitiateAuthRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateAuthResponseClass, any>>;
1220
1017
  /**
1221
- * Start auth process to get new access token, refresh token after successful login.
1222
- * @summary Initiate auth by customer
1223
- * @param {CustomersApiInitiateAuthRequest} requestParameters Request parameters.
1018
+ * Request to initiate a payment change by customer.
1019
+ * @summary Request payment setup initiation by customer
1020
+ * @param {CustomersApiInitiatePaymentSetupRequest} requestParameters Request parameters.
1224
1021
  * @param {*} [options] Override http request option.
1225
1022
  * @throws {RequiredError}
1226
1023
  * @memberof CustomersApi
1227
1024
  */
1228
- initiateAuth(requestParameters: CustomersApiInitiateAuthRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateAuthResponseClass, any>>;
1025
+ initiatePaymentSetup(requestParameters: CustomersApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiatePaymentSetupResponseClass, any>>;
1229
1026
  /**
1230
1027
  * Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
1231
1028
  * @summary Invite a customer by self
@@ -1245,7 +1042,7 @@ export declare class CustomersApi extends BaseAPI {
1245
1042
  */
1246
1043
  inviteByTenant(requestParameters: CustomersApiInviteByTenantRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InviteByTenantResponseClass, any>>;
1247
1044
  /**
1248
- * List all the documents of a customer
1045
+ * List all the documents of a customer.
1249
1046
  * @summary List documents of a customer
1250
1047
  * @param {CustomersApiListDocumentsRequest} requestParameters Request parameters.
1251
1048
  * @param {*} [options] Override http request option.
@@ -1254,7 +1051,7 @@ export declare class CustomersApi extends BaseAPI {
1254
1051
  */
1255
1052
  listDocuments(requestParameters: CustomersApiListDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocumentsResponseClass, any>>;
1256
1053
  /**
1257
- * List all the invoices of a customer
1054
+ * List all the invoices of a customer.
1258
1055
  * @summary List invoices of a customer
1259
1056
  * @param {CustomersApiListInvoicesRequest} requestParameters Request parameters.
1260
1057
  * @param {*} [options] Override http request option.
@@ -1262,15 +1059,6 @@ export declare class CustomersApi extends BaseAPI {
1262
1059
  * @memberof CustomersApi
1263
1060
  */
1264
1061
  listInvoices(requestParameters: CustomersApiListInvoicesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListInvoicesResponseClass, any>>;
1265
- /**
1266
- * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
1267
- * @summary List policies of a customer
1268
- * @param {CustomersApiListPoliciesRequest} requestParameters Request parameters.
1269
- * @param {*} [options] Override http request option.
1270
- * @throws {RequiredError}
1271
- * @memberof CustomersApi
1272
- */
1273
- listPolicies(requestParameters: CustomersApiListPoliciesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPoliciesResponseClass, any>>;
1274
1062
  /**
1275
1063
  * Get new access token, new refresh token.
1276
1064
  * @summary Refresh token by customer
@@ -1280,15 +1068,6 @@ export declare class CustomersApi extends BaseAPI {
1280
1068
  * @memberof CustomersApi
1281
1069
  */
1282
1070
  refreshToken(requestParameters: CustomersApiRefreshTokenRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1283
- /**
1284
- * Request to update an existing policy by customer
1285
- * @summary Request policy update by customer
1286
- * @param {CustomersApiRequestPolicyUpdateRequest} requestParameters Request parameters.
1287
- * @param {*} [options] Override http request option.
1288
- * @throws {RequiredError}
1289
- * @memberof CustomersApi
1290
- */
1291
- requestPolicyUpdate(requestParameters: CustomersApiRequestPolicyUpdateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RequestPolicyUpdateResponseClass, any>>;
1292
1071
  /**
1293
1072
  * Change customer\'s password using the token provided by the reset password endpoint.
1294
1073
  * @summary Change password by customer
@@ -1308,23 +1087,23 @@ export declare class CustomersApi extends BaseAPI {
1308
1087
  */
1309
1088
  respondToAuthChallenge(requestParameters: CustomersApiRespondToAuthChallengeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RespondToAuthChallengeClass, any>>;
1310
1089
  /**
1311
- * Request to terminate an existing policy by customer
1312
- * @summary Terminate a policy by customer
1313
- * @param {CustomersApiTerminateCustomerPolicyRequest} requestParameters Request parameters.
1090
+ * Update customer details like phone, email, names, addresses etc.
1091
+ * @summary Update customer details
1092
+ * @param {CustomersApiUpdateCustomerRequest} requestParameters Request parameters.
1314
1093
  * @param {*} [options] Override http request option.
1315
1094
  * @throws {RequiredError}
1316
1095
  * @memberof CustomersApi
1317
1096
  */
1318
- terminateCustomerPolicy(requestParameters: CustomersApiTerminateCustomerPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TerminateCustomerPolicyResponseClass, any>>;
1097
+ updateCustomer(requestParameters: CustomersApiUpdateCustomerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateCustomerResponseClass, any>>;
1319
1098
  /**
1320
- * Update customer details like phone, email, names, addresses etc
1321
- * @summary Update customer details
1322
- * @param {CustomersApiUpdateCustomerRequest} requestParameters Request parameters.
1099
+ * API to upload and attach documents to an account.
1100
+ * @summary Upload account documents
1101
+ * @param {CustomersApiUploadAccountDocumentsRequest} requestParameters Request parameters.
1323
1102
  * @param {*} [options] Override http request option.
1324
1103
  * @throws {RequiredError}
1325
1104
  * @memberof CustomersApi
1326
1105
  */
1327
- updateCustomer(requestParameters: CustomersApiUpdateCustomerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateCustomerResponseClass, any>>;
1106
+ uploadAccountDocuments(requestParameters: CustomersApiUploadAccountDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any>>;
1328
1107
  /**
1329
1108
  * Verify the invite sent to the customer via email.
1330
1109
  * @summary Verify customer\'s invite token
@@ -1343,13 +1122,4 @@ export declare class CustomersApi extends BaseAPI {
1343
1122
  * @memberof CustomersApi
1344
1123
  */
1345
1124
  verifyResetPasswordToken(requestParameters: CustomersApiVerifyResetPasswordTokenRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1346
- /**
1347
- * Withdraw policy by customer
1348
- * @summary Withdraw policy by customer
1349
- * @param {CustomersApiWithdrawCustomerPolicyRequest} requestParameters Request parameters.
1350
- * @param {*} [options] Override http request option.
1351
- * @throws {RequiredError}
1352
- * @memberof CustomersApi
1353
- */
1354
- withdrawCustomerPolicy(requestParameters: CustomersApiWithdrawCustomerPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WithdrawCustomerPolicyResponseClass, any>>;
1355
1125
  }