@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
@@ -5,7 +5,7 @@
5
5
  * The EMIL CustomerService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -21,22 +21,28 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
+ import { CompletePaymentSetupPspRequest } from '../models';
25
+ // @ts-ignore
26
+ import { CompletePaymentSetupResponseClass } from '../models';
27
+ // @ts-ignore
24
28
  import { CreateCustomerRequestDto } from '../models';
25
29
  // @ts-ignore
26
30
  import { CreateCustomerResponseClass } from '../models';
27
31
  // @ts-ignore
32
+ import { CreatePresignedPostResponseClass } from '../models';
33
+ // @ts-ignore
28
34
  import { ForgotPasswordRequestDto } from '../models';
29
35
  // @ts-ignore
30
36
  import { GetCustomerDocumentDownloadUrlResponseClass } from '../models';
31
37
  // @ts-ignore
32
38
  import { GetCustomerResponseClass } from '../models';
33
39
  // @ts-ignore
34
- import { GetPolicyResponseClass } from '../models';
35
- // @ts-ignore
36
40
  import { InitiateAuthRequestDto } from '../models';
37
41
  // @ts-ignore
38
42
  import { InitiateAuthResponseClass } from '../models';
39
43
  // @ts-ignore
44
+ import { InitiatePaymentSetupResponseClass } from '../models';
45
+ // @ts-ignore
40
46
  import { InviteByCustomerRequestDto } from '../models';
41
47
  // @ts-ignore
42
48
  import { InviteByCustomerResponseClass } from '../models';
@@ -47,31 +53,19 @@ import { ListDocumentsResponseClass } from '../models';
47
53
  // @ts-ignore
48
54
  import { ListInvoicesResponseClass } from '../models';
49
55
  // @ts-ignore
50
- import { ListPoliciesResponseClass } from '../models';
51
- // @ts-ignore
52
56
  import { RefreshTokenDto } from '../models';
53
57
  // @ts-ignore
54
- import { RequestPolicyUpdateRequestDto } from '../models';
55
- // @ts-ignore
56
- import { RequestPolicyUpdateResponseClass } from '../models';
57
- // @ts-ignore
58
58
  import { ResetPasswordByCustomerRequestDto } from '../models';
59
59
  // @ts-ignore
60
60
  import { RespondToAuthChallengeClass } from '../models';
61
61
  // @ts-ignore
62
62
  import { RespondToAuthChallengeRequestDto } from '../models';
63
63
  // @ts-ignore
64
- import { TerminateCustomerPolicyRequestDto } from '../models';
65
- // @ts-ignore
66
- import { TerminateCustomerPolicyResponseClass } from '../models';
67
- // @ts-ignore
68
64
  import { UpdateCustomerRequestDto } from '../models';
69
65
  // @ts-ignore
70
66
  import { UpdateCustomerResponseClass } from '../models';
71
67
  // @ts-ignore
72
68
  import { VerifyCustomerInviteResponseClass } from '../models';
73
- // @ts-ignore
74
- import { WithdrawCustomerPolicyResponseClass } from '../models';
75
69
  // URLSearchParams not necessarily used
76
70
  // @ts-ignore
77
71
  import { URL, URLSearchParams } from 'url';
@@ -82,6 +76,53 @@ const FormData = require('form-data');
82
76
  */
83
77
  export const CustomersApiAxiosParamCreator = function (configuration?: Configuration) {
84
78
  return {
79
+ /**
80
+ * Request to complete a payment change by customer.
81
+ * @summary Request payment setup complete by customer
82
+ * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
83
+ * @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
84
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
85
+ * @param {*} [options] Override http request option.
86
+ * @throws {RequiredError}
87
+ */
88
+ completePaymentSetup: async (customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
89
+ // verify required parameter 'customerCode' is not null or undefined
90
+ assertParamExists('completePaymentSetup', 'customerCode', customerCode)
91
+ // verify required parameter 'completePaymentSetupPspRequest' is not null or undefined
92
+ assertParamExists('completePaymentSetup', 'completePaymentSetupPspRequest', completePaymentSetupPspRequest)
93
+ const localVarPath = `/v1/customers/{customerCode}/payment_setup/complete`
94
+ .replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
95
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
96
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
97
+ let baseOptions;
98
+ let baseAccessToken;
99
+ if (configuration) {
100
+ baseOptions = configuration.baseOptions;
101
+ baseAccessToken = configuration.accessToken;
102
+ }
103
+
104
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
105
+ const localVarHeaderParameter = {} as any;
106
+ const localVarQueryParameter = {} as any;
107
+
108
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
109
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
110
+ }
111
+
112
+
113
+
114
+ localVarHeaderParameter['Content-Type'] = 'application/json';
115
+
116
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
117
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
118
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
119
+ localVarRequestOptions.data = serializeDataIfNeeded(completePaymentSetupPspRequest, localVarRequestOptions, configuration)
120
+
121
+ return {
122
+ url: toPathString(localVarUrlObj),
123
+ options: localVarRequestOptions,
124
+ };
125
+ },
85
126
  /**
86
127
  * 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.
87
128
  * @summary Register a customer after invite
@@ -159,9 +200,9 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
159
200
  };
160
201
  },
161
202
  /**
162
- * Get customer details
203
+ * Get customer details.
163
204
  * @summary Get customer details
164
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
205
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
165
206
  * @param {string} [expand] Fields to expand response by - [account]
166
207
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
167
208
  * @param {*} [options] Override http request option.
@@ -205,10 +246,10 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
205
246
  };
206
247
  },
207
248
  /**
208
- * Get a presigned download url for document
249
+ * Get a presigned download url for document.
209
250
  * @summary Get a presigned download url for document
210
- * @param {string} documentCode The document code
211
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
251
+ * @param {string} documentCode The document code.
252
+ * @param {string} customerCode
212
253
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
213
254
  * @param {*} [options] Override http request option.
214
255
  * @throws {RequiredError}
@@ -250,23 +291,16 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
250
291
  };
251
292
  },
252
293
  /**
253
- * Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
254
- * @summary Get policy details
255
- * @param {string} policyCode The policy code
256
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
257
- * @param {string} [expand] Fields to expand response by - [versions, premiumItems]
258
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
294
+ * Start auth process to get new access token, refresh token after successful login.
295
+ * @summary Initiate auth by customer
296
+ * @param {InitiateAuthRequestDto} initiateAuthRequestDto
259
297
  * @param {*} [options] Override http request option.
260
298
  * @throws {RequiredError}
261
299
  */
262
- getPolicy: async (policyCode: string, customerCode: string, expand?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
263
- // verify required parameter 'policyCode' is not null or undefined
264
- assertParamExists('getPolicy', 'policyCode', policyCode)
265
- // verify required parameter 'customerCode' is not null or undefined
266
- assertParamExists('getPolicy', 'customerCode', customerCode)
267
- const localVarPath = `/v1/customers/{customerCode}/policies/{policyCode}`
268
- .replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)))
269
- .replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
300
+ initiateAuth: async (initiateAuthRequestDto: InitiateAuthRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
301
+ // verify required parameter 'initiateAuthRequestDto' is not null or undefined
302
+ assertParamExists('initiateAuth', 'initiateAuthRequestDto', initiateAuthRequestDto)
303
+ const localVarPath = `/v1/customers/auth/initiate`;
270
304
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
271
305
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
272
306
  let baseOptions;
@@ -276,23 +310,18 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
276
310
  baseAccessToken = configuration.accessToken;
277
311
  }
278
312
 
279
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
313
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
280
314
  const localVarHeaderParameter = {} as any;
281
315
  const localVarQueryParameter = {} as any;
282
316
 
283
- if (expand !== undefined) {
284
- localVarQueryParameter['expand'] = expand;
285
- }
286
-
287
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
288
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
289
- }
290
-
291
317
 
292
318
 
319
+ localVarHeaderParameter['Content-Type'] = 'application/json';
320
+
293
321
  setSearchParams(localVarUrlObj, localVarQueryParameter);
294
322
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
295
323
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
324
+ localVarRequestOptions.data = serializeDataIfNeeded(initiateAuthRequestDto, localVarRequestOptions, configuration)
296
325
 
297
326
  return {
298
327
  url: toPathString(localVarUrlObj),
@@ -300,16 +329,18 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
300
329
  };
301
330
  },
302
331
  /**
303
- * Start auth process to get new access token, refresh token after successful login.
304
- * @summary Initiate auth by customer
305
- * @param {InitiateAuthRequestDto} initiateAuthRequestDto
332
+ * Request to initiate a payment change by customer.
333
+ * @summary Request payment setup initiation by customer
334
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
335
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
306
336
  * @param {*} [options] Override http request option.
307
337
  * @throws {RequiredError}
308
338
  */
309
- initiateAuth: async (initiateAuthRequestDto: InitiateAuthRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
310
- // verify required parameter 'initiateAuthRequestDto' is not null or undefined
311
- assertParamExists('initiateAuth', 'initiateAuthRequestDto', initiateAuthRequestDto)
312
- const localVarPath = `/v1/customers/auth/initiate`;
339
+ initiatePaymentSetup: async (customerCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
340
+ // verify required parameter 'customerCode' is not null or undefined
341
+ assertParamExists('initiatePaymentSetup', 'customerCode', customerCode)
342
+ const localVarPath = `/v1/customers/{customerCode}/payment_setup/initiate`
343
+ .replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
313
344
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
314
345
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
315
346
  let baseOptions;
@@ -323,14 +354,15 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
323
354
  const localVarHeaderParameter = {} as any;
324
355
  const localVarQueryParameter = {} as any;
325
356
 
357
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
358
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
359
+ }
360
+
326
361
 
327
362
 
328
- localVarHeaderParameter['Content-Type'] = 'application/json';
329
-
330
363
  setSearchParams(localVarUrlObj, localVarQueryParameter);
331
364
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
332
365
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
333
- localVarRequestOptions.data = serializeDataIfNeeded(initiateAuthRequestDto, localVarRequestOptions, configuration)
334
366
 
335
367
  return {
336
368
  url: toPathString(localVarUrlObj),
@@ -341,7 +373,7 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
341
373
  * 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.
342
374
  * @summary Invite a customer by self
343
375
  * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
344
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
376
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
345
377
  * @param {*} [options] Override http request option.
346
378
  * @throws {RequiredError}
347
379
  */
@@ -384,7 +416,7 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
384
416
  * 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.
385
417
  * @summary Invite a customer by tenant
386
418
  * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
387
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
419
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
388
420
  * @param {*} [options] Override http request option.
389
421
  * @throws {RequiredError}
390
422
  */
@@ -424,9 +456,9 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
424
456
  };
425
457
  },
426
458
  /**
427
- * List all the documents of a customer
459
+ * List all the documents of a customer.
428
460
  * @summary List documents of a customer
429
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
461
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
430
462
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
431
463
  * @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.
432
464
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -495,9 +527,9 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
495
527
  };
496
528
  },
497
529
  /**
498
- * List all the invoices of a customer
530
+ * List all the invoices of a customer.
499
531
  * @summary List invoices of a customer
500
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
532
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
501
533
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
502
534
  * @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.
503
535
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -556,77 +588,6 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
556
588
 
557
589
 
558
590
 
559
- setSearchParams(localVarUrlObj, localVarQueryParameter);
560
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
561
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
562
-
563
- return {
564
- url: toPathString(localVarUrlObj),
565
- options: localVarRequestOptions,
566
- };
567
- },
568
- /**
569
- * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
570
- * @summary List policies of a customer
571
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
572
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
573
- * @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.
574
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
575
- * @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.
576
- * @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.
577
- * @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.
578
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
579
- * @param {*} [options] Override http request option.
580
- * @throws {RequiredError}
581
- */
582
- listPolicies: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
583
- // verify required parameter 'customerCode' is not null or undefined
584
- assertParamExists('listPolicies', 'customerCode', customerCode)
585
- const localVarPath = `/v1/customers/{customerCode}/policies`
586
- .replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
587
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
588
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
589
- let baseOptions;
590
- let baseAccessToken;
591
- if (configuration) {
592
- baseOptions = configuration.baseOptions;
593
- baseAccessToken = configuration.accessToken;
594
- }
595
-
596
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
597
- const localVarHeaderParameter = {} as any;
598
- const localVarQueryParameter = {} as any;
599
-
600
- if (pageSize !== undefined) {
601
- localVarQueryParameter['pageSize'] = pageSize;
602
- }
603
-
604
- if (pageToken !== undefined) {
605
- localVarQueryParameter['pageToken'] = pageToken;
606
- }
607
-
608
- if (filter !== undefined) {
609
- localVarQueryParameter['filter'] = filter;
610
- }
611
-
612
- if (search !== undefined) {
613
- localVarQueryParameter['search'] = search;
614
- }
615
-
616
- if (order !== undefined) {
617
- localVarQueryParameter['order'] = order;
618
- }
619
-
620
- if (expand !== undefined) {
621
- localVarQueryParameter['expand'] = expand;
622
- }
623
-
624
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
625
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
626
- }
627
-
628
-
629
-
630
591
  setSearchParams(localVarUrlObj, localVarQueryParameter);
631
592
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
632
593
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -679,57 +640,6 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
679
640
  options: localVarRequestOptions,
680
641
  };
681
642
  },
682
- /**
683
- * Request to update an existing policy by customer
684
- * @summary Request policy update by customer
685
- * @param {string} policyCode The policy code
686
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
687
- * @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
688
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
689
- * @param {*} [options] Override http request option.
690
- * @throws {RequiredError}
691
- */
692
- requestPolicyUpdate: async (policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
693
- // verify required parameter 'policyCode' is not null or undefined
694
- assertParamExists('requestPolicyUpdate', 'policyCode', policyCode)
695
- // verify required parameter 'customerCode' is not null or undefined
696
- assertParamExists('requestPolicyUpdate', 'customerCode', customerCode)
697
- // verify required parameter 'requestPolicyUpdateRequestDto' is not null or undefined
698
- assertParamExists('requestPolicyUpdate', 'requestPolicyUpdateRequestDto', requestPolicyUpdateRequestDto)
699
- const localVarPath = `/v1/customers/{customerCode}/policies/{policyCode}/request-update`
700
- .replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)))
701
- .replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
702
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
703
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
704
- let baseOptions;
705
- let baseAccessToken;
706
- if (configuration) {
707
- baseOptions = configuration.baseOptions;
708
- baseAccessToken = configuration.accessToken;
709
- }
710
-
711
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
712
- const localVarHeaderParameter = {} as any;
713
- const localVarQueryParameter = {} as any;
714
-
715
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
716
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
717
- }
718
-
719
-
720
-
721
- localVarHeaderParameter['Content-Type'] = 'application/json';
722
-
723
- setSearchParams(localVarUrlObj, localVarQueryParameter);
724
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
725
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
726
- localVarRequestOptions.data = serializeDataIfNeeded(requestPolicyUpdateRequestDto, localVarRequestOptions, configuration)
727
-
728
- return {
729
- url: toPathString(localVarUrlObj),
730
- options: localVarRequestOptions,
731
- };
732
- },
733
643
  /**
734
644
  * Change customer\'s password using the token provided by the reset password endpoint.
735
645
  * @summary Change password by customer
@@ -807,24 +717,20 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
807
717
  };
808
718
  },
809
719
  /**
810
- * Request to terminate an existing policy by customer
811
- * @summary Terminate a policy by customer
812
- * @param {string} policyCode The policy code
813
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
814
- * @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
720
+ * Update customer details like phone, email, names, addresses etc.
721
+ * @summary Update customer details
722
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
723
+ * @param {UpdateCustomerRequestDto} updateCustomerRequestDto
815
724
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
816
725
  * @param {*} [options] Override http request option.
817
726
  * @throws {RequiredError}
818
727
  */
819
- terminateCustomerPolicy: async (policyCode: string, customerCode: string, terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
820
- // verify required parameter 'policyCode' is not null or undefined
821
- assertParamExists('terminateCustomerPolicy', 'policyCode', policyCode)
728
+ updateCustomer: async (customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
822
729
  // verify required parameter 'customerCode' is not null or undefined
823
- assertParamExists('terminateCustomerPolicy', 'customerCode', customerCode)
824
- // verify required parameter 'terminateCustomerPolicyRequestDto' is not null or undefined
825
- assertParamExists('terminateCustomerPolicy', 'terminateCustomerPolicyRequestDto', terminateCustomerPolicyRequestDto)
826
- const localVarPath = `/v1/customers/{customerCode}/policies/{policyCode}/terminate`
827
- .replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)))
730
+ assertParamExists('updateCustomer', 'customerCode', customerCode)
731
+ // verify required parameter 'updateCustomerRequestDto' is not null or undefined
732
+ assertParamExists('updateCustomer', 'updateCustomerRequestDto', updateCustomerRequestDto)
733
+ const localVarPath = `/v1/customers/{customerCode}`
828
734
  .replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
829
735
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
830
736
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -835,7 +741,7 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
835
741
  baseAccessToken = configuration.accessToken;
836
742
  }
837
743
 
838
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
744
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
839
745
  const localVarHeaderParameter = {} as any;
840
746
  const localVarQueryParameter = {} as any;
841
747
 
@@ -850,7 +756,7 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
850
756
  setSearchParams(localVarUrlObj, localVarQueryParameter);
851
757
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
852
758
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
853
- localVarRequestOptions.data = serializeDataIfNeeded(terminateCustomerPolicyRequestDto, localVarRequestOptions, configuration)
759
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerRequestDto, localVarRequestOptions, configuration)
854
760
 
855
761
  return {
856
762
  url: toPathString(localVarUrlObj),
@@ -858,20 +764,16 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
858
764
  };
859
765
  },
860
766
  /**
861
- * Update customer details like phone, email, names, addresses etc
862
- * @summary Update customer details
863
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
864
- * @param {UpdateCustomerRequestDto} updateCustomerRequestDto
865
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
767
+ * API to upload and attach documents to an account.
768
+ * @summary Upload account documents
769
+ * @param {string} customerCode
866
770
  * @param {*} [options] Override http request option.
867
771
  * @throws {RequiredError}
868
772
  */
869
- updateCustomer: async (customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
773
+ uploadAccountDocuments: async (customerCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
870
774
  // verify required parameter 'customerCode' is not null or undefined
871
- assertParamExists('updateCustomer', 'customerCode', customerCode)
872
- // verify required parameter 'updateCustomerRequestDto' is not null or undefined
873
- assertParamExists('updateCustomer', 'updateCustomerRequestDto', updateCustomerRequestDto)
874
- const localVarPath = `/v1/customers/{customerCode}`
775
+ assertParamExists('uploadAccountDocuments', 'customerCode', customerCode)
776
+ const localVarPath = `/v1/customers/{customerCode}/documents`
875
777
  .replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
876
778
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
877
779
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -882,22 +784,15 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
882
784
  baseAccessToken = configuration.accessToken;
883
785
  }
884
786
 
885
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
787
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
886
788
  const localVarHeaderParameter = {} as any;
887
789
  const localVarQueryParameter = {} as any;
888
790
 
889
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
890
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
891
- }
892
-
893
791
 
894
792
 
895
- localVarHeaderParameter['Content-Type'] = 'application/json';
896
-
897
793
  setSearchParams(localVarUrlObj, localVarQueryParameter);
898
794
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
899
795
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
900
- localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerRequestDto, localVarRequestOptions, configuration)
901
796
 
902
797
  return {
903
798
  url: toPathString(localVarUrlObj),
@@ -973,51 +868,6 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
973
868
 
974
869
 
975
870
 
976
- setSearchParams(localVarUrlObj, localVarQueryParameter);
977
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
978
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
979
-
980
- return {
981
- url: toPathString(localVarUrlObj),
982
- options: localVarRequestOptions,
983
- };
984
- },
985
- /**
986
- * Withdraw policy by customer
987
- * @summary Withdraw policy by customer
988
- * @param {string} policyCode The policy code
989
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
990
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
991
- * @param {*} [options] Override http request option.
992
- * @throws {RequiredError}
993
- */
994
- withdrawCustomerPolicy: async (policyCode: string, customerCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
995
- // verify required parameter 'policyCode' is not null or undefined
996
- assertParamExists('withdrawCustomerPolicy', 'policyCode', policyCode)
997
- // verify required parameter 'customerCode' is not null or undefined
998
- assertParamExists('withdrawCustomerPolicy', 'customerCode', customerCode)
999
- const localVarPath = `/v1/customers/{customerCode}/policies/{policyCode}/withdraw`
1000
- .replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)))
1001
- .replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
1002
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1003
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1004
- let baseOptions;
1005
- let baseAccessToken;
1006
- if (configuration) {
1007
- baseOptions = configuration.baseOptions;
1008
- baseAccessToken = configuration.accessToken;
1009
- }
1010
-
1011
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1012
- const localVarHeaderParameter = {} as any;
1013
- const localVarQueryParameter = {} as any;
1014
-
1015
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
1016
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
1017
- }
1018
-
1019
-
1020
-
1021
871
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1022
872
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1023
873
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1038,9 +888,22 @@ export const CustomersApiFp = function(configuration?: Configuration) {
1038
888
  const localVarAxiosParamCreator = CustomersApiAxiosParamCreator(configuration)
1039
889
  return {
1040
890
  /**
1041
- * 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.
1042
- * @summary Register a customer after invite
1043
- * @param {CreateCustomerRequestDto} createCustomerRequestDto
891
+ * Request to complete a payment change by customer.
892
+ * @summary Request payment setup complete by customer
893
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
894
+ * @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
895
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
896
+ * @param {*} [options] Override http request option.
897
+ * @throws {RequiredError}
898
+ */
899
+ async completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>> {
900
+ const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, options);
901
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
902
+ },
903
+ /**
904
+ * 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.
905
+ * @summary Register a customer after invite
906
+ * @param {CreateCustomerRequestDto} createCustomerRequestDto
1044
907
  * @param {*} [options] Override http request option.
1045
908
  * @throws {RequiredError}
1046
909
  */
@@ -1060,9 +923,9 @@ export const CustomersApiFp = function(configuration?: Configuration) {
1060
923
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1061
924
  },
1062
925
  /**
1063
- * Get customer details
926
+ * Get customer details.
1064
927
  * @summary Get customer details
1065
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
928
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
1066
929
  * @param {string} [expand] Fields to expand response by - [account]
1067
930
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1068
931
  * @param {*} [options] Override http request option.
@@ -1073,10 +936,10 @@ export const CustomersApiFp = function(configuration?: Configuration) {
1073
936
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1074
937
  },
1075
938
  /**
1076
- * Get a presigned download url for document
939
+ * Get a presigned download url for document.
1077
940
  * @summary Get a presigned download url for document
1078
- * @param {string} documentCode The document code
1079
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
941
+ * @param {string} documentCode The document code.
942
+ * @param {string} customerCode
1080
943
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1081
944
  * @param {*} [options] Override http request option.
1082
945
  * @throws {RequiredError}
@@ -1086,35 +949,33 @@ export const CustomersApiFp = function(configuration?: Configuration) {
1086
949
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1087
950
  },
1088
951
  /**
1089
- * Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
1090
- * @summary Get policy details
1091
- * @param {string} policyCode The policy code
1092
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
1093
- * @param {string} [expand] Fields to expand response by - [versions, premiumItems]
1094
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
952
+ * Start auth process to get new access token, refresh token after successful login.
953
+ * @summary Initiate auth by customer
954
+ * @param {InitiateAuthRequestDto} initiateAuthRequestDto
1095
955
  * @param {*} [options] Override http request option.
1096
956
  * @throws {RequiredError}
1097
957
  */
1098
- async getPolicy(policyCode: string, customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>> {
1099
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(policyCode, customerCode, expand, authorization, options);
958
+ async initiateAuth(initiateAuthRequestDto: InitiateAuthRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateAuthResponseClass>> {
959
+ const localVarAxiosArgs = await localVarAxiosParamCreator.initiateAuth(initiateAuthRequestDto, options);
1100
960
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1101
961
  },
1102
962
  /**
1103
- * Start auth process to get new access token, refresh token after successful login.
1104
- * @summary Initiate auth by customer
1105
- * @param {InitiateAuthRequestDto} initiateAuthRequestDto
963
+ * Request to initiate a payment change by customer.
964
+ * @summary Request payment setup initiation by customer
965
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
966
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1106
967
  * @param {*} [options] Override http request option.
1107
968
  * @throws {RequiredError}
1108
969
  */
1109
- async initiateAuth(initiateAuthRequestDto: InitiateAuthRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateAuthResponseClass>> {
1110
- const localVarAxiosArgs = await localVarAxiosParamCreator.initiateAuth(initiateAuthRequestDto, options);
970
+ async initiatePaymentSetup(customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>> {
971
+ const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(customerCode, authorization, options);
1111
972
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1112
973
  },
1113
974
  /**
1114
975
  * 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.
1115
976
  * @summary Invite a customer by self
1116
977
  * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
1117
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
978
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
1118
979
  * @param {*} [options] Override http request option.
1119
980
  * @throws {RequiredError}
1120
981
  */
@@ -1126,7 +987,7 @@ export const CustomersApiFp = function(configuration?: Configuration) {
1126
987
  * 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.
1127
988
  * @summary Invite a customer by tenant
1128
989
  * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
1129
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
990
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
1130
991
  * @param {*} [options] Override http request option.
1131
992
  * @throws {RequiredError}
1132
993
  */
@@ -1135,9 +996,9 @@ export const CustomersApiFp = function(configuration?: Configuration) {
1135
996
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1136
997
  },
1137
998
  /**
1138
- * List all the documents of a customer
999
+ * List all the documents of a customer.
1139
1000
  * @summary List documents of a customer
1140
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
1001
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
1141
1002
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
1142
1003
  * @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.
1143
1004
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -1153,9 +1014,9 @@ export const CustomersApiFp = function(configuration?: Configuration) {
1153
1014
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1154
1015
  },
1155
1016
  /**
1156
- * List all the invoices of a customer
1017
+ * List all the invoices of a customer.
1157
1018
  * @summary List invoices of a customer
1158
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
1019
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
1159
1020
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
1160
1021
  * @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.
1161
1022
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -1170,24 +1031,6 @@ export const CustomersApiFp = function(configuration?: Configuration) {
1170
1031
  const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options);
1171
1032
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1172
1033
  },
1173
- /**
1174
- * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
1175
- * @summary List policies of a customer
1176
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
1177
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
1178
- * @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.
1179
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
1180
- * @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.
1181
- * @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.
1182
- * @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.
1183
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1184
- * @param {*} [options] Override http request option.
1185
- * @throws {RequiredError}
1186
- */
1187
- async 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>> {
1188
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options);
1189
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1190
- },
1191
1034
  /**
1192
1035
  * Get new access token, new refresh token.
1193
1036
  * @summary Refresh token by customer
@@ -1200,20 +1043,6 @@ export const CustomersApiFp = function(configuration?: Configuration) {
1200
1043
  const localVarAxiosArgs = await localVarAxiosParamCreator.refreshToken(refreshTokenDto, cookie, options);
1201
1044
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1202
1045
  },
1203
- /**
1204
- * Request to update an existing policy by customer
1205
- * @summary Request policy update by customer
1206
- * @param {string} policyCode The policy code
1207
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
1208
- * @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
1209
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1210
- * @param {*} [options] Override http request option.
1211
- * @throws {RequiredError}
1212
- */
1213
- async requestPolicyUpdate(policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPolicyUpdateResponseClass>> {
1214
- const localVarAxiosArgs = await localVarAxiosParamCreator.requestPolicyUpdate(policyCode, customerCode, requestPolicyUpdateRequestDto, authorization, options);
1215
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1216
- },
1217
1046
  /**
1218
1047
  * Change customer\'s password using the token provided by the reset password endpoint.
1219
1048
  * @summary Change password by customer
@@ -1237,30 +1066,27 @@ export const CustomersApiFp = function(configuration?: Configuration) {
1237
1066
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1238
1067
  },
1239
1068
  /**
1240
- * Request to terminate an existing policy by customer
1241
- * @summary Terminate a policy by customer
1242
- * @param {string} policyCode The policy code
1243
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
1244
- * @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
1069
+ * Update customer details like phone, email, names, addresses etc.
1070
+ * @summary Update customer details
1071
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
1072
+ * @param {UpdateCustomerRequestDto} updateCustomerRequestDto
1245
1073
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1246
1074
  * @param {*} [options] Override http request option.
1247
1075
  * @throws {RequiredError}
1248
1076
  */
1249
- async terminateCustomerPolicy(policyCode: string, customerCode: string, terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerminateCustomerPolicyResponseClass>> {
1250
- const localVarAxiosArgs = await localVarAxiosParamCreator.terminateCustomerPolicy(policyCode, customerCode, terminateCustomerPolicyRequestDto, authorization, options);
1077
+ async updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>> {
1078
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomer(customerCode, updateCustomerRequestDto, authorization, options);
1251
1079
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1252
1080
  },
1253
1081
  /**
1254
- * Update customer details like phone, email, names, addresses etc
1255
- * @summary Update customer details
1256
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
1257
- * @param {UpdateCustomerRequestDto} updateCustomerRequestDto
1258
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1082
+ * API to upload and attach documents to an account.
1083
+ * @summary Upload account documents
1084
+ * @param {string} customerCode
1259
1085
  * @param {*} [options] Override http request option.
1260
1086
  * @throws {RequiredError}
1261
1087
  */
1262
- async updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>> {
1263
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomer(customerCode, updateCustomerRequestDto, authorization, options);
1088
+ async uploadAccountDocuments(customerCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
1089
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAccountDocuments(customerCode, options);
1264
1090
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1265
1091
  },
1266
1092
  /**
@@ -1285,19 +1111,6 @@ export const CustomersApiFp = function(configuration?: Configuration) {
1285
1111
  const localVarAxiosArgs = await localVarAxiosParamCreator.verifyResetPasswordToken(resetToken, options);
1286
1112
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1287
1113
  },
1288
- /**
1289
- * Withdraw policy by customer
1290
- * @summary Withdraw policy by customer
1291
- * @param {string} policyCode The policy code
1292
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
1293
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1294
- * @param {*} [options] Override http request option.
1295
- * @throws {RequiredError}
1296
- */
1297
- async withdrawCustomerPolicy(policyCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WithdrawCustomerPolicyResponseClass>> {
1298
- const localVarAxiosArgs = await localVarAxiosParamCreator.withdrawCustomerPolicy(policyCode, customerCode, authorization, options);
1299
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1300
- },
1301
1114
  }
1302
1115
  };
1303
1116
 
@@ -1308,6 +1121,18 @@ export const CustomersApiFp = function(configuration?: Configuration) {
1308
1121
  export const CustomersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1309
1122
  const localVarFp = CustomersApiFp(configuration)
1310
1123
  return {
1124
+ /**
1125
+ * Request to complete a payment change by customer.
1126
+ * @summary Request payment setup complete by customer
1127
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
1128
+ * @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
1129
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1130
+ * @param {*} [options] Override http request option.
1131
+ * @throws {RequiredError}
1132
+ */
1133
+ completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass> {
1134
+ return localVarFp.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, options).then((request) => request(axios, basePath));
1135
+ },
1311
1136
  /**
1312
1137
  * 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.
1313
1138
  * @summary Register a customer after invite
@@ -1329,9 +1154,9 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
1329
1154
  return localVarFp.forgotPassword(forgotPasswordRequestDto, options).then((request) => request(axios, basePath));
1330
1155
  },
1331
1156
  /**
1332
- * Get customer details
1157
+ * Get customer details.
1333
1158
  * @summary Get customer details
1334
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
1159
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
1335
1160
  * @param {string} [expand] Fields to expand response by - [account]
1336
1161
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1337
1162
  * @param {*} [options] Override http request option.
@@ -1341,10 +1166,10 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
1341
1166
  return localVarFp.getCustomer(customerCode, expand, authorization, options).then((request) => request(axios, basePath));
1342
1167
  },
1343
1168
  /**
1344
- * Get a presigned download url for document
1169
+ * Get a presigned download url for document.
1345
1170
  * @summary Get a presigned download url for document
1346
- * @param {string} documentCode The document code
1347
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
1171
+ * @param {string} documentCode The document code.
1172
+ * @param {string} customerCode
1348
1173
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1349
1174
  * @param {*} [options] Override http request option.
1350
1175
  * @throws {RequiredError}
@@ -1352,19 +1177,6 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
1352
1177
  getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, authorization?: string, options?: any): AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass> {
1353
1178
  return localVarFp.getCustomerDocumentDownloadUrl(documentCode, customerCode, authorization, options).then((request) => request(axios, basePath));
1354
1179
  },
1355
- /**
1356
- * Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
1357
- * @summary Get policy details
1358
- * @param {string} policyCode The policy code
1359
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
1360
- * @param {string} [expand] Fields to expand response by - [versions, premiumItems]
1361
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1362
- * @param {*} [options] Override http request option.
1363
- * @throws {RequiredError}
1364
- */
1365
- getPolicy(policyCode: string, customerCode: string, expand?: string, authorization?: string, options?: any): AxiosPromise<GetPolicyResponseClass> {
1366
- return localVarFp.getPolicy(policyCode, customerCode, expand, authorization, options).then((request) => request(axios, basePath));
1367
- },
1368
1180
  /**
1369
1181
  * Start auth process to get new access token, refresh token after successful login.
1370
1182
  * @summary Initiate auth by customer
@@ -1375,11 +1187,22 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
1375
1187
  initiateAuth(initiateAuthRequestDto: InitiateAuthRequestDto, options?: any): AxiosPromise<InitiateAuthResponseClass> {
1376
1188
  return localVarFp.initiateAuth(initiateAuthRequestDto, options).then((request) => request(axios, basePath));
1377
1189
  },
1190
+ /**
1191
+ * Request to initiate a payment change by customer.
1192
+ * @summary Request payment setup initiation by customer
1193
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
1194
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1195
+ * @param {*} [options] Override http request option.
1196
+ * @throws {RequiredError}
1197
+ */
1198
+ initiatePaymentSetup(customerCode: string, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass> {
1199
+ return localVarFp.initiatePaymentSetup(customerCode, authorization, options).then((request) => request(axios, basePath));
1200
+ },
1378
1201
  /**
1379
1202
  * 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.
1380
1203
  * @summary Invite a customer by self
1381
1204
  * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
1382
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
1205
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
1383
1206
  * @param {*} [options] Override http request option.
1384
1207
  * @throws {RequiredError}
1385
1208
  */
@@ -1390,7 +1213,7 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
1390
1213
  * 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.
1391
1214
  * @summary Invite a customer by tenant
1392
1215
  * @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
1393
- * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
1216
+ * @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
1394
1217
  * @param {*} [options] Override http request option.
1395
1218
  * @throws {RequiredError}
1396
1219
  */
@@ -1398,9 +1221,9 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
1398
1221
  return localVarFp.inviteByTenant(inviteByCustomerRequestDto, authorization, options).then((request) => request(axios, basePath));
1399
1222
  },
1400
1223
  /**
1401
- * List all the documents of a customer
1224
+ * List all the documents of a customer.
1402
1225
  * @summary List documents of a customer
1403
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
1226
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
1404
1227
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
1405
1228
  * @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.
1406
1229
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -1415,9 +1238,9 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
1415
1238
  return localVarFp.listDocuments(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then((request) => request(axios, basePath));
1416
1239
  },
1417
1240
  /**
1418
- * List all the invoices of a customer
1241
+ * List all the invoices of a customer.
1419
1242
  * @summary List invoices of a customer
1420
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
1243
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
1421
1244
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
1422
1245
  * @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.
1423
1246
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -1431,23 +1254,6 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
1431
1254
  listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListInvoicesResponseClass> {
1432
1255
  return localVarFp.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then((request) => request(axios, basePath));
1433
1256
  },
1434
- /**
1435
- * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
1436
- * @summary List policies of a customer
1437
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
1438
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
1439
- * @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.
1440
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
1441
- * @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.
1442
- * @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.
1443
- * @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.
1444
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1445
- * @param {*} [options] Override http request option.
1446
- * @throws {RequiredError}
1447
- */
1448
- listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass> {
1449
- return localVarFp.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then((request) => request(axios, basePath));
1450
- },
1451
1257
  /**
1452
1258
  * Get new access token, new refresh token.
1453
1259
  * @summary Refresh token by customer
@@ -1459,19 +1265,6 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
1459
1265
  refreshToken(refreshTokenDto: RefreshTokenDto, cookie?: string, options?: any): AxiosPromise<void> {
1460
1266
  return localVarFp.refreshToken(refreshTokenDto, cookie, options).then((request) => request(axios, basePath));
1461
1267
  },
1462
- /**
1463
- * Request to update an existing policy by customer
1464
- * @summary Request policy update by customer
1465
- * @param {string} policyCode The policy code
1466
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
1467
- * @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
1468
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1469
- * @param {*} [options] Override http request option.
1470
- * @throws {RequiredError}
1471
- */
1472
- requestPolicyUpdate(policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: any): AxiosPromise<RequestPolicyUpdateResponseClass> {
1473
- return localVarFp.requestPolicyUpdate(policyCode, customerCode, requestPolicyUpdateRequestDto, authorization, options).then((request) => request(axios, basePath));
1474
- },
1475
1268
  /**
1476
1269
  * Change customer\'s password using the token provided by the reset password endpoint.
1477
1270
  * @summary Change password by customer
@@ -1493,29 +1286,26 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
1493
1286
  return localVarFp.respondToAuthChallenge(respondToAuthChallengeRequestDto, options).then((request) => request(axios, basePath));
1494
1287
  },
1495
1288
  /**
1496
- * Request to terminate an existing policy by customer
1497
- * @summary Terminate a policy by customer
1498
- * @param {string} policyCode The policy code
1499
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
1500
- * @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
1289
+ * Update customer details like phone, email, names, addresses etc.
1290
+ * @summary Update customer details
1291
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
1292
+ * @param {UpdateCustomerRequestDto} updateCustomerRequestDto
1501
1293
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1502
1294
  * @param {*} [options] Override http request option.
1503
1295
  * @throws {RequiredError}
1504
1296
  */
1505
- terminateCustomerPolicy(policyCode: string, customerCode: string, terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<TerminateCustomerPolicyResponseClass> {
1506
- return localVarFp.terminateCustomerPolicy(policyCode, customerCode, terminateCustomerPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1297
+ updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomerResponseClass> {
1298
+ return localVarFp.updateCustomer(customerCode, updateCustomerRequestDto, authorization, options).then((request) => request(axios, basePath));
1507
1299
  },
1508
1300
  /**
1509
- * Update customer details like phone, email, names, addresses etc
1510
- * @summary Update customer details
1511
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
1512
- * @param {UpdateCustomerRequestDto} updateCustomerRequestDto
1513
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1301
+ * API to upload and attach documents to an account.
1302
+ * @summary Upload account documents
1303
+ * @param {string} customerCode
1514
1304
  * @param {*} [options] Override http request option.
1515
1305
  * @throws {RequiredError}
1516
1306
  */
1517
- updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomerResponseClass> {
1518
- return localVarFp.updateCustomer(customerCode, updateCustomerRequestDto, authorization, options).then((request) => request(axios, basePath));
1307
+ uploadAccountDocuments(customerCode: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
1308
+ return localVarFp.uploadAccountDocuments(customerCode, options).then((request) => request(axios, basePath));
1519
1309
  },
1520
1310
  /**
1521
1311
  * Verify the invite sent to the customer via email.
@@ -1537,21 +1327,37 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
1537
1327
  verifyResetPasswordToken(resetToken: string, options?: any): AxiosPromise<void> {
1538
1328
  return localVarFp.verifyResetPasswordToken(resetToken, options).then((request) => request(axios, basePath));
1539
1329
  },
1540
- /**
1541
- * Withdraw policy by customer
1542
- * @summary Withdraw policy by customer
1543
- * @param {string} policyCode The policy code
1544
- * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer
1545
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1546
- * @param {*} [options] Override http request option.
1547
- * @throws {RequiredError}
1548
- */
1549
- withdrawCustomerPolicy(policyCode: string, customerCode: string, authorization?: string, options?: any): AxiosPromise<WithdrawCustomerPolicyResponseClass> {
1550
- return localVarFp.withdrawCustomerPolicy(policyCode, customerCode, authorization, options).then((request) => request(axios, basePath));
1551
- },
1552
1330
  };
1553
1331
  };
1554
1332
 
1333
+ /**
1334
+ * Request parameters for completePaymentSetup operation in CustomersApi.
1335
+ * @export
1336
+ * @interface CustomersApiCompletePaymentSetupRequest
1337
+ */
1338
+ export interface CustomersApiCompletePaymentSetupRequest {
1339
+ /**
1340
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
1341
+ * @type {string}
1342
+ * @memberof CustomersApiCompletePaymentSetup
1343
+ */
1344
+ readonly customerCode: string
1345
+
1346
+ /**
1347
+ *
1348
+ * @type {CompletePaymentSetupPspRequest}
1349
+ * @memberof CustomersApiCompletePaymentSetup
1350
+ */
1351
+ readonly completePaymentSetupPspRequest: CompletePaymentSetupPspRequest
1352
+
1353
+ /**
1354
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1355
+ * @type {string}
1356
+ * @memberof CustomersApiCompletePaymentSetup
1357
+ */
1358
+ readonly authorization?: string
1359
+ }
1360
+
1555
1361
  /**
1556
1362
  * Request parameters for createCustomer operation in CustomersApi.
1557
1363
  * @export
@@ -1587,7 +1393,7 @@ export interface CustomersApiForgotPasswordRequest {
1587
1393
  */
1588
1394
  export interface CustomersApiGetCustomerRequest {
1589
1395
  /**
1590
- * The customer code or \&quot;me\&quot; for the currently logged in customer
1396
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
1591
1397
  * @type {string}
1592
1398
  * @memberof CustomersApiGetCustomer
1593
1399
  */
@@ -1615,14 +1421,14 @@ export interface CustomersApiGetCustomerRequest {
1615
1421
  */
1616
1422
  export interface CustomersApiGetCustomerDocumentDownloadUrlRequest {
1617
1423
  /**
1618
- * The document code
1424
+ * The document code.
1619
1425
  * @type {string}
1620
1426
  * @memberof CustomersApiGetCustomerDocumentDownloadUrl
1621
1427
  */
1622
1428
  readonly documentCode: string
1623
1429
 
1624
1430
  /**
1625
- * The customer code or \&quot;me\&quot; for the currently logged in customer
1431
+ *
1626
1432
  * @type {string}
1627
1433
  * @memberof CustomersApiGetCustomerDocumentDownloadUrl
1628
1434
  */
@@ -1637,54 +1443,40 @@ export interface CustomersApiGetCustomerDocumentDownloadUrlRequest {
1637
1443
  }
1638
1444
 
1639
1445
  /**
1640
- * Request parameters for getPolicy operation in CustomersApi.
1446
+ * Request parameters for initiateAuth operation in CustomersApi.
1641
1447
  * @export
1642
- * @interface CustomersApiGetPolicyRequest
1448
+ * @interface CustomersApiInitiateAuthRequest
1643
1449
  */
1644
- export interface CustomersApiGetPolicyRequest {
1450
+ export interface CustomersApiInitiateAuthRequest {
1645
1451
  /**
1646
- * The policy code
1647
- * @type {string}
1648
- * @memberof CustomersApiGetPolicy
1452
+ *
1453
+ * @type {InitiateAuthRequestDto}
1454
+ * @memberof CustomersApiInitiateAuth
1649
1455
  */
1650
- readonly policyCode: string
1456
+ readonly initiateAuthRequestDto: InitiateAuthRequestDto
1457
+ }
1651
1458
 
1459
+ /**
1460
+ * Request parameters for initiatePaymentSetup operation in CustomersApi.
1461
+ * @export
1462
+ * @interface CustomersApiInitiatePaymentSetupRequest
1463
+ */
1464
+ export interface CustomersApiInitiatePaymentSetupRequest {
1652
1465
  /**
1653
- * The customer code or \&quot;me\&quot; for the currently logged in customer
1466
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
1654
1467
  * @type {string}
1655
- * @memberof CustomersApiGetPolicy
1468
+ * @memberof CustomersApiInitiatePaymentSetup
1656
1469
  */
1657
1470
  readonly customerCode: string
1658
1471
 
1659
- /**
1660
- * Fields to expand response by - [versions, premiumItems]
1661
- * @type {string}
1662
- * @memberof CustomersApiGetPolicy
1663
- */
1664
- readonly expand?: string
1665
-
1666
1472
  /**
1667
1473
  * Bearer Token: provided by the login endpoint under the name accessToken.
1668
1474
  * @type {string}
1669
- * @memberof CustomersApiGetPolicy
1475
+ * @memberof CustomersApiInitiatePaymentSetup
1670
1476
  */
1671
1477
  readonly authorization?: string
1672
1478
  }
1673
1479
 
1674
- /**
1675
- * Request parameters for initiateAuth operation in CustomersApi.
1676
- * @export
1677
- * @interface CustomersApiInitiateAuthRequest
1678
- */
1679
- export interface CustomersApiInitiateAuthRequest {
1680
- /**
1681
- *
1682
- * @type {InitiateAuthRequestDto}
1683
- * @memberof CustomersApiInitiateAuth
1684
- */
1685
- readonly initiateAuthRequestDto: InitiateAuthRequestDto
1686
- }
1687
-
1688
1480
  /**
1689
1481
  * Request parameters for inviteByCustomer operation in CustomersApi.
1690
1482
  * @export
@@ -1699,7 +1491,7 @@ export interface CustomersApiInviteByCustomerRequest {
1699
1491
  readonly inviteByCustomerRequestDto: InviteByCustomerRequestDto
1700
1492
 
1701
1493
  /**
1702
- * Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
1494
+ * Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
1703
1495
  * @type {string}
1704
1496
  * @memberof CustomersApiInviteByCustomer
1705
1497
  */
@@ -1720,7 +1512,7 @@ export interface CustomersApiInviteByTenantRequest {
1720
1512
  readonly inviteByCustomerRequestDto: InviteByCustomerRequestDto
1721
1513
 
1722
1514
  /**
1723
- * Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken
1515
+ * Bearer Token: provided by the Emil Insurance Suite\&#39;s Auth login endpoint under the name accessToken.
1724
1516
  * @type {string}
1725
1517
  * @memberof CustomersApiInviteByTenant
1726
1518
  */
@@ -1734,7 +1526,7 @@ export interface CustomersApiInviteByTenantRequest {
1734
1526
  */
1735
1527
  export interface CustomersApiListDocumentsRequest {
1736
1528
  /**
1737
- * The customer code or \&quot;me\&quot; for the currently logged in customer
1529
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
1738
1530
  * @type {string}
1739
1531
  * @memberof CustomersApiListDocuments
1740
1532
  */
@@ -1797,7 +1589,7 @@ export interface CustomersApiListDocumentsRequest {
1797
1589
  */
1798
1590
  export interface CustomersApiListInvoicesRequest {
1799
1591
  /**
1800
- * The customer code or \&quot;me\&quot; for the currently logged in customer
1592
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
1801
1593
  * @type {string}
1802
1594
  * @memberof CustomersApiListInvoices
1803
1595
  */
@@ -1853,69 +1645,6 @@ export interface CustomersApiListInvoicesRequest {
1853
1645
  readonly authorization?: string
1854
1646
  }
1855
1647
 
1856
- /**
1857
- * Request parameters for listPolicies operation in CustomersApi.
1858
- * @export
1859
- * @interface CustomersApiListPoliciesRequest
1860
- */
1861
- export interface CustomersApiListPoliciesRequest {
1862
- /**
1863
- * The customer code or \&quot;me\&quot; for the currently logged in customer
1864
- * @type {string}
1865
- * @memberof CustomersApiListPolicies
1866
- */
1867
- readonly customerCode: string
1868
-
1869
- /**
1870
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
1871
- * @type {any}
1872
- * @memberof CustomersApiListPolicies
1873
- */
1874
- readonly pageSize?: any
1875
-
1876
- /**
1877
- * 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.
1878
- * @type {any}
1879
- * @memberof CustomersApiListPolicies
1880
- */
1881
- readonly pageToken?: any
1882
-
1883
- /**
1884
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
1885
- * @type {any}
1886
- * @memberof CustomersApiListPolicies
1887
- */
1888
- readonly filter?: any
1889
-
1890
- /**
1891
- * 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.
1892
- * @type {any}
1893
- * @memberof CustomersApiListPolicies
1894
- */
1895
- readonly search?: any
1896
-
1897
- /**
1898
- * 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.
1899
- * @type {any}
1900
- * @memberof CustomersApiListPolicies
1901
- */
1902
- readonly order?: any
1903
-
1904
- /**
1905
- * 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.
1906
- * @type {any}
1907
- * @memberof CustomersApiListPolicies
1908
- */
1909
- readonly expand?: any
1910
-
1911
- /**
1912
- * Bearer Token: provided by the login endpoint under the name accessToken.
1913
- * @type {string}
1914
- * @memberof CustomersApiListPolicies
1915
- */
1916
- readonly authorization?: string
1917
- }
1918
-
1919
1648
  /**
1920
1649
  * Request parameters for refreshToken operation in CustomersApi.
1921
1650
  * @export
@@ -1937,41 +1666,6 @@ export interface CustomersApiRefreshTokenRequest {
1937
1666
  readonly cookie?: string
1938
1667
  }
1939
1668
 
1940
- /**
1941
- * Request parameters for requestPolicyUpdate operation in CustomersApi.
1942
- * @export
1943
- * @interface CustomersApiRequestPolicyUpdateRequest
1944
- */
1945
- export interface CustomersApiRequestPolicyUpdateRequest {
1946
- /**
1947
- * The policy code
1948
- * @type {string}
1949
- * @memberof CustomersApiRequestPolicyUpdate
1950
- */
1951
- readonly policyCode: string
1952
-
1953
- /**
1954
- * The customer code or \&quot;me\&quot; for the currently logged in customer
1955
- * @type {string}
1956
- * @memberof CustomersApiRequestPolicyUpdate
1957
- */
1958
- readonly customerCode: string
1959
-
1960
- /**
1961
- *
1962
- * @type {RequestPolicyUpdateRequestDto}
1963
- * @memberof CustomersApiRequestPolicyUpdate
1964
- */
1965
- readonly requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto
1966
-
1967
- /**
1968
- * Bearer Token: provided by the login endpoint under the name accessToken.
1969
- * @type {string}
1970
- * @memberof CustomersApiRequestPolicyUpdate
1971
- */
1972
- readonly authorization?: string
1973
- }
1974
-
1975
1669
  /**
1976
1670
  * Request parameters for resetPassword operation in CustomersApi.
1977
1671
  * @export
@@ -2001,66 +1695,45 @@ export interface CustomersApiRespondToAuthChallengeRequest {
2001
1695
  }
2002
1696
 
2003
1697
  /**
2004
- * Request parameters for terminateCustomerPolicy operation in CustomersApi.
1698
+ * Request parameters for updateCustomer operation in CustomersApi.
2005
1699
  * @export
2006
- * @interface CustomersApiTerminateCustomerPolicyRequest
1700
+ * @interface CustomersApiUpdateCustomerRequest
2007
1701
  */
2008
- export interface CustomersApiTerminateCustomerPolicyRequest {
2009
- /**
2010
- * The policy code
2011
- * @type {string}
2012
- * @memberof CustomersApiTerminateCustomerPolicy
2013
- */
2014
- readonly policyCode: string
2015
-
1702
+ export interface CustomersApiUpdateCustomerRequest {
2016
1703
  /**
2017
- * The customer code or \&quot;me\&quot; for the currently logged in customer
1704
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
2018
1705
  * @type {string}
2019
- * @memberof CustomersApiTerminateCustomerPolicy
1706
+ * @memberof CustomersApiUpdateCustomer
2020
1707
  */
2021
1708
  readonly customerCode: string
2022
1709
 
2023
1710
  /**
2024
1711
  *
2025
- * @type {TerminateCustomerPolicyRequestDto}
2026
- * @memberof CustomersApiTerminateCustomerPolicy
1712
+ * @type {UpdateCustomerRequestDto}
1713
+ * @memberof CustomersApiUpdateCustomer
2027
1714
  */
2028
- readonly terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto
1715
+ readonly updateCustomerRequestDto: UpdateCustomerRequestDto
2029
1716
 
2030
1717
  /**
2031
1718
  * Bearer Token: provided by the login endpoint under the name accessToken.
2032
1719
  * @type {string}
2033
- * @memberof CustomersApiTerminateCustomerPolicy
1720
+ * @memberof CustomersApiUpdateCustomer
2034
1721
  */
2035
1722
  readonly authorization?: string
2036
1723
  }
2037
1724
 
2038
1725
  /**
2039
- * Request parameters for updateCustomer operation in CustomersApi.
1726
+ * Request parameters for uploadAccountDocuments operation in CustomersApi.
2040
1727
  * @export
2041
- * @interface CustomersApiUpdateCustomerRequest
1728
+ * @interface CustomersApiUploadAccountDocumentsRequest
2042
1729
  */
2043
- export interface CustomersApiUpdateCustomerRequest {
2044
- /**
2045
- * The customer code or \&quot;me\&quot; for the currently logged in customer
2046
- * @type {string}
2047
- * @memberof CustomersApiUpdateCustomer
2048
- */
2049
- readonly customerCode: string
2050
-
1730
+ export interface CustomersApiUploadAccountDocumentsRequest {
2051
1731
  /**
2052
1732
  *
2053
- * @type {UpdateCustomerRequestDto}
2054
- * @memberof CustomersApiUpdateCustomer
2055
- */
2056
- readonly updateCustomerRequestDto: UpdateCustomerRequestDto
2057
-
2058
- /**
2059
- * Bearer Token: provided by the login endpoint under the name accessToken.
2060
1733
  * @type {string}
2061
- * @memberof CustomersApiUpdateCustomer
1734
+ * @memberof CustomersApiUploadAccountDocuments
2062
1735
  */
2063
- readonly authorization?: string
1736
+ readonly customerCode: string
2064
1737
  }
2065
1738
 
2066
1739
  /**
@@ -2091,34 +1764,6 @@ export interface CustomersApiVerifyResetPasswordTokenRequest {
2091
1764
  readonly resetToken: string
2092
1765
  }
2093
1766
 
2094
- /**
2095
- * Request parameters for withdrawCustomerPolicy operation in CustomersApi.
2096
- * @export
2097
- * @interface CustomersApiWithdrawCustomerPolicyRequest
2098
- */
2099
- export interface CustomersApiWithdrawCustomerPolicyRequest {
2100
- /**
2101
- * The policy code
2102
- * @type {string}
2103
- * @memberof CustomersApiWithdrawCustomerPolicy
2104
- */
2105
- readonly policyCode: string
2106
-
2107
- /**
2108
- * The customer code or \&quot;me\&quot; for the currently logged in customer
2109
- * @type {string}
2110
- * @memberof CustomersApiWithdrawCustomerPolicy
2111
- */
2112
- readonly customerCode: string
2113
-
2114
- /**
2115
- * Bearer Token: provided by the login endpoint under the name accessToken.
2116
- * @type {string}
2117
- * @memberof CustomersApiWithdrawCustomerPolicy
2118
- */
2119
- readonly authorization?: string
2120
- }
2121
-
2122
1767
  /**
2123
1768
  * CustomersApi - object-oriented interface
2124
1769
  * @export
@@ -2126,6 +1771,18 @@ export interface CustomersApiWithdrawCustomerPolicyRequest {
2126
1771
  * @extends {BaseAPI}
2127
1772
  */
2128
1773
  export class CustomersApi extends BaseAPI {
1774
+ /**
1775
+ * Request to complete a payment change by customer.
1776
+ * @summary Request payment setup complete by customer
1777
+ * @param {CustomersApiCompletePaymentSetupRequest} requestParameters Request parameters.
1778
+ * @param {*} [options] Override http request option.
1779
+ * @throws {RequiredError}
1780
+ * @memberof CustomersApi
1781
+ */
1782
+ public completePaymentSetup(requestParameters: CustomersApiCompletePaymentSetupRequest, options?: AxiosRequestConfig) {
1783
+ return CustomersApiFp(this.configuration).completePaymentSetup(requestParameters.customerCode, requestParameters.completePaymentSetupPspRequest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1784
+ }
1785
+
2129
1786
  /**
2130
1787
  * 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.
2131
1788
  * @summary Register a customer after invite
@@ -2151,7 +1808,7 @@ export class CustomersApi extends BaseAPI {
2151
1808
  }
2152
1809
 
2153
1810
  /**
2154
- * Get customer details
1811
+ * Get customer details.
2155
1812
  * @summary Get customer details
2156
1813
  * @param {CustomersApiGetCustomerRequest} requestParameters Request parameters.
2157
1814
  * @param {*} [options] Override http request option.
@@ -2163,7 +1820,7 @@ export class CustomersApi extends BaseAPI {
2163
1820
  }
2164
1821
 
2165
1822
  /**
2166
- * Get a presigned download url for document
1823
+ * Get a presigned download url for document.
2167
1824
  * @summary Get a presigned download url for document
2168
1825
  * @param {CustomersApiGetCustomerDocumentDownloadUrlRequest} requestParameters Request parameters.
2169
1826
  * @param {*} [options] Override http request option.
@@ -2175,27 +1832,27 @@ export class CustomersApi extends BaseAPI {
2175
1832
  }
2176
1833
 
2177
1834
  /**
2178
- * Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
2179
- * @summary Get policy details
2180
- * @param {CustomersApiGetPolicyRequest} requestParameters Request parameters.
1835
+ * Start auth process to get new access token, refresh token after successful login.
1836
+ * @summary Initiate auth by customer
1837
+ * @param {CustomersApiInitiateAuthRequest} requestParameters Request parameters.
2181
1838
  * @param {*} [options] Override http request option.
2182
1839
  * @throws {RequiredError}
2183
1840
  * @memberof CustomersApi
2184
1841
  */
2185
- public getPolicy(requestParameters: CustomersApiGetPolicyRequest, options?: AxiosRequestConfig) {
2186
- return CustomersApiFp(this.configuration).getPolicy(requestParameters.policyCode, requestParameters.customerCode, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1842
+ public initiateAuth(requestParameters: CustomersApiInitiateAuthRequest, options?: AxiosRequestConfig) {
1843
+ return CustomersApiFp(this.configuration).initiateAuth(requestParameters.initiateAuthRequestDto, options).then((request) => request(this.axios, this.basePath));
2187
1844
  }
2188
1845
 
2189
1846
  /**
2190
- * Start auth process to get new access token, refresh token after successful login.
2191
- * @summary Initiate auth by customer
2192
- * @param {CustomersApiInitiateAuthRequest} requestParameters Request parameters.
1847
+ * Request to initiate a payment change by customer.
1848
+ * @summary Request payment setup initiation by customer
1849
+ * @param {CustomersApiInitiatePaymentSetupRequest} requestParameters Request parameters.
2193
1850
  * @param {*} [options] Override http request option.
2194
1851
  * @throws {RequiredError}
2195
1852
  * @memberof CustomersApi
2196
1853
  */
2197
- public initiateAuth(requestParameters: CustomersApiInitiateAuthRequest, options?: AxiosRequestConfig) {
2198
- return CustomersApiFp(this.configuration).initiateAuth(requestParameters.initiateAuthRequestDto, options).then((request) => request(this.axios, this.basePath));
1854
+ public initiatePaymentSetup(requestParameters: CustomersApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig) {
1855
+ return CustomersApiFp(this.configuration).initiatePaymentSetup(requestParameters.customerCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2199
1856
  }
2200
1857
 
2201
1858
  /**
@@ -2223,7 +1880,7 @@ export class CustomersApi extends BaseAPI {
2223
1880
  }
2224
1881
 
2225
1882
  /**
2226
- * List all the documents of a customer
1883
+ * List all the documents of a customer.
2227
1884
  * @summary List documents of a customer
2228
1885
  * @param {CustomersApiListDocumentsRequest} requestParameters Request parameters.
2229
1886
  * @param {*} [options] Override http request option.
@@ -2235,7 +1892,7 @@ export class CustomersApi extends BaseAPI {
2235
1892
  }
2236
1893
 
2237
1894
  /**
2238
- * List all the invoices of a customer
1895
+ * List all the invoices of a customer.
2239
1896
  * @summary List invoices of a customer
2240
1897
  * @param {CustomersApiListInvoicesRequest} requestParameters Request parameters.
2241
1898
  * @param {*} [options] Override http request option.
@@ -2246,18 +1903,6 @@ export class CustomersApi extends BaseAPI {
2246
1903
  return CustomersApiFp(this.configuration).listInvoices(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2247
1904
  }
2248
1905
 
2249
- /**
2250
- * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
2251
- * @summary List policies of a customer
2252
- * @param {CustomersApiListPoliciesRequest} requestParameters Request parameters.
2253
- * @param {*} [options] Override http request option.
2254
- * @throws {RequiredError}
2255
- * @memberof CustomersApi
2256
- */
2257
- public listPolicies(requestParameters: CustomersApiListPoliciesRequest, options?: AxiosRequestConfig) {
2258
- return CustomersApiFp(this.configuration).listPolicies(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2259
- }
2260
-
2261
1906
  /**
2262
1907
  * Get new access token, new refresh token.
2263
1908
  * @summary Refresh token by customer
@@ -2270,18 +1915,6 @@ export class CustomersApi extends BaseAPI {
2270
1915
  return CustomersApiFp(this.configuration).refreshToken(requestParameters.refreshTokenDto, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath));
2271
1916
  }
2272
1917
 
2273
- /**
2274
- * Request to update an existing policy by customer
2275
- * @summary Request policy update by customer
2276
- * @param {CustomersApiRequestPolicyUpdateRequest} requestParameters Request parameters.
2277
- * @param {*} [options] Override http request option.
2278
- * @throws {RequiredError}
2279
- * @memberof CustomersApi
2280
- */
2281
- public requestPolicyUpdate(requestParameters: CustomersApiRequestPolicyUpdateRequest, options?: AxiosRequestConfig) {
2282
- return CustomersApiFp(this.configuration).requestPolicyUpdate(requestParameters.policyCode, requestParameters.customerCode, requestParameters.requestPolicyUpdateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2283
- }
2284
-
2285
1918
  /**
2286
1919
  * Change customer\'s password using the token provided by the reset password endpoint.
2287
1920
  * @summary Change password by customer
@@ -2307,27 +1940,27 @@ export class CustomersApi extends BaseAPI {
2307
1940
  }
2308
1941
 
2309
1942
  /**
2310
- * Request to terminate an existing policy by customer
2311
- * @summary Terminate a policy by customer
2312
- * @param {CustomersApiTerminateCustomerPolicyRequest} requestParameters Request parameters.
1943
+ * Update customer details like phone, email, names, addresses etc.
1944
+ * @summary Update customer details
1945
+ * @param {CustomersApiUpdateCustomerRequest} requestParameters Request parameters.
2313
1946
  * @param {*} [options] Override http request option.
2314
1947
  * @throws {RequiredError}
2315
1948
  * @memberof CustomersApi
2316
1949
  */
2317
- public terminateCustomerPolicy(requestParameters: CustomersApiTerminateCustomerPolicyRequest, options?: AxiosRequestConfig) {
2318
- return CustomersApiFp(this.configuration).terminateCustomerPolicy(requestParameters.policyCode, requestParameters.customerCode, requestParameters.terminateCustomerPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1950
+ public updateCustomer(requestParameters: CustomersApiUpdateCustomerRequest, options?: AxiosRequestConfig) {
1951
+ return CustomersApiFp(this.configuration).updateCustomer(requestParameters.customerCode, requestParameters.updateCustomerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2319
1952
  }
2320
1953
 
2321
1954
  /**
2322
- * Update customer details like phone, email, names, addresses etc
2323
- * @summary Update customer details
2324
- * @param {CustomersApiUpdateCustomerRequest} requestParameters Request parameters.
1955
+ * API to upload and attach documents to an account.
1956
+ * @summary Upload account documents
1957
+ * @param {CustomersApiUploadAccountDocumentsRequest} requestParameters Request parameters.
2325
1958
  * @param {*} [options] Override http request option.
2326
1959
  * @throws {RequiredError}
2327
1960
  * @memberof CustomersApi
2328
1961
  */
2329
- public updateCustomer(requestParameters: CustomersApiUpdateCustomerRequest, options?: AxiosRequestConfig) {
2330
- return CustomersApiFp(this.configuration).updateCustomer(requestParameters.customerCode, requestParameters.updateCustomerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1962
+ public uploadAccountDocuments(requestParameters: CustomersApiUploadAccountDocumentsRequest, options?: AxiosRequestConfig) {
1963
+ return CustomersApiFp(this.configuration).uploadAccountDocuments(requestParameters.customerCode, options).then((request) => request(this.axios, this.basePath));
2331
1964
  }
2332
1965
 
2333
1966
  /**
@@ -2353,16 +1986,4 @@ export class CustomersApi extends BaseAPI {
2353
1986
  public verifyResetPasswordToken(requestParameters: CustomersApiVerifyResetPasswordTokenRequest, options?: AxiosRequestConfig) {
2354
1987
  return CustomersApiFp(this.configuration).verifyResetPasswordToken(requestParameters.resetToken, options).then((request) => request(this.axios, this.basePath));
2355
1988
  }
2356
-
2357
- /**
2358
- * Withdraw policy by customer
2359
- * @summary Withdraw policy by customer
2360
- * @param {CustomersApiWithdrawCustomerPolicyRequest} requestParameters Request parameters.
2361
- * @param {*} [options] Override http request option.
2362
- * @throws {RequiredError}
2363
- * @memberof CustomersApi
2364
- */
2365
- public withdrawCustomerPolicy(requestParameters: CustomersApiWithdrawCustomerPolicyRequest, options?: AxiosRequestConfig) {
2366
- return CustomersApiFp(this.configuration).withdrawCustomerPolicy(requestParameters.policyCode, requestParameters.customerCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2367
- }
2368
1989
  }