@emilgroup/payment-sdk 1.13.1-beta.2 → 1.13.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 +691 -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 +642 -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.
@@ -93,7 +93,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
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.
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. **Required Permissions** \"payment-management.payments.create\"
97
97
  * @summary Complete a payment setup
98
98
  * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
99
99
  * @param {string} [authorization] Bearer Token
@@ -142,7 +142,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
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.
145
+ * 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\"
146
146
  * @summary Initiate a payment setup
147
147
  * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
148
148
  * @param {string} [authorization] Bearer Token
@@ -201,7 +201,7 @@ var PaymentSetupApiFp = function (configuration) {
201
201
  var localVarAxiosParamCreator = (0, exports.PaymentSetupApiAxiosParamCreator)(configuration);
202
202
  return {
203
203
  /**
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.
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. **Required Permissions** \"payment-management.payments.create\"
205
205
  * @summary Complete a payment setup
206
206
  * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
207
207
  * @param {string} [authorization] Bearer Token
@@ -222,7 +222,7 @@ var PaymentSetupApiFp = function (configuration) {
222
222
  });
223
223
  },
224
224
  /**
225
- * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
225
+ * 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\"
226
226
  * @summary Initiate a payment setup
227
227
  * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
228
228
  * @param {string} [authorization] Bearer Token
@@ -253,7 +253,7 @@ var PaymentSetupApiFactory = function (configuration, basePath, axios) {
253
253
  var localVarFp = (0, exports.PaymentSetupApiFp)(configuration);
254
254
  return {
255
255
  /**
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.
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. **Required Permissions** \"payment-management.payments.create\"
257
257
  * @summary Complete a payment setup
258
258
  * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
259
259
  * @param {string} [authorization] Bearer Token
@@ -264,7 +264,7 @@ var PaymentSetupApiFactory = function (configuration, basePath, axios) {
264
264
  return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
265
265
  },
266
266
  /**
267
- * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
267
+ * 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\"
268
268
  * @summary Initiate a payment setup
269
269
  * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
270
270
  * @param {string} [authorization] Bearer Token
@@ -289,7 +289,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
289
289
  return _super !== null && _super.apply(this, arguments) || this;
290
290
  }
291
291
  /**
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.
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. **Required Permissions** \"payment-management.payments.create\"
293
293
  * @summary Complete a payment setup
294
294
  * @param {PaymentSetupApiCompletePaymentSetupRequest} requestParameters Request parameters.
295
295
  * @param {*} [options] Override http request option.
@@ -301,7 +301,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
301
301
  return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
302
302
  };
303
303
  /**
304
- * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
304
+ * 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\"
305
305
  * @summary Initiate a payment setup
306
306
  * @param {PaymentSetupApiInitiatePaymentSetupRequest} requestParameters Request parameters.
307
307
  * @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.
@@ -93,7 +93,7 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- * This will create a payment for a specified account. This function is idempotent.
96
+ * This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
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
@@ -148,7 +148,7 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
148
148
  });
149
149
  },
150
150
  /**
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.
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. **Required Permissions** \"payment-management.payments.view\"
152
152
  * @summary Retrieve the payment
153
153
  * @param {string} code
154
154
  * @param {string} [authorization] Bearer Token
@@ -200,17 +200,20 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
200
200
  });
201
201
  },
202
202
  /**
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.
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. **Required Permissions** \"payment-management.payments.view\"
204
204
  * @summary List payments
205
205
  * @param {string} [authorization] Bearer Token
206
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
207
+ * @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.
206
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, productSlug&lt;/i&gt;
207
- * @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;
209
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
208
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;
209
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, productSlug&lt;/i&gt;
210
213
  * @param {*} [options] Override http request option.
211
214
  * @throws {RequiredError}
212
215
  */
213
- listPayments: function (authorization, filter, filters, order, expand, options) {
216
+ listPayments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
214
217
  if (options === void 0) { options = {}; }
215
218
  return __awaiter(_this, void 0, void 0, function () {
216
219
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -233,11 +236,17 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
233
236
  // authentication bearer required
234
237
  // http bearer authentication required
235
238
  _a.sent();
239
+ if (pageSize !== undefined) {
240
+ localVarQueryParameter['pageSize'] = pageSize;
241
+ }
242
+ if (pageToken !== undefined) {
243
+ localVarQueryParameter['pageToken'] = pageToken;
244
+ }
236
245
  if (filter !== undefined) {
237
246
  localVarQueryParameter['filter'] = filter;
238
247
  }
239
- if (filters !== undefined) {
240
- localVarQueryParameter['filters'] = filters;
248
+ if (search !== undefined) {
249
+ localVarQueryParameter['search'] = search;
241
250
  }
242
251
  if (order !== undefined) {
243
252
  localVarQueryParameter['order'] = order;
@@ -245,6 +254,9 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
245
254
  if (expand !== undefined) {
246
255
  localVarQueryParameter['expand'] = expand;
247
256
  }
257
+ if (filters !== undefined) {
258
+ localVarQueryParameter['filters'] = filters;
259
+ }
248
260
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
249
261
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
250
262
  }
@@ -270,7 +282,7 @@ var PaymentsApiFp = function (configuration) {
270
282
  var localVarAxiosParamCreator = (0, exports.PaymentsApiAxiosParamCreator)(configuration);
271
283
  return {
272
284
  /**
273
- * This will create a payment for a specified account. This function is idempotent.
285
+ * This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
274
286
  * @summary Create the payment
275
287
  * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
276
288
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
@@ -292,7 +304,7 @@ var PaymentsApiFp = function (configuration) {
292
304
  });
293
305
  },
294
306
  /**
295
- * 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.
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. **Required Permissions** \"payment-management.payments.view\"
296
308
  * @summary Retrieve the payment
297
309
  * @param {string} code
298
310
  * @param {string} [authorization] Bearer Token
@@ -314,22 +326,25 @@ var PaymentsApiFp = function (configuration) {
314
326
  });
315
327
  },
316
328
  /**
317
- * 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. **Required Permissions** \"payment-management.payments.view\"
318
330
  * @summary List payments
319
331
  * @param {string} [authorization] Bearer Token
332
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
333
+ * @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.
320
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, productSlug&lt;/i&gt;
321
- * @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;
335
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
322
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;
323
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, productSlug&lt;/i&gt;
324
339
  * @param {*} [options] Override http request option.
325
340
  * @throws {RequiredError}
326
341
  */
327
- listPayments: function (authorization, filter, filters, order, expand, options) {
342
+ listPayments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
328
343
  return __awaiter(this, void 0, void 0, function () {
329
344
  var localVarAxiosArgs;
330
345
  return __generator(this, function (_a) {
331
346
  switch (_a.label) {
332
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPayments(authorization, filter, filters, order, expand, options)];
347
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
333
348
  case 1:
334
349
  localVarAxiosArgs = _a.sent();
335
350
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -348,7 +363,7 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
348
363
  var localVarFp = (0, exports.PaymentsApiFp)(configuration);
349
364
  return {
350
365
  /**
351
- * This will create a payment for a specified account. This function is idempotent.
366
+ * This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
352
367
  * @summary Create the payment
353
368
  * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
354
369
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
@@ -360,7 +375,7 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
360
375
  return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
361
376
  },
362
377
  /**
363
- * 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.
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. **Required Permissions** \"payment-management.payments.view\"
364
379
  * @summary Retrieve the payment
365
380
  * @param {string} code
366
381
  * @param {string} [authorization] Bearer Token
@@ -372,18 +387,21 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
372
387
  return localVarFp.getPayment(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
373
388
  },
374
389
  /**
375
- * 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. **Required Permissions** \"payment-management.payments.view\"
376
391
  * @summary List payments
377
392
  * @param {string} [authorization] Bearer Token
393
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
394
+ * @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.
378
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, productSlug&lt;/i&gt;
379
- * @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;
396
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
380
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;
381
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, productSlug&lt;/i&gt;
382
400
  * @param {*} [options] Override http request option.
383
401
  * @throws {RequiredError}
384
402
  */
385
- listPayments: function (authorization, filter, filters, order, expand, options) {
386
- return localVarFp.listPayments(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
403
+ listPayments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
404
+ return localVarFp.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
387
405
  },
388
406
  };
389
407
  };
@@ -400,7 +418,7 @@ var PaymentsApi = /** @class */ (function (_super) {
400
418
  return _super !== null && _super.apply(this, arguments) || this;
401
419
  }
402
420
  /**
403
- * This will create a payment for a specified account. This function is idempotent.
421
+ * This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
404
422
  * @summary Create the payment
405
423
  * @param {PaymentsApiCreatePaymentRequest} requestParameters Request parameters.
406
424
  * @param {*} [options] Override http request option.
@@ -412,7 +430,7 @@ var PaymentsApi = /** @class */ (function (_super) {
412
430
  return (0, exports.PaymentsApiFp)(this.configuration).createPayment(requestParameters.idempotencyKey, requestParameters.createPaymentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
413
431
  };
414
432
  /**
415
- * 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.
433
+ * 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\"
416
434
  * @summary Retrieve the payment
417
435
  * @param {PaymentsApiGetPaymentRequest} requestParameters Request parameters.
418
436
  * @param {*} [options] Override http request option.
@@ -424,7 +442,7 @@ var PaymentsApi = /** @class */ (function (_super) {
424
442
  return (0, exports.PaymentsApiFp)(this.configuration).getPayment(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
425
443
  };
426
444
  /**
427
- * 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. **Required Permissions** \"payment-management.payments.view\"
428
446
  * @summary List payments
429
447
  * @param {PaymentsApiListPaymentsRequest} requestParameters Request parameters.
430
448
  * @param {*} [options] Override http request option.
@@ -434,7 +452,7 @@ var PaymentsApi = /** @class */ (function (_super) {
434
452
  PaymentsApi.prototype.listPayments = function (requestParameters, options) {
435
453
  var _this = this;
436
454
  if (requestParameters === void 0) { requestParameters = {}; }
437
- 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); });
455
+ 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); });
438
456
  };
439
457
  return PaymentsApi;
440
458
  }(base_1.BaseAPI));