@emilgroup/payment-sdk 1.13.1-beta.13 → 1.13.1-beta.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +24 -1
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +55 -13
- package/api/bank-orders-api.ts +130 -57
- package/api/bank-transaction-api.ts +59 -48
- package/api/exceeding-credits-api.ts +349 -0
- package/api/payment-methods-api.ts +59 -17
- package/api/payment-reminders-api.ts +55 -13
- package/api/payments-api.ts +180 -17
- package/api/policy-payment-methods-api.ts +471 -0
- package/api/refunds-api.ts +45 -17
- package/api/tenant-bank-account-api.ts +45 -17
- package/api.ts +4 -0
- package/base.ts +10 -32
- package/common.ts +2 -2
- package/configuration.ts +0 -9
- package/dist/api/bank-accounts-api.d.ts +35 -8
- package/dist/api/bank-accounts-api.js +29 -11
- package/dist/api/bank-orders-api.d.ts +92 -46
- package/dist/api/bank-orders-api.js +83 -52
- package/dist/api/bank-transaction-api.d.ts +39 -31
- package/dist/api/bank-transaction-api.js +36 -31
- package/dist/api/exceeding-credits-api.d.ts +206 -0
- package/dist/api/exceeding-credits-api.js +352 -0
- package/dist/api/payment-methods-api.d.ts +39 -12
- package/dist/api/payment-methods-api.js +32 -14
- package/dist/api/payment-reminders-api.d.ts +35 -8
- package/dist/api/payment-reminders-api.js +29 -11
- package/dist/api/payments-api.d.ts +104 -12
- package/dist/api/payments-api.js +133 -14
- package/dist/api/policy-payment-methods-api.d.ts +272 -0
- package/dist/api/policy-payment-methods-api.js +452 -0
- package/dist/api/refunds-api.d.ts +28 -10
- package/dist/api/refunds-api.js +24 -12
- package/dist/api/tenant-bank-account-api.d.ts +28 -10
- package/dist/api/tenant-bank-account-api.js +24 -12
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/base.d.ts +2 -4
- package/dist/base.js +21 -40
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +0 -6
- package/dist/configuration.js +0 -8
- package/dist/models/activate-policy-payment-method-request-dto.d.ts +24 -0
- package/dist/models/bank-order-class.d.ts +23 -3
- package/dist/models/bank-order-xml-file-class.d.ts +72 -0
- package/dist/models/bank-order-xml-file-class.js +15 -0
- package/dist/models/bank-transaction-class-without-expand-properties.d.ts +18 -18
- package/dist/models/bank-transaction-class-without-expand-properties.js +5 -0
- package/dist/models/bank-transaction-class.d.ts +22 -22
- package/dist/models/bank-transaction-class.js +5 -0
- package/dist/models/bank-transaction-invoice-class.d.ts +60 -0
- package/dist/models/bank-transaction-invoice-class.js +15 -0
- package/dist/models/bank-transfer-dto.d.ts +25 -0
- package/dist/models/bank-transfer-dto.js +15 -0
- package/dist/models/billing-address-dto.d.ts +54 -0
- package/dist/models/billing-address-dto.js +15 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +2 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.js +3 -1
- package/dist/models/complete-eis-payment-setup-request-dto.d.ts +36 -0
- package/dist/models/complete-eis-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +2 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +3 -1
- package/dist/models/create-bank-order-request-dto.d.ts +9 -9
- package/dist/models/create-payment-order-dto.d.ts +48 -0
- package/dist/models/create-payment-order-dto.js +15 -0
- package/dist/models/create-payment-order-request-dto.d.ts +48 -0
- package/dist/models/create-payment-order-request-dto.js +15 -0
- package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
- package/dist/models/create-payment-request-dto.d.ts +7 -1
- package/dist/models/create-policy-payment-method-request-dto.d.ts +30 -0
- package/dist/models/create-policy-payment-method-request-dto.js +15 -0
- package/dist/models/create-policy-payment-method-response-class.d.ts +25 -0
- package/dist/models/create-policy-payment-method-response-class.js +15 -0
- package/dist/models/create-psp-payment-method-request-dto.d.ts +29 -1
- package/dist/models/create-psp-payment-method-request-dto.js +3 -1
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +30 -0
- package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
- package/dist/models/eis-sepa-debit-dto.d.ts +55 -0
- package/dist/models/eis-sepa-debit-dto.js +15 -0
- package/dist/models/exceeding-credit-class.d.ts +116 -0
- package/dist/models/exceeding-credit-class.js +29 -0
- package/dist/models/financial-account-class.d.ts +111 -0
- package/dist/models/financial-account-class.js +24 -0
- package/dist/models/get-exceeding-credit-response-class.d.ts +25 -0
- package/dist/models/get-exceeding-credit-response-class.js +15 -0
- package/dist/models/index.d.ts +22 -1
- package/dist/models/index.js +22 -1
- package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-eis-payment-setup-request-dto.d.ts +36 -0
- package/dist/models/initiate-eis-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +3 -2
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/{unlink-bank-transaction-request-dto-rest.d.ts → invoice-allocation-dto.d.ts} +10 -4
- package/dist/models/invoice-allocation-dto.js +15 -0
- package/dist/models/link-bank-transaction-request-dto-rest.d.ts +4 -3
- package/dist/models/list-exceeding-credits-response-class.d.ts +31 -0
- package/dist/models/list-exceeding-credits-response-class.js +15 -0
- package/dist/models/list-policy-payment-methods-response-class.d.ts +31 -0
- package/dist/models/list-policy-payment-methods-response-class.js +15 -0
- package/dist/models/mandate-dto.d.ts +43 -0
- package/dist/models/mandate-dto.js +15 -0
- package/dist/models/mandate-hash-data-dto.d.ts +42 -0
- package/dist/models/mandate-hash-data-dto.js +15 -0
- package/dist/models/mandate-reference-class.d.ts +90 -0
- package/dist/models/mandate-reference-class.js +15 -0
- package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
- package/dist/models/payment-class.d.ts +7 -1
- package/dist/models/payment-method-class.d.ts +6 -0
- package/dist/models/payment-reminder-class.d.ts +7 -1
- package/dist/models/policy-payment-method-class.d.ts +86 -0
- package/dist/models/policy-payment-method-class.js +15 -0
- package/dist/models/refund-class.d.ts +7 -1
- package/dist/models/tenant-bank-account-class-without-expand-properties.d.ts +30 -0
- package/dist/models/tenant-bank-account-class.d.ts +30 -0
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +18 -0
- package/dist/models/unlinked-bank-transaction-response-class.js +5 -0
- package/dist/models/update-bank-order-request-dto.d.ts +12 -12
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +30 -0
- package/models/activate-policy-payment-method-request-dto.ts +30 -0
- package/models/bank-order-class.ts +23 -3
- package/models/bank-order-xml-file-class.ts +78 -0
- package/models/bank-transaction-class-without-expand-properties.ts +21 -18
- package/models/bank-transaction-class.ts +25 -22
- package/models/bank-transaction-invoice-class.ts +66 -0
- package/models/bank-transfer-dto.ts +31 -0
- package/models/billing-address-dto.ts +60 -0
- package/models/complete-adyen-payment-setup-request-dto.ts +3 -1
- package/models/complete-eis-payment-setup-request-dto.ts +42 -0
- package/models/complete-payment-setup-request-dto.ts +7 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +3 -1
- package/models/create-bank-order-request-dto.ts +9 -9
- package/models/create-payment-order-dto.ts +54 -0
- package/models/create-payment-order-request-dto.ts +54 -0
- package/models/create-payment-reminder-request-dto.ts +7 -1
- package/models/create-payment-request-dto.ts +7 -1
- package/models/create-policy-payment-method-request-dto.ts +36 -0
- package/models/create-policy-payment-method-response-class.ts +31 -0
- package/models/create-psp-payment-method-request-dto.ts +30 -2
- package/models/create-tenant-bank-account-request-dto.ts +30 -0
- package/models/deactivated-payment-reminder-class.ts +7 -1
- package/models/eis-sepa-debit-dto.ts +61 -0
- package/models/exceeding-credit-class.ts +125 -0
- package/models/financial-account-class.ts +120 -0
- package/models/get-exceeding-credit-response-class.ts +31 -0
- package/models/index.ts +22 -1
- package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
- package/models/initiate-eis-payment-setup-request-dto.ts +42 -0
- package/models/initiate-payment-setup-request-dto.ts +3 -2
- package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
- package/models/{unlink-bank-transaction-request-dto-rest.ts → invoice-allocation-dto.ts} +10 -4
- package/models/link-bank-transaction-request-dto-rest.ts +4 -3
- package/models/list-exceeding-credits-response-class.ts +37 -0
- package/models/list-policy-payment-methods-response-class.ts +37 -0
- package/models/mandate-dto.ts +49 -0
- package/models/mandate-hash-data-dto.ts +48 -0
- package/models/mandate-reference-class.ts +96 -0
- package/models/payment-class-without-expand-properties.ts +7 -1
- package/models/payment-class.ts +7 -1
- package/models/payment-method-class.ts +6 -0
- package/models/payment-reminder-class.ts +7 -1
- package/models/policy-payment-method-class.ts +92 -0
- package/models/refund-class.ts +7 -1
- package/models/tenant-bank-account-class-without-expand-properties.ts +30 -0
- package/models/tenant-bank-account-class.ts +30 -0
- package/models/unlinked-bank-transaction-response-class.ts +21 -0
- package/models/update-bank-order-request-dto.ts +12 -12
- package/models/update-tenant-bank-account-rest-request-dto.ts +30 -0
- package/package.json +1 -1
- package/tsconfig.json +0 -1
- /package/dist/models/{unlink-bank-transaction-request-dto-rest.js → activate-policy-payment-method-request-dto.js} +0 -0
|
@@ -185,14 +185,17 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
185
185
|
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.reminders.view\"
|
|
186
186
|
* @summary List payment reminders
|
|
187
187
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
188
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
189
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
188
190
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
189
|
-
* @param {string} [
|
|
191
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
190
192
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt</i>
|
|
191
193
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
194
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
192
195
|
* @param {*} [options] Override http request option.
|
|
193
196
|
* @throws {RequiredError}
|
|
194
197
|
*/
|
|
195
|
-
listPaymentReminders: async (authorization?: string, filter?: string,
|
|
198
|
+
listPaymentReminders: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
196
199
|
const localVarPath = `/paymentservice/v1/payment-reminders`;
|
|
197
200
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
198
201
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -211,12 +214,20 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
211
214
|
// http bearer authentication required
|
|
212
215
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
213
216
|
|
|
217
|
+
if (pageSize !== undefined) {
|
|
218
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
if (pageToken !== undefined) {
|
|
222
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
223
|
+
}
|
|
224
|
+
|
|
214
225
|
if (filter !== undefined) {
|
|
215
226
|
localVarQueryParameter['filter'] = filter;
|
|
216
227
|
}
|
|
217
228
|
|
|
218
|
-
if (
|
|
219
|
-
localVarQueryParameter['
|
|
229
|
+
if (search !== undefined) {
|
|
230
|
+
localVarQueryParameter['search'] = search;
|
|
220
231
|
}
|
|
221
232
|
|
|
222
233
|
if (order !== undefined) {
|
|
@@ -227,6 +238,10 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
227
238
|
localVarQueryParameter['expand'] = expand;
|
|
228
239
|
}
|
|
229
240
|
|
|
241
|
+
if (filters !== undefined) {
|
|
242
|
+
localVarQueryParameter['filters'] = filters;
|
|
243
|
+
}
|
|
244
|
+
|
|
230
245
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
231
246
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
232
247
|
}
|
|
@@ -293,15 +308,18 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
293
308
|
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.reminders.view\"
|
|
294
309
|
* @summary List payment reminders
|
|
295
310
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
311
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
312
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
296
313
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
297
|
-
* @param {string} [
|
|
314
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
298
315
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt</i>
|
|
299
316
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
317
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
300
318
|
* @param {*} [options] Override http request option.
|
|
301
319
|
* @throws {RequiredError}
|
|
302
320
|
*/
|
|
303
|
-
async listPaymentReminders(authorization?: string, filter?: string,
|
|
304
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, filter,
|
|
321
|
+
async listPaymentReminders(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentRemindersResponseClass>> {
|
|
322
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
305
323
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
306
324
|
},
|
|
307
325
|
}
|
|
@@ -352,15 +370,18 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
352
370
|
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.reminders.view\"
|
|
353
371
|
* @summary List payment reminders
|
|
354
372
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
373
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
374
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
355
375
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
356
|
-
* @param {string} [
|
|
376
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
357
377
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt</i>
|
|
358
378
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
379
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
359
380
|
* @param {*} [options] Override http request option.
|
|
360
381
|
* @throws {RequiredError}
|
|
361
382
|
*/
|
|
362
|
-
listPaymentReminders(authorization?: string, filter?: string,
|
|
363
|
-
return localVarFp.listPaymentReminders(authorization, filter,
|
|
383
|
+
listPaymentReminders(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPaymentRemindersResponseClass> {
|
|
384
|
+
return localVarFp.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
364
385
|
},
|
|
365
386
|
};
|
|
366
387
|
};
|
|
@@ -448,6 +469,20 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
448
469
|
*/
|
|
449
470
|
readonly authorization?: string
|
|
450
471
|
|
|
472
|
+
/**
|
|
473
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
474
|
+
* @type {number}
|
|
475
|
+
* @memberof PaymentRemindersApiListPaymentReminders
|
|
476
|
+
*/
|
|
477
|
+
readonly pageSize?: number
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
481
|
+
* @type {string}
|
|
482
|
+
* @memberof PaymentRemindersApiListPaymentReminders
|
|
483
|
+
*/
|
|
484
|
+
readonly pageToken?: string
|
|
485
|
+
|
|
451
486
|
/**
|
|
452
487
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
453
488
|
* @type {string}
|
|
@@ -456,11 +491,11 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
456
491
|
readonly filter?: string
|
|
457
492
|
|
|
458
493
|
/**
|
|
459
|
-
*
|
|
494
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
460
495
|
* @type {string}
|
|
461
496
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
462
497
|
*/
|
|
463
|
-
readonly
|
|
498
|
+
readonly search?: string
|
|
464
499
|
|
|
465
500
|
/**
|
|
466
501
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt</i>
|
|
@@ -475,6 +510,13 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
475
510
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
476
511
|
*/
|
|
477
512
|
readonly expand?: string
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
516
|
+
* @type {string}
|
|
517
|
+
* @memberof PaymentRemindersApiListPaymentReminders
|
|
518
|
+
*/
|
|
519
|
+
readonly filters?: string
|
|
478
520
|
}
|
|
479
521
|
|
|
480
522
|
/**
|
|
@@ -529,6 +571,6 @@ export class PaymentRemindersApi extends BaseAPI {
|
|
|
529
571
|
* @memberof PaymentRemindersApi
|
|
530
572
|
*/
|
|
531
573
|
public listPaymentReminders(requestParameters: PaymentRemindersApiListPaymentRemindersRequest = {}, options?: AxiosRequestConfig) {
|
|
532
|
-
return PaymentRemindersApiFp(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.filter, requestParameters.
|
|
574
|
+
return PaymentRemindersApiFp(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
533
575
|
}
|
|
534
576
|
}
|
package/api/payments-api.ts
CHANGED
|
@@ -21,6 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { CreatePaymentOrderDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
24
26
|
import { CreatePaymentRequestDto } from '../models';
|
|
25
27
|
// @ts-ignore
|
|
26
28
|
import { CreatePaymentResponseClass } from '../models';
|
|
@@ -88,6 +90,60 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
88
90
|
options: localVarRequestOptions,
|
|
89
91
|
};
|
|
90
92
|
},
|
|
93
|
+
/**
|
|
94
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
95
|
+
* @summary Create the payment
|
|
96
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
97
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
98
|
+
* @param {string} [authorization] Bearer Token
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
createPaymentOrder: async (idempotencyKey: string, createPaymentOrderDto: CreatePaymentOrderDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
103
|
+
// verify required parameter 'idempotencyKey' is not null or undefined
|
|
104
|
+
assertParamExists('createPaymentOrder', 'idempotencyKey', idempotencyKey)
|
|
105
|
+
// verify required parameter 'createPaymentOrderDto' is not null or undefined
|
|
106
|
+
assertParamExists('createPaymentOrder', 'createPaymentOrderDto', createPaymentOrderDto)
|
|
107
|
+
const localVarPath = `/paymentservice/v1/payments/order`;
|
|
108
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
109
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
110
|
+
let baseOptions;
|
|
111
|
+
let baseAccessToken;
|
|
112
|
+
if (configuration) {
|
|
113
|
+
baseOptions = configuration.baseOptions;
|
|
114
|
+
baseAccessToken = configuration.accessToken;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
118
|
+
const localVarHeaderParameter = {} as any;
|
|
119
|
+
const localVarQueryParameter = {} as any;
|
|
120
|
+
|
|
121
|
+
// authentication bearer required
|
|
122
|
+
// http bearer authentication required
|
|
123
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
124
|
+
|
|
125
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
126
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
|
+
|
|
137
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
138
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
139
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
140
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPaymentOrderDto, localVarRequestOptions, configuration)
|
|
141
|
+
|
|
142
|
+
return {
|
|
143
|
+
url: toPathString(localVarUrlObj),
|
|
144
|
+
options: localVarRequestOptions,
|
|
145
|
+
};
|
|
146
|
+
},
|
|
91
147
|
/**
|
|
92
148
|
* 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\"
|
|
93
149
|
* @summary Retrieve the payment
|
|
@@ -142,14 +198,17 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
142
198
|
* 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\"
|
|
143
199
|
* @summary List payments
|
|
144
200
|
* @param {string} [authorization] Bearer Token
|
|
145
|
-
* @param {
|
|
146
|
-
* @param {string} [
|
|
201
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
202
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
203
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode</i>
|
|
204
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
147
205
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, amount</i>
|
|
148
206
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: transactions<i>
|
|
207
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode</i>
|
|
149
208
|
* @param {*} [options] Override http request option.
|
|
150
209
|
* @throws {RequiredError}
|
|
151
210
|
*/
|
|
152
|
-
listPayments: async (authorization?: string, filter?: string,
|
|
211
|
+
listPayments: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
153
212
|
const localVarPath = `/paymentservice/v1/payments`;
|
|
154
213
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
155
214
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -168,12 +227,20 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
168
227
|
// http bearer authentication required
|
|
169
228
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
170
229
|
|
|
230
|
+
if (pageSize !== undefined) {
|
|
231
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
if (pageToken !== undefined) {
|
|
235
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
236
|
+
}
|
|
237
|
+
|
|
171
238
|
if (filter !== undefined) {
|
|
172
239
|
localVarQueryParameter['filter'] = filter;
|
|
173
240
|
}
|
|
174
241
|
|
|
175
|
-
if (
|
|
176
|
-
localVarQueryParameter['
|
|
242
|
+
if (search !== undefined) {
|
|
243
|
+
localVarQueryParameter['search'] = search;
|
|
177
244
|
}
|
|
178
245
|
|
|
179
246
|
if (order !== undefined) {
|
|
@@ -184,6 +251,10 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
184
251
|
localVarQueryParameter['expand'] = expand;
|
|
185
252
|
}
|
|
186
253
|
|
|
254
|
+
if (filters !== undefined) {
|
|
255
|
+
localVarQueryParameter['filters'] = filters;
|
|
256
|
+
}
|
|
257
|
+
|
|
187
258
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
188
259
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
189
260
|
}
|
|
@@ -222,6 +293,19 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
222
293
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options);
|
|
223
294
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
224
295
|
},
|
|
296
|
+
/**
|
|
297
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
298
|
+
* @summary Create the payment
|
|
299
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
300
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
301
|
+
* @param {string} [authorization] Bearer Token
|
|
302
|
+
* @param {*} [options] Override http request option.
|
|
303
|
+
* @throws {RequiredError}
|
|
304
|
+
*/
|
|
305
|
+
async createPaymentOrder(idempotencyKey: string, createPaymentOrderDto: CreatePaymentOrderDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>> {
|
|
306
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentOrder(idempotencyKey, createPaymentOrderDto, authorization, options);
|
|
307
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
308
|
+
},
|
|
225
309
|
/**
|
|
226
310
|
* 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\"
|
|
227
311
|
* @summary Retrieve the payment
|
|
@@ -239,15 +323,18 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
239
323
|
* 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\"
|
|
240
324
|
* @summary List payments
|
|
241
325
|
* @param {string} [authorization] Bearer Token
|
|
242
|
-
* @param {
|
|
243
|
-
* @param {string} [
|
|
326
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
327
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
328
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode</i>
|
|
329
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
244
330
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, amount</i>
|
|
245
331
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: transactions<i>
|
|
332
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode</i>
|
|
246
333
|
* @param {*} [options] Override http request option.
|
|
247
334
|
* @throws {RequiredError}
|
|
248
335
|
*/
|
|
249
|
-
async listPayments(authorization?: string, filter?: string,
|
|
250
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, filter,
|
|
336
|
+
async 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>> {
|
|
337
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
251
338
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
252
339
|
},
|
|
253
340
|
}
|
|
@@ -272,6 +359,18 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
272
359
|
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass> {
|
|
273
360
|
return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
274
361
|
},
|
|
362
|
+
/**
|
|
363
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
364
|
+
* @summary Create the payment
|
|
365
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
366
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
367
|
+
* @param {string} [authorization] Bearer Token
|
|
368
|
+
* @param {*} [options] Override http request option.
|
|
369
|
+
* @throws {RequiredError}
|
|
370
|
+
*/
|
|
371
|
+
createPaymentOrder(idempotencyKey: string, createPaymentOrderDto: CreatePaymentOrderDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass> {
|
|
372
|
+
return localVarFp.createPaymentOrder(idempotencyKey, createPaymentOrderDto, authorization, options).then((request) => request(axios, basePath));
|
|
373
|
+
},
|
|
275
374
|
/**
|
|
276
375
|
* 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\"
|
|
277
376
|
* @summary Retrieve the payment
|
|
@@ -288,15 +387,18 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
288
387
|
* 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\"
|
|
289
388
|
* @summary List payments
|
|
290
389
|
* @param {string} [authorization] Bearer Token
|
|
291
|
-
* @param {
|
|
292
|
-
* @param {string} [
|
|
390
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
391
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
392
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode</i>
|
|
393
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
293
394
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, amount</i>
|
|
294
395
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: transactions<i>
|
|
396
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode</i>
|
|
295
397
|
* @param {*} [options] Override http request option.
|
|
296
398
|
* @throws {RequiredError}
|
|
297
399
|
*/
|
|
298
|
-
listPayments(authorization?: string, filter?: string,
|
|
299
|
-
return localVarFp.listPayments(authorization, filter,
|
|
400
|
+
listPayments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPaymentsResponseClass> {
|
|
401
|
+
return localVarFp.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
300
402
|
},
|
|
301
403
|
};
|
|
302
404
|
};
|
|
@@ -329,6 +431,34 @@ export interface PaymentsApiCreatePaymentRequest {
|
|
|
329
431
|
readonly authorization?: string
|
|
330
432
|
}
|
|
331
433
|
|
|
434
|
+
/**
|
|
435
|
+
* Request parameters for createPaymentOrder operation in PaymentsApi.
|
|
436
|
+
* @export
|
|
437
|
+
* @interface PaymentsApiCreatePaymentOrderRequest
|
|
438
|
+
*/
|
|
439
|
+
export interface PaymentsApiCreatePaymentOrderRequest {
|
|
440
|
+
/**
|
|
441
|
+
* Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
442
|
+
* @type {string}
|
|
443
|
+
* @memberof PaymentsApiCreatePaymentOrder
|
|
444
|
+
*/
|
|
445
|
+
readonly idempotencyKey: string
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
*
|
|
449
|
+
* @type {CreatePaymentOrderDto}
|
|
450
|
+
* @memberof PaymentsApiCreatePaymentOrder
|
|
451
|
+
*/
|
|
452
|
+
readonly createPaymentOrderDto: CreatePaymentOrderDto
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Bearer Token
|
|
456
|
+
* @type {string}
|
|
457
|
+
* @memberof PaymentsApiCreatePaymentOrder
|
|
458
|
+
*/
|
|
459
|
+
readonly authorization?: string
|
|
460
|
+
}
|
|
461
|
+
|
|
332
462
|
/**
|
|
333
463
|
* Request parameters for getPayment operation in PaymentsApi.
|
|
334
464
|
* @export
|
|
@@ -371,18 +501,32 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
371
501
|
readonly authorization?: string
|
|
372
502
|
|
|
373
503
|
/**
|
|
374
|
-
*
|
|
504
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
505
|
+
* @type {number}
|
|
506
|
+
* @memberof PaymentsApiListPayments
|
|
507
|
+
*/
|
|
508
|
+
readonly pageSize?: number
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
512
|
+
* @type {string}
|
|
513
|
+
* @memberof PaymentsApiListPayments
|
|
514
|
+
*/
|
|
515
|
+
readonly pageToken?: string
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode</i>
|
|
375
519
|
* @type {string}
|
|
376
520
|
* @memberof PaymentsApiListPayments
|
|
377
521
|
*/
|
|
378
522
|
readonly filter?: string
|
|
379
523
|
|
|
380
524
|
/**
|
|
381
|
-
*
|
|
525
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
382
526
|
* @type {string}
|
|
383
527
|
* @memberof PaymentsApiListPayments
|
|
384
528
|
*/
|
|
385
|
-
readonly
|
|
529
|
+
readonly search?: string
|
|
386
530
|
|
|
387
531
|
/**
|
|
388
532
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, amount</i>
|
|
@@ -397,6 +541,13 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
397
541
|
* @memberof PaymentsApiListPayments
|
|
398
542
|
*/
|
|
399
543
|
readonly expand?: string
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode</i>
|
|
547
|
+
* @type {string}
|
|
548
|
+
* @memberof PaymentsApiListPayments
|
|
549
|
+
*/
|
|
550
|
+
readonly filters?: string
|
|
400
551
|
}
|
|
401
552
|
|
|
402
553
|
/**
|
|
@@ -418,6 +569,18 @@ export class PaymentsApi extends BaseAPI {
|
|
|
418
569
|
return PaymentsApiFp(this.configuration).createPayment(requestParameters.idempotencyKey, requestParameters.createPaymentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
419
570
|
}
|
|
420
571
|
|
|
572
|
+
/**
|
|
573
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
574
|
+
* @summary Create the payment
|
|
575
|
+
* @param {PaymentsApiCreatePaymentOrderRequest} requestParameters Request parameters.
|
|
576
|
+
* @param {*} [options] Override http request option.
|
|
577
|
+
* @throws {RequiredError}
|
|
578
|
+
* @memberof PaymentsApi
|
|
579
|
+
*/
|
|
580
|
+
public createPaymentOrder(requestParameters: PaymentsApiCreatePaymentOrderRequest, options?: AxiosRequestConfig) {
|
|
581
|
+
return PaymentsApiFp(this.configuration).createPaymentOrder(requestParameters.idempotencyKey, requestParameters.createPaymentOrderDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
582
|
+
}
|
|
583
|
+
|
|
421
584
|
/**
|
|
422
585
|
* 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\"
|
|
423
586
|
* @summary Retrieve the payment
|
|
@@ -439,6 +602,6 @@ export class PaymentsApi extends BaseAPI {
|
|
|
439
602
|
* @memberof PaymentsApi
|
|
440
603
|
*/
|
|
441
604
|
public listPayments(requestParameters: PaymentsApiListPaymentsRequest = {}, options?: AxiosRequestConfig) {
|
|
442
|
-
return PaymentsApiFp(this.configuration).listPayments(requestParameters.authorization, requestParameters.filter, requestParameters.
|
|
605
|
+
return PaymentsApiFp(this.configuration).listPayments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
443
606
|
}
|
|
444
607
|
}
|