@emilgroup/customer-sdk-node 1.40.0 → 1.41.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.
- package/.openapi-generator/FILES +6 -0
- package/README.md +2 -2
- package/api/leads-api.ts +8 -8
- package/api/payments-api.ts +23 -6
- package/base.ts +13 -23
- package/dist/api/leads-api.d.ts +8 -8
- package/dist/api/leads-api.js +8 -8
- package/dist/api/payments-api.d.ts +13 -3
- package/dist/api/payments-api.js +13 -6
- package/dist/base.d.ts +2 -4
- package/dist/base.js +28 -37
- package/dist/models/card-details-dto.d.ts +42 -0
- package/dist/models/card-details-dto.js +15 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +80 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-psp-request.d.ts +13 -0
- package/dist/models/complete-payment-setup-response-class.d.ts +3 -2
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/initiate-adyen-payment-setup-response-class.d.ts +42 -0
- package/dist/models/initiate-adyen-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-response-class.d.ts +7 -0
- package/dist/models/lead-class.d.ts +1 -1
- package/dist/models/payment-method-class.d.ts +78 -0
- package/dist/models/payment-method-class.js +15 -0
- package/dist/models/sepa-direct-dto.d.ts +24 -0
- package/dist/models/sepa-direct-dto.js +15 -0
- package/models/card-details-dto.ts +48 -0
- package/models/complete-adyen-payment-setup-request-dto.ts +86 -0
- package/models/complete-payment-setup-psp-request.ts +13 -0
- package/models/complete-payment-setup-response-class.ts +3 -2
- package/models/index.ts +6 -0
- package/models/initiate-adyen-payment-setup-response-class.ts +48 -0
- package/models/initiate-payment-setup-request-dto.ts +36 -0
- package/models/initiate-payment-setup-response-class.ts +7 -0
- package/models/lead-class.ts +1 -1
- package/models/payment-method-class.ts +84 -0
- package/models/sepa-direct-dto.ts +30 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -22,10 +22,12 @@ index.ts
|
|
|
22
22
|
models/account-class.ts
|
|
23
23
|
models/account-policy-class.ts
|
|
24
24
|
models/authentication-result-class.ts
|
|
25
|
+
models/card-details-dto.ts
|
|
25
26
|
models/change-customer-email-request-dto.ts
|
|
26
27
|
models/change-password-request-dto.ts
|
|
27
28
|
models/change-password-response-class.ts
|
|
28
29
|
models/claim-class.ts
|
|
30
|
+
models/complete-adyen-payment-setup-request-dto.ts
|
|
29
31
|
models/complete-braintree-payment-setup-request-dto.ts
|
|
30
32
|
models/complete-payment-setup-psp-request.ts
|
|
31
33
|
models/complete-payment-setup-response-class.ts
|
|
@@ -53,9 +55,11 @@ models/get-policy-response-class.ts
|
|
|
53
55
|
models/get-product-response-class.ts
|
|
54
56
|
models/grpc-update-lead-request-dto.ts
|
|
55
57
|
models/index.ts
|
|
58
|
+
models/initiate-adyen-payment-setup-response-class.ts
|
|
56
59
|
models/initiate-auth-request-dto.ts
|
|
57
60
|
models/initiate-auth-response-class.ts
|
|
58
61
|
models/initiate-braintree-payment-setup-response-class.ts
|
|
62
|
+
models/initiate-payment-setup-request-dto.ts
|
|
59
63
|
models/initiate-payment-setup-response-class.ts
|
|
60
64
|
models/initiate-stripe-payment-setup-response-class.ts
|
|
61
65
|
models/inline-response200.ts
|
|
@@ -76,6 +80,7 @@ models/list-leads-response-class.ts
|
|
|
76
80
|
models/list-policies-response-class.ts
|
|
77
81
|
models/list-products-response-class.ts
|
|
78
82
|
models/partner-link-class.ts
|
|
83
|
+
models/payment-method-class.ts
|
|
79
84
|
models/policy-class.ts
|
|
80
85
|
models/policy-object-class.ts
|
|
81
86
|
models/policy-object-dto.ts
|
|
@@ -93,6 +98,7 @@ models/request-policy-update-response-class.ts
|
|
|
93
98
|
models/reset-password-by-customer-request-dto.ts
|
|
94
99
|
models/respond-to-auth-challenge-class.ts
|
|
95
100
|
models/respond-to-auth-challenge-request-dto.ts
|
|
101
|
+
models/sepa-direct-dto.ts
|
|
96
102
|
models/sepa-dto.ts
|
|
97
103
|
models/shared-customer-policy-object-request-dto.ts
|
|
98
104
|
models/shared-invoice-item-class.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.41.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/customer-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/customer-sdk-node@1.41.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CustomersApi`.
|
package/api/leads-api.ts
CHANGED
|
@@ -94,7 +94,7 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
94
94
|
};
|
|
95
95
|
},
|
|
96
96
|
/**
|
|
97
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
97
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
98
98
|
* @summary Retrieve the lead
|
|
99
99
|
* @param {string} code Unique identifier for the object.
|
|
100
100
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
@@ -148,7 +148,7 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
148
148
|
};
|
|
149
149
|
},
|
|
150
150
|
/**
|
|
151
|
-
* Returns a list of leads you have previously created.
|
|
151
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
152
152
|
* @summary List leads
|
|
153
153
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
154
154
|
* @param {string} [authorization] Bearer Token
|
|
@@ -306,7 +306,7 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
306
306
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
307
307
|
},
|
|
308
308
|
/**
|
|
309
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
309
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
310
310
|
* @summary Retrieve the lead
|
|
311
311
|
* @param {string} code Unique identifier for the object.
|
|
312
312
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
@@ -320,7 +320,7 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
320
320
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
321
321
|
},
|
|
322
322
|
/**
|
|
323
|
-
* Returns a list of leads you have previously created.
|
|
323
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
324
324
|
* @summary List leads
|
|
325
325
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
326
326
|
* @param {string} [authorization] Bearer Token
|
|
@@ -375,7 +375,7 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
375
375
|
return localVarFp.createLead(customerCode, createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
376
376
|
},
|
|
377
377
|
/**
|
|
378
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
378
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
379
379
|
* @summary Retrieve the lead
|
|
380
380
|
* @param {string} code Unique identifier for the object.
|
|
381
381
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
@@ -388,7 +388,7 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
388
388
|
return localVarFp.getLead(code, customerCode, authorization, expand, options).then((request) => request(axios, basePath));
|
|
389
389
|
},
|
|
390
390
|
/**
|
|
391
|
-
* Returns a list of leads you have previously created.
|
|
391
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
392
392
|
* @summary List leads
|
|
393
393
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
394
394
|
* @param {string} [authorization] Bearer Token
|
|
@@ -609,7 +609,7 @@ export class LeadsApi extends BaseAPI {
|
|
|
609
609
|
}
|
|
610
610
|
|
|
611
611
|
/**
|
|
612
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
612
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
613
613
|
* @summary Retrieve the lead
|
|
614
614
|
* @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
|
|
615
615
|
* @param {*} [options] Override http request option.
|
|
@@ -621,7 +621,7 @@ export class LeadsApi extends BaseAPI {
|
|
|
621
621
|
}
|
|
622
622
|
|
|
623
623
|
/**
|
|
624
|
-
* Returns a list of leads you have previously created.
|
|
624
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
625
625
|
* @summary List leads
|
|
626
626
|
* @param {LeadsApiListLeadsRequest} requestParameters Request parameters.
|
|
627
627
|
* @param {*} [options] Override http request option.
|
package/api/payments-api.ts
CHANGED
|
@@ -25,6 +25,8 @@ import { CompletePaymentSetupPspRequest } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { CompletePaymentSetupResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
+
import { InitiatePaymentSetupRequestDto } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
28
30
|
import { InitiatePaymentSetupResponseClass } from '../models';
|
|
29
31
|
// URLSearchParams not necessarily used
|
|
30
32
|
// @ts-ignore
|
|
@@ -87,13 +89,16 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
87
89
|
* Request to initiate a payment change by customer.
|
|
88
90
|
* @summary Request payment setup initiation
|
|
89
91
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
92
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
90
93
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
91
94
|
* @param {*} [options] Override http request option.
|
|
92
95
|
* @throws {RequiredError}
|
|
93
96
|
*/
|
|
94
|
-
initiatePaymentSetup: async (customerCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
97
|
+
initiatePaymentSetup: async (customerCode: string, initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
95
98
|
// verify required parameter 'customerCode' is not null or undefined
|
|
96
99
|
assertParamExists('initiatePaymentSetup', 'customerCode', customerCode)
|
|
100
|
+
// verify required parameter 'initiatePaymentSetupRequestDto' is not null or undefined
|
|
101
|
+
assertParamExists('initiatePaymentSetup', 'initiatePaymentSetupRequestDto', initiatePaymentSetupRequestDto)
|
|
97
102
|
const localVarPath = `/v1/customers/{customerCode}/payment_setup/initiate`
|
|
98
103
|
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
99
104
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -115,9 +120,12 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
115
120
|
|
|
116
121
|
|
|
117
122
|
|
|
123
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
124
|
+
|
|
118
125
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
119
126
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
120
127
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
128
|
+
localVarRequestOptions.data = serializeDataIfNeeded(initiatePaymentSetupRequestDto, localVarRequestOptions, configuration)
|
|
121
129
|
|
|
122
130
|
return {
|
|
123
131
|
url: toPathString(localVarUrlObj),
|
|
@@ -151,12 +159,13 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
151
159
|
* Request to initiate a payment change by customer.
|
|
152
160
|
* @summary Request payment setup initiation
|
|
153
161
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
162
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
154
163
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
155
164
|
* @param {*} [options] Override http request option.
|
|
156
165
|
* @throws {RequiredError}
|
|
157
166
|
*/
|
|
158
|
-
async initiatePaymentSetup(customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>> {
|
|
159
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(customerCode, authorization, options);
|
|
167
|
+
async initiatePaymentSetup(customerCode: string, initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>> {
|
|
168
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(customerCode, initiatePaymentSetupRequestDto, authorization, options);
|
|
160
169
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
161
170
|
},
|
|
162
171
|
}
|
|
@@ -185,12 +194,13 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
185
194
|
* Request to initiate a payment change by customer.
|
|
186
195
|
* @summary Request payment setup initiation
|
|
187
196
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
197
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
188
198
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
199
|
* @param {*} [options] Override http request option.
|
|
190
200
|
* @throws {RequiredError}
|
|
191
201
|
*/
|
|
192
|
-
initiatePaymentSetup(customerCode: string, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass> {
|
|
193
|
-
return localVarFp.initiatePaymentSetup(customerCode, authorization, options).then((request) => request(axios, basePath));
|
|
202
|
+
initiatePaymentSetup(customerCode: string, initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass> {
|
|
203
|
+
return localVarFp.initiatePaymentSetup(customerCode, initiatePaymentSetupRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
194
204
|
},
|
|
195
205
|
};
|
|
196
206
|
};
|
|
@@ -236,6 +246,13 @@ export interface PaymentsApiInitiatePaymentSetupRequest {
|
|
|
236
246
|
*/
|
|
237
247
|
readonly customerCode: string
|
|
238
248
|
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
* @type {InitiatePaymentSetupRequestDto}
|
|
252
|
+
* @memberof PaymentsApiInitiatePaymentSetup
|
|
253
|
+
*/
|
|
254
|
+
readonly initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto
|
|
255
|
+
|
|
239
256
|
/**
|
|
240
257
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
241
258
|
* @type {string}
|
|
@@ -272,6 +289,6 @@ export class PaymentsApi extends BaseAPI {
|
|
|
272
289
|
* @memberof PaymentsApi
|
|
273
290
|
*/
|
|
274
291
|
public initiatePaymentSetup(requestParameters: PaymentsApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
275
|
-
return PaymentsApiFp(this.configuration).initiatePaymentSetup(requestParameters.customerCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
292
|
+
return PaymentsApiFp(this.configuration).initiatePaymentSetup(requestParameters.customerCode, requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
276
293
|
}
|
|
277
294
|
}
|
package/base.ts
CHANGED
|
@@ -81,7 +81,6 @@ export class BaseAPI {
|
|
|
81
81
|
private username?: string;
|
|
82
82
|
private password?: string;
|
|
83
83
|
private isCustomerToken = false;
|
|
84
|
-
private permissions?: string;
|
|
85
84
|
|
|
86
85
|
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
87
86
|
if (configuration) {
|
|
@@ -152,10 +151,6 @@ export class BaseAPI {
|
|
|
152
151
|
this.configuration.basePath = env;
|
|
153
152
|
}
|
|
154
153
|
|
|
155
|
-
getPermissions(): Array<string> {
|
|
156
|
-
return this.permissions.split(',');
|
|
157
|
-
}
|
|
158
|
-
|
|
159
154
|
async authorize(username: string, password: string): Promise<void> {
|
|
160
155
|
const options: AxiosRequestConfig = {
|
|
161
156
|
method: 'POST',
|
|
@@ -170,10 +165,9 @@ export class BaseAPI {
|
|
|
170
165
|
|
|
171
166
|
const response = await globalAxios.request<LoginClass>(options);
|
|
172
167
|
|
|
173
|
-
const { data: { accessToken
|
|
168
|
+
const { data: { accessToken } } = response;
|
|
174
169
|
this.configuration.username = username;
|
|
175
170
|
this.configuration.accessToken = `Bearer ${accessToken}`;
|
|
176
|
-
this.permissions = permissions;
|
|
177
171
|
|
|
178
172
|
const refreshToken = this.extractRefreshToken(response);
|
|
179
173
|
this.configuration.refreshToken = refreshToken;
|
|
@@ -240,12 +234,12 @@ export class BaseAPI {
|
|
|
240
234
|
return response;
|
|
241
235
|
}
|
|
242
236
|
|
|
243
|
-
async refreshTokenTenant(): Promise<
|
|
237
|
+
async refreshTokenTenant(): Promise<string> {
|
|
244
238
|
const { username, refreshToken } = this.configuration;
|
|
245
239
|
|
|
246
240
|
|
|
247
241
|
if (!username || !refreshToken) {
|
|
248
|
-
|
|
242
|
+
return '';
|
|
249
243
|
}
|
|
250
244
|
|
|
251
245
|
const options: AxiosRequestConfig = {
|
|
@@ -259,16 +253,16 @@ export class BaseAPI {
|
|
|
259
253
|
withCredentials: true,
|
|
260
254
|
};
|
|
261
255
|
|
|
262
|
-
const
|
|
256
|
+
const { data: { accessToken } } = await globalAxios.request<LoginClass>(options);
|
|
263
257
|
|
|
264
|
-
return
|
|
258
|
+
return accessToken;
|
|
265
259
|
}
|
|
266
260
|
|
|
267
|
-
async refreshTokenCustomer(): Promise<
|
|
261
|
+
async refreshTokenCustomer(): Promise<string> {
|
|
268
262
|
const { username, refreshToken, tenantSlug } = this.configuration;
|
|
269
263
|
|
|
270
264
|
if (!username || !refreshToken) {
|
|
271
|
-
|
|
265
|
+
return '';
|
|
272
266
|
}
|
|
273
267
|
|
|
274
268
|
const options: AxiosRequestConfig = {
|
|
@@ -282,9 +276,9 @@ export class BaseAPI {
|
|
|
282
276
|
withCredentials: true,
|
|
283
277
|
};
|
|
284
278
|
|
|
285
|
-
const
|
|
279
|
+
const { data: { accessToken } } = await globalAxios.request<LoginClass>(options);
|
|
286
280
|
|
|
287
|
-
return
|
|
281
|
+
return accessToken;
|
|
288
282
|
}
|
|
289
283
|
|
|
290
284
|
private extractRefreshToken(response: AxiosResponse): string {
|
|
@@ -310,14 +304,12 @@ export class BaseAPI {
|
|
|
310
304
|
originalConfig._retry = true;
|
|
311
305
|
try {
|
|
312
306
|
let tokenString: string;
|
|
313
|
-
let permissions: string;
|
|
314
307
|
if (this.isCustomerToken) {
|
|
315
|
-
|
|
308
|
+
tokenString = await this.refreshTokenCustomer();
|
|
316
309
|
} else {
|
|
317
|
-
|
|
310
|
+
tokenString = await this.refreshTokenTenant();
|
|
318
311
|
}
|
|
319
312
|
const accessToken = `Bearer ${tokenString}`;
|
|
320
|
-
this.permissions = permissions;
|
|
321
313
|
|
|
322
314
|
delete originalConfig.headers['Authorization']
|
|
323
315
|
|
|
@@ -344,14 +336,12 @@ export class BaseAPI {
|
|
|
344
336
|
_retry_count++;
|
|
345
337
|
try {
|
|
346
338
|
let tokenString: string;
|
|
347
|
-
let permissions: string;
|
|
348
339
|
if (this.isCustomerToken) {
|
|
349
|
-
|
|
340
|
+
tokenString = await this.refreshTokenCustomer();
|
|
350
341
|
} else {
|
|
351
|
-
|
|
342
|
+
tokenString = await this.refreshTokenTenant();
|
|
352
343
|
}
|
|
353
344
|
const accessToken = `Bearer ${tokenString}`;
|
|
354
|
-
this.permissions = permissions;
|
|
355
345
|
|
|
356
346
|
_retry = true;
|
|
357
347
|
originalConfig.headers['Authorization'] = accessToken;
|
package/dist/api/leads-api.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
34
34
|
*/
|
|
35
35
|
createLead: (customerCode: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
36
|
/**
|
|
37
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
37
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
38
38
|
* @summary Retrieve the lead
|
|
39
39
|
* @param {string} code Unique identifier for the object.
|
|
40
40
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
@@ -45,7 +45,7 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
45
45
|
*/
|
|
46
46
|
getLead: (code: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
47
|
/**
|
|
48
|
-
* Returns a list of leads you have previously created.
|
|
48
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
49
49
|
* @summary List leads
|
|
50
50
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
51
51
|
* @param {string} [authorization] Bearer Token
|
|
@@ -88,7 +88,7 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
88
88
|
*/
|
|
89
89
|
createLead(customerCode: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadResponseClass>>;
|
|
90
90
|
/**
|
|
91
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
91
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
92
92
|
* @summary Retrieve the lead
|
|
93
93
|
* @param {string} code Unique identifier for the object.
|
|
94
94
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
@@ -99,7 +99,7 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
99
99
|
*/
|
|
100
100
|
getLead(code: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>>;
|
|
101
101
|
/**
|
|
102
|
-
* Returns a list of leads you have previously created.
|
|
102
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
103
103
|
* @summary List leads
|
|
104
104
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
105
105
|
* @param {string} [authorization] Bearer Token
|
|
@@ -142,7 +142,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
142
142
|
*/
|
|
143
143
|
createLead(customerCode: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass>;
|
|
144
144
|
/**
|
|
145
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
145
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
146
146
|
* @summary Retrieve the lead
|
|
147
147
|
* @param {string} code Unique identifier for the object.
|
|
148
148
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
@@ -153,7 +153,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
153
153
|
*/
|
|
154
154
|
getLead(code: string, customerCode: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass>;
|
|
155
155
|
/**
|
|
156
|
-
* Returns a list of leads you have previously created.
|
|
156
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
157
157
|
* @summary List leads
|
|
158
158
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
159
159
|
* @param {string} [authorization] Bearer Token
|
|
@@ -345,7 +345,7 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
345
345
|
*/
|
|
346
346
|
createLead(requestParameters: LeadsApiCreateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any>>;
|
|
347
347
|
/**
|
|
348
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
348
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
349
349
|
* @summary Retrieve the lead
|
|
350
350
|
* @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
|
|
351
351
|
* @param {*} [options] Override http request option.
|
|
@@ -354,7 +354,7 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
354
354
|
*/
|
|
355
355
|
getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLeadResponseClass, any>>;
|
|
356
356
|
/**
|
|
357
|
-
* Returns a list of leads you have previously created.
|
|
357
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
358
358
|
* @summary List leads
|
|
359
359
|
* @param {LeadsApiListLeadsRequest} requestParameters Request parameters.
|
|
360
360
|
* @param {*} [options] Override http request option.
|
package/dist/api/leads-api.js
CHANGED
|
@@ -150,7 +150,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
150
150
|
});
|
|
151
151
|
},
|
|
152
152
|
/**
|
|
153
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
153
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
154
154
|
* @summary Retrieve the lead
|
|
155
155
|
* @param {string} code Unique identifier for the object.
|
|
156
156
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
@@ -206,7 +206,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
206
206
|
});
|
|
207
207
|
},
|
|
208
208
|
/**
|
|
209
|
-
* Returns a list of leads you have previously created.
|
|
209
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
210
210
|
* @summary List leads
|
|
211
211
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
212
212
|
* @param {string} [authorization] Bearer Token
|
|
@@ -371,7 +371,7 @@ var LeadsApiFp = function (configuration) {
|
|
|
371
371
|
});
|
|
372
372
|
},
|
|
373
373
|
/**
|
|
374
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
374
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
375
375
|
* @summary Retrieve the lead
|
|
376
376
|
* @param {string} code Unique identifier for the object.
|
|
377
377
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
@@ -394,7 +394,7 @@ var LeadsApiFp = function (configuration) {
|
|
|
394
394
|
});
|
|
395
395
|
},
|
|
396
396
|
/**
|
|
397
|
-
* Returns a list of leads you have previously created.
|
|
397
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
398
398
|
* @summary List leads
|
|
399
399
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
400
400
|
* @param {string} [authorization] Bearer Token
|
|
@@ -467,7 +467,7 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
467
467
|
return localVarFp.createLead(customerCode, createLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
468
468
|
},
|
|
469
469
|
/**
|
|
470
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
470
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
471
471
|
* @summary Retrieve the lead
|
|
472
472
|
* @param {string} code Unique identifier for the object.
|
|
473
473
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
@@ -480,7 +480,7 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
480
480
|
return localVarFp.getLead(code, customerCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
481
481
|
},
|
|
482
482
|
/**
|
|
483
|
-
* Returns a list of leads you have previously created.
|
|
483
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
484
484
|
* @summary List leads
|
|
485
485
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
486
486
|
* @param {string} [authorization] Bearer Token
|
|
@@ -537,7 +537,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
537
537
|
return (0, exports.LeadsApiFp)(this.configuration).createLead(requestParameters.customerCode, requestParameters.createLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
538
538
|
};
|
|
539
539
|
/**
|
|
540
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
540
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
541
541
|
* @summary Retrieve the lead
|
|
542
542
|
* @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
|
|
543
543
|
* @param {*} [options] Override http request option.
|
|
@@ -549,7 +549,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
549
549
|
return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.code, requestParameters.customerCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
550
550
|
};
|
|
551
551
|
/**
|
|
552
|
-
* Returns a list of leads you have previously created.
|
|
552
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
553
553
|
* @summary List leads
|
|
554
554
|
* @param {LeadsApiListLeadsRequest} requestParameters Request parameters.
|
|
555
555
|
* @param {*} [options] Override http request option.
|
|
@@ -14,6 +14,7 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CompletePaymentSetupPspRequest } from '../models';
|
|
16
16
|
import { CompletePaymentSetupResponseClass } from '../models';
|
|
17
|
+
import { InitiatePaymentSetupRequestDto } from '../models';
|
|
17
18
|
import { InitiatePaymentSetupResponseClass } from '../models';
|
|
18
19
|
/**
|
|
19
20
|
* PaymentsApi - axios parameter creator
|
|
@@ -34,11 +35,12 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
34
35
|
* Request to initiate a payment change by customer.
|
|
35
36
|
* @summary Request payment setup initiation
|
|
36
37
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
38
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
37
39
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
38
40
|
* @param {*} [options] Override http request option.
|
|
39
41
|
* @throws {RequiredError}
|
|
40
42
|
*/
|
|
41
|
-
initiatePaymentSetup: (customerCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
|
+
initiatePaymentSetup: (customerCode: string, initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
44
|
};
|
|
43
45
|
/**
|
|
44
46
|
* PaymentsApi - functional programming interface
|
|
@@ -59,11 +61,12 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
59
61
|
* Request to initiate a payment change by customer.
|
|
60
62
|
* @summary Request payment setup initiation
|
|
61
63
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
64
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
62
65
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
63
66
|
* @param {*} [options] Override http request option.
|
|
64
67
|
* @throws {RequiredError}
|
|
65
68
|
*/
|
|
66
|
-
initiatePaymentSetup(customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>>;
|
|
69
|
+
initiatePaymentSetup(customerCode: string, initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>>;
|
|
67
70
|
};
|
|
68
71
|
/**
|
|
69
72
|
* PaymentsApi - factory interface
|
|
@@ -84,11 +87,12 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
|
|
|
84
87
|
* Request to initiate a payment change by customer.
|
|
85
88
|
* @summary Request payment setup initiation
|
|
86
89
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
90
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
87
91
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
88
92
|
* @param {*} [options] Override http request option.
|
|
89
93
|
* @throws {RequiredError}
|
|
90
94
|
*/
|
|
91
|
-
initiatePaymentSetup(customerCode: string, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass>;
|
|
95
|
+
initiatePaymentSetup(customerCode: string, initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass>;
|
|
92
96
|
};
|
|
93
97
|
/**
|
|
94
98
|
* Request parameters for completePaymentSetup operation in PaymentsApi.
|
|
@@ -127,6 +131,12 @@ export interface PaymentsApiInitiatePaymentSetupRequest {
|
|
|
127
131
|
* @memberof PaymentsApiInitiatePaymentSetup
|
|
128
132
|
*/
|
|
129
133
|
readonly customerCode: string;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {InitiatePaymentSetupRequestDto}
|
|
137
|
+
* @memberof PaymentsApiInitiatePaymentSetup
|
|
138
|
+
*/
|
|
139
|
+
readonly initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto;
|
|
130
140
|
/**
|
|
131
141
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
132
142
|
* @type {string}
|
package/dist/api/payments-api.js
CHANGED
|
@@ -143,17 +143,20 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
143
143
|
* Request to initiate a payment change by customer.
|
|
144
144
|
* @summary Request payment setup initiation
|
|
145
145
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
146
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
146
147
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
147
148
|
* @param {*} [options] Override http request option.
|
|
148
149
|
* @throws {RequiredError}
|
|
149
150
|
*/
|
|
150
|
-
initiatePaymentSetup: function (customerCode, authorization, options) {
|
|
151
|
+
initiatePaymentSetup: function (customerCode, initiatePaymentSetupRequestDto, authorization, options) {
|
|
151
152
|
if (options === void 0) { options = {}; }
|
|
152
153
|
return __awaiter(_this, void 0, void 0, function () {
|
|
153
154
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
154
155
|
return __generator(this, function (_a) {
|
|
155
156
|
// verify required parameter 'customerCode' is not null or undefined
|
|
156
157
|
(0, common_1.assertParamExists)('initiatePaymentSetup', 'customerCode', customerCode);
|
|
158
|
+
// verify required parameter 'initiatePaymentSetupRequestDto' is not null or undefined
|
|
159
|
+
(0, common_1.assertParamExists)('initiatePaymentSetup', 'initiatePaymentSetupRequestDto', initiatePaymentSetupRequestDto);
|
|
157
160
|
localVarPath = "/v1/customers/{customerCode}/payment_setup/initiate"
|
|
158
161
|
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
159
162
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -167,9 +170,11 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
167
170
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
168
171
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
169
172
|
}
|
|
173
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
170
174
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
171
175
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
172
176
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
177
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initiatePaymentSetupRequestDto, localVarRequestOptions, configuration);
|
|
173
178
|
return [2 /*return*/, {
|
|
174
179
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
175
180
|
options: localVarRequestOptions,
|
|
@@ -213,16 +218,17 @@ var PaymentsApiFp = function (configuration) {
|
|
|
213
218
|
* Request to initiate a payment change by customer.
|
|
214
219
|
* @summary Request payment setup initiation
|
|
215
220
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
221
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
216
222
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
217
223
|
* @param {*} [options] Override http request option.
|
|
218
224
|
* @throws {RequiredError}
|
|
219
225
|
*/
|
|
220
|
-
initiatePaymentSetup: function (customerCode, authorization, options) {
|
|
226
|
+
initiatePaymentSetup: function (customerCode, initiatePaymentSetupRequestDto, authorization, options) {
|
|
221
227
|
return __awaiter(this, void 0, void 0, function () {
|
|
222
228
|
var localVarAxiosArgs;
|
|
223
229
|
return __generator(this, function (_a) {
|
|
224
230
|
switch (_a.label) {
|
|
225
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(customerCode, authorization, options)];
|
|
231
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(customerCode, initiatePaymentSetupRequestDto, authorization, options)];
|
|
226
232
|
case 1:
|
|
227
233
|
localVarAxiosArgs = _a.sent();
|
|
228
234
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -256,12 +262,13 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
256
262
|
* Request to initiate a payment change by customer.
|
|
257
263
|
* @summary Request payment setup initiation
|
|
258
264
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
265
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
259
266
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
260
267
|
* @param {*} [options] Override http request option.
|
|
261
268
|
* @throws {RequiredError}
|
|
262
269
|
*/
|
|
263
|
-
initiatePaymentSetup: function (customerCode, authorization, options) {
|
|
264
|
-
return localVarFp.initiatePaymentSetup(customerCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
270
|
+
initiatePaymentSetup: function (customerCode, initiatePaymentSetupRequestDto, authorization, options) {
|
|
271
|
+
return localVarFp.initiatePaymentSetup(customerCode, initiatePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
265
272
|
},
|
|
266
273
|
};
|
|
267
274
|
};
|
|
@@ -299,7 +306,7 @@ var PaymentsApi = /** @class */ (function (_super) {
|
|
|
299
306
|
*/
|
|
300
307
|
PaymentsApi.prototype.initiatePaymentSetup = function (requestParameters, options) {
|
|
301
308
|
var _this = this;
|
|
302
|
-
return (0, exports.PaymentsApiFp)(this.configuration).initiatePaymentSetup(requestParameters.customerCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
309
|
+
return (0, exports.PaymentsApiFp)(this.configuration).initiatePaymentSetup(requestParameters.customerCode, requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
303
310
|
};
|
|
304
311
|
return PaymentsApi;
|
|
305
312
|
}(base_1.BaseAPI));
|