@emilgroup/customer-sdk-node 1.39.1-beta.2 → 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 +7 -0
- package/README.md +2 -2
- package/api/leads-api.ts +30 -30
- package/api/payments-api.ts +23 -6
- package/dist/api/leads-api.d.ts +16 -16
- package/dist/api/leads-api.js +26 -26
- package/dist/api/payments-api.d.ts +13 -3
- package/dist/api/payments-api.js +13 -6
- 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/grpc-update-lead-request-dto.d.ts +57 -0
- package/dist/models/grpc-update-lead-request-dto.js +15 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -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/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/dist/models/update-lead-request-dto.d.ts +0 -6
- 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/grpc-update-lead-request-dto.ts +63 -0
- package/models/index.ts +7 -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/payment-method-class.ts +84 -0
- package/models/sepa-direct-dto.ts +30 -0
- package/models/update-lead-request-dto.ts +0 -6
- 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
|
|
@@ -51,10 +53,13 @@ models/get-customer-response-class.ts
|
|
|
51
53
|
models/get-lead-response-class.ts
|
|
52
54
|
models/get-policy-response-class.ts
|
|
53
55
|
models/get-product-response-class.ts
|
|
56
|
+
models/grpc-update-lead-request-dto.ts
|
|
54
57
|
models/index.ts
|
|
58
|
+
models/initiate-adyen-payment-setup-response-class.ts
|
|
55
59
|
models/initiate-auth-request-dto.ts
|
|
56
60
|
models/initiate-auth-response-class.ts
|
|
57
61
|
models/initiate-braintree-payment-setup-response-class.ts
|
|
62
|
+
models/initiate-payment-setup-request-dto.ts
|
|
58
63
|
models/initiate-payment-setup-response-class.ts
|
|
59
64
|
models/initiate-stripe-payment-setup-response-class.ts
|
|
60
65
|
models/inline-response200.ts
|
|
@@ -75,6 +80,7 @@ models/list-leads-response-class.ts
|
|
|
75
80
|
models/list-policies-response-class.ts
|
|
76
81
|
models/list-products-response-class.ts
|
|
77
82
|
models/partner-link-class.ts
|
|
83
|
+
models/payment-method-class.ts
|
|
78
84
|
models/policy-class.ts
|
|
79
85
|
models/policy-object-class.ts
|
|
80
86
|
models/policy-object-dto.ts
|
|
@@ -92,6 +98,7 @@ models/request-policy-update-response-class.ts
|
|
|
92
98
|
models/reset-password-by-customer-request-dto.ts
|
|
93
99
|
models/respond-to-auth-challenge-class.ts
|
|
94
100
|
models/respond-to-auth-challenge-request-dto.ts
|
|
101
|
+
models/sepa-direct-dto.ts
|
|
95
102
|
models/sepa-dto.ts
|
|
96
103
|
models/shared-customer-policy-object-request-dto.ts
|
|
97
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
|
@@ -96,20 +96,20 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
96
96
|
/**
|
|
97
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
|
-
* @param {string}
|
|
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.
|
|
101
101
|
* @param {string} [authorization] Bearer Token
|
|
102
102
|
* @param {string} [expand]
|
|
103
103
|
* @param {*} [options] Override http request option.
|
|
104
104
|
* @throws {RequiredError}
|
|
105
105
|
*/
|
|
106
|
-
getLead: async (
|
|
107
|
-
// verify required parameter '
|
|
108
|
-
assertParamExists('getLead', '
|
|
106
|
+
getLead: async (code: string, customerCode: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
107
|
+
// verify required parameter 'code' is not null or undefined
|
|
108
|
+
assertParamExists('getLead', 'code', code)
|
|
109
109
|
// verify required parameter 'customerCode' is not null or undefined
|
|
110
110
|
assertParamExists('getLead', 'customerCode', customerCode)
|
|
111
|
-
const localVarPath = `/v1/customers/{customerCode}/leads/{
|
|
112
|
-
.replace(`{${"
|
|
111
|
+
const localVarPath = `/v1/customers/{customerCode}/leads/{code}`
|
|
112
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)))
|
|
113
113
|
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
114
114
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
115
115
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -230,22 +230,22 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
230
230
|
/**
|
|
231
231
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
232
232
|
* @summary Update the lead
|
|
233
|
-
* @param {string}
|
|
233
|
+
* @param {string} code Unique identifier for the object.
|
|
234
234
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
235
235
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
236
236
|
* @param {string} [authorization] Bearer Token
|
|
237
237
|
* @param {*} [options] Override http request option.
|
|
238
238
|
* @throws {RequiredError}
|
|
239
239
|
*/
|
|
240
|
-
updateLead: async (
|
|
241
|
-
// verify required parameter '
|
|
242
|
-
assertParamExists('updateLead', '
|
|
240
|
+
updateLead: async (code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
241
|
+
// verify required parameter 'code' is not null or undefined
|
|
242
|
+
assertParamExists('updateLead', 'code', code)
|
|
243
243
|
// verify required parameter 'customerCode' is not null or undefined
|
|
244
244
|
assertParamExists('updateLead', 'customerCode', customerCode)
|
|
245
245
|
// verify required parameter 'updateLeadRequestDto' is not null or undefined
|
|
246
246
|
assertParamExists('updateLead', 'updateLeadRequestDto', updateLeadRequestDto)
|
|
247
|
-
const localVarPath = `/v1/customers/{customerCode}/leads/{
|
|
248
|
-
.replace(`{${"
|
|
247
|
+
const localVarPath = `/v1/customers/{customerCode}/leads/{code}`
|
|
248
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)))
|
|
249
249
|
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
250
250
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
251
251
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -308,15 +308,15 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
308
308
|
/**
|
|
309
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
|
-
* @param {string}
|
|
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.
|
|
313
313
|
* @param {string} [authorization] Bearer Token
|
|
314
314
|
* @param {string} [expand]
|
|
315
315
|
* @param {*} [options] Override http request option.
|
|
316
316
|
* @throws {RequiredError}
|
|
317
317
|
*/
|
|
318
|
-
async getLead(
|
|
319
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(
|
|
318
|
+
async getLead(code: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>> {
|
|
319
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(code, customerCode, authorization, expand, options);
|
|
320
320
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
321
321
|
},
|
|
322
322
|
/**
|
|
@@ -341,15 +341,15 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
341
341
|
/**
|
|
342
342
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
343
343
|
* @summary Update the lead
|
|
344
|
-
* @param {string}
|
|
344
|
+
* @param {string} code Unique identifier for the object.
|
|
345
345
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
346
346
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
347
347
|
* @param {string} [authorization] Bearer Token
|
|
348
348
|
* @param {*} [options] Override http request option.
|
|
349
349
|
* @throws {RequiredError}
|
|
350
350
|
*/
|
|
351
|
-
async updateLead(
|
|
352
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLead(
|
|
351
|
+
async updateLead(code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLeadResponseClass>> {
|
|
352
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLead(code, customerCode, updateLeadRequestDto, authorization, options);
|
|
353
353
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
354
354
|
},
|
|
355
355
|
}
|
|
@@ -377,15 +377,15 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
377
377
|
/**
|
|
378
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
|
-
* @param {string}
|
|
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.
|
|
382
382
|
* @param {string} [authorization] Bearer Token
|
|
383
383
|
* @param {string} [expand]
|
|
384
384
|
* @param {*} [options] Override http request option.
|
|
385
385
|
* @throws {RequiredError}
|
|
386
386
|
*/
|
|
387
|
-
getLead(
|
|
388
|
-
return localVarFp.getLead(
|
|
387
|
+
getLead(code: string, customerCode: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass> {
|
|
388
|
+
return localVarFp.getLead(code, customerCode, authorization, expand, options).then((request) => request(axios, basePath));
|
|
389
389
|
},
|
|
390
390
|
/**
|
|
391
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.
|
|
@@ -408,15 +408,15 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
408
408
|
/**
|
|
409
409
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
410
410
|
* @summary Update the lead
|
|
411
|
-
* @param {string}
|
|
411
|
+
* @param {string} code Unique identifier for the object.
|
|
412
412
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
413
413
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
414
414
|
* @param {string} [authorization] Bearer Token
|
|
415
415
|
* @param {*} [options] Override http request option.
|
|
416
416
|
* @throws {RequiredError}
|
|
417
417
|
*/
|
|
418
|
-
updateLead(
|
|
419
|
-
return localVarFp.updateLead(
|
|
418
|
+
updateLead(code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLeadResponseClass> {
|
|
419
|
+
return localVarFp.updateLead(code, customerCode, updateLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
420
420
|
},
|
|
421
421
|
};
|
|
422
422
|
};
|
|
@@ -456,11 +456,11 @@ export interface LeadsApiCreateLeadRequest {
|
|
|
456
456
|
*/
|
|
457
457
|
export interface LeadsApiGetLeadRequest {
|
|
458
458
|
/**
|
|
459
|
-
*
|
|
459
|
+
* Unique identifier for the object.
|
|
460
460
|
* @type {string}
|
|
461
461
|
* @memberof LeadsApiGetLead
|
|
462
462
|
*/
|
|
463
|
-
readonly
|
|
463
|
+
readonly code: string
|
|
464
464
|
|
|
465
465
|
/**
|
|
466
466
|
* The customer code or \"me\" for the currently logged in customer.
|
|
@@ -561,11 +561,11 @@ export interface LeadsApiListLeadsRequest {
|
|
|
561
561
|
*/
|
|
562
562
|
export interface LeadsApiUpdateLeadRequest {
|
|
563
563
|
/**
|
|
564
|
-
*
|
|
564
|
+
* Unique identifier for the object.
|
|
565
565
|
* @type {string}
|
|
566
566
|
* @memberof LeadsApiUpdateLead
|
|
567
567
|
*/
|
|
568
|
-
readonly
|
|
568
|
+
readonly code: string
|
|
569
569
|
|
|
570
570
|
/**
|
|
571
571
|
* The customer code or \"me\" for the currently logged in customer.
|
|
@@ -617,7 +617,7 @@ export class LeadsApi extends BaseAPI {
|
|
|
617
617
|
* @memberof LeadsApi
|
|
618
618
|
*/
|
|
619
619
|
public getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig) {
|
|
620
|
-
return LeadsApiFp(this.configuration).getLead(requestParameters.
|
|
620
|
+
return LeadsApiFp(this.configuration).getLead(requestParameters.code, requestParameters.customerCode, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
621
621
|
}
|
|
622
622
|
|
|
623
623
|
/**
|
|
@@ -641,6 +641,6 @@ export class LeadsApi extends BaseAPI {
|
|
|
641
641
|
* @memberof LeadsApi
|
|
642
642
|
*/
|
|
643
643
|
public updateLead(requestParameters: LeadsApiUpdateLeadRequest, options?: AxiosRequestConfig) {
|
|
644
|
-
return LeadsApiFp(this.configuration).updateLead(requestParameters.
|
|
644
|
+
return LeadsApiFp(this.configuration).updateLead(requestParameters.code, requestParameters.customerCode, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
645
645
|
}
|
|
646
646
|
}
|
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/dist/api/leads-api.d.ts
CHANGED
|
@@ -36,14 +36,14 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
36
36
|
/**
|
|
37
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
|
-
* @param {string}
|
|
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.
|
|
41
41
|
* @param {string} [authorization] Bearer Token
|
|
42
42
|
* @param {string} [expand]
|
|
43
43
|
* @param {*} [options] Override http request option.
|
|
44
44
|
* @throws {RequiredError}
|
|
45
45
|
*/
|
|
46
|
-
getLead: (
|
|
46
|
+
getLead: (code: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
47
|
/**
|
|
48
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
|
|
@@ -63,14 +63,14 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
63
63
|
/**
|
|
64
64
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
65
65
|
* @summary Update the lead
|
|
66
|
-
* @param {string}
|
|
66
|
+
* @param {string} code Unique identifier for the object.
|
|
67
67
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
68
68
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
69
69
|
* @param {string} [authorization] Bearer Token
|
|
70
70
|
* @param {*} [options] Override http request option.
|
|
71
71
|
* @throws {RequiredError}
|
|
72
72
|
*/
|
|
73
|
-
updateLead: (
|
|
73
|
+
updateLead: (code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
74
74
|
};
|
|
75
75
|
/**
|
|
76
76
|
* LeadsApi - functional programming interface
|
|
@@ -90,14 +90,14 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
90
90
|
/**
|
|
91
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
|
-
* @param {string}
|
|
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.
|
|
95
95
|
* @param {string} [authorization] Bearer Token
|
|
96
96
|
* @param {string} [expand]
|
|
97
97
|
* @param {*} [options] Override http request option.
|
|
98
98
|
* @throws {RequiredError}
|
|
99
99
|
*/
|
|
100
|
-
getLead(
|
|
100
|
+
getLead(code: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>>;
|
|
101
101
|
/**
|
|
102
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
|
|
@@ -117,14 +117,14 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
117
117
|
/**
|
|
118
118
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
119
119
|
* @summary Update the lead
|
|
120
|
-
* @param {string}
|
|
120
|
+
* @param {string} code Unique identifier for the object.
|
|
121
121
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
122
122
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
123
123
|
* @param {string} [authorization] Bearer Token
|
|
124
124
|
* @param {*} [options] Override http request option.
|
|
125
125
|
* @throws {RequiredError}
|
|
126
126
|
*/
|
|
127
|
-
updateLead(
|
|
127
|
+
updateLead(code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLeadResponseClass>>;
|
|
128
128
|
};
|
|
129
129
|
/**
|
|
130
130
|
* LeadsApi - factory interface
|
|
@@ -144,14 +144,14 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
144
144
|
/**
|
|
145
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
|
-
* @param {string}
|
|
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.
|
|
149
149
|
* @param {string} [authorization] Bearer Token
|
|
150
150
|
* @param {string} [expand]
|
|
151
151
|
* @param {*} [options] Override http request option.
|
|
152
152
|
* @throws {RequiredError}
|
|
153
153
|
*/
|
|
154
|
-
getLead(
|
|
154
|
+
getLead(code: string, customerCode: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass>;
|
|
155
155
|
/**
|
|
156
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
|
|
@@ -171,14 +171,14 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
171
171
|
/**
|
|
172
172
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
173
173
|
* @summary Update the lead
|
|
174
|
-
* @param {string}
|
|
174
|
+
* @param {string} code Unique identifier for the object.
|
|
175
175
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
176
176
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
177
177
|
* @param {string} [authorization] Bearer Token
|
|
178
178
|
* @param {*} [options] Override http request option.
|
|
179
179
|
* @throws {RequiredError}
|
|
180
180
|
*/
|
|
181
|
-
updateLead(
|
|
181
|
+
updateLead(code: string, customerCode: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLeadResponseClass>;
|
|
182
182
|
};
|
|
183
183
|
/**
|
|
184
184
|
* Request parameters for createLead operation in LeadsApi.
|
|
@@ -212,11 +212,11 @@ export interface LeadsApiCreateLeadRequest {
|
|
|
212
212
|
*/
|
|
213
213
|
export interface LeadsApiGetLeadRequest {
|
|
214
214
|
/**
|
|
215
|
-
*
|
|
215
|
+
* Unique identifier for the object.
|
|
216
216
|
* @type {string}
|
|
217
217
|
* @memberof LeadsApiGetLead
|
|
218
218
|
*/
|
|
219
|
-
readonly
|
|
219
|
+
readonly code: string;
|
|
220
220
|
/**
|
|
221
221
|
* The customer code or \"me\" for the currently logged in customer.
|
|
222
222
|
* @type {string}
|
|
@@ -304,11 +304,11 @@ export interface LeadsApiListLeadsRequest {
|
|
|
304
304
|
*/
|
|
305
305
|
export interface LeadsApiUpdateLeadRequest {
|
|
306
306
|
/**
|
|
307
|
-
*
|
|
307
|
+
* Unique identifier for the object.
|
|
308
308
|
* @type {string}
|
|
309
309
|
* @memberof LeadsApiUpdateLead
|
|
310
310
|
*/
|
|
311
|
-
readonly
|
|
311
|
+
readonly code: string;
|
|
312
312
|
/**
|
|
313
313
|
* The customer code or \"me\" for the currently logged in customer.
|
|
314
314
|
* @type {string}
|