@emilgroup/customer-sdk-node 1.6.1 → 1.9.0-beta.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 (201) hide show
  1. package/.openapi-generator/FILES +17 -0
  2. package/README.md +2 -2
  3. package/api/claims-api.ts +557 -0
  4. package/api/customers-api.ts +248 -712
  5. package/api/policies-api.ts +856 -0
  6. package/api.ts +5 -1
  7. package/base.ts +24 -32
  8. package/common.ts +2 -1
  9. package/configuration.ts +1 -1
  10. package/dist/api/claims-api.d.ts +327 -0
  11. package/dist/api/claims-api.js +508 -0
  12. package/dist/api/customers-api.d.ts +171 -448
  13. package/dist/api/customers-api.js +189 -508
  14. package/dist/api/policies-api.d.ts +505 -0
  15. package/dist/api/policies-api.js +714 -0
  16. package/dist/api.d.ts +3 -1
  17. package/dist/api.js +3 -1
  18. package/dist/base.d.ts +2 -3
  19. package/dist/base.js +20 -21
  20. package/dist/common.d.ts +1 -1
  21. package/dist/common.js +2 -2
  22. package/dist/configuration.d.ts +1 -1
  23. package/dist/configuration.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/models/account-class.d.ts +1 -1
  27. package/dist/models/account-class.js +1 -1
  28. package/dist/models/account-policy-class.d.ts +1 -1
  29. package/dist/models/account-policy-class.js +1 -1
  30. package/dist/models/authentication-result-class.d.ts +1 -1
  31. package/dist/models/authentication-result-class.js +1 -1
  32. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
  33. package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
  34. package/dist/models/complete-payment-setup-psp-request.d.ts +32 -0
  35. package/dist/models/complete-payment-setup-psp-request.js +15 -0
  36. package/dist/models/complete-payment-setup-response-class.d.ts +24 -0
  37. package/dist/models/complete-payment-setup-response-class.js +15 -0
  38. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
  39. package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
  40. package/dist/models/create-account-request-dto.d.ts +96 -0
  41. package/dist/models/create-account-request-dto.js +21 -0
  42. package/dist/models/create-customer-claim-request-dto.d.ts +108 -0
  43. package/dist/models/create-customer-claim-request-dto.js +15 -0
  44. package/dist/models/create-customer-request-dto.d.ts +8 -1
  45. package/dist/models/create-customer-request-dto.js +1 -1
  46. package/dist/models/create-customer-response-class.d.ts +1 -1
  47. package/dist/models/create-customer-response-class.js +1 -1
  48. package/dist/models/create-presigned-post-response-class.d.ts +30 -0
  49. package/dist/models/create-presigned-post-response-class.js +15 -0
  50. package/dist/models/customer-class.d.ts +8 -2
  51. package/dist/models/customer-class.js +1 -1
  52. package/dist/models/customer-document-class.d.ts +2 -2
  53. package/dist/models/customer-document-class.js +1 -1
  54. package/dist/models/forgot-password-request-dto.d.ts +1 -1
  55. package/dist/models/forgot-password-request-dto.js +1 -1
  56. package/dist/models/get-customer-document-download-url-response-class.d.ts +1 -1
  57. package/dist/models/get-customer-document-download-url-response-class.js +1 -1
  58. package/dist/models/get-customer-response-class.d.ts +1 -1
  59. package/dist/models/get-customer-response-class.js +1 -1
  60. package/dist/models/get-policy-response-class.d.ts +1 -1
  61. package/dist/models/get-policy-response-class.js +1 -1
  62. package/dist/models/index.d.ts +15 -0
  63. package/dist/models/index.js +15 -0
  64. package/dist/models/initiate-auth-request-dto.d.ts +1 -1
  65. package/dist/models/initiate-auth-request-dto.js +1 -1
  66. package/dist/models/initiate-auth-response-class.d.ts +1 -1
  67. package/dist/models/initiate-auth-response-class.js +1 -1
  68. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
  69. package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
  70. package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
  71. package/dist/models/initiate-payment-setup-response-class.js +15 -0
  72. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
  73. package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
  74. package/dist/models/invite-by-customer-request-dto.d.ts +1 -1
  75. package/dist/models/invite-by-customer-request-dto.js +1 -1
  76. package/dist/models/invite-by-customer-response-class.d.ts +1 -1
  77. package/dist/models/invite-by-customer-response-class.js +1 -1
  78. package/dist/models/invite-by-tenant-response-class.d.ts +1 -1
  79. package/dist/models/invite-by-tenant-response-class.js +1 -1
  80. package/dist/models/invite-class.d.ts +1 -1
  81. package/dist/models/invite-class.js +1 -1
  82. package/dist/models/invoice-class.d.ts +3 -3
  83. package/dist/models/invoice-class.js +1 -1
  84. package/dist/models/list-documents-response-class.d.ts +1 -1
  85. package/dist/models/list-documents-response-class.js +1 -1
  86. package/dist/models/list-invoices-response-class.d.ts +1 -1
  87. package/dist/models/list-invoices-response-class.js +1 -1
  88. package/dist/models/list-policies-response-class.d.ts +1 -1
  89. package/dist/models/list-policies-response-class.js +1 -1
  90. package/dist/models/policy-class.d.ts +14 -1
  91. package/dist/models/policy-class.js +1 -1
  92. package/dist/models/policy-object-class.d.ts +1 -1
  93. package/dist/models/policy-object-class.js +1 -1
  94. package/dist/models/policy-premium-class.d.ts +1 -1
  95. package/dist/models/policy-premium-class.js +1 -1
  96. package/dist/models/policy-premium-item-class.d.ts +1 -1
  97. package/dist/models/policy-premium-item-class.js +1 -1
  98. package/dist/models/policy-version-class.d.ts +1 -1
  99. package/dist/models/policy-version-class.js +1 -1
  100. package/dist/models/refresh-token-dto.d.ts +1 -1
  101. package/dist/models/refresh-token-dto.js +1 -1
  102. package/dist/models/request-policy-update-request-dto.d.ts +1 -1
  103. package/dist/models/request-policy-update-request-dto.js +1 -1
  104. package/dist/models/request-policy-update-response-class.d.ts +1 -1
  105. package/dist/models/request-policy-update-response-class.js +1 -1
  106. package/dist/models/reset-password-by-customer-request-dto.d.ts +1 -1
  107. package/dist/models/reset-password-by-customer-request-dto.js +1 -1
  108. package/dist/models/respond-to-auth-challenge-class.d.ts +1 -1
  109. package/dist/models/respond-to-auth-challenge-class.js +1 -1
  110. package/dist/models/respond-to-auth-challenge-request-dto.d.ts +1 -1
  111. package/dist/models/respond-to-auth-challenge-request-dto.js +1 -1
  112. package/dist/models/shared-customer-policy-object-request-dto.d.ts +1 -1
  113. package/dist/models/shared-customer-policy-object-request-dto.js +1 -1
  114. package/dist/models/shared-customer-product-class.d.ts +54 -0
  115. package/dist/models/shared-customer-product-class.js +15 -0
  116. package/dist/models/shared-invoice-item-class.d.ts +1 -1
  117. package/dist/models/shared-invoice-item-class.js +1 -1
  118. package/dist/models/terminate-customer-policy-request-dto.d.ts +1 -1
  119. package/dist/models/terminate-customer-policy-request-dto.js +1 -1
  120. package/dist/models/terminate-customer-policy-response-class.d.ts +1 -1
  121. package/dist/models/terminate-customer-policy-response-class.js +1 -1
  122. package/dist/models/timeslice-class.d.ts +1 -1
  123. package/dist/models/timeslice-class.js +1 -1
  124. package/dist/models/to-grpc-customer-product-class.d.ts +54 -0
  125. package/dist/models/to-grpc-customer-product-class.js +15 -0
  126. package/dist/models/update-account-request-dto.d.ts +2 -2
  127. package/dist/models/update-account-request-dto.js +1 -1
  128. package/dist/models/update-customer-claim-request-dto.d.ts +120 -0
  129. package/dist/models/update-customer-claim-request-dto.js +15 -0
  130. package/dist/models/update-customer-request-dto.d.ts +1 -1
  131. package/dist/models/update-customer-request-dto.js +1 -1
  132. package/dist/models/update-customer-response-class.d.ts +1 -1
  133. package/dist/models/update-customer-response-class.js +1 -1
  134. package/dist/models/upload-customer-claim-documents-request-dto.d.ts +36 -0
  135. package/dist/models/upload-customer-claim-documents-request-dto.js +15 -0
  136. package/dist/models/upload-customer-policy-documents-request-dto.d.ts +47 -0
  137. package/dist/models/upload-customer-policy-documents-request-dto.js +20 -0
  138. package/dist/models/verify-customer-invite-response-class.d.ts +1 -1
  139. package/dist/models/verify-customer-invite-response-class.js +1 -1
  140. package/dist/models/withdraw-customer-policy-response-class.d.ts +1 -1
  141. package/dist/models/withdraw-customer-policy-response-class.js +1 -1
  142. package/index.ts +1 -1
  143. package/models/account-class.ts +1 -1
  144. package/models/account-policy-class.ts +1 -1
  145. package/models/authentication-result-class.ts +1 -1
  146. package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
  147. package/models/complete-payment-setup-psp-request.ts +38 -0
  148. package/models/complete-payment-setup-response-class.ts +30 -0
  149. package/models/complete-stripe-payment-setup-request-dto.ts +66 -0
  150. package/models/create-account-request-dto.ts +105 -0
  151. package/models/create-customer-claim-request-dto.ts +114 -0
  152. package/models/create-customer-request-dto.ts +8 -1
  153. package/models/create-customer-response-class.ts +1 -1
  154. package/models/create-presigned-post-response-class.ts +36 -0
  155. package/models/customer-class.ts +8 -2
  156. package/models/customer-document-class.ts +1 -1
  157. package/models/forgot-password-request-dto.ts +1 -1
  158. package/models/get-customer-document-download-url-response-class.ts +1 -1
  159. package/models/get-customer-response-class.ts +1 -1
  160. package/models/get-policy-response-class.ts +1 -1
  161. package/models/index.ts +15 -0
  162. package/models/initiate-auth-request-dto.ts +1 -1
  163. package/models/initiate-auth-response-class.ts +1 -1
  164. package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
  165. package/models/initiate-payment-setup-response-class.ts +38 -0
  166. package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
  167. package/models/invite-by-customer-request-dto.ts +1 -1
  168. package/models/invite-by-customer-response-class.ts +1 -1
  169. package/models/invite-by-tenant-response-class.ts +1 -1
  170. package/models/invite-class.ts +1 -1
  171. package/models/invoice-class.ts +1 -1
  172. package/models/list-documents-response-class.ts +1 -1
  173. package/models/list-invoices-response-class.ts +1 -1
  174. package/models/list-policies-response-class.ts +1 -1
  175. package/models/policy-class.ts +14 -1
  176. package/models/policy-object-class.ts +1 -1
  177. package/models/policy-premium-class.ts +1 -1
  178. package/models/policy-premium-item-class.ts +1 -1
  179. package/models/policy-version-class.ts +1 -1
  180. package/models/refresh-token-dto.ts +1 -1
  181. package/models/request-policy-update-request-dto.ts +1 -1
  182. package/models/request-policy-update-response-class.ts +1 -1
  183. package/models/reset-password-by-customer-request-dto.ts +1 -1
  184. package/models/respond-to-auth-challenge-class.ts +1 -1
  185. package/models/respond-to-auth-challenge-request-dto.ts +1 -1
  186. package/models/shared-customer-policy-object-request-dto.ts +1 -1
  187. package/models/shared-customer-product-class.ts +60 -0
  188. package/models/shared-invoice-item-class.ts +1 -1
  189. package/models/terminate-customer-policy-request-dto.ts +1 -1
  190. package/models/terminate-customer-policy-response-class.ts +1 -1
  191. package/models/timeslice-class.ts +1 -1
  192. package/models/to-grpc-customer-product-class.ts +60 -0
  193. package/models/update-account-request-dto.ts +1 -1
  194. package/models/update-customer-claim-request-dto.ts +126 -0
  195. package/models/update-customer-request-dto.ts +1 -1
  196. package/models/update-customer-response-class.ts +1 -1
  197. package/models/upload-customer-claim-documents-request-dto.ts +42 -0
  198. package/models/upload-customer-policy-documents-request-dto.ts +56 -0
  199. package/models/verify-customer-invite-response-class.ts +1 -1
  200. package/models/withdraw-customer-policy-response-class.ts +1 -1
  201. package/package.json +2 -3
@@ -0,0 +1,505 @@
1
+ /**
2
+ * EMIL CustomerService
3
+ * The EMIL CustomerService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { CreatePresignedPostResponseClass } from '../models';
16
+ import { GetPolicyResponseClass } from '../models';
17
+ import { ListPoliciesResponseClass } from '../models';
18
+ import { RequestPolicyUpdateRequestDto } from '../models';
19
+ import { RequestPolicyUpdateResponseClass } from '../models';
20
+ import { TerminateCustomerPolicyRequestDto } from '../models';
21
+ import { TerminateCustomerPolicyResponseClass } from '../models';
22
+ import { UploadCustomerPolicyDocumentsRequestDto } from '../models';
23
+ import { WithdrawCustomerPolicyResponseClass } from '../models';
24
+ /**
25
+ * PoliciesApi - axios parameter creator
26
+ * @export
27
+ */
28
+ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuration) => {
29
+ /**
30
+ * Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
31
+ * @summary Get policy details
32
+ * @param {string} policyCode The code of the policy that the customer wants to fetch
33
+ * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
34
+ * @param {string} [expand] Fields to expand response by - [versions, premiumItems]
35
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ */
39
+ getPolicy: (policyCode: string, customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
40
+ /**
41
+ * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
42
+ * @summary List policies of a customer
43
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
44
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
45
+ * @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.
46
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
47
+ * @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.
48
+ * @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.
49
+ * @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.
50
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ listPolicies: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
55
+ /**
56
+ * Request to update an existing policy by customer.
57
+ * @summary Request policy update by customer
58
+ * @param {string} policyCode The code of the policy that the customer wants to update.
59
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
60
+ * @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
61
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ */
65
+ requestPolicyUpdate: (policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
+ /**
67
+ * Request to terminate an existing policy by customer.
68
+ * @summary Terminate a policy by customer
69
+ * @param {string} policyCode The code of the policy that the customer wants to terminate.
70
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
71
+ * @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
72
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ terminateCustomerPolicy: (policyCode: string, customerCode: string, terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
77
+ /**
78
+ * API to upload and attach documents to a policy.
79
+ * @summary Upload policy documents
80
+ * @param {string} customerCode
81
+ * @param {string} policyCode The policy code to identify a policy.
82
+ * @param {UploadCustomerPolicyDocumentsRequestDto} uploadCustomerPolicyDocumentsRequestDto
83
+ * @param {*} [options] Override http request option.
84
+ * @throws {RequiredError}
85
+ */
86
+ uploadCustomerPolicyDocuments: (customerCode: string, policyCode: string, uploadCustomerPolicyDocumentsRequestDto: UploadCustomerPolicyDocumentsRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
87
+ /**
88
+ * Withdraw policy by customer.
89
+ * @summary Withdraw policy by customer
90
+ * @param {string} policyCode The code of the policy that the customer wants to withdraw.
91
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
92
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ withdrawCustomerPolicy: (policyCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
97
+ };
98
+ /**
99
+ * PoliciesApi - functional programming interface
100
+ * @export
101
+ */
102
+ export declare const PoliciesApiFp: (configuration?: Configuration) => {
103
+ /**
104
+ * Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
105
+ * @summary Get policy details
106
+ * @param {string} policyCode The code of the policy that the customer wants to fetch
107
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
108
+ * @param {string} [expand] Fields to expand response by - [versions, premiumItems]
109
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ */
113
+ getPolicy(policyCode: string, customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>>;
114
+ /**
115
+ * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
116
+ * @summary List policies of a customer
117
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
118
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
119
+ * @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.
120
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
121
+ * @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.
122
+ * @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.
123
+ * @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.
124
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
125
+ * @param {*} [options] Override http request option.
126
+ * @throws {RequiredError}
127
+ */
128
+ 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>>;
129
+ /**
130
+ * Request to update an existing policy by customer.
131
+ * @summary Request policy update by customer
132
+ * @param {string} policyCode The code of the policy that the customer wants to update.
133
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
134
+ * @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
135
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ requestPolicyUpdate(policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPolicyUpdateResponseClass>>;
140
+ /**
141
+ * Request to terminate an existing policy by customer.
142
+ * @summary Terminate a policy by customer
143
+ * @param {string} policyCode The code of the policy that the customer wants to terminate.
144
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
145
+ * @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
146
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ terminateCustomerPolicy(policyCode: string, customerCode: string, terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerminateCustomerPolicyResponseClass>>;
151
+ /**
152
+ * API to upload and attach documents to a policy.
153
+ * @summary Upload policy documents
154
+ * @param {string} customerCode
155
+ * @param {string} policyCode The policy code to identify a policy.
156
+ * @param {UploadCustomerPolicyDocumentsRequestDto} uploadCustomerPolicyDocumentsRequestDto
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ uploadCustomerPolicyDocuments(customerCode: string, policyCode: string, uploadCustomerPolicyDocumentsRequestDto: UploadCustomerPolicyDocumentsRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
161
+ /**
162
+ * Withdraw policy by customer.
163
+ * @summary Withdraw policy by customer
164
+ * @param {string} policyCode The code of the policy that the customer wants to withdraw.
165
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
166
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
167
+ * @param {*} [options] Override http request option.
168
+ * @throws {RequiredError}
169
+ */
170
+ withdrawCustomerPolicy(policyCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WithdrawCustomerPolicyResponseClass>>;
171
+ };
172
+ /**
173
+ * PoliciesApi - factory interface
174
+ * @export
175
+ */
176
+ export declare const PoliciesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
177
+ /**
178
+ * Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
179
+ * @summary Get policy details
180
+ * @param {string} policyCode The code of the policy that the customer wants to fetch
181
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
182
+ * @param {string} [expand] Fields to expand response by - [versions, premiumItems]
183
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
184
+ * @param {*} [options] Override http request option.
185
+ * @throws {RequiredError}
186
+ */
187
+ getPolicy(policyCode: string, customerCode: string, expand?: string, authorization?: string, options?: any): AxiosPromise<GetPolicyResponseClass>;
188
+ /**
189
+ * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
190
+ * @summary List policies of a customer
191
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
192
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
193
+ * @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.
194
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
195
+ * @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.
196
+ * @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.
197
+ * @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.
198
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ */
202
+ listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass>;
203
+ /**
204
+ * Request to update an existing policy by customer.
205
+ * @summary Request policy update by customer
206
+ * @param {string} policyCode The code of the policy that the customer wants to update.
207
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
208
+ * @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
209
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
210
+ * @param {*} [options] Override http request option.
211
+ * @throws {RequiredError}
212
+ */
213
+ requestPolicyUpdate(policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: any): AxiosPromise<RequestPolicyUpdateResponseClass>;
214
+ /**
215
+ * Request to terminate an existing policy by customer.
216
+ * @summary Terminate a policy by customer
217
+ * @param {string} policyCode The code of the policy that the customer wants to terminate.
218
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
219
+ * @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
220
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
221
+ * @param {*} [options] Override http request option.
222
+ * @throws {RequiredError}
223
+ */
224
+ terminateCustomerPolicy(policyCode: string, customerCode: string, terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<TerminateCustomerPolicyResponseClass>;
225
+ /**
226
+ * API to upload and attach documents to a policy.
227
+ * @summary Upload policy documents
228
+ * @param {string} customerCode
229
+ * @param {string} policyCode The policy code to identify a policy.
230
+ * @param {UploadCustomerPolicyDocumentsRequestDto} uploadCustomerPolicyDocumentsRequestDto
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ uploadCustomerPolicyDocuments(customerCode: string, policyCode: string, uploadCustomerPolicyDocumentsRequestDto: UploadCustomerPolicyDocumentsRequestDto, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
235
+ /**
236
+ * Withdraw policy by customer.
237
+ * @summary Withdraw policy by customer
238
+ * @param {string} policyCode The code of the policy that the customer wants to withdraw.
239
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
240
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
241
+ * @param {*} [options] Override http request option.
242
+ * @throws {RequiredError}
243
+ */
244
+ withdrawCustomerPolicy(policyCode: string, customerCode: string, authorization?: string, options?: any): AxiosPromise<WithdrawCustomerPolicyResponseClass>;
245
+ };
246
+ /**
247
+ * Request parameters for getPolicy operation in PoliciesApi.
248
+ * @export
249
+ * @interface PoliciesApiGetPolicyRequest
250
+ */
251
+ export interface PoliciesApiGetPolicyRequest {
252
+ /**
253
+ * The code of the policy that the customer wants to fetch
254
+ * @type {string}
255
+ * @memberof PoliciesApiGetPolicy
256
+ */
257
+ readonly policyCode: string;
258
+ /**
259
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
260
+ * @type {string}
261
+ * @memberof PoliciesApiGetPolicy
262
+ */
263
+ readonly customerCode: string;
264
+ /**
265
+ * Fields to expand response by - [versions, premiumItems]
266
+ * @type {string}
267
+ * @memberof PoliciesApiGetPolicy
268
+ */
269
+ readonly expand?: string;
270
+ /**
271
+ * Bearer Token: provided by the login endpoint under the name accessToken.
272
+ * @type {string}
273
+ * @memberof PoliciesApiGetPolicy
274
+ */
275
+ readonly authorization?: string;
276
+ }
277
+ /**
278
+ * Request parameters for listPolicies operation in PoliciesApi.
279
+ * @export
280
+ * @interface PoliciesApiListPoliciesRequest
281
+ */
282
+ export interface PoliciesApiListPoliciesRequest {
283
+ /**
284
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
285
+ * @type {string}
286
+ * @memberof PoliciesApiListPolicies
287
+ */
288
+ readonly customerCode: string;
289
+ /**
290
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
291
+ * @type {any}
292
+ * @memberof PoliciesApiListPolicies
293
+ */
294
+ readonly pageSize?: any;
295
+ /**
296
+ * 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.
297
+ * @type {any}
298
+ * @memberof PoliciesApiListPolicies
299
+ */
300
+ readonly pageToken?: any;
301
+ /**
302
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
303
+ * @type {any}
304
+ * @memberof PoliciesApiListPolicies
305
+ */
306
+ readonly filter?: any;
307
+ /**
308
+ * 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.
309
+ * @type {any}
310
+ * @memberof PoliciesApiListPolicies
311
+ */
312
+ readonly search?: any;
313
+ /**
314
+ * 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.
315
+ * @type {any}
316
+ * @memberof PoliciesApiListPolicies
317
+ */
318
+ readonly order?: any;
319
+ /**
320
+ * 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.
321
+ * @type {any}
322
+ * @memberof PoliciesApiListPolicies
323
+ */
324
+ readonly expand?: any;
325
+ /**
326
+ * Bearer Token: provided by the login endpoint under the name accessToken.
327
+ * @type {string}
328
+ * @memberof PoliciesApiListPolicies
329
+ */
330
+ readonly authorization?: string;
331
+ }
332
+ /**
333
+ * Request parameters for requestPolicyUpdate operation in PoliciesApi.
334
+ * @export
335
+ * @interface PoliciesApiRequestPolicyUpdateRequest
336
+ */
337
+ export interface PoliciesApiRequestPolicyUpdateRequest {
338
+ /**
339
+ * The code of the policy that the customer wants to update.
340
+ * @type {string}
341
+ * @memberof PoliciesApiRequestPolicyUpdate
342
+ */
343
+ readonly policyCode: string;
344
+ /**
345
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
346
+ * @type {string}
347
+ * @memberof PoliciesApiRequestPolicyUpdate
348
+ */
349
+ readonly customerCode: string;
350
+ /**
351
+ *
352
+ * @type {RequestPolicyUpdateRequestDto}
353
+ * @memberof PoliciesApiRequestPolicyUpdate
354
+ */
355
+ readonly requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto;
356
+ /**
357
+ * Bearer Token: provided by the login endpoint under the name accessToken.
358
+ * @type {string}
359
+ * @memberof PoliciesApiRequestPolicyUpdate
360
+ */
361
+ readonly authorization?: string;
362
+ }
363
+ /**
364
+ * Request parameters for terminateCustomerPolicy operation in PoliciesApi.
365
+ * @export
366
+ * @interface PoliciesApiTerminateCustomerPolicyRequest
367
+ */
368
+ export interface PoliciesApiTerminateCustomerPolicyRequest {
369
+ /**
370
+ * The code of the policy that the customer wants to terminate.
371
+ * @type {string}
372
+ * @memberof PoliciesApiTerminateCustomerPolicy
373
+ */
374
+ readonly policyCode: string;
375
+ /**
376
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
377
+ * @type {string}
378
+ * @memberof PoliciesApiTerminateCustomerPolicy
379
+ */
380
+ readonly customerCode: string;
381
+ /**
382
+ *
383
+ * @type {TerminateCustomerPolicyRequestDto}
384
+ * @memberof PoliciesApiTerminateCustomerPolicy
385
+ */
386
+ readonly terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto;
387
+ /**
388
+ * Bearer Token: provided by the login endpoint under the name accessToken.
389
+ * @type {string}
390
+ * @memberof PoliciesApiTerminateCustomerPolicy
391
+ */
392
+ readonly authorization?: string;
393
+ }
394
+ /**
395
+ * Request parameters for uploadCustomerPolicyDocuments operation in PoliciesApi.
396
+ * @export
397
+ * @interface PoliciesApiUploadCustomerPolicyDocumentsRequest
398
+ */
399
+ export interface PoliciesApiUploadCustomerPolicyDocumentsRequest {
400
+ /**
401
+ *
402
+ * @type {string}
403
+ * @memberof PoliciesApiUploadCustomerPolicyDocuments
404
+ */
405
+ readonly customerCode: string;
406
+ /**
407
+ * The policy code to identify a policy.
408
+ * @type {string}
409
+ * @memberof PoliciesApiUploadCustomerPolicyDocuments
410
+ */
411
+ readonly policyCode: string;
412
+ /**
413
+ *
414
+ * @type {UploadCustomerPolicyDocumentsRequestDto}
415
+ * @memberof PoliciesApiUploadCustomerPolicyDocuments
416
+ */
417
+ readonly uploadCustomerPolicyDocumentsRequestDto: UploadCustomerPolicyDocumentsRequestDto;
418
+ }
419
+ /**
420
+ * Request parameters for withdrawCustomerPolicy operation in PoliciesApi.
421
+ * @export
422
+ * @interface PoliciesApiWithdrawCustomerPolicyRequest
423
+ */
424
+ export interface PoliciesApiWithdrawCustomerPolicyRequest {
425
+ /**
426
+ * The code of the policy that the customer wants to withdraw.
427
+ * @type {string}
428
+ * @memberof PoliciesApiWithdrawCustomerPolicy
429
+ */
430
+ readonly policyCode: string;
431
+ /**
432
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
433
+ * @type {string}
434
+ * @memberof PoliciesApiWithdrawCustomerPolicy
435
+ */
436
+ readonly customerCode: string;
437
+ /**
438
+ * Bearer Token: provided by the login endpoint under the name accessToken.
439
+ * @type {string}
440
+ * @memberof PoliciesApiWithdrawCustomerPolicy
441
+ */
442
+ readonly authorization?: string;
443
+ }
444
+ /**
445
+ * PoliciesApi - object-oriented interface
446
+ * @export
447
+ * @class PoliciesApi
448
+ * @extends {BaseAPI}
449
+ */
450
+ export declare class PoliciesApi extends BaseAPI {
451
+ /**
452
+ * Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
453
+ * @summary Get policy details
454
+ * @param {PoliciesApiGetPolicyRequest} requestParameters Request parameters.
455
+ * @param {*} [options] Override http request option.
456
+ * @throws {RequiredError}
457
+ * @memberof PoliciesApi
458
+ */
459
+ getPolicy(requestParameters: PoliciesApiGetPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPolicyResponseClass, any>>;
460
+ /**
461
+ * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
462
+ * @summary List policies of a customer
463
+ * @param {PoliciesApiListPoliciesRequest} requestParameters Request parameters.
464
+ * @param {*} [options] Override http request option.
465
+ * @throws {RequiredError}
466
+ * @memberof PoliciesApi
467
+ */
468
+ listPolicies(requestParameters: PoliciesApiListPoliciesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPoliciesResponseClass, any>>;
469
+ /**
470
+ * Request to update an existing policy by customer.
471
+ * @summary Request policy update by customer
472
+ * @param {PoliciesApiRequestPolicyUpdateRequest} requestParameters Request parameters.
473
+ * @param {*} [options] Override http request option.
474
+ * @throws {RequiredError}
475
+ * @memberof PoliciesApi
476
+ */
477
+ requestPolicyUpdate(requestParameters: PoliciesApiRequestPolicyUpdateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RequestPolicyUpdateResponseClass, any>>;
478
+ /**
479
+ * Request to terminate an existing policy by customer.
480
+ * @summary Terminate a policy by customer
481
+ * @param {PoliciesApiTerminateCustomerPolicyRequest} requestParameters Request parameters.
482
+ * @param {*} [options] Override http request option.
483
+ * @throws {RequiredError}
484
+ * @memberof PoliciesApi
485
+ */
486
+ terminateCustomerPolicy(requestParameters: PoliciesApiTerminateCustomerPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TerminateCustomerPolicyResponseClass, any>>;
487
+ /**
488
+ * API to upload and attach documents to a policy.
489
+ * @summary Upload policy documents
490
+ * @param {PoliciesApiUploadCustomerPolicyDocumentsRequest} requestParameters Request parameters.
491
+ * @param {*} [options] Override http request option.
492
+ * @throws {RequiredError}
493
+ * @memberof PoliciesApi
494
+ */
495
+ uploadCustomerPolicyDocuments(requestParameters: PoliciesApiUploadCustomerPolicyDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any>>;
496
+ /**
497
+ * Withdraw policy by customer.
498
+ * @summary Withdraw policy by customer
499
+ * @param {PoliciesApiWithdrawCustomerPolicyRequest} requestParameters Request parameters.
500
+ * @param {*} [options] Override http request option.
501
+ * @throws {RequiredError}
502
+ * @memberof PoliciesApi
503
+ */
504
+ withdrawCustomerPolicy(requestParameters: PoliciesApiWithdrawCustomerPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WithdrawCustomerPolicyResponseClass, any>>;
505
+ }