@emilgroup/customer-sdk-node 1.10.0 → 1.11.1
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.
- package/.openapi-generator/FILES +4 -0
- package/README.md +58 -2
- package/api/claims-api.ts +142 -24
- package/api/payments-api.ts +20 -6
- package/api/policies-api.ts +4 -4
- package/api.ts +1 -0
- package/base.ts +1 -5
- package/dist/api/claims-api.d.ts +90 -15
- package/dist/api/claims-api.js +72 -24
- package/dist/api/payments-api.d.ts +12 -3
- package/dist/api/payments-api.js +12 -6
- package/dist/api/policies-api.d.ts +4 -4
- package/dist/api/policies-api.js +4 -4
- package/dist/api.d.ts +2 -1
- package/dist/api.js +1 -0
- package/dist/base.d.ts +1 -4
- package/dist/base.js +3 -7
- package/dist/models/account-class.d.ts +7 -2
- package/dist/models/account-class.js +5 -1
- package/dist/models/claim-class.d.ts +132 -0
- package/dist/models/claim-class.js +15 -0
- package/dist/models/create-customer-claim-response-class.d.ts +25 -0
- package/dist/models/create-customer-claim-response-class.js +15 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/list-customer-claims-response-class.d.ts +31 -0
- package/dist/models/list-customer-claims-response-class.js +15 -0
- package/dist/models/policy-class.d.ts +2 -2
- package/dist/models/update-account-request-dto.d.ts +17 -0
- package/dist/models/update-account-request-dto.js +5 -1
- package/dist/models/update-customer-claim-response-class.d.ts +25 -0
- package/dist/models/update-customer-claim-response-class.js +15 -0
- package/models/account-class.ts +8 -2
- package/models/claim-class.ts +138 -0
- package/models/create-customer-claim-response-class.ts +31 -0
- package/models/index.ts +4 -0
- package/models/list-customer-claims-response-class.ts +37 -0
- package/models/policy-class.ts +2 -2
- package/models/update-account-request-dto.ts +18 -0
- package/models/update-customer-claim-response-class.ts +31 -0
- package/package.json +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -20,12 +20,14 @@ index.ts
|
|
|
20
20
|
models/account-class.ts
|
|
21
21
|
models/account-policy-class.ts
|
|
22
22
|
models/authentication-result-class.ts
|
|
23
|
+
models/claim-class.ts
|
|
23
24
|
models/complete-braintree-payment-setup-request-dto.ts
|
|
24
25
|
models/complete-payment-setup-psp-request.ts
|
|
25
26
|
models/complete-payment-setup-response-class.ts
|
|
26
27
|
models/complete-stripe-payment-setup-request-dto.ts
|
|
27
28
|
models/create-account-request-dto.ts
|
|
28
29
|
models/create-customer-claim-request-dto.ts
|
|
30
|
+
models/create-customer-claim-response-class.ts
|
|
29
31
|
models/create-customer-request-dto.ts
|
|
30
32
|
models/create-customer-response-class.ts
|
|
31
33
|
models/create-presigned-post-response-class.ts
|
|
@@ -48,6 +50,7 @@ models/invite-by-customer-response-class.ts
|
|
|
48
50
|
models/invite-by-tenant-response-class.ts
|
|
49
51
|
models/invite-class.ts
|
|
50
52
|
models/invoice-class.ts
|
|
53
|
+
models/list-customer-claims-response-class.ts
|
|
51
54
|
models/list-documents-response-class.ts
|
|
52
55
|
models/list-invoices-response-class.ts
|
|
53
56
|
models/list-policies-response-class.ts
|
|
@@ -70,6 +73,7 @@ models/terminate-customer-policy-response-class.ts
|
|
|
70
73
|
models/timeslice-class.ts
|
|
71
74
|
models/update-account-request-dto.ts
|
|
72
75
|
models/update-customer-claim-request-dto.ts
|
|
76
|
+
models/update-customer-claim-response-class.ts
|
|
73
77
|
models/update-customer-request-dto.ts
|
|
74
78
|
models/update-customer-response-class.ts
|
|
75
79
|
models/upload-customer-claim-documents-request-dto.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/customer-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/customer-sdk-node@1.11.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/customer-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/customer-sdk-node@1.11.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CustomersApi`.
|
|
@@ -66,3 +66,59 @@ async function listCustomers(): Promise<Void> {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
```
|
|
69
|
+
|
|
70
|
+
</br>
|
|
71
|
+
|
|
72
|
+
# Migration notes
|
|
73
|
+
Migration 1.10.x > 1.11.x
|
|
74
|
+
* Some components of CustomersApi have been extracted to:
|
|
75
|
+
- AuthenticationApi includes : initiate, respond, refresh-token, and rest/verify/forget password of a customer functionality
|
|
76
|
+
- InvitesApi includes: invite by customer/tenant, verify and register a customer functionality.
|
|
77
|
+
- InvoicesApi includes: list invoices functionality.
|
|
78
|
+
- DocumentsApi includes: list documents, upload documents and Get a presigned download url for document.
|
|
79
|
+
- PaymentsApi includes: initiate/complete payment setup
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
```ts
|
|
84
|
+
import { InvoicesApi } from '@emilgroup/customer-sdk'
|
|
85
|
+
|
|
86
|
+
// First, call initiateAuthorization to get challenge information
|
|
87
|
+
try {
|
|
88
|
+
const response = await apiAuthCustomer.initiateAuthorization("username", "password", "tenantSlug");
|
|
89
|
+
} catch(error) {
|
|
90
|
+
// process error
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// after receiving the SMS, call the respondToAuthorizationChallenge method
|
|
94
|
+
try {
|
|
95
|
+
const response = await apiAuthCustomer.respondToAuthorizationChallenge({
|
|
96
|
+
challengeResponses: {
|
|
97
|
+
"USERNAME": username,
|
|
98
|
+
"SMS_MFA_CODE": smsCode,
|
|
99
|
+
},
|
|
100
|
+
challengeName,
|
|
101
|
+
tenantSlug,
|
|
102
|
+
session,
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
// Customer is now logged in with customersApi and refresh-token will automatically be called.
|
|
106
|
+
} catch(error) {
|
|
107
|
+
// process error
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### List invoices
|
|
112
|
+
```ts
|
|
113
|
+
//After login
|
|
114
|
+
|
|
115
|
+
const invoiceApi = new InvoicesApi();
|
|
116
|
+
try {
|
|
117
|
+
const listInvoices = await invoiceApi.listInvoices({customerCode: "me"});
|
|
118
|
+
if ( isMounted ) {
|
|
119
|
+
const { data: { items } } = listInvoices;
|
|
120
|
+
}
|
|
121
|
+
} catch ( error ) {
|
|
122
|
+
// process error
|
|
123
|
+
}
|
|
124
|
+
```
|
package/api/claims-api.ts
CHANGED
|
@@ -23,10 +23,16 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreateCustomerClaimRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
+
import { CreateCustomerClaimResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
26
28
|
import { CreatePresignedPostResponseClass } from '../models';
|
|
27
29
|
// @ts-ignore
|
|
30
|
+
import { ListCustomerClaimsResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
28
32
|
import { UpdateCustomerClaimRequestDto } from '../models';
|
|
29
33
|
// @ts-ignore
|
|
34
|
+
import { UpdateCustomerClaimResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
30
36
|
import { UploadCustomerClaimDocumentsRequestDto } from '../models';
|
|
31
37
|
// URLSearchParams not necessarily used
|
|
32
38
|
// @ts-ignore
|
|
@@ -43,10 +49,12 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
43
49
|
* @summary Create a new claim for customer
|
|
44
50
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
45
51
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
52
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
53
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
46
54
|
* @param {*} [options] Override http request option.
|
|
47
55
|
* @throws {RequiredError}
|
|
48
56
|
*/
|
|
49
|
-
createCustomerClaim: async (customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
57
|
+
createCustomerClaim: async (customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
58
|
// verify required parameter 'customerCode' is not null or undefined
|
|
51
59
|
assertParamExists('createCustomerClaim', 'customerCode', customerCode)
|
|
52
60
|
// verify required parameter 'createCustomerClaimRequestDto' is not null or undefined
|
|
@@ -66,6 +74,14 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
66
74
|
const localVarHeaderParameter = {} as any;
|
|
67
75
|
const localVarQueryParameter = {} as any;
|
|
68
76
|
|
|
77
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
78
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
82
|
+
localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
|
|
83
|
+
}
|
|
84
|
+
|
|
69
85
|
|
|
70
86
|
|
|
71
87
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -84,16 +100,18 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
84
100
|
* List claims by customer.
|
|
85
101
|
* @summary List claims by customer
|
|
86
102
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
103
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
87
104
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
88
105
|
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
89
106
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
90
107
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
91
108
|
* @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.
|
|
92
109
|
* @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.
|
|
110
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
93
111
|
* @param {*} [options] Override http request option.
|
|
94
112
|
* @throws {RequiredError}
|
|
95
113
|
*/
|
|
96
|
-
listCustomerClaims: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
114
|
+
listCustomerClaims: async (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
97
115
|
// verify required parameter 'customerCode' is not null or undefined
|
|
98
116
|
assertParamExists('listCustomerClaims', 'customerCode', customerCode)
|
|
99
117
|
const localVarPath = `/v1/customers/{customerCode}/claims`
|
|
@@ -135,6 +153,14 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
135
153
|
localVarQueryParameter['expand'] = expand;
|
|
136
154
|
}
|
|
137
155
|
|
|
156
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
157
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
161
|
+
localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
|
|
162
|
+
}
|
|
163
|
+
|
|
138
164
|
|
|
139
165
|
|
|
140
166
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -152,10 +178,12 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
152
178
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
153
179
|
* @param {string} claimCode The claim code to identify a claim.
|
|
154
180
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
181
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
182
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
155
183
|
* @param {*} [options] Override http request option.
|
|
156
184
|
* @throws {RequiredError}
|
|
157
185
|
*/
|
|
158
|
-
updateCustomerClaim: async (customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
186
|
+
updateCustomerClaim: async (customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
159
187
|
// verify required parameter 'customerCode' is not null or undefined
|
|
160
188
|
assertParamExists('updateCustomerClaim', 'customerCode', customerCode)
|
|
161
189
|
// verify required parameter 'claimCode' is not null or undefined
|
|
@@ -178,6 +206,14 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
178
206
|
const localVarHeaderParameter = {} as any;
|
|
179
207
|
const localVarQueryParameter = {} as any;
|
|
180
208
|
|
|
209
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
210
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
214
|
+
localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
|
|
215
|
+
}
|
|
216
|
+
|
|
181
217
|
|
|
182
218
|
|
|
183
219
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -198,10 +234,12 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
198
234
|
* @param {string} customerCode
|
|
199
235
|
* @param {string} claimCode The claim code to identify a claim.
|
|
200
236
|
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
237
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
238
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
201
239
|
* @param {*} [options] Override http request option.
|
|
202
240
|
* @throws {RequiredError}
|
|
203
241
|
*/
|
|
204
|
-
uploadCustomerClaimDocuments: async (customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
242
|
+
uploadCustomerClaimDocuments: async (customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, authorization2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
205
243
|
// verify required parameter 'customerCode' is not null or undefined
|
|
206
244
|
assertParamExists('uploadCustomerClaimDocuments', 'customerCode', customerCode)
|
|
207
245
|
// verify required parameter 'claimCode' is not null or undefined
|
|
@@ -224,6 +262,14 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
224
262
|
const localVarHeaderParameter = {} as any;
|
|
225
263
|
const localVarQueryParameter = {} as any;
|
|
226
264
|
|
|
265
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
266
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
270
|
+
localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
|
|
271
|
+
}
|
|
272
|
+
|
|
227
273
|
|
|
228
274
|
|
|
229
275
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -253,28 +299,32 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
|
253
299
|
* @summary Create a new claim for customer
|
|
254
300
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
255
301
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
302
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
303
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
256
304
|
* @param {*} [options] Override http request option.
|
|
257
305
|
* @throws {RequiredError}
|
|
258
306
|
*/
|
|
259
|
-
async createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
260
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomerClaim(customerCode, createCustomerClaimRequestDto, options);
|
|
307
|
+
async createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomerClaimResponseClass>> {
|
|
308
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomerClaim(customerCode, createCustomerClaimRequestDto, authorization, authorization2, options);
|
|
261
309
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
262
310
|
},
|
|
263
311
|
/**
|
|
264
312
|
* List claims by customer.
|
|
265
313
|
* @summary List claims by customer
|
|
266
314
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
315
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
267
316
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
268
317
|
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
269
318
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
270
319
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
271
320
|
* @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.
|
|
272
321
|
* @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.
|
|
322
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
273
323
|
* @param {*} [options] Override http request option.
|
|
274
324
|
* @throws {RequiredError}
|
|
275
325
|
*/
|
|
276
|
-
async listCustomerClaims(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
277
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerClaims(customerCode, pageSize, pageToken, filter, search, order, expand, options);
|
|
326
|
+
async listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomerClaimsResponseClass>> {
|
|
327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, authorization2, options);
|
|
278
328
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
279
329
|
},
|
|
280
330
|
/**
|
|
@@ -283,11 +333,13 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
|
283
333
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
284
334
|
* @param {string} claimCode The claim code to identify a claim.
|
|
285
335
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
336
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
337
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
286
338
|
* @param {*} [options] Override http request option.
|
|
287
339
|
* @throws {RequiredError}
|
|
288
340
|
*/
|
|
289
|
-
async updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
290
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, options);
|
|
341
|
+
async updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerClaimResponseClass>> {
|
|
342
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, authorization, authorization2, options);
|
|
291
343
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
292
344
|
},
|
|
293
345
|
/**
|
|
@@ -296,11 +348,13 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
|
296
348
|
* @param {string} customerCode
|
|
297
349
|
* @param {string} claimCode The claim code to identify a claim.
|
|
298
350
|
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
351
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
352
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
299
353
|
* @param {*} [options] Override http request option.
|
|
300
354
|
* @throws {RequiredError}
|
|
301
355
|
*/
|
|
302
|
-
async uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
|
|
303
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options);
|
|
356
|
+
async uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
|
|
357
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, authorization2, options);
|
|
304
358
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
305
359
|
},
|
|
306
360
|
}
|
|
@@ -318,27 +372,31 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
|
|
|
318
372
|
* @summary Create a new claim for customer
|
|
319
373
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
320
374
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
375
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
376
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
321
377
|
* @param {*} [options] Override http request option.
|
|
322
378
|
* @throws {RequiredError}
|
|
323
379
|
*/
|
|
324
|
-
createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options?: any): AxiosPromise<
|
|
325
|
-
return localVarFp.createCustomerClaim(customerCode, createCustomerClaimRequestDto, options).then((request) => request(axios, basePath));
|
|
380
|
+
createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options?: any): AxiosPromise<CreateCustomerClaimResponseClass> {
|
|
381
|
+
return localVarFp.createCustomerClaim(customerCode, createCustomerClaimRequestDto, authorization, authorization2, options).then((request) => request(axios, basePath));
|
|
326
382
|
},
|
|
327
383
|
/**
|
|
328
384
|
* List claims by customer.
|
|
329
385
|
* @summary List claims by customer
|
|
330
386
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
387
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
331
388
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
332
389
|
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
333
390
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
334
391
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
335
392
|
* @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.
|
|
336
393
|
* @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.
|
|
394
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
337
395
|
* @param {*} [options] Override http request option.
|
|
338
396
|
* @throws {RequiredError}
|
|
339
397
|
*/
|
|
340
|
-
listCustomerClaims(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<
|
|
341
|
-
return localVarFp.listCustomerClaims(customerCode, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
398
|
+
listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization2?: string, options?: any): AxiosPromise<ListCustomerClaimsResponseClass> {
|
|
399
|
+
return localVarFp.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, authorization2, options).then((request) => request(axios, basePath));
|
|
342
400
|
},
|
|
343
401
|
/**
|
|
344
402
|
* Update claim for customer.
|
|
@@ -346,11 +404,13 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
|
|
|
346
404
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
347
405
|
* @param {string} claimCode The claim code to identify a claim.
|
|
348
406
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
407
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
408
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
349
409
|
* @param {*} [options] Override http request option.
|
|
350
410
|
* @throws {RequiredError}
|
|
351
411
|
*/
|
|
352
|
-
updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options?: any): AxiosPromise<
|
|
353
|
-
return localVarFp.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, options).then((request) => request(axios, basePath));
|
|
412
|
+
updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options?: any): AxiosPromise<UpdateCustomerClaimResponseClass> {
|
|
413
|
+
return localVarFp.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, authorization, authorization2, options).then((request) => request(axios, basePath));
|
|
354
414
|
},
|
|
355
415
|
/**
|
|
356
416
|
* API to upload and attach documents to a claim.
|
|
@@ -358,11 +418,13 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
|
|
|
358
418
|
* @param {string} customerCode
|
|
359
419
|
* @param {string} claimCode The claim code to identify a claim.
|
|
360
420
|
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
421
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
422
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
361
423
|
* @param {*} [options] Override http request option.
|
|
362
424
|
* @throws {RequiredError}
|
|
363
425
|
*/
|
|
364
|
-
uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
|
|
365
|
-
return localVarFp.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options).then((request) => request(axios, basePath));
|
|
426
|
+
uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, authorization2?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
|
|
427
|
+
return localVarFp.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, authorization2, options).then((request) => request(axios, basePath));
|
|
366
428
|
},
|
|
367
429
|
};
|
|
368
430
|
};
|
|
@@ -386,6 +448,20 @@ export interface ClaimsApiCreateCustomerClaimRequest {
|
|
|
386
448
|
* @memberof ClaimsApiCreateCustomerClaim
|
|
387
449
|
*/
|
|
388
450
|
readonly createCustomerClaimRequestDto: CreateCustomerClaimRequestDto
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
454
|
+
* @type {string}
|
|
455
|
+
* @memberof ClaimsApiCreateCustomerClaim
|
|
456
|
+
*/
|
|
457
|
+
readonly authorization?: string
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
461
|
+
* @type {string}
|
|
462
|
+
* @memberof ClaimsApiCreateCustomerClaim
|
|
463
|
+
*/
|
|
464
|
+
readonly authorization2?: string
|
|
389
465
|
}
|
|
390
466
|
|
|
391
467
|
/**
|
|
@@ -401,6 +477,13 @@ export interface ClaimsApiListCustomerClaimsRequest {
|
|
|
401
477
|
*/
|
|
402
478
|
readonly customerCode: string
|
|
403
479
|
|
|
480
|
+
/**
|
|
481
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
482
|
+
* @type {string}
|
|
483
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
484
|
+
*/
|
|
485
|
+
readonly authorization?: string
|
|
486
|
+
|
|
404
487
|
/**
|
|
405
488
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
406
489
|
* @type {any}
|
|
@@ -442,6 +525,13 @@ export interface ClaimsApiListCustomerClaimsRequest {
|
|
|
442
525
|
* @memberof ClaimsApiListCustomerClaims
|
|
443
526
|
*/
|
|
444
527
|
readonly expand?: any
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
531
|
+
* @type {string}
|
|
532
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
533
|
+
*/
|
|
534
|
+
readonly authorization2?: string
|
|
445
535
|
}
|
|
446
536
|
|
|
447
537
|
/**
|
|
@@ -470,6 +560,20 @@ export interface ClaimsApiUpdateCustomerClaimRequest {
|
|
|
470
560
|
* @memberof ClaimsApiUpdateCustomerClaim
|
|
471
561
|
*/
|
|
472
562
|
readonly updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
566
|
+
* @type {string}
|
|
567
|
+
* @memberof ClaimsApiUpdateCustomerClaim
|
|
568
|
+
*/
|
|
569
|
+
readonly authorization?: string
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
573
|
+
* @type {string}
|
|
574
|
+
* @memberof ClaimsApiUpdateCustomerClaim
|
|
575
|
+
*/
|
|
576
|
+
readonly authorization2?: string
|
|
473
577
|
}
|
|
474
578
|
|
|
475
579
|
/**
|
|
@@ -498,6 +602,20 @@ export interface ClaimsApiUploadCustomerClaimDocumentsRequest {
|
|
|
498
602
|
* @memberof ClaimsApiUploadCustomerClaimDocuments
|
|
499
603
|
*/
|
|
500
604
|
readonly uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
608
|
+
* @type {string}
|
|
609
|
+
* @memberof ClaimsApiUploadCustomerClaimDocuments
|
|
610
|
+
*/
|
|
611
|
+
readonly authorization?: string
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
615
|
+
* @type {string}
|
|
616
|
+
* @memberof ClaimsApiUploadCustomerClaimDocuments
|
|
617
|
+
*/
|
|
618
|
+
readonly authorization2?: string
|
|
501
619
|
}
|
|
502
620
|
|
|
503
621
|
/**
|
|
@@ -516,7 +634,7 @@ export class ClaimsApi extends BaseAPI {
|
|
|
516
634
|
* @memberof ClaimsApi
|
|
517
635
|
*/
|
|
518
636
|
public createCustomerClaim(requestParameters: ClaimsApiCreateCustomerClaimRequest, options?: AxiosRequestConfig) {
|
|
519
|
-
return ClaimsApiFp(this.configuration).createCustomerClaim(requestParameters.customerCode, requestParameters.createCustomerClaimRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
637
|
+
return ClaimsApiFp(this.configuration).createCustomerClaim(requestParameters.customerCode, requestParameters.createCustomerClaimRequestDto, requestParameters.authorization, requestParameters.authorization2, options).then((request) => request(this.axios, this.basePath));
|
|
520
638
|
}
|
|
521
639
|
|
|
522
640
|
/**
|
|
@@ -528,7 +646,7 @@ export class ClaimsApi extends BaseAPI {
|
|
|
528
646
|
* @memberof ClaimsApi
|
|
529
647
|
*/
|
|
530
648
|
public listCustomerClaims(requestParameters: ClaimsApiListCustomerClaimsRequest, options?: AxiosRequestConfig) {
|
|
531
|
-
return ClaimsApiFp(this.configuration).listCustomerClaims(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
649
|
+
return ClaimsApiFp(this.configuration).listCustomerClaims(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization2, options).then((request) => request(this.axios, this.basePath));
|
|
532
650
|
}
|
|
533
651
|
|
|
534
652
|
/**
|
|
@@ -540,7 +658,7 @@ export class ClaimsApi extends BaseAPI {
|
|
|
540
658
|
* @memberof ClaimsApi
|
|
541
659
|
*/
|
|
542
660
|
public updateCustomerClaim(requestParameters: ClaimsApiUpdateCustomerClaimRequest, options?: AxiosRequestConfig) {
|
|
543
|
-
return ClaimsApiFp(this.configuration).updateCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.updateCustomerClaimRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
661
|
+
return ClaimsApiFp(this.configuration).updateCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.updateCustomerClaimRequestDto, requestParameters.authorization, requestParameters.authorization2, options).then((request) => request(this.axios, this.basePath));
|
|
544
662
|
}
|
|
545
663
|
|
|
546
664
|
/**
|
|
@@ -552,6 +670,6 @@ export class ClaimsApi extends BaseAPI {
|
|
|
552
670
|
* @memberof ClaimsApi
|
|
553
671
|
*/
|
|
554
672
|
public uploadCustomerClaimDocuments(requestParameters: ClaimsApiUploadCustomerClaimDocumentsRequest, options?: AxiosRequestConfig) {
|
|
555
|
-
return ClaimsApiFp(this.configuration).uploadCustomerClaimDocuments(requestParameters.customerCode, requestParameters.claimCode, requestParameters.uploadCustomerClaimDocumentsRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
673
|
+
return ClaimsApiFp(this.configuration).uploadCustomerClaimDocuments(requestParameters.customerCode, requestParameters.claimCode, requestParameters.uploadCustomerClaimDocumentsRequestDto, requestParameters.authorization, requestParameters.authorization2, options).then((request) => request(this.axios, this.basePath));
|
|
556
674
|
}
|
|
557
675
|
}
|
package/api/payments-api.ts
CHANGED
|
@@ -42,10 +42,11 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
42
42
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
43
43
|
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
44
44
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
45
|
+
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough. For more information about Idempotency, check out the documentation.
|
|
45
46
|
* @param {*} [options] Override http request option.
|
|
46
47
|
* @throws {RequiredError}
|
|
47
48
|
*/
|
|
48
|
-
completePaymentSetup: async (customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
|
+
completePaymentSetup: async (customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, idempotencyKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
50
|
// verify required parameter 'customerCode' is not null or undefined
|
|
50
51
|
assertParamExists('completePaymentSetup', 'customerCode', customerCode)
|
|
51
52
|
// verify required parameter 'completePaymentSetupPspRequest' is not null or undefined
|
|
@@ -69,6 +70,10 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
69
70
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
70
71
|
}
|
|
71
72
|
|
|
73
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
74
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
75
|
+
}
|
|
76
|
+
|
|
72
77
|
|
|
73
78
|
|
|
74
79
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -140,11 +145,12 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
140
145
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
141
146
|
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
142
147
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
148
|
+
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough. For more information about Idempotency, check out the documentation.
|
|
143
149
|
* @param {*} [options] Override http request option.
|
|
144
150
|
* @throws {RequiredError}
|
|
145
151
|
*/
|
|
146
|
-
async completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>> {
|
|
147
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, options);
|
|
152
|
+
async completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>> {
|
|
153
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, idempotencyKey, options);
|
|
148
154
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
149
155
|
},
|
|
150
156
|
/**
|
|
@@ -175,11 +181,12 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
175
181
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
176
182
|
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
177
183
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
184
|
+
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough. For more information about Idempotency, check out the documentation.
|
|
178
185
|
* @param {*} [options] Override http request option.
|
|
179
186
|
* @throws {RequiredError}
|
|
180
187
|
*/
|
|
181
|
-
completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass> {
|
|
182
|
-
return localVarFp.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, options).then((request) => request(axios, basePath));
|
|
188
|
+
completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass> {
|
|
189
|
+
return localVarFp.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, idempotencyKey, options).then((request) => request(axios, basePath));
|
|
183
190
|
},
|
|
184
191
|
/**
|
|
185
192
|
* Request to initiate a payment change by customer.
|
|
@@ -221,6 +228,13 @@ export interface PaymentsApiCompletePaymentSetupRequest {
|
|
|
221
228
|
* @memberof PaymentsApiCompletePaymentSetup
|
|
222
229
|
*/
|
|
223
230
|
readonly authorization?: string
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough. For more information about Idempotency, check out the documentation.
|
|
234
|
+
* @type {string}
|
|
235
|
+
* @memberof PaymentsApiCompletePaymentSetup
|
|
236
|
+
*/
|
|
237
|
+
readonly idempotencyKey?: string
|
|
224
238
|
}
|
|
225
239
|
|
|
226
240
|
/**
|
|
@@ -260,7 +274,7 @@ export class PaymentsApi extends BaseAPI {
|
|
|
260
274
|
* @memberof PaymentsApi
|
|
261
275
|
*/
|
|
262
276
|
public completePaymentSetup(requestParameters: PaymentsApiCompletePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
263
|
-
return PaymentsApiFp(this.configuration).completePaymentSetup(requestParameters.customerCode, requestParameters.completePaymentSetupPspRequest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
277
|
+
return PaymentsApiFp(this.configuration).completePaymentSetup(requestParameters.customerCode, requestParameters.completePaymentSetupPspRequest, requestParameters.authorization, requestParameters.idempotencyKey, options).then((request) => request(this.axios, this.basePath));
|
|
264
278
|
}
|
|
265
279
|
|
|
266
280
|
/**
|
package/api/policies-api.ts
CHANGED
|
@@ -50,7 +50,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
50
50
|
return {
|
|
51
51
|
/**
|
|
52
52
|
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
53
|
-
* @summary Get current
|
|
53
|
+
* @summary Get current version details
|
|
54
54
|
* @param {string} policyCode The policy code.
|
|
55
55
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
56
56
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
|
|
@@ -424,7 +424,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
424
424
|
return {
|
|
425
425
|
/**
|
|
426
426
|
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
427
|
-
* @summary Get current
|
|
427
|
+
* @summary Get current version details
|
|
428
428
|
* @param {string} policyCode The policy code.
|
|
429
429
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
430
430
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
|
|
@@ -534,7 +534,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
534
534
|
return {
|
|
535
535
|
/**
|
|
536
536
|
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
537
|
-
* @summary Get current
|
|
537
|
+
* @summary Get current version details
|
|
538
538
|
* @param {string} policyCode The policy code.
|
|
539
539
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
540
540
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
|
|
@@ -896,7 +896,7 @@ export interface PoliciesApiWithdrawCustomerPolicyRequest {
|
|
|
896
896
|
export class PoliciesApi extends BaseAPI {
|
|
897
897
|
/**
|
|
898
898
|
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
899
|
-
* @summary Get current
|
|
899
|
+
* @summary Get current version details
|
|
900
900
|
* @param {PoliciesApiGetCustomerPolicyDataByDateRequest} requestParameters Request parameters.
|
|
901
901
|
* @param {*} [options] Override http request option.
|
|
902
902
|
* @throws {RequiredError}
|