@emilgroup/payment-sdk-node 1.21.1-beta.2 → 1.21.1-beta.20

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 (102) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +79 -37
  4. package/api/bank-orders-api.ts +695 -0
  5. package/api/bank-transaction-api.ts +187 -56
  6. package/api/payment-methods-api.ts +67 -25
  7. package/api/payment-reminders-api.ts +85 -43
  8. package/api/payment-setup-api.ts +8 -8
  9. package/api/payments-api.ts +67 -25
  10. package/api/refunds-api.ts +57 -29
  11. package/api/tenant-bank-account-api.ts +45 -17
  12. package/api/webhooks-api.ts +4 -4
  13. package/api.ts +2 -0
  14. package/base.ts +1 -1
  15. package/dist/api/bank-accounts-api.d.ts +59 -32
  16. package/dist/api/bank-accounts-api.js +53 -35
  17. package/dist/api/bank-orders-api.d.ts +393 -0
  18. package/dist/api/bank-orders-api.js +646 -0
  19. package/dist/api/bank-transaction-api.d.ts +123 -49
  20. package/dist/api/bank-transaction-api.js +151 -47
  21. package/dist/api/payment-methods-api.d.ts +47 -20
  22. package/dist/api/payment-methods-api.js +41 -23
  23. package/dist/api/payment-reminders-api.d.ts +61 -34
  24. package/dist/api/payment-reminders-api.js +54 -36
  25. package/dist/api/payment-setup-api.d.ts +8 -8
  26. package/dist/api/payment-setup-api.js +8 -8
  27. package/dist/api/payments-api.d.ts +47 -20
  28. package/dist/api/payments-api.js +41 -23
  29. package/dist/api/refunds-api.d.ts +40 -22
  30. package/dist/api/refunds-api.js +36 -24
  31. package/dist/api/tenant-bank-account-api.d.ts +28 -10
  32. package/dist/api/tenant-bank-account-api.js +24 -12
  33. package/dist/api/webhooks-api.d.ts +4 -4
  34. package/dist/api/webhooks-api.js +4 -4
  35. package/dist/api.d.ts +1 -0
  36. package/dist/api.js +1 -0
  37. package/dist/models/bank-order-class.d.ts +115 -0
  38. package/dist/models/bank-order-class.js +15 -0
  39. package/dist/models/bank-transaction-class-without-expand-properties.d.ts +8 -2
  40. package/dist/models/bank-transaction-class.d.ts +22 -2
  41. package/dist/models/create-bank-order-request-dto.d.ts +74 -0
  42. package/dist/models/create-bank-order-request-dto.js +28 -0
  43. package/dist/models/create-bank-order-response-class.d.ts +25 -0
  44. package/dist/models/create-bank-order-response-class.js +15 -0
  45. package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
  46. package/dist/models/create-payment-request-dto.d.ts +7 -1
  47. package/dist/models/create-psp-payment-method-request-dto.d.ts +7 -1
  48. package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
  49. package/dist/models/financial-account-class.d.ts +111 -0
  50. package/dist/models/financial-account-class.js +24 -0
  51. package/dist/models/generate-invoice-match-suggestions-response-class.d.ts +25 -0
  52. package/dist/models/generate-invoice-match-suggestions-response-class.js +15 -0
  53. package/dist/models/get-bank-order-response-class.d.ts +25 -0
  54. package/dist/models/get-bank-order-response-class.js +15 -0
  55. package/dist/models/index.d.ts +11 -0
  56. package/dist/models/index.js +11 -0
  57. package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
  58. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
  59. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
  60. package/dist/models/invoice-match-suggestion-class.d.ts +60 -0
  61. package/dist/models/invoice-match-suggestion-class.js +15 -0
  62. package/dist/models/list-bank-orders-response-class.d.ts +31 -0
  63. package/dist/models/list-bank-orders-response-class.js +15 -0
  64. package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
  65. package/dist/models/payment-class.d.ts +7 -1
  66. package/dist/models/payment-reminder-class.d.ts +7 -1
  67. package/dist/models/refund-class.d.ts +7 -1
  68. package/dist/models/suggestion-generation-progress-class.d.ts +43 -0
  69. package/dist/models/suggestion-generation-progress-class.js +22 -0
  70. package/dist/models/unlinked-bank-transaction-response-class.d.ts +8 -2
  71. package/dist/models/update-bank-order-request-dto.d.ts +56 -0
  72. package/dist/models/update-bank-order-request-dto.js +23 -0
  73. package/dist/models/update-bank-order-response-class.d.ts +25 -0
  74. package/dist/models/update-bank-order-response-class.js +15 -0
  75. package/models/bank-order-class.ts +121 -0
  76. package/models/bank-transaction-class-without-expand-properties.ts +8 -2
  77. package/models/bank-transaction-class.ts +22 -2
  78. package/models/create-bank-order-request-dto.ts +84 -0
  79. package/models/create-bank-order-response-class.ts +31 -0
  80. package/models/create-payment-reminder-request-dto.ts +7 -1
  81. package/models/create-payment-request-dto.ts +7 -1
  82. package/models/create-psp-payment-method-request-dto.ts +7 -1
  83. package/models/deactivated-payment-reminder-class.ts +7 -1
  84. package/models/financial-account-class.ts +120 -0
  85. package/models/generate-invoice-match-suggestions-response-class.ts +31 -0
  86. package/models/get-bank-order-response-class.ts +31 -0
  87. package/models/index.ts +11 -0
  88. package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
  89. package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
  90. package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
  91. package/models/invoice-match-suggestion-class.ts +66 -0
  92. package/models/list-bank-orders-response-class.ts +37 -0
  93. package/models/payment-class-without-expand-properties.ts +7 -1
  94. package/models/payment-class.ts +7 -1
  95. package/models/payment-reminder-class.ts +7 -1
  96. package/models/refund-class.ts +7 -1
  97. package/models/suggestion-generation-progress-class.ts +52 -0
  98. package/models/unlinked-bank-transaction-response-class.ts +8 -2
  99. package/models/update-bank-order-request-dto.ts +65 -0
  100. package/models/update-bank-order-response-class.ts +31 -0
  101. package/package.json +1 -1
  102. package/tsconfig.json +1 -0
@@ -22,7 +22,7 @@ import { InitiatePaymentSetupResponseClass } from '../models';
22
22
  */
23
23
  export declare const PaymentSetupApiAxiosParamCreator: (configuration?: Configuration) => {
24
24
  /**
25
- * 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.
25
+ * 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. **Required Permissions** \"payment-management.payments.create\"
26
26
  * @summary Complete a payment setup
27
27
  * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
28
28
  * @param {string} [authorization] Bearer Token
@@ -31,7 +31,7 @@ export declare const PaymentSetupApiAxiosParamCreator: (configuration?: Configur
31
31
  */
32
32
  completePaymentSetup: (completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
33
  /**
34
- * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
34
+ * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information. **Required Permissions** \"payment-management.payments.create\"
35
35
  * @summary Initiate a payment setup
36
36
  * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
37
37
  * @param {string} [authorization] Bearer Token
@@ -46,7 +46,7 @@ export declare const PaymentSetupApiAxiosParamCreator: (configuration?: Configur
46
46
  */
47
47
  export declare const PaymentSetupApiFp: (configuration?: Configuration) => {
48
48
  /**
49
- * 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.
49
+ * 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. **Required Permissions** \"payment-management.payments.create\"
50
50
  * @summary Complete a payment setup
51
51
  * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
52
52
  * @param {string} [authorization] Bearer Token
@@ -55,7 +55,7 @@ export declare const PaymentSetupApiFp: (configuration?: Configuration) => {
55
55
  */
56
56
  completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>>;
57
57
  /**
58
- * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
58
+ * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information. **Required Permissions** \"payment-management.payments.create\"
59
59
  * @summary Initiate a payment setup
60
60
  * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
61
61
  * @param {string} [authorization] Bearer Token
@@ -70,7 +70,7 @@ export declare const PaymentSetupApiFp: (configuration?: Configuration) => {
70
70
  */
71
71
  export declare const PaymentSetupApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
72
72
  /**
73
- * 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.
73
+ * 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. **Required Permissions** \"payment-management.payments.create\"
74
74
  * @summary Complete a payment setup
75
75
  * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
76
76
  * @param {string} [authorization] Bearer Token
@@ -79,7 +79,7 @@ export declare const PaymentSetupApiFactory: (configuration?: Configuration, bas
79
79
  */
80
80
  completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass>;
81
81
  /**
82
- * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
82
+ * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information. **Required Permissions** \"payment-management.payments.create\"
83
83
  * @summary Initiate a payment setup
84
84
  * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
85
85
  * @param {string} [authorization] Bearer Token
@@ -134,7 +134,7 @@ export interface PaymentSetupApiInitiatePaymentSetupRequest {
134
134
  */
135
135
  export declare class PaymentSetupApi extends BaseAPI {
136
136
  /**
137
- * 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.
137
+ * 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. **Required Permissions** \"payment-management.payments.create\"
138
138
  * @summary Complete a payment setup
139
139
  * @param {PaymentSetupApiCompletePaymentSetupRequest} requestParameters Request parameters.
140
140
  * @param {*} [options] Override http request option.
@@ -143,7 +143,7 @@ export declare class PaymentSetupApi extends BaseAPI {
143
143
  */
144
144
  completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompletePaymentSetupResponseClass, any>>;
145
145
  /**
146
- * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
146
+ * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information. **Required Permissions** \"payment-management.payments.create\"
147
147
  * @summary Initiate a payment setup
148
148
  * @param {PaymentSetupApiInitiatePaymentSetupRequest} requestParameters Request parameters.
149
149
  * @param {*} [options] Override http request option.
@@ -97,7 +97,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * 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.
100
+ * 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. **Required Permissions** \"payment-management.payments.create\"
101
101
  * @summary Complete a payment setup
102
102
  * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
103
103
  * @param {string} [authorization] Bearer Token
@@ -146,7 +146,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
146
146
  });
147
147
  },
148
148
  /**
149
- * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
149
+ * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information. **Required Permissions** \"payment-management.payments.create\"
150
150
  * @summary Initiate a payment setup
151
151
  * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
152
152
  * @param {string} [authorization] Bearer Token
@@ -205,7 +205,7 @@ var PaymentSetupApiFp = function (configuration) {
205
205
  var localVarAxiosParamCreator = (0, exports.PaymentSetupApiAxiosParamCreator)(configuration);
206
206
  return {
207
207
  /**
208
- * 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.
208
+ * 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. **Required Permissions** \"payment-management.payments.create\"
209
209
  * @summary Complete a payment setup
210
210
  * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
211
211
  * @param {string} [authorization] Bearer Token
@@ -226,7 +226,7 @@ var PaymentSetupApiFp = function (configuration) {
226
226
  });
227
227
  },
228
228
  /**
229
- * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
229
+ * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information. **Required Permissions** \"payment-management.payments.create\"
230
230
  * @summary Initiate a payment setup
231
231
  * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
232
232
  * @param {string} [authorization] Bearer Token
@@ -257,7 +257,7 @@ var PaymentSetupApiFactory = function (configuration, basePath, axios) {
257
257
  var localVarFp = (0, exports.PaymentSetupApiFp)(configuration);
258
258
  return {
259
259
  /**
260
- * 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.
260
+ * 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. **Required Permissions** \"payment-management.payments.create\"
261
261
  * @summary Complete a payment setup
262
262
  * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
263
263
  * @param {string} [authorization] Bearer Token
@@ -268,7 +268,7 @@ var PaymentSetupApiFactory = function (configuration, basePath, axios) {
268
268
  return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
269
269
  },
270
270
  /**
271
- * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
271
+ * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information. **Required Permissions** \"payment-management.payments.create\"
272
272
  * @summary Initiate a payment setup
273
273
  * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
274
274
  * @param {string} [authorization] Bearer Token
@@ -293,7 +293,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
293
293
  return _super !== null && _super.apply(this, arguments) || this;
294
294
  }
295
295
  /**
296
- * 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.
296
+ * 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. **Required Permissions** \"payment-management.payments.create\"
297
297
  * @summary Complete a payment setup
298
298
  * @param {PaymentSetupApiCompletePaymentSetupRequest} requestParameters Request parameters.
299
299
  * @param {*} [options] Override http request option.
@@ -305,7 +305,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
305
305
  return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
306
306
  };
307
307
  /**
308
- * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
308
+ * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information. **Required Permissions** \"payment-management.payments.create\"
309
309
  * @summary Initiate a payment setup
310
310
  * @param {PaymentSetupApiInitiatePaymentSetupRequest} requestParameters Request parameters.
311
311
  * @param {*} [options] Override http request option.
@@ -22,7 +22,7 @@ import { ListPaymentsResponseClass } from '../models';
22
22
  */
23
23
  export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuration) => {
24
24
  /**
25
- * This will create a payment for a specified account. This function is idempotent.
25
+ * This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
26
26
  * @summary Create the payment
27
27
  * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
28
28
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
@@ -32,7 +32,7 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
32
32
  */
33
33
  createPayment: (idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34
34
  /**
35
- * 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.
35
+ * 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. **Required Permissions** \"payment-management.payments.view\"
36
36
  * @summary Retrieve the payment
37
37
  * @param {string} code
38
38
  * @param {string} [authorization] Bearer Token
@@ -42,17 +42,20 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
42
42
  */
43
43
  getPayment: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
44
  /**
45
- * 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.
45
+ * 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. **Required Permissions** \"payment-management.payments.view\"
46
46
  * @summary List payments
47
47
  * @param {string} [authorization] Bearer Token
48
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
49
+ * @param {string} [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
50
  * @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, productSlug&lt;/i&gt;
49
- * @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, productSlug&lt;/i&gt;
51
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
50
52
  * @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;
51
53
  * @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;
54
+ * @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, productSlug&lt;/i&gt;
52
55
  * @param {*} [options] Override http request option.
53
56
  * @throws {RequiredError}
54
57
  */
55
- listPayments: (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
58
+ listPayments: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
56
59
  };
57
60
  /**
58
61
  * PaymentsApi - functional programming interface
@@ -60,7 +63,7 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
60
63
  */
61
64
  export declare const PaymentsApiFp: (configuration?: Configuration) => {
62
65
  /**
63
- * This will create a payment for a specified account. This function is idempotent.
66
+ * This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
64
67
  * @summary Create the payment
65
68
  * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
66
69
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
@@ -70,7 +73,7 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
70
73
  */
71
74
  createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>>;
72
75
  /**
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.
76
+ * 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. **Required Permissions** \"payment-management.payments.view\"
74
77
  * @summary Retrieve the payment
75
78
  * @param {string} code
76
79
  * @param {string} [authorization] Bearer Token
@@ -80,17 +83,20 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
80
83
  */
81
84
  getPayment(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentResponseClass>>;
82
85
  /**
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
+ * 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. **Required Permissions** \"payment-management.payments.view\"
84
87
  * @summary List payments
85
88
  * @param {string} [authorization] Bearer Token
89
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
90
+ * @param {string} [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.
86
91
  * @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, productSlug&lt;/i&gt;
87
- * @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, productSlug&lt;/i&gt;
92
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
88
93
  * @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;
89
94
  * @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;
95
+ * @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, productSlug&lt;/i&gt;
90
96
  * @param {*} [options] Override http request option.
91
97
  * @throws {RequiredError}
92
98
  */
93
- listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponseClass>>;
99
+ listPayments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponseClass>>;
94
100
  };
95
101
  /**
96
102
  * PaymentsApi - factory interface
@@ -98,7 +104,7 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
98
104
  */
99
105
  export declare const PaymentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
100
106
  /**
101
- * This will create a payment for a specified account. This function is idempotent.
107
+ * This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
102
108
  * @summary Create the payment
103
109
  * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
104
110
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
@@ -108,7 +114,7 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
108
114
  */
109
115
  createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass>;
110
116
  /**
111
- * 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
+ * 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. **Required Permissions** \"payment-management.payments.view\"
112
118
  * @summary Retrieve the payment
113
119
  * @param {string} code
114
120
  * @param {string} [authorization] Bearer Token
@@ -118,17 +124,20 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
118
124
  */
119
125
  getPayment(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPaymentResponseClass>;
120
126
  /**
121
- * 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.
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. **Required Permissions** \"payment-management.payments.view\"
122
128
  * @summary List payments
123
129
  * @param {string} [authorization] Bearer Token
130
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
131
+ * @param {string} [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.
124
132
  * @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, productSlug&lt;/i&gt;
125
- * @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, productSlug&lt;/i&gt;
133
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
126
134
  * @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;
127
135
  * @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;
136
+ * @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, productSlug&lt;/i&gt;
128
137
  * @param {*} [options] Override http request option.
129
138
  * @throws {RequiredError}
130
139
  */
131
- listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPaymentsResponseClass>;
140
+ listPayments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPaymentsResponseClass>;
132
141
  };
133
142
  /**
134
143
  * Request parameters for createPayment operation in PaymentsApi.
@@ -192,6 +201,18 @@ export interface PaymentsApiListPaymentsRequest {
192
201
  * @memberof PaymentsApiListPayments
193
202
  */
194
203
  readonly authorization?: string;
204
+ /**
205
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
206
+ * @type {number}
207
+ * @memberof PaymentsApiListPayments
208
+ */
209
+ readonly pageSize?: number;
210
+ /**
211
+ * 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.
212
+ * @type {string}
213
+ * @memberof PaymentsApiListPayments
214
+ */
215
+ readonly pageToken?: string;
195
216
  /**
196
217
  * 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, productSlug&lt;/i&gt;
197
218
  * @type {string}
@@ -199,11 +220,11 @@ export interface PaymentsApiListPaymentsRequest {
199
220
  */
200
221
  readonly filter?: string;
201
222
  /**
202
- * 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, productSlug&lt;/i&gt;
223
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
203
224
  * @type {string}
204
225
  * @memberof PaymentsApiListPayments
205
226
  */
206
- readonly filters?: string;
227
+ readonly search?: string;
207
228
  /**
208
229
  * 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;
209
230
  * @type {string}
@@ -216,6 +237,12 @@ export interface PaymentsApiListPaymentsRequest {
216
237
  * @memberof PaymentsApiListPayments
217
238
  */
218
239
  readonly expand?: string;
240
+ /**
241
+ * 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, productSlug&lt;/i&gt;
242
+ * @type {string}
243
+ * @memberof PaymentsApiListPayments
244
+ */
245
+ readonly filters?: string;
219
246
  }
220
247
  /**
221
248
  * PaymentsApi - object-oriented interface
@@ -225,7 +252,7 @@ export interface PaymentsApiListPaymentsRequest {
225
252
  */
226
253
  export declare class PaymentsApi extends BaseAPI {
227
254
  /**
228
- * This will create a payment for a specified account. This function is idempotent.
255
+ * This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
229
256
  * @summary Create the payment
230
257
  * @param {PaymentsApiCreatePaymentRequest} requestParameters Request parameters.
231
258
  * @param {*} [options] Override http request option.
@@ -234,7 +261,7 @@ export declare class PaymentsApi extends BaseAPI {
234
261
  */
235
262
  createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponseClass, any>>;
236
263
  /**
237
- * 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.
264
+ * 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. **Required Permissions** \"payment-management.payments.view\"
238
265
  * @summary Retrieve the payment
239
266
  * @param {PaymentsApiGetPaymentRequest} requestParameters Request parameters.
240
267
  * @param {*} [options] Override http request option.
@@ -243,7 +270,7 @@ export declare class PaymentsApi extends BaseAPI {
243
270
  */
244
271
  getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentResponseClass, any>>;
245
272
  /**
246
- * 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.
273
+ * 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. **Required Permissions** \"payment-management.payments.view\"
247
274
  * @summary List payments
248
275
  * @param {PaymentsApiListPaymentsRequest} requestParameters Request parameters.
249
276
  * @param {*} [options] Override http request option.
@@ -97,7 +97,7 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * This will create a payment for a specified account. This function is idempotent.
100
+ * This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
101
101
  * @summary Create the payment
102
102
  * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
103
103
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
@@ -152,7 +152,7 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
152
152
  });
153
153
  },
154
154
  /**
155
- * 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.
155
+ * 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. **Required Permissions** \"payment-management.payments.view\"
156
156
  * @summary Retrieve the payment
157
157
  * @param {string} code
158
158
  * @param {string} [authorization] Bearer Token
@@ -204,17 +204,20 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
204
204
  });
205
205
  },
206
206
  /**
207
- * 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.
207
+ * 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. **Required Permissions** \"payment-management.payments.view\"
208
208
  * @summary List payments
209
209
  * @param {string} [authorization] Bearer Token
210
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
211
+ * @param {string} [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.
210
212
  * @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, productSlug&lt;/i&gt;
211
- * @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, productSlug&lt;/i&gt;
213
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
212
214
  * @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;
213
215
  * @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;
216
+ * @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, productSlug&lt;/i&gt;
214
217
  * @param {*} [options] Override http request option.
215
218
  * @throws {RequiredError}
216
219
  */
217
- listPayments: function (authorization, filter, filters, order, expand, options) {
220
+ listPayments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
218
221
  if (options === void 0) { options = {}; }
219
222
  return __awaiter(_this, void 0, void 0, function () {
220
223
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -237,11 +240,17 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
237
240
  // authentication bearer required
238
241
  // http bearer authentication required
239
242
  _a.sent();
243
+ if (pageSize !== undefined) {
244
+ localVarQueryParameter['pageSize'] = pageSize;
245
+ }
246
+ if (pageToken !== undefined) {
247
+ localVarQueryParameter['pageToken'] = pageToken;
248
+ }
240
249
  if (filter !== undefined) {
241
250
  localVarQueryParameter['filter'] = filter;
242
251
  }
243
- if (filters !== undefined) {
244
- localVarQueryParameter['filters'] = filters;
252
+ if (search !== undefined) {
253
+ localVarQueryParameter['search'] = search;
245
254
  }
246
255
  if (order !== undefined) {
247
256
  localVarQueryParameter['order'] = order;
@@ -249,6 +258,9 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
249
258
  if (expand !== undefined) {
250
259
  localVarQueryParameter['expand'] = expand;
251
260
  }
261
+ if (filters !== undefined) {
262
+ localVarQueryParameter['filters'] = filters;
263
+ }
252
264
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
253
265
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
254
266
  }
@@ -274,7 +286,7 @@ var PaymentsApiFp = function (configuration) {
274
286
  var localVarAxiosParamCreator = (0, exports.PaymentsApiAxiosParamCreator)(configuration);
275
287
  return {
276
288
  /**
277
- * This will create a payment for a specified account. This function is idempotent.
289
+ * This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
278
290
  * @summary Create the payment
279
291
  * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
280
292
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
@@ -296,7 +308,7 @@ var PaymentsApiFp = function (configuration) {
296
308
  });
297
309
  },
298
310
  /**
299
- * 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.
311
+ * 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. **Required Permissions** \"payment-management.payments.view\"
300
312
  * @summary Retrieve the payment
301
313
  * @param {string} code
302
314
  * @param {string} [authorization] Bearer Token
@@ -318,22 +330,25 @@ var PaymentsApiFp = function (configuration) {
318
330
  });
319
331
  },
320
332
  /**
321
- * 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.
333
+ * 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. **Required Permissions** \"payment-management.payments.view\"
322
334
  * @summary List payments
323
335
  * @param {string} [authorization] Bearer Token
336
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
337
+ * @param {string} [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.
324
338
  * @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, productSlug&lt;/i&gt;
325
- * @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, productSlug&lt;/i&gt;
339
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
326
340
  * @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;
327
341
  * @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;
342
+ * @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, productSlug&lt;/i&gt;
328
343
  * @param {*} [options] Override http request option.
329
344
  * @throws {RequiredError}
330
345
  */
331
- listPayments: function (authorization, filter, filters, order, expand, options) {
346
+ listPayments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
332
347
  return __awaiter(this, void 0, void 0, function () {
333
348
  var localVarAxiosArgs;
334
349
  return __generator(this, function (_a) {
335
350
  switch (_a.label) {
336
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPayments(authorization, filter, filters, order, expand, options)];
351
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
337
352
  case 1:
338
353
  localVarAxiosArgs = _a.sent();
339
354
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -352,7 +367,7 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
352
367
  var localVarFp = (0, exports.PaymentsApiFp)(configuration);
353
368
  return {
354
369
  /**
355
- * This will create a payment for a specified account. This function is idempotent.
370
+ * This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
356
371
  * @summary Create the payment
357
372
  * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
358
373
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
@@ -364,7 +379,7 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
364
379
  return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
365
380
  },
366
381
  /**
367
- * 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.
382
+ * 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. **Required Permissions** \"payment-management.payments.view\"
368
383
  * @summary Retrieve the payment
369
384
  * @param {string} code
370
385
  * @param {string} [authorization] Bearer Token
@@ -376,18 +391,21 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
376
391
  return localVarFp.getPayment(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
377
392
  },
378
393
  /**
379
- * 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.
394
+ * 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. **Required Permissions** \"payment-management.payments.view\"
380
395
  * @summary List payments
381
396
  * @param {string} [authorization] Bearer Token
397
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
398
+ * @param {string} [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.
382
399
  * @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, productSlug&lt;/i&gt;
383
- * @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, productSlug&lt;/i&gt;
400
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
384
401
  * @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;
385
402
  * @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;
403
+ * @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, productSlug&lt;/i&gt;
386
404
  * @param {*} [options] Override http request option.
387
405
  * @throws {RequiredError}
388
406
  */
389
- listPayments: function (authorization, filter, filters, order, expand, options) {
390
- return localVarFp.listPayments(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
407
+ listPayments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
408
+ return localVarFp.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
391
409
  },
392
410
  };
393
411
  };
@@ -404,7 +422,7 @@ var PaymentsApi = /** @class */ (function (_super) {
404
422
  return _super !== null && _super.apply(this, arguments) || this;
405
423
  }
406
424
  /**
407
- * This will create a payment for a specified account. This function is idempotent.
425
+ * This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
408
426
  * @summary Create the payment
409
427
  * @param {PaymentsApiCreatePaymentRequest} requestParameters Request parameters.
410
428
  * @param {*} [options] Override http request option.
@@ -416,7 +434,7 @@ var PaymentsApi = /** @class */ (function (_super) {
416
434
  return (0, exports.PaymentsApiFp)(this.configuration).createPayment(requestParameters.idempotencyKey, requestParameters.createPaymentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
417
435
  };
418
436
  /**
419
- * 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.
437
+ * 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. **Required Permissions** \"payment-management.payments.view\"
420
438
  * @summary Retrieve the payment
421
439
  * @param {PaymentsApiGetPaymentRequest} requestParameters Request parameters.
422
440
  * @param {*} [options] Override http request option.
@@ -428,7 +446,7 @@ var PaymentsApi = /** @class */ (function (_super) {
428
446
  return (0, exports.PaymentsApiFp)(this.configuration).getPayment(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
429
447
  };
430
448
  /**
431
- * 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.
449
+ * 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. **Required Permissions** \"payment-management.payments.view\"
432
450
  * @summary List payments
433
451
  * @param {PaymentsApiListPaymentsRequest} requestParameters Request parameters.
434
452
  * @param {*} [options] Override http request option.
@@ -438,7 +456,7 @@ var PaymentsApi = /** @class */ (function (_super) {
438
456
  PaymentsApi.prototype.listPayments = function (requestParameters, options) {
439
457
  var _this = this;
440
458
  if (requestParameters === void 0) { requestParameters = {}; }
441
- return (0, exports.PaymentsApiFp)(this.configuration).listPayments(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
459
+ return (0, exports.PaymentsApiFp)(this.configuration).listPayments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
442
460
  };
443
461
  return PaymentsApi;
444
462
  }(base_1.BaseAPI));