@emilgroup/payment-sdk-node 1.13.1-beta.13 → 1.13.1-beta.16

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/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/payment-sdk-node@1.13.1-beta.13 --save
20
+ npm install @emilgroup/payment-sdk-node@1.13.1-beta.16 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk-node@1.13.1-beta.13
24
+ yarn add @emilgroup/payment-sdk-node@1.13.1-beta.16
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -39,7 +39,7 @@ const FormData = require('form-data');
39
39
  export const BankTransactionApiAxiosParamCreator = function (configuration?: Configuration) {
40
40
  return {
41
41
  /**
42
- * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
42
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
43
43
  * @summary Retrieve the Bank Transaction
44
44
  * @param {string} code
45
45
  * @param {string} [authorization] Bearer Token
@@ -193,7 +193,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
193
193
  };
194
194
  },
195
195
  /**
196
- * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
196
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
197
197
  * @summary List bank transactions
198
198
  * @param {string} [authorization] Bearer Token
199
199
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -330,7 +330,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
330
330
  const localVarAxiosParamCreator = BankTransactionApiAxiosParamCreator(configuration)
331
331
  return {
332
332
  /**
333
- * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
333
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
334
334
  * @summary Retrieve the Bank Transaction
335
335
  * @param {string} code
336
336
  * @param {string} [authorization] Bearer Token
@@ -368,7 +368,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
368
368
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
369
369
  },
370
370
  /**
371
- * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
371
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
372
372
  * @summary List bank transactions
373
373
  * @param {string} [authorization] Bearer Token
374
374
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -409,7 +409,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
409
409
  const localVarFp = BankTransactionApiFp(configuration)
410
410
  return {
411
411
  /**
412
- * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
412
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
413
413
  * @summary Retrieve the Bank Transaction
414
414
  * @param {string} code
415
415
  * @param {string} [authorization] Bearer Token
@@ -444,7 +444,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
444
444
  return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
445
445
  },
446
446
  /**
447
- * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
447
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
448
448
  * @summary List bank transactions
449
449
  * @param {string} [authorization] Bearer Token
450
450
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -651,7 +651,7 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
651
651
  */
652
652
  export class BankTransactionApi extends BaseAPI {
653
653
  /**
654
- * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
654
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
655
655
  * @summary Retrieve the Bank Transaction
656
656
  * @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
657
657
  * @param {*} [options] Override http request option.
@@ -687,7 +687,7 @@ export class BankTransactionApi extends BaseAPI {
687
687
  }
688
688
 
689
689
  /**
690
- * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
690
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
691
691
  * @summary List bank transactions
692
692
  * @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
693
693
  * @param {*} [options] Override http request option.
@@ -32,7 +32,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
32
32
  return {
33
33
  /**
34
34
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
35
- * @summary Create the payment-method
35
+ * @summary Create the payment method
36
36
  * @param {object} body
37
37
  * @param {string} [authorization] Bearer Token
38
38
  * @param {*} [options] Override http request option.
@@ -77,72 +77,25 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
77
77
  options: localVarRequestOptions,
78
78
  };
79
79
  },
80
- /**
81
- * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
82
- * @summary Delete a payment method
83
- * @param {number} id Unique identifier for payment method
84
- * @param {string} [authorization] Bearer Token
85
- * @param {*} [options] Override http request option.
86
- * @throws {RequiredError}
87
- */
88
- deletePaymentMethod: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
89
- // verify required parameter 'id' is not null or undefined
90
- assertParamExists('deletePaymentMethod', 'id', id)
91
- const localVarPath = `/paymentservice/v1/payment-methods/{id}`;
92
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
93
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
94
- let baseOptions;
95
- let baseAccessToken;
96
- if (configuration) {
97
- baseOptions = configuration.baseOptions;
98
- baseAccessToken = configuration.accessToken;
99
- }
100
-
101
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
102
- const localVarHeaderParameter = {} as any;
103
- const localVarQueryParameter = {} as any;
104
-
105
- // authentication bearer required
106
- // http bearer authentication required
107
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
108
-
109
- if (id !== undefined) {
110
- localVarQueryParameter['id'] = id;
111
- }
112
-
113
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
114
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
115
- }
116
-
117
-
118
-
119
- setSearchParams(localVarUrlObj, localVarQueryParameter);
120
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
121
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
122
-
123
- return {
124
- url: toPathString(localVarUrlObj),
125
- options: localVarRequestOptions,
126
- };
127
- },
128
80
  /**
129
81
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
130
- * @summary Retrieve a payment method
131
- * @param {string} code Unique identifier for the object.
82
+ * @summary Retrieve the payment method
83
+ * @param {string} code
84
+ * @param {string} code2 Unique identifier for the object.
132
85
  * @param {string} expand Fields to expand response by
133
- * @param {string} expand2 Fields to expand response by
134
86
  * @param {string} [authorization] Bearer Token
135
87
  * @param {*} [options] Override http request option.
136
88
  * @throws {RequiredError}
137
89
  */
138
- getPaymentMethod: async (code: string, expand: string, expand2: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
90
+ getPaymentMethod: async (code: string, code2: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
139
91
  // verify required parameter 'code' is not null or undefined
140
92
  assertParamExists('getPaymentMethod', 'code', code)
93
+ // verify required parameter 'code2' is not null or undefined
94
+ assertParamExists('getPaymentMethod', 'code2', code2)
141
95
  // verify required parameter 'expand' is not null or undefined
142
96
  assertParamExists('getPaymentMethod', 'expand', expand)
143
- // verify required parameter 'expand2' is not null or undefined
144
- assertParamExists('getPaymentMethod', 'expand2', expand2)
145
- const localVarPath = `/paymentservice/v1/payment-methods/{code}`;
97
+ const localVarPath = `/paymentservice/v1/payment-methods/{code}`
98
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
146
99
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
100
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
148
101
  let baseOptions;
@@ -160,18 +113,14 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
160
113
  // http bearer authentication required
161
114
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
162
115
 
163
- if (code !== undefined) {
164
- localVarQueryParameter['code'] = code;
116
+ if (code2 !== undefined) {
117
+ localVarQueryParameter['code'] = code2;
165
118
  }
166
119
 
167
120
  if (expand !== undefined) {
168
121
  localVarQueryParameter['expand'] = expand;
169
122
  }
170
123
 
171
- if (expand2 !== undefined) {
172
- localVarQueryParameter['expand'] = expand2;
173
- }
174
-
175
124
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
176
125
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
177
126
  }
@@ -188,7 +137,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
188
137
  };
189
138
  },
190
139
  /**
191
- * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
140
+ * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
192
141
  * @summary List payment methods
193
142
  * @param {string} [authorization] Bearer Token
194
143
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -275,7 +224,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
275
224
  return {
276
225
  /**
277
226
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
278
- * @summary Create the payment-method
227
+ * @summary Create the payment method
279
228
  * @param {object} body
280
229
  * @param {string} [authorization] Bearer Token
281
230
  * @param {*} [options] Override http request option.
@@ -285,34 +234,22 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
285
234
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(body, authorization, options);
286
235
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
287
236
  },
288
- /**
289
- * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
290
- * @summary Delete a payment method
291
- * @param {number} id Unique identifier for payment method
292
- * @param {string} [authorization] Bearer Token
293
- * @param {*} [options] Override http request option.
294
- * @throws {RequiredError}
295
- */
296
- async deletePaymentMethod(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
297
- const localVarAxiosArgs = await localVarAxiosParamCreator.deletePaymentMethod(id, authorization, options);
298
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
299
- },
300
237
  /**
301
238
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
302
- * @summary Retrieve a payment method
303
- * @param {string} code Unique identifier for the object.
239
+ * @summary Retrieve the payment method
240
+ * @param {string} code
241
+ * @param {string} code2 Unique identifier for the object.
304
242
  * @param {string} expand Fields to expand response by
305
- * @param {string} expand2 Fields to expand response by
306
243
  * @param {string} [authorization] Bearer Token
307
244
  * @param {*} [options] Override http request option.
308
245
  * @throws {RequiredError}
309
246
  */
310
- async getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
311
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, expand, expand2, authorization, options);
247
+ async getPaymentMethod(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
248
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, code2, expand, authorization, options);
312
249
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
313
250
  },
314
251
  /**
315
- * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
252
+ * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
316
253
  * @summary List payment methods
317
254
  * @param {string} [authorization] Bearer Token
318
255
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -341,7 +278,7 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
341
278
  return {
342
279
  /**
343
280
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
344
- * @summary Create the payment-method
281
+ * @summary Create the payment method
345
282
  * @param {object} body
346
283
  * @param {string} [authorization] Bearer Token
347
284
  * @param {*} [options] Override http request option.
@@ -350,32 +287,21 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
350
287
  createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void> {
351
288
  return localVarFp.createPaymentMethod(body, authorization, options).then((request) => request(axios, basePath));
352
289
  },
353
- /**
354
- * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
355
- * @summary Delete a payment method
356
- * @param {number} id Unique identifier for payment method
357
- * @param {string} [authorization] Bearer Token
358
- * @param {*} [options] Override http request option.
359
- * @throws {RequiredError}
360
- */
361
- deletePaymentMethod(id: number, authorization?: string, options?: any): AxiosPromise<void> {
362
- return localVarFp.deletePaymentMethod(id, authorization, options).then((request) => request(axios, basePath));
363
- },
364
290
  /**
365
291
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
366
- * @summary Retrieve a payment method
367
- * @param {string} code Unique identifier for the object.
292
+ * @summary Retrieve the payment method
293
+ * @param {string} code
294
+ * @param {string} code2 Unique identifier for the object.
368
295
  * @param {string} expand Fields to expand response by
369
- * @param {string} expand2 Fields to expand response by
370
296
  * @param {string} [authorization] Bearer Token
371
297
  * @param {*} [options] Override http request option.
372
298
  * @throws {RequiredError}
373
299
  */
374
- getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void> {
375
- return localVarFp.getPaymentMethod(code, expand, expand2, authorization, options).then((request) => request(axios, basePath));
300
+ getPaymentMethod(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<void> {
301
+ return localVarFp.getPaymentMethod(code, code2, expand, authorization, options).then((request) => request(axios, basePath));
376
302
  },
377
303
  /**
378
- * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
304
+ * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
379
305
  * @summary List payment methods
380
306
  * @param {string} [authorization] Bearer Token
381
307
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -415,27 +341,6 @@ export interface PaymentMethodsApiCreatePaymentMethodRequest {
415
341
  readonly authorization?: string
416
342
  }
417
343
 
418
- /**
419
- * Request parameters for deletePaymentMethod operation in PaymentMethodsApi.
420
- * @export
421
- * @interface PaymentMethodsApiDeletePaymentMethodRequest
422
- */
423
- export interface PaymentMethodsApiDeletePaymentMethodRequest {
424
- /**
425
- * Unique identifier for payment method
426
- * @type {number}
427
- * @memberof PaymentMethodsApiDeletePaymentMethod
428
- */
429
- readonly id: number
430
-
431
- /**
432
- * Bearer Token
433
- * @type {string}
434
- * @memberof PaymentMethodsApiDeletePaymentMethod
435
- */
436
- readonly authorization?: string
437
- }
438
-
439
344
  /**
440
345
  * Request parameters for getPaymentMethod operation in PaymentMethodsApi.
441
346
  * @export
@@ -443,25 +348,25 @@ export interface PaymentMethodsApiDeletePaymentMethodRequest {
443
348
  */
444
349
  export interface PaymentMethodsApiGetPaymentMethodRequest {
445
350
  /**
446
- * Unique identifier for the object.
351
+ *
447
352
  * @type {string}
448
353
  * @memberof PaymentMethodsApiGetPaymentMethod
449
354
  */
450
355
  readonly code: string
451
356
 
452
357
  /**
453
- * Fields to expand response by
358
+ * Unique identifier for the object.
454
359
  * @type {string}
455
360
  * @memberof PaymentMethodsApiGetPaymentMethod
456
361
  */
457
- readonly expand: string
362
+ readonly code2: string
458
363
 
459
364
  /**
460
365
  * Fields to expand response by
461
366
  * @type {string}
462
367
  * @memberof PaymentMethodsApiGetPaymentMethod
463
368
  */
464
- readonly expand2: string
369
+ readonly expand: string
465
370
 
466
371
  /**
467
372
  * Bearer Token
@@ -543,7 +448,7 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
543
448
  export class PaymentMethodsApi extends BaseAPI {
544
449
  /**
545
450
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
546
- * @summary Create the payment-method
451
+ * @summary Create the payment method
547
452
  * @param {PaymentMethodsApiCreatePaymentMethodRequest} requestParameters Request parameters.
548
453
  * @param {*} [options] Override http request option.
549
454
  * @throws {RequiredError}
@@ -553,32 +458,20 @@ export class PaymentMethodsApi extends BaseAPI {
553
458
  return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
554
459
  }
555
460
 
556
- /**
557
- * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
558
- * @summary Delete a payment method
559
- * @param {PaymentMethodsApiDeletePaymentMethodRequest} requestParameters Request parameters.
560
- * @param {*} [options] Override http request option.
561
- * @throws {RequiredError}
562
- * @memberof PaymentMethodsApi
563
- */
564
- public deletePaymentMethod(requestParameters: PaymentMethodsApiDeletePaymentMethodRequest, options?: AxiosRequestConfig) {
565
- return PaymentMethodsApiFp(this.configuration).deletePaymentMethod(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
566
- }
567
-
568
461
  /**
569
462
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
570
- * @summary Retrieve a payment method
463
+ * @summary Retrieve the payment method
571
464
  * @param {PaymentMethodsApiGetPaymentMethodRequest} requestParameters Request parameters.
572
465
  * @param {*} [options] Override http request option.
573
466
  * @throws {RequiredError}
574
467
  * @memberof PaymentMethodsApi
575
468
  */
576
469
  public getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig) {
577
- return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
470
+ return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.code2, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
578
471
  }
579
472
 
580
473
  /**
581
- * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
474
+ * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
582
475
  * @summary List payment methods
583
476
  * @param {PaymentMethodsApiListPaymentMethodsRequest} requestParameters Request parameters.
584
477
  * @param {*} [options] Override http request option.
@@ -133,7 +133,7 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
133
133
  };
134
134
  },
135
135
  /**
136
- * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
136
+ * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
137
137
  * @summary Retrieve the payment reminder
138
138
  * @param {string} code Unique identifier for the object.
139
139
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -178,7 +178,7 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
178
178
  };
179
179
  },
180
180
  /**
181
- * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
181
+ * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
182
182
  * @summary List payment reminders
183
183
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
184
184
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -289,7 +289,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
289
289
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
290
290
  },
291
291
  /**
292
- * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
292
+ * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
293
293
  * @summary Retrieve the payment reminder
294
294
  * @param {string} code Unique identifier for the object.
295
295
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -301,7 +301,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
301
301
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
302
302
  },
303
303
  /**
304
- * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
304
+ * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
305
305
  * @summary List payment reminders
306
306
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
307
307
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -352,7 +352,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
352
352
  return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
353
353
  },
354
354
  /**
355
- * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
355
+ * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
356
356
  * @summary Retrieve the payment reminder
357
357
  * @param {string} code Unique identifier for the object.
358
358
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -363,7 +363,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
363
363
  return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
364
364
  },
365
365
  /**
366
- * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
366
+ * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
367
367
  * @summary List payment reminders
368
368
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
369
369
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -547,7 +547,7 @@ export class PaymentRemindersApi extends BaseAPI {
547
547
  }
548
548
 
549
549
  /**
550
- * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
550
+ * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
551
551
  * @summary Retrieve the payment reminder
552
552
  * @param {PaymentRemindersApiGetPolicyRequest} requestParameters Request parameters.
553
553
  * @param {*} [options] Override http request option.
@@ -559,7 +559,7 @@ export class PaymentRemindersApi extends BaseAPI {
559
559
  }
560
560
 
561
561
  /**
562
- * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
562
+ * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
563
563
  * @summary List payment reminders
564
564
  * @param {PaymentRemindersApiListPaymentRemindersRequest} requestParameters Request parameters.
565
565
  * @param {*} [options] Override http request option.