@emilgroup/payment-sdk 1.4.1-beta.30 → 1.4.1-beta.32

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 (93) hide show
  1. package/.openapi-generator/FILES +5 -15
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +34 -38
  4. package/api/bank-transaction-api.ts +73 -77
  5. package/api/{default-api.ts → health-check-api.ts} +21 -17
  6. package/api/payment-methods-api.ts +52 -70
  7. package/api/payment-reminders-api.ts +63 -49
  8. package/api/payment-setup-api.ts +16 -8
  9. package/api/payments-api.ts +52 -70
  10. package/api/refunds-api.ts +76 -88
  11. package/api/tenant-bank-account-api.ts +79 -63
  12. package/api/webhooks-api.ts +16 -12
  13. package/api.ts +2 -2
  14. package/base.ts +15 -7
  15. package/dist/api/bank-accounts-api.d.ts +37 -39
  16. package/dist/api/bank-accounts-api.js +18 -18
  17. package/dist/api/bank-transaction-api.d.ts +77 -79
  18. package/dist/api/bank-transaction-api.js +45 -45
  19. package/dist/api/health-check-api.d.ts +70 -0
  20. package/dist/api/{default-api.js → health-check-api.js} +30 -26
  21. package/dist/api/payment-methods-api.d.ts +49 -58
  22. package/dist/api/payment-methods-api.js +32 -42
  23. package/dist/api/payment-reminders-api.d.ts +55 -46
  24. package/dist/api/payment-reminders-api.js +40 -34
  25. package/dist/api/payment-setup-api.d.ts +16 -8
  26. package/dist/api/payment-setup-api.js +16 -8
  27. package/dist/api/payments-api.d.ts +49 -58
  28. package/dist/api/payments-api.js +32 -42
  29. package/dist/api/refunds-api.d.ts +76 -76
  30. package/dist/api/refunds-api.js +51 -49
  31. package/dist/api/tenant-bank-account-api.d.ts +71 -61
  32. package/dist/api/tenant-bank-account-api.js +51 -45
  33. package/dist/api/webhooks-api.d.ts +16 -12
  34. package/dist/api/webhooks-api.js +14 -10
  35. package/dist/api.d.ts +1 -1
  36. package/dist/api.js +1 -1
  37. package/dist/base.d.ts +3 -1
  38. package/dist/base.js +27 -20
  39. package/dist/models/{bank-transaction-response-class.d.ts → bank-transaction-class-without-expand-properties.d.ts} +20 -34
  40. package/dist/models/create-tenant-bank-account-response-class.d.ts +4 -4
  41. package/dist/models/get-tenant-bank-account-response-class.d.ts +4 -4
  42. package/dist/models/index.d.ts +4 -14
  43. package/dist/models/index.js +4 -14
  44. package/dist/models/list-tenant-bank-account-response-class.d.ts +5 -5
  45. package/dist/models/{tenant-bank-account-response-class.d.ts → tenant-bank-account-class-without-expand-properties.d.ts} +10 -10
  46. package/dist/models/tenant-bank-account-class.d.ts +73 -0
  47. package/dist/models/{get-bank-account-response-class.d.ts → update-tenant-bank-account-response-class.d.ts} +7 -7
  48. package/models/{bank-transaction-response-class.ts → bank-transaction-class-without-expand-properties.ts} +20 -34
  49. package/models/create-tenant-bank-account-response-class.ts +4 -4
  50. package/models/get-tenant-bank-account-response-class.ts +4 -4
  51. package/models/index.ts +4 -14
  52. package/models/list-tenant-bank-account-response-class.ts +5 -5
  53. package/models/{tenant-bank-account-response-class.ts → tenant-bank-account-class-without-expand-properties.ts} +10 -10
  54. package/models/tenant-bank-account-class.ts +79 -0
  55. package/models/{create-refund-response-class.ts → update-tenant-bank-account-response-class.ts} +7 -7
  56. package/package.json +1 -1
  57. package/dist/api/default-api.d.ts +0 -66
  58. package/dist/models/bank-account-class.d.ts +0 -73
  59. package/dist/models/create-refund-response-class.d.ts +0 -25
  60. package/dist/models/get-bank-transactions-response-class.d.ts +0 -25
  61. package/dist/models/get-bank-transactions-response-class.js +0 -15
  62. package/dist/models/get-refund-response-class.d.ts +0 -25
  63. package/dist/models/get-refund-response-class.js +0 -15
  64. package/dist/models/get-request-dto.d.ts +0 -30
  65. package/dist/models/get-request-dto.js +0 -15
  66. package/dist/models/list-bank-transactions-response-class.d.ts +0 -31
  67. package/dist/models/list-bank-transactions-response-class.js +0 -15
  68. package/dist/models/list-refunds-response-class.d.ts +0 -31
  69. package/dist/models/list-refunds-response-class.js +0 -15
  70. package/dist/models/primary-bank-account-response-class.d.ts +0 -42
  71. package/dist/models/primary-bank-account-response-class.js +0 -15
  72. package/dist/models/refund-class.d.ts +0 -105
  73. package/dist/models/refund-class.js +0 -29
  74. package/dist/models/tenant-bank-account-response-class.js +0 -15
  75. package/dist/models/transaction-class.d.ts +0 -54
  76. package/dist/models/transaction-class.js +0 -15
  77. package/dist/models/update-bank-account-response-class.d.ts +0 -25
  78. package/dist/models/update-bank-account-response-class.js +0 -15
  79. package/models/bank-account-class.ts +0 -79
  80. package/models/get-bank-account-response-class.ts +0 -31
  81. package/models/get-bank-transactions-response-class.ts +0 -31
  82. package/models/get-refund-response-class.ts +0 -31
  83. package/models/get-request-dto.ts +0 -36
  84. package/models/list-bank-transactions-response-class.ts +0 -37
  85. package/models/list-refunds-response-class.ts +0 -37
  86. package/models/primary-bank-account-response-class.ts +0 -48
  87. package/models/refund-class.ts +0 -115
  88. package/models/transaction-class.ts +0 -60
  89. package/models/update-bank-account-response-class.ts +0 -31
  90. /package/dist/models/{bank-account-class.js → bank-transaction-class-without-expand-properties.js} +0 -0
  91. /package/dist/models/{bank-transaction-response-class.js → tenant-bank-account-class-without-expand-properties.js} +0 -0
  92. /package/dist/models/{create-refund-response-class.js → tenant-bank-account-class.js} +0 -0
  93. /package/dist/models/{get-bank-account-response-class.js → update-tenant-bank-account-response-class.js} +0 -0
@@ -93,7 +93,8 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- *
96
+ * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
97
+ * @summary Complete a payment setup
97
98
  * @param {object} body
98
99
  * @param {string} [authorization] Bearer Token
99
100
  * @param {*} [options] Override http request option.
@@ -141,7 +142,8 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
141
142
  });
142
143
  },
143
144
  /**
144
- *
145
+ * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
146
+ * @summary Initiate a payment setup
145
147
  * @param {object} body
146
148
  * @param {string} [authorization] Bearer Token
147
149
  * @param {*} [options] Override http request option.
@@ -199,7 +201,8 @@ var PaymentSetupApiFp = function (configuration) {
199
201
  var localVarAxiosParamCreator = (0, exports.PaymentSetupApiAxiosParamCreator)(configuration);
200
202
  return {
201
203
  /**
202
- *
204
+ * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
205
+ * @summary Complete a payment setup
203
206
  * @param {object} body
204
207
  * @param {string} [authorization] Bearer Token
205
208
  * @param {*} [options] Override http request option.
@@ -219,7 +222,8 @@ var PaymentSetupApiFp = function (configuration) {
219
222
  });
220
223
  },
221
224
  /**
222
- *
225
+ * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
226
+ * @summary Initiate a payment setup
223
227
  * @param {object} body
224
228
  * @param {string} [authorization] Bearer Token
225
229
  * @param {*} [options] Override http request option.
@@ -249,7 +253,8 @@ var PaymentSetupApiFactory = function (configuration, basePath, axios) {
249
253
  var localVarFp = (0, exports.PaymentSetupApiFp)(configuration);
250
254
  return {
251
255
  /**
252
- *
256
+ * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
257
+ * @summary Complete a payment setup
253
258
  * @param {object} body
254
259
  * @param {string} [authorization] Bearer Token
255
260
  * @param {*} [options] Override http request option.
@@ -259,7 +264,8 @@ var PaymentSetupApiFactory = function (configuration, basePath, axios) {
259
264
  return localVarFp.completePaymentSetup(body, authorization, options).then(function (request) { return request(axios, basePath); });
260
265
  },
261
266
  /**
262
- *
267
+ * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
268
+ * @summary Initiate a payment setup
263
269
  * @param {object} body
264
270
  * @param {string} [authorization] Bearer Token
265
271
  * @param {*} [options] Override http request option.
@@ -283,7 +289,8 @@ var PaymentSetupApi = /** @class */ (function (_super) {
283
289
  return _super !== null && _super.apply(this, arguments) || this;
284
290
  }
285
291
  /**
286
- *
292
+ * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
293
+ * @summary Complete a payment setup
287
294
  * @param {PaymentSetupApiCompletePaymentSetupRequest} requestParameters Request parameters.
288
295
  * @param {*} [options] Override http request option.
289
296
  * @throws {RequiredError}
@@ -294,7 +301,8 @@ var PaymentSetupApi = /** @class */ (function (_super) {
294
301
  return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
295
302
  };
296
303
  /**
297
- *
304
+ * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
305
+ * @summary Initiate a payment setup
298
306
  * @param {PaymentSetupApiInitiatePaymentSetupRequest} requestParameters Request parameters.
299
307
  * @param {*} [options] Override http request option.
300
308
  * @throws {RequiredError}
@@ -19,7 +19,7 @@ import { CreatePaymentRequestDto } from '../models';
19
19
  */
20
20
  export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuration) => {
21
21
  /**
22
- * Creates a payment for a specified account. This function is idempotent.
22
+ * This will create a payment for a specified account. This function is idempotent.
23
23
  * @summary Create the payment
24
24
  * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
25
25
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
@@ -31,29 +31,28 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
31
31
  /**
32
32
  * Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
33
33
  * @summary Retrieve the payment
34
- * @param {string} code
35
- * @param {string} code2 Unique identifier for the object.
36
- * @param {string} expand Fields to expand response by
34
+ * @param {string} code Unique identifier for the object.
37
35
  * @param {string} [authorization] Bearer Token
36
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: transactions.<i>
38
37
  * @param {*} [options] Override http request option.
39
38
  * @throws {RequiredError}
40
39
  */
41
- getPayment: (code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
40
+ getPayment: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
41
  /**
43
- * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
42
+ * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
44
43
  * @summary List payments
45
44
  * @param {string} [authorization] Bearer Token
46
45
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
47
46
  * @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.
48
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
47
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
49
48
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
50
- * @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.
51
- * @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.
52
- * @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.
49
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, code, amount&lt;/i&gt;
50
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: transactions.&lt;i&gt;
51
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
53
52
  * @param {*} [options] Override http request option.
54
53
  * @throws {RequiredError}
55
54
  */
56
- listPayments: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
55
+ listPayments: (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
57
56
  };
58
57
  /**
59
58
  * PaymentsApi - functional programming interface
@@ -61,7 +60,7 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
61
60
  */
62
61
  export declare const PaymentsApiFp: (configuration?: Configuration) => {
63
62
  /**
64
- * Creates a payment for a specified account. This function is idempotent.
63
+ * This will create a payment for a specified account. This function is idempotent.
65
64
  * @summary Create the payment
66
65
  * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
67
66
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
@@ -73,29 +72,28 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
73
72
  /**
74
73
  * Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
75
74
  * @summary Retrieve the payment
76
- * @param {string} code
77
- * @param {string} code2 Unique identifier for the object.
78
- * @param {string} expand Fields to expand response by
75
+ * @param {string} code Unique identifier for the object.
79
76
  * @param {string} [authorization] Bearer Token
77
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: transactions.&lt;i&gt;
80
78
  * @param {*} [options] Override http request option.
81
79
  * @throws {RequiredError}
82
80
  */
83
- getPayment(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
81
+ getPayment(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
84
82
  /**
85
- * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
83
+ * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
86
84
  * @summary List payments
87
85
  * @param {string} [authorization] Bearer Token
88
86
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
89
87
  * @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.
90
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
88
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
91
89
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
92
- * @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.
93
- * @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.
94
- * @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.
90
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, code, amount&lt;/i&gt;
91
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: transactions.&lt;i&gt;
92
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
95
93
  * @param {*} [options] Override http request option.
96
94
  * @throws {RequiredError}
97
95
  */
98
- listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
96
+ listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
99
97
  };
100
98
  /**
101
99
  * PaymentsApi - factory interface
@@ -103,7 +101,7 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
103
101
  */
104
102
  export declare const PaymentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
105
103
  /**
106
- * Creates a payment for a specified account. This function is idempotent.
104
+ * This will create a payment for a specified account. This function is idempotent.
107
105
  * @summary Create the payment
108
106
  * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
109
107
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
@@ -115,29 +113,28 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
115
113
  /**
116
114
  * Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
117
115
  * @summary Retrieve the payment
118
- * @param {string} code
119
- * @param {string} code2 Unique identifier for the object.
120
- * @param {string} expand Fields to expand response by
116
+ * @param {string} code Unique identifier for the object.
121
117
  * @param {string} [authorization] Bearer Token
118
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: transactions.&lt;i&gt;
122
119
  * @param {*} [options] Override http request option.
123
120
  * @throws {RequiredError}
124
121
  */
125
- getPayment(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<void>;
122
+ getPayment(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void>;
126
123
  /**
127
- * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
124
+ * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
128
125
  * @summary List payments
129
126
  * @param {string} [authorization] Bearer Token
130
127
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
131
128
  * @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.
132
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
129
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
133
130
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
134
- * @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.
135
- * @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.
136
- * @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.
131
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, code, amount&lt;/i&gt;
132
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: transactions.&lt;i&gt;
133
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
137
134
  * @param {*} [options] Override http request option.
138
135
  * @throws {RequiredError}
139
136
  */
140
- listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void>;
137
+ listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void>;
141
138
  };
142
139
  /**
143
140
  * Request parameters for createPayment operation in PaymentsApi.
@@ -170,30 +167,24 @@ export interface PaymentsApiCreatePaymentRequest {
170
167
  * @interface PaymentsApiGetPaymentRequest
171
168
  */
172
169
  export interface PaymentsApiGetPaymentRequest {
173
- /**
174
- *
175
- * @type {string}
176
- * @memberof PaymentsApiGetPayment
177
- */
178
- readonly code: string;
179
170
  /**
180
171
  * Unique identifier for the object.
181
172
  * @type {string}
182
173
  * @memberof PaymentsApiGetPayment
183
174
  */
184
- readonly code2: string;
175
+ readonly code: string;
185
176
  /**
186
- * Fields to expand response by
177
+ * Bearer Token
187
178
  * @type {string}
188
179
  * @memberof PaymentsApiGetPayment
189
180
  */
190
- readonly expand: string;
181
+ readonly authorization?: string;
191
182
  /**
192
- * Bearer Token
183
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: transactions.&lt;i&gt;
193
184
  * @type {string}
194
185
  * @memberof PaymentsApiGetPayment
195
186
  */
196
- readonly authorization?: string;
187
+ readonly expand?: string;
197
188
  }
198
189
  /**
199
190
  * Request parameters for listPayments operation in PaymentsApi.
@@ -220,11 +211,11 @@ export interface PaymentsApiListPaymentsRequest {
220
211
  */
221
212
  readonly pageToken?: any;
222
213
  /**
223
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
224
- * @type {any}
214
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
215
+ * @type {string}
225
216
  * @memberof PaymentsApiListPayments
226
217
  */
227
- readonly filter?: any;
218
+ readonly filter?: string;
228
219
  /**
229
220
  * To search the list by any field, pass search&#x3D;xxx to fetch the result.
230
221
  * @type {any}
@@ -232,23 +223,23 @@ export interface PaymentsApiListPaymentsRequest {
232
223
  */
233
224
  readonly search?: any;
234
225
  /**
235
- * 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.
236
- * @type {any}
226
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, code, amount&lt;/i&gt;
227
+ * @type {string}
237
228
  * @memberof PaymentsApiListPayments
238
229
  */
239
- readonly order?: any;
230
+ readonly order?: string;
240
231
  /**
241
- * 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.
242
- * @type {any}
232
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: transactions.&lt;i&gt;
233
+ * @type {string}
243
234
  * @memberof PaymentsApiListPayments
244
235
  */
245
- readonly expand?: any;
236
+ readonly expand?: string;
246
237
  /**
247
- * 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.
248
- * @type {any}
238
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
239
+ * @type {string}
249
240
  * @memberof PaymentsApiListPayments
250
241
  */
251
- readonly filters?: any;
242
+ readonly filters?: string;
252
243
  }
253
244
  /**
254
245
  * PaymentsApi - object-oriented interface
@@ -258,7 +249,7 @@ export interface PaymentsApiListPaymentsRequest {
258
249
  */
259
250
  export declare class PaymentsApi extends BaseAPI {
260
251
  /**
261
- * Creates a payment for a specified account. This function is idempotent.
252
+ * This will create a payment for a specified account. This function is idempotent.
262
253
  * @summary Create the payment
263
254
  * @param {PaymentsApiCreatePaymentRequest} requestParameters Request parameters.
264
255
  * @param {*} [options] Override http request option.
@@ -276,7 +267,7 @@ export declare class PaymentsApi extends BaseAPI {
276
267
  */
277
268
  getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
278
269
  /**
279
- * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
270
+ * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
280
271
  * @summary List payments
281
272
  * @param {PaymentsApiListPaymentsRequest} requestParameters Request parameters.
282
273
  * @param {*} [options] Override http request option.
@@ -93,7 +93,7 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- * Creates a payment for a specified account. This function is idempotent.
96
+ * This will create a payment for a specified account. This function is idempotent.
97
97
  * @summary Create the payment
98
98
  * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
99
99
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
@@ -150,14 +150,13 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
150
150
  /**
151
151
  * Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
152
152
  * @summary Retrieve the payment
153
- * @param {string} code
154
- * @param {string} code2 Unique identifier for the object.
155
- * @param {string} expand Fields to expand response by
153
+ * @param {string} code Unique identifier for the object.
156
154
  * @param {string} [authorization] Bearer Token
155
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: transactions.&lt;i&gt;
157
156
  * @param {*} [options] Override http request option.
158
157
  * @throws {RequiredError}
159
158
  */
160
- getPayment: function (code, code2, expand, authorization, options) {
159
+ getPayment: function (code, authorization, expand, options) {
161
160
  if (options === void 0) { options = {}; }
162
161
  return __awaiter(_this, void 0, void 0, function () {
163
162
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -166,10 +165,6 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
166
165
  case 0:
167
166
  // verify required parameter 'code' is not null or undefined
168
167
  (0, common_1.assertParamExists)('getPayment', 'code', code);
169
- // verify required parameter 'code2' is not null or undefined
170
- (0, common_1.assertParamExists)('getPayment', 'code2', code2);
171
- // verify required parameter 'expand' is not null or undefined
172
- (0, common_1.assertParamExists)('getPayment', 'expand', expand);
173
168
  localVarPath = "/paymentservice/v1/payments/{code}"
174
169
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
175
170
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -187,9 +182,6 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
187
182
  // authentication bearer required
188
183
  // http bearer authentication required
189
184
  _a.sent();
190
- if (code2 !== undefined) {
191
- localVarQueryParameter['code'] = code2;
192
- }
193
185
  if (expand !== undefined) {
194
186
  localVarQueryParameter['expand'] = expand;
195
187
  }
@@ -208,16 +200,16 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
208
200
  });
209
201
  },
210
202
  /**
211
- * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
203
+ * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
212
204
  * @summary List payments
213
205
  * @param {string} [authorization] Bearer Token
214
206
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
215
207
  * @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.
216
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
208
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
217
209
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
218
- * @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.
219
- * @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.
220
- * @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.
210
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, code, amount&lt;/i&gt;
211
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: transactions.&lt;i&gt;
212
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
221
213
  * @param {*} [options] Override http request option.
222
214
  * @throws {RequiredError}
223
215
  */
@@ -290,7 +282,7 @@ var PaymentsApiFp = function (configuration) {
290
282
  var localVarAxiosParamCreator = (0, exports.PaymentsApiAxiosParamCreator)(configuration);
291
283
  return {
292
284
  /**
293
- * Creates a payment for a specified account. This function is idempotent.
285
+ * This will create a payment for a specified account. This function is idempotent.
294
286
  * @summary Create the payment
295
287
  * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
296
288
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
@@ -314,19 +306,18 @@ var PaymentsApiFp = function (configuration) {
314
306
  /**
315
307
  * Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
316
308
  * @summary Retrieve the payment
317
- * @param {string} code
318
- * @param {string} code2 Unique identifier for the object.
319
- * @param {string} expand Fields to expand response by
309
+ * @param {string} code Unique identifier for the object.
320
310
  * @param {string} [authorization] Bearer Token
311
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: transactions.&lt;i&gt;
321
312
  * @param {*} [options] Override http request option.
322
313
  * @throws {RequiredError}
323
314
  */
324
- getPayment: function (code, code2, expand, authorization, options) {
315
+ getPayment: function (code, authorization, expand, options) {
325
316
  return __awaiter(this, void 0, void 0, function () {
326
317
  var localVarAxiosArgs;
327
318
  return __generator(this, function (_a) {
328
319
  switch (_a.label) {
329
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPayment(code, code2, expand, authorization, options)];
320
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPayment(code, authorization, expand, options)];
330
321
  case 1:
331
322
  localVarAxiosArgs = _a.sent();
332
323
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -335,16 +326,16 @@ var PaymentsApiFp = function (configuration) {
335
326
  });
336
327
  },
337
328
  /**
338
- * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
329
+ * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
339
330
  * @summary List payments
340
331
  * @param {string} [authorization] Bearer Token
341
332
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
342
333
  * @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.
343
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
334
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
344
335
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
345
- * @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.
346
- * @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.
347
- * @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.
336
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, code, amount&lt;/i&gt;
337
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: transactions.&lt;i&gt;
338
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
348
339
  * @param {*} [options] Override http request option.
349
340
  * @throws {RequiredError}
350
341
  */
@@ -372,7 +363,7 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
372
363
  var localVarFp = (0, exports.PaymentsApiFp)(configuration);
373
364
  return {
374
365
  /**
375
- * Creates a payment for a specified account. This function is idempotent.
366
+ * This will create a payment for a specified account. This function is idempotent.
376
367
  * @summary Create the payment
377
368
  * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
378
369
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
@@ -386,27 +377,26 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
386
377
  /**
387
378
  * Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
388
379
  * @summary Retrieve the payment
389
- * @param {string} code
390
- * @param {string} code2 Unique identifier for the object.
391
- * @param {string} expand Fields to expand response by
380
+ * @param {string} code Unique identifier for the object.
392
381
  * @param {string} [authorization] Bearer Token
382
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: transactions.&lt;i&gt;
393
383
  * @param {*} [options] Override http request option.
394
384
  * @throws {RequiredError}
395
385
  */
396
- getPayment: function (code, code2, expand, authorization, options) {
397
- return localVarFp.getPayment(code, code2, expand, authorization, options).then(function (request) { return request(axios, basePath); });
386
+ getPayment: function (code, authorization, expand, options) {
387
+ return localVarFp.getPayment(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
398
388
  },
399
389
  /**
400
- * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
390
+ * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
401
391
  * @summary List payments
402
392
  * @param {string} [authorization] Bearer Token
403
393
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
404
394
  * @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.
405
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
395
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
406
396
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
407
- * @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.
408
- * @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.
409
- * @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.
397
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, code, amount&lt;/i&gt;
398
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: transactions.&lt;i&gt;
399
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
410
400
  * @param {*} [options] Override http request option.
411
401
  * @throws {RequiredError}
412
402
  */
@@ -428,7 +418,7 @@ var PaymentsApi = /** @class */ (function (_super) {
428
418
  return _super !== null && _super.apply(this, arguments) || this;
429
419
  }
430
420
  /**
431
- * Creates a payment for a specified account. This function is idempotent.
421
+ * This will create a payment for a specified account. This function is idempotent.
432
422
  * @summary Create the payment
433
423
  * @param {PaymentsApiCreatePaymentRequest} requestParameters Request parameters.
434
424
  * @param {*} [options] Override http request option.
@@ -449,10 +439,10 @@ var PaymentsApi = /** @class */ (function (_super) {
449
439
  */
450
440
  PaymentsApi.prototype.getPayment = function (requestParameters, options) {
451
441
  var _this = this;
452
- return (0, exports.PaymentsApiFp)(this.configuration).getPayment(requestParameters.code, requestParameters.code2, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
442
+ return (0, exports.PaymentsApiFp)(this.configuration).getPayment(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
453
443
  };
454
444
  /**
455
- * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
445
+ * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
456
446
  * @summary List payments
457
447
  * @param {PaymentsApiListPaymentsRequest} requestParameters Request parameters.
458
448
  * @param {*} [options] Override http request option.