@emilgroup/payment-sdk 1.4.1-beta.15 → 1.4.1-beta.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +346 -22
  4. package/api/bank-transaction-api.ts +12 -12
  5. package/api/payment-methods-api.ts +38 -145
  6. package/api/payment-reminders-api.ts +12 -12
  7. package/api/payments-api.ts +42 -45
  8. package/api/refunds-api.ts +4 -4
  9. package/api/tenant-bank-account-api.ts +20 -20
  10. package/dist/api/bank-accounts-api.d.ts +193 -16
  11. package/dist/api/bank-accounts-api.js +302 -19
  12. package/dist/api/bank-transaction-api.d.ts +12 -12
  13. package/dist/api/bank-transaction-api.js +11 -11
  14. package/dist/api/payment-methods-api.d.ts +29 -84
  15. package/dist/api/payment-methods-api.js +33 -129
  16. package/dist/api/payment-reminders-api.d.ts +12 -12
  17. package/dist/api/payment-reminders-api.js +11 -11
  18. package/dist/api/payments-api.d.ts +33 -33
  19. package/dist/api/payments-api.js +37 -39
  20. package/dist/api/refunds-api.d.ts +4 -4
  21. package/dist/api/refunds-api.js +3 -3
  22. package/dist/api/tenant-bank-account-api.d.ts +20 -20
  23. package/dist/api/tenant-bank-account-api.js +14 -14
  24. package/dist/models/bank-account-class.d.ts +67 -0
  25. package/dist/models/bank-account-class.js +15 -0
  26. package/dist/models/create-bank-account-request-dto.d.ts +30 -0
  27. package/dist/models/create-bank-account-request-dto.js +15 -0
  28. package/dist/models/get-bank-account-response-class.d.ts +25 -0
  29. package/dist/models/get-bank-account-response-class.js +15 -0
  30. package/dist/models/index.d.ts +5 -0
  31. package/dist/models/index.js +5 -0
  32. package/dist/models/primary-bank-account-response-class.d.ts +42 -0
  33. package/dist/models/primary-bank-account-response-class.js +15 -0
  34. package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +24 -0
  35. package/dist/models/set-primary-bank-account-request-dto-rest.js +15 -0
  36. package/models/bank-account-class.ts +73 -0
  37. package/models/create-bank-account-request-dto.ts +36 -0
  38. package/models/get-bank-account-response-class.ts +31 -0
  39. package/models/index.ts +5 -0
  40. package/models/primary-bank-account-response-class.ts +48 -0
  41. package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
  42. package/package.json +1 -1
@@ -35,7 +35,7 @@ import { UnlinkBankTransactionRequestDtoRest } from '../models';
35
35
  export const BankTransactionApiAxiosParamCreator = function (configuration?: Configuration) {
36
36
  return {
37
37
  /**
38
- * 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.
38
+ * 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.
39
39
  * @summary Retrieve the Bank Transaction
40
40
  * @param {string} code
41
41
  * @param {string} [authorization] Bearer Token
@@ -188,13 +188,13 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
188
188
  };
189
189
  },
190
190
  /**
191
- * 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.
191
+ * 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.
192
192
  * @summary List bank transactions
193
193
  * @param {string} [authorization] Bearer Token
194
194
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
195
195
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
196
196
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
197
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
197
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
198
198
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
199
199
  * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
200
200
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
@@ -325,7 +325,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
325
325
  const localVarAxiosParamCreator = BankTransactionApiAxiosParamCreator(configuration)
326
326
  return {
327
327
  /**
328
- * 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.
328
+ * 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.
329
329
  * @summary Retrieve the Bank Transaction
330
330
  * @param {string} code
331
331
  * @param {string} [authorization] Bearer Token
@@ -363,13 +363,13 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
363
363
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
364
364
  },
365
365
  /**
366
- * 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.
366
+ * 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.
367
367
  * @summary List bank transactions
368
368
  * @param {string} [authorization] Bearer Token
369
369
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
370
370
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
371
371
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
372
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
372
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
373
373
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
374
374
  * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
375
375
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
@@ -404,7 +404,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
404
404
  const localVarFp = BankTransactionApiFp(configuration)
405
405
  return {
406
406
  /**
407
- * 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.
407
+ * 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.
408
408
  * @summary Retrieve the Bank Transaction
409
409
  * @param {string} code
410
410
  * @param {string} [authorization] Bearer Token
@@ -439,13 +439,13 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
439
439
  return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
440
440
  },
441
441
  /**
442
- * 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.
442
+ * 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.
443
443
  * @summary List bank transactions
444
444
  * @param {string} [authorization] Bearer Token
445
445
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
446
446
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
447
447
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
448
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
448
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
449
449
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
450
450
  * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
451
451
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
@@ -582,7 +582,7 @@ export interface BankTransactionApiListBankTransactionsRequest {
582
582
  readonly filter?: any
583
583
 
584
584
  /**
585
- * Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
585
+ * To search the list by any field, pass search=xxx to fetch the result.
586
586
  * @type {any}
587
587
  * @memberof BankTransactionApiListBankTransactions
588
588
  */
@@ -646,7 +646,7 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
646
646
  */
647
647
  export class BankTransactionApi extends BaseAPI {
648
648
  /**
649
- * 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.
649
+ * 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.
650
650
  * @summary Retrieve the Bank Transaction
651
651
  * @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
652
652
  * @param {*} [options] Override http request option.
@@ -682,7 +682,7 @@ export class BankTransactionApi extends BaseAPI {
682
682
  }
683
683
 
684
684
  /**
685
- * 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.
685
+ * 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.
686
686
  * @summary List bank transactions
687
687
  * @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
688
688
  * @param {*} [options] Override http request option.
@@ -28,7 +28,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
28
28
  return {
29
29
  /**
30
30
  * 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.
31
- * @summary Create the payment-method
31
+ * @summary Create the payment method
32
32
  * @param {object} body
33
33
  * @param {string} [authorization] Bearer Token
34
34
  * @param {*} [options] Override http request option.
@@ -73,72 +73,25 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
73
73
  options: localVarRequestOptions,
74
74
  };
75
75
  },
76
- /**
77
- * 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.
78
- * @summary Delete a payment method
79
- * @param {number} id Unique identifier for payment method
80
- * @param {string} [authorization] Bearer Token
81
- * @param {*} [options] Override http request option.
82
- * @throws {RequiredError}
83
- */
84
- deletePaymentMethod: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
85
- // verify required parameter 'id' is not null or undefined
86
- assertParamExists('deletePaymentMethod', 'id', id)
87
- const localVarPath = `/paymentservice/v1/payment-methods/{id}`;
88
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
89
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
90
- let baseOptions;
91
- let baseAccessToken;
92
- if (configuration) {
93
- baseOptions = configuration.baseOptions;
94
- baseAccessToken = configuration.accessToken;
95
- }
96
-
97
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
98
- const localVarHeaderParameter = {} as any;
99
- const localVarQueryParameter = {} as any;
100
-
101
- // authentication bearer required
102
- // http bearer authentication required
103
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
104
-
105
- if (id !== undefined) {
106
- localVarQueryParameter['id'] = id;
107
- }
108
-
109
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
110
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
111
- }
112
-
113
-
114
-
115
- setSearchParams(localVarUrlObj, localVarQueryParameter);
116
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
117
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
118
-
119
- return {
120
- url: toPathString(localVarUrlObj),
121
- options: localVarRequestOptions,
122
- };
123
- },
124
76
  /**
125
77
  * 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.
126
- * @summary Retrieve a payment method
127
- * @param {string} code Unique identifier for the object.
78
+ * @summary Retrieve the payment method
79
+ * @param {string} code
80
+ * @param {string} code2 Unique identifier for the object.
128
81
  * @param {string} expand Fields to expand response by
129
- * @param {string} expand2 Fields to expand response by
130
82
  * @param {string} [authorization] Bearer Token
131
83
  * @param {*} [options] Override http request option.
132
84
  * @throws {RequiredError}
133
85
  */
134
- getPaymentMethod: async (code: string, expand: string, expand2: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
86
+ getPaymentMethod: async (code: string, code2: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
135
87
  // verify required parameter 'code' is not null or undefined
136
88
  assertParamExists('getPaymentMethod', 'code', code)
89
+ // verify required parameter 'code2' is not null or undefined
90
+ assertParamExists('getPaymentMethod', 'code2', code2)
137
91
  // verify required parameter 'expand' is not null or undefined
138
92
  assertParamExists('getPaymentMethod', 'expand', expand)
139
- // verify required parameter 'expand2' is not null or undefined
140
- assertParamExists('getPaymentMethod', 'expand2', expand2)
141
- const localVarPath = `/paymentservice/v1/payment-methods/{code}`;
93
+ const localVarPath = `/paymentservice/v1/payment-methods/{code}`
94
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
142
95
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
143
96
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
144
97
  let baseOptions;
@@ -156,18 +109,14 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
156
109
  // http bearer authentication required
157
110
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
158
111
 
159
- if (code !== undefined) {
160
- localVarQueryParameter['code'] = code;
112
+ if (code2 !== undefined) {
113
+ localVarQueryParameter['code'] = code2;
161
114
  }
162
115
 
163
116
  if (expand !== undefined) {
164
117
  localVarQueryParameter['expand'] = expand;
165
118
  }
166
119
 
167
- if (expand2 !== undefined) {
168
- localVarQueryParameter['expand'] = expand2;
169
- }
170
-
171
120
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
172
121
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
173
122
  }
@@ -184,13 +133,13 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
184
133
  };
185
134
  },
186
135
  /**
187
- * 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.
136
+ * 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.
188
137
  * @summary List payment methods
189
138
  * @param {string} [authorization] Bearer Token
190
139
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
191
140
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
192
141
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
193
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
142
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
194
143
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
195
144
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
196
145
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
@@ -271,7 +220,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
271
220
  return {
272
221
  /**
273
222
  * 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.
274
- * @summary Create the payment-method
223
+ * @summary Create the payment method
275
224
  * @param {object} body
276
225
  * @param {string} [authorization] Bearer Token
277
226
  * @param {*} [options] Override http request option.
@@ -281,40 +230,28 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
281
230
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(body, authorization, options);
282
231
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
283
232
  },
284
- /**
285
- * 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.
286
- * @summary Delete a payment method
287
- * @param {number} id Unique identifier for payment method
288
- * @param {string} [authorization] Bearer Token
289
- * @param {*} [options] Override http request option.
290
- * @throws {RequiredError}
291
- */
292
- async deletePaymentMethod(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
293
- const localVarAxiosArgs = await localVarAxiosParamCreator.deletePaymentMethod(id, authorization, options);
294
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
295
- },
296
233
  /**
297
234
  * 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.
298
- * @summary Retrieve a payment method
299
- * @param {string} code Unique identifier for the object.
235
+ * @summary Retrieve the payment method
236
+ * @param {string} code
237
+ * @param {string} code2 Unique identifier for the object.
300
238
  * @param {string} expand Fields to expand response by
301
- * @param {string} expand2 Fields to expand response by
302
239
  * @param {string} [authorization] Bearer Token
303
240
  * @param {*} [options] Override http request option.
304
241
  * @throws {RequiredError}
305
242
  */
306
- async getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
307
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, expand, expand2, authorization, options);
243
+ async getPaymentMethod(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
244
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, code2, expand, authorization, options);
308
245
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
309
246
  },
310
247
  /**
311
- * 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.
248
+ * 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.
312
249
  * @summary List payment methods
313
250
  * @param {string} [authorization] Bearer Token
314
251
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
315
252
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
316
253
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
317
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
254
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
318
255
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
319
256
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
320
257
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
@@ -337,7 +274,7 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
337
274
  return {
338
275
  /**
339
276
  * 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.
340
- * @summary Create the payment-method
277
+ * @summary Create the payment method
341
278
  * @param {object} body
342
279
  * @param {string} [authorization] Bearer Token
343
280
  * @param {*} [options] Override http request option.
@@ -346,38 +283,27 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
346
283
  createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void> {
347
284
  return localVarFp.createPaymentMethod(body, authorization, options).then((request) => request(axios, basePath));
348
285
  },
349
- /**
350
- * 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.
351
- * @summary Delete a payment method
352
- * @param {number} id Unique identifier for payment method
353
- * @param {string} [authorization] Bearer Token
354
- * @param {*} [options] Override http request option.
355
- * @throws {RequiredError}
356
- */
357
- deletePaymentMethod(id: number, authorization?: string, options?: any): AxiosPromise<void> {
358
- return localVarFp.deletePaymentMethod(id, authorization, options).then((request) => request(axios, basePath));
359
- },
360
286
  /**
361
287
  * 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.
362
- * @summary Retrieve a payment method
363
- * @param {string} code Unique identifier for the object.
288
+ * @summary Retrieve the payment method
289
+ * @param {string} code
290
+ * @param {string} code2 Unique identifier for the object.
364
291
  * @param {string} expand Fields to expand response by
365
- * @param {string} expand2 Fields to expand response by
366
292
  * @param {string} [authorization] Bearer Token
367
293
  * @param {*} [options] Override http request option.
368
294
  * @throws {RequiredError}
369
295
  */
370
- getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void> {
371
- return localVarFp.getPaymentMethod(code, expand, expand2, authorization, options).then((request) => request(axios, basePath));
296
+ getPaymentMethod(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<void> {
297
+ return localVarFp.getPaymentMethod(code, code2, expand, authorization, options).then((request) => request(axios, basePath));
372
298
  },
373
299
  /**
374
- * 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.
300
+ * 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.
375
301
  * @summary List payment methods
376
302
  * @param {string} [authorization] Bearer Token
377
303
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
378
304
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
379
305
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
380
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
306
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
381
307
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
382
308
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
383
309
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
@@ -411,27 +337,6 @@ export interface PaymentMethodsApiCreatePaymentMethodRequest {
411
337
  readonly authorization?: string
412
338
  }
413
339
 
414
- /**
415
- * Request parameters for deletePaymentMethod operation in PaymentMethodsApi.
416
- * @export
417
- * @interface PaymentMethodsApiDeletePaymentMethodRequest
418
- */
419
- export interface PaymentMethodsApiDeletePaymentMethodRequest {
420
- /**
421
- * Unique identifier for payment method
422
- * @type {number}
423
- * @memberof PaymentMethodsApiDeletePaymentMethod
424
- */
425
- readonly id: number
426
-
427
- /**
428
- * Bearer Token
429
- * @type {string}
430
- * @memberof PaymentMethodsApiDeletePaymentMethod
431
- */
432
- readonly authorization?: string
433
- }
434
-
435
340
  /**
436
341
  * Request parameters for getPaymentMethod operation in PaymentMethodsApi.
437
342
  * @export
@@ -439,25 +344,25 @@ export interface PaymentMethodsApiDeletePaymentMethodRequest {
439
344
  */
440
345
  export interface PaymentMethodsApiGetPaymentMethodRequest {
441
346
  /**
442
- * Unique identifier for the object.
347
+ *
443
348
  * @type {string}
444
349
  * @memberof PaymentMethodsApiGetPaymentMethod
445
350
  */
446
351
  readonly code: string
447
352
 
448
353
  /**
449
- * Fields to expand response by
354
+ * Unique identifier for the object.
450
355
  * @type {string}
451
356
  * @memberof PaymentMethodsApiGetPaymentMethod
452
357
  */
453
- readonly expand: string
358
+ readonly code2: string
454
359
 
455
360
  /**
456
361
  * Fields to expand response by
457
362
  * @type {string}
458
363
  * @memberof PaymentMethodsApiGetPaymentMethod
459
364
  */
460
- readonly expand2: string
365
+ readonly expand: string
461
366
 
462
367
  /**
463
368
  * Bearer Token
@@ -502,7 +407,7 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
502
407
  readonly filter?: any
503
408
 
504
409
  /**
505
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
410
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
506
411
  * @type {any}
507
412
  * @memberof PaymentMethodsApiListPaymentMethods
508
413
  */
@@ -539,7 +444,7 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
539
444
  export class PaymentMethodsApi extends BaseAPI {
540
445
  /**
541
446
  * 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.
542
- * @summary Create the payment-method
447
+ * @summary Create the payment method
543
448
  * @param {PaymentMethodsApiCreatePaymentMethodRequest} requestParameters Request parameters.
544
449
  * @param {*} [options] Override http request option.
545
450
  * @throws {RequiredError}
@@ -549,32 +454,20 @@ export class PaymentMethodsApi extends BaseAPI {
549
454
  return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
550
455
  }
551
456
 
552
- /**
553
- * 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.
554
- * @summary Delete a payment method
555
- * @param {PaymentMethodsApiDeletePaymentMethodRequest} requestParameters Request parameters.
556
- * @param {*} [options] Override http request option.
557
- * @throws {RequiredError}
558
- * @memberof PaymentMethodsApi
559
- */
560
- public deletePaymentMethod(requestParameters: PaymentMethodsApiDeletePaymentMethodRequest, options?: AxiosRequestConfig) {
561
- return PaymentMethodsApiFp(this.configuration).deletePaymentMethod(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
562
- }
563
-
564
457
  /**
565
458
  * 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.
566
- * @summary Retrieve a payment method
459
+ * @summary Retrieve the payment method
567
460
  * @param {PaymentMethodsApiGetPaymentMethodRequest} requestParameters Request parameters.
568
461
  * @param {*} [options] Override http request option.
569
462
  * @throws {RequiredError}
570
463
  * @memberof PaymentMethodsApi
571
464
  */
572
465
  public getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig) {
573
- return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
466
+ return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.code2, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
574
467
  }
575
468
 
576
469
  /**
577
- * 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.
470
+ * 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.
578
471
  * @summary List payment methods
579
472
  * @param {PaymentMethodsApiListPaymentMethodsRequest} requestParameters Request parameters.
580
473
  * @param {*} [options] Override http request option.
@@ -129,7 +129,7 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
129
129
  };
130
130
  },
131
131
  /**
132
- * 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.
132
+ * 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.
133
133
  * @summary Retrieve the payment reminder
134
134
  * @param {string} code Unique identifier for the object.
135
135
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -174,13 +174,13 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
174
174
  };
175
175
  },
176
176
  /**
177
- * 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.
177
+ * 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.
178
178
  * @summary List payment reminders
179
179
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
180
180
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
181
181
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
182
182
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
183
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
183
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
184
184
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
185
185
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
186
186
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
@@ -285,7 +285,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
285
285
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
286
286
  },
287
287
  /**
288
- * 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.
288
+ * 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.
289
289
  * @summary Retrieve the payment reminder
290
290
  * @param {string} code Unique identifier for the object.
291
291
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -297,13 +297,13 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
297
297
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
298
298
  },
299
299
  /**
300
- * 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.
300
+ * 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.
301
301
  * @summary List payment reminders
302
302
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
303
303
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
304
304
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
305
305
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
306
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
306
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
307
307
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
308
308
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
309
309
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
@@ -348,7 +348,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
348
348
  return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
349
349
  },
350
350
  /**
351
- * 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.
351
+ * 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.
352
352
  * @summary Retrieve the payment reminder
353
353
  * @param {string} code Unique identifier for the object.
354
354
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -359,13 +359,13 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
359
359
  return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
360
360
  },
361
361
  /**
362
- * 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.
362
+ * 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.
363
363
  * @summary List payment reminders
364
364
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
365
365
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
366
366
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
367
367
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
368
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
368
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
369
369
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
370
370
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
371
371
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
@@ -483,7 +483,7 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
483
483
  readonly filter?: any
484
484
 
485
485
  /**
486
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
486
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
487
487
  * @type {any}
488
488
  * @memberof PaymentRemindersApiListPaymentReminders
489
489
  */
@@ -543,7 +543,7 @@ export class PaymentRemindersApi extends BaseAPI {
543
543
  }
544
544
 
545
545
  /**
546
- * 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.
546
+ * 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.
547
547
  * @summary Retrieve the payment reminder
548
548
  * @param {PaymentRemindersApiGetPolicyRequest} requestParameters Request parameters.
549
549
  * @param {*} [options] Override http request option.
@@ -555,7 +555,7 @@ export class PaymentRemindersApi extends BaseAPI {
555
555
  }
556
556
 
557
557
  /**
558
- * 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.
558
+ * 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.
559
559
  * @summary List payment reminders
560
560
  * @param {PaymentRemindersApiListPaymentRemindersRequest} requestParameters Request parameters.
561
561
  * @param {*} [options] Override http request option.