@emilgroup/payment-sdk-node 1.28.0 → 1.28.1-beta.0
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/README.md +2 -2
- package/api/payment-reminders-api.ts +12 -12
- package/api/payment-requests-api.ts +113 -12
- package/api/webhooks-api.ts +125 -14
- package/dist/api/payment-reminders-api.d.ts +12 -12
- package/dist/api/payment-reminders-api.js +9 -9
- package/dist/api/payment-requests-api.d.ts +67 -12
- package/dist/api/payment-requests-api.js +101 -9
- package/dist/api/webhooks-api.d.ts +73 -9
- package/dist/api/webhooks-api.js +100 -11
- package/dist/models/bank-transaction-entity.d.ts +4 -2
- package/dist/models/create-payment-order-dto.d.ts +4 -2
- package/dist/models/create-payment-order-request-dto.d.ts +4 -2
- package/dist/models/create-payment-request-dto.d.ts +4 -2
- package/dist/models/create-payment-request-request-dto.d.ts +16 -2
- package/dist/models/credit-allocation-class.d.ts +6 -0
- package/dist/models/credit-allocation-entity.d.ts +6 -0
- package/dist/models/invoice-match-suggestion-entity.d.ts +4 -2
- package/dist/models/payment-class-without-expand-properties.d.ts +1 -1
- package/dist/models/payment-class.d.ts +1 -1
- package/dist/models/payment-entity.d.ts +5 -3
- package/dist/models/payment-request-class.d.ts +16 -2
- package/dist/models/validate-pspconfig-request-dto.d.ts +4 -2
- package/models/bank-transaction-entity.ts +2 -2
- package/models/create-payment-order-dto.ts +2 -2
- package/models/create-payment-order-request-dto.ts +2 -2
- package/models/create-payment-request-dto.ts +2 -2
- package/models/create-payment-request-request-dto.ts +14 -2
- package/models/credit-allocation-class.ts +6 -0
- package/models/credit-allocation-entity.ts +6 -0
- package/models/invoice-match-suggestion-entity.ts +2 -2
- package/models/payment-class-without-expand-properties.ts +1 -1
- package/models/payment-class.ts +1 -1
- package/models/payment-entity.ts +3 -3
- package/models/payment-request-class.ts +14 -2
- package/models/validate-pspconfig-request-dto.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/payment-sdk-node@1.28.0 --save
|
|
20
|
+
npm install @emilgroup/payment-sdk-node@1.28.1-beta.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk-node@1.28.0
|
|
24
|
+
yarn add @emilgroup/payment-sdk-node@1.28.1-beta.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
|
@@ -191,11 +191,11 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
191
191
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
192
192
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
193
193
|
* @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.
|
|
194
|
-
* @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>
|
|
194
|
+
* @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, isActive</i>
|
|
195
195
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
196
|
-
* @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>
|
|
196
|
+
* @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, isActive</i>
|
|
197
197
|
* @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/>
|
|
198
|
-
* @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>
|
|
198
|
+
* @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, isActive</i>
|
|
199
199
|
* @param {*} [options] Override http request option.
|
|
200
200
|
* @throws {RequiredError}
|
|
201
201
|
*/
|
|
@@ -314,11 +314,11 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
314
314
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
315
315
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
316
316
|
* @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.
|
|
317
|
-
* @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>
|
|
317
|
+
* @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, isActive</i>
|
|
318
318
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
319
|
-
* @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>
|
|
319
|
+
* @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, isActive</i>
|
|
320
320
|
* @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/>
|
|
321
|
-
* @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>
|
|
321
|
+
* @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, isActive</i>
|
|
322
322
|
* @param {*} [options] Override http request option.
|
|
323
323
|
* @throws {RequiredError}
|
|
324
324
|
*/
|
|
@@ -376,11 +376,11 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
376
376
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
377
377
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
378
378
|
* @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.
|
|
379
|
-
* @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>
|
|
379
|
+
* @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, isActive</i>
|
|
380
380
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
381
|
-
* @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>
|
|
381
|
+
* @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, isActive</i>
|
|
382
382
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
383
|
-
* @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>
|
|
383
|
+
* @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, isActive</i>
|
|
384
384
|
* @param {*} [options] Override http request option.
|
|
385
385
|
* @throws {RequiredError}
|
|
386
386
|
*/
|
|
@@ -488,7 +488,7 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
488
488
|
readonly pageToken?: string
|
|
489
489
|
|
|
490
490
|
/**
|
|
491
|
-
* 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>
|
|
491
|
+
* 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, isActive</i>
|
|
492
492
|
* @type {string}
|
|
493
493
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
494
494
|
*/
|
|
@@ -502,7 +502,7 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
502
502
|
readonly search?: string
|
|
503
503
|
|
|
504
504
|
/**
|
|
505
|
-
* 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>
|
|
505
|
+
* 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, isActive</i>
|
|
506
506
|
* @type {string}
|
|
507
507
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
508
508
|
*/
|
|
@@ -516,7 +516,7 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
516
516
|
readonly expand?: string
|
|
517
517
|
|
|
518
518
|
/**
|
|
519
|
-
* 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>
|
|
519
|
+
* 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, isActive</i>
|
|
520
520
|
* @type {string}
|
|
521
521
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
522
522
|
*/
|
|
@@ -89,6 +89,51 @@ export const PaymentRequestsApiAxiosParamCreator = function (configuration?: Con
|
|
|
89
89
|
options: localVarRequestOptions,
|
|
90
90
|
};
|
|
91
91
|
},
|
|
92
|
+
/**
|
|
93
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
94
|
+
* @summary Delete the payment request
|
|
95
|
+
* @param {string} code Unique identifier for the object.
|
|
96
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
deletePaymentRequest: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
|
+
// verify required parameter 'code' is not null or undefined
|
|
102
|
+
assertParamExists('deletePaymentRequest', 'code', code)
|
|
103
|
+
const localVarPath = `/paymentservice/v1/payment-requests/{code}`
|
|
104
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
105
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
107
|
+
let baseOptions;
|
|
108
|
+
let baseAccessToken;
|
|
109
|
+
if (configuration) {
|
|
110
|
+
baseOptions = configuration.baseOptions;
|
|
111
|
+
baseAccessToken = configuration.accessToken;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
115
|
+
const localVarHeaderParameter = {} as any;
|
|
116
|
+
const localVarQueryParameter = {} as any;
|
|
117
|
+
|
|
118
|
+
// authentication bearer required
|
|
119
|
+
// http bearer authentication required
|
|
120
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
121
|
+
|
|
122
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
123
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
131
|
+
|
|
132
|
+
return {
|
|
133
|
+
url: toPathString(localVarUrlObj),
|
|
134
|
+
options: localVarRequestOptions,
|
|
135
|
+
};
|
|
136
|
+
},
|
|
92
137
|
/**
|
|
93
138
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
94
139
|
* @summary Retrieve the payment request
|
|
@@ -147,11 +192,11 @@ export const PaymentRequestsApiAxiosParamCreator = function (configuration?: Con
|
|
|
147
192
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
148
193
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
149
194
|
* @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.
|
|
150
|
-
* @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: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt</i>
|
|
151
|
-
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber</i>
|
|
195
|
+
* @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: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
|
|
196
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode</i>
|
|
152
197
|
* @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, paymentRequestNumber, financialEntityNumber, domainEntityNumber, createdAt, status</i>
|
|
153
198
|
* @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: paymentReceipts<i>
|
|
154
|
-
* @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: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt</i>
|
|
199
|
+
* @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: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
|
|
155
200
|
* @param {*} [options] Override http request option.
|
|
156
201
|
* @throws {RequiredError}
|
|
157
202
|
*/
|
|
@@ -290,6 +335,18 @@ export const PaymentRequestsApiFp = function(configuration?: Configuration) {
|
|
|
290
335
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentRequest(createPaymentRequestRequestDto, authorization, options);
|
|
291
336
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
292
337
|
},
|
|
338
|
+
/**
|
|
339
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
340
|
+
* @summary Delete the payment request
|
|
341
|
+
* @param {string} code Unique identifier for the object.
|
|
342
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
343
|
+
* @param {*} [options] Override http request option.
|
|
344
|
+
* @throws {RequiredError}
|
|
345
|
+
*/
|
|
346
|
+
async deletePaymentRequest(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
347
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePaymentRequest(code, authorization, options);
|
|
348
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
349
|
+
},
|
|
293
350
|
/**
|
|
294
351
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
295
352
|
* @summary Retrieve the payment request
|
|
@@ -309,11 +366,11 @@ export const PaymentRequestsApiFp = function(configuration?: Configuration) {
|
|
|
309
366
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
310
367
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
311
368
|
* @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.
|
|
312
|
-
* @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: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt</i>
|
|
313
|
-
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber</i>
|
|
369
|
+
* @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: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
|
|
370
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode</i>
|
|
314
371
|
* @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, paymentRequestNumber, financialEntityNumber, domainEntityNumber, createdAt, status</i>
|
|
315
372
|
* @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: paymentReceipts<i>
|
|
316
|
-
* @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: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt</i>
|
|
373
|
+
* @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: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
|
|
317
374
|
* @param {*} [options] Override http request option.
|
|
318
375
|
* @throws {RequiredError}
|
|
319
376
|
*/
|
|
@@ -355,6 +412,17 @@ export const PaymentRequestsApiFactory = function (configuration?: Configuration
|
|
|
355
412
|
createPaymentRequest(createPaymentRequestRequestDto: CreatePaymentRequestRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentRequestResponseClass> {
|
|
356
413
|
return localVarFp.createPaymentRequest(createPaymentRequestRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
357
414
|
},
|
|
415
|
+
/**
|
|
416
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
417
|
+
* @summary Delete the payment request
|
|
418
|
+
* @param {string} code Unique identifier for the object.
|
|
419
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
420
|
+
* @param {*} [options] Override http request option.
|
|
421
|
+
* @throws {RequiredError}
|
|
422
|
+
*/
|
|
423
|
+
deletePaymentRequest(code: string, authorization?: string, options?: any): AxiosPromise<object> {
|
|
424
|
+
return localVarFp.deletePaymentRequest(code, authorization, options).then((request) => request(axios, basePath));
|
|
425
|
+
},
|
|
358
426
|
/**
|
|
359
427
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
360
428
|
* @summary Retrieve the payment request
|
|
@@ -373,11 +441,11 @@ export const PaymentRequestsApiFactory = function (configuration?: Configuration
|
|
|
373
441
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
374
442
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
375
443
|
* @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.
|
|
376
|
-
* @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: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt</i>
|
|
377
|
-
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber</i>
|
|
444
|
+
* @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: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
|
|
445
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode</i>
|
|
378
446
|
* @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, paymentRequestNumber, financialEntityNumber, domainEntityNumber, createdAt, status</i>
|
|
379
447
|
* @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: paymentReceipts<i>
|
|
380
|
-
* @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: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt</i>
|
|
448
|
+
* @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: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
|
|
381
449
|
* @param {*} [options] Override http request option.
|
|
382
450
|
* @throws {RequiredError}
|
|
383
451
|
*/
|
|
@@ -420,6 +488,27 @@ export interface PaymentRequestsApiCreatePaymentRequestRequest {
|
|
|
420
488
|
readonly authorization?: string
|
|
421
489
|
}
|
|
422
490
|
|
|
491
|
+
/**
|
|
492
|
+
* Request parameters for deletePaymentRequest operation in PaymentRequestsApi.
|
|
493
|
+
* @export
|
|
494
|
+
* @interface PaymentRequestsApiDeletePaymentRequestRequest
|
|
495
|
+
*/
|
|
496
|
+
export interface PaymentRequestsApiDeletePaymentRequestRequest {
|
|
497
|
+
/**
|
|
498
|
+
* Unique identifier for the object.
|
|
499
|
+
* @type {string}
|
|
500
|
+
* @memberof PaymentRequestsApiDeletePaymentRequest
|
|
501
|
+
*/
|
|
502
|
+
readonly code: string
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
506
|
+
* @type {string}
|
|
507
|
+
* @memberof PaymentRequestsApiDeletePaymentRequest
|
|
508
|
+
*/
|
|
509
|
+
readonly authorization?: string
|
|
510
|
+
}
|
|
511
|
+
|
|
423
512
|
/**
|
|
424
513
|
* Request parameters for getPaymentRequest operation in PaymentRequestsApi.
|
|
425
514
|
* @export
|
|
@@ -476,14 +565,14 @@ export interface PaymentRequestsApiListPaymentRequestsRequest {
|
|
|
476
565
|
readonly pageToken?: string
|
|
477
566
|
|
|
478
567
|
/**
|
|
479
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt</i>
|
|
568
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
|
|
480
569
|
* @type {string}
|
|
481
570
|
* @memberof PaymentRequestsApiListPaymentRequests
|
|
482
571
|
*/
|
|
483
572
|
readonly filter?: string
|
|
484
573
|
|
|
485
574
|
/**
|
|
486
|
-
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber</i>
|
|
575
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode</i>
|
|
487
576
|
* @type {string}
|
|
488
577
|
* @memberof PaymentRequestsApiListPaymentRequests
|
|
489
578
|
*/
|
|
@@ -504,7 +593,7 @@ export interface PaymentRequestsApiListPaymentRequestsRequest {
|
|
|
504
593
|
readonly expand?: string
|
|
505
594
|
|
|
506
595
|
/**
|
|
507
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt</i>
|
|
596
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
|
|
508
597
|
* @type {string}
|
|
509
598
|
* @memberof PaymentRequestsApiListPaymentRequests
|
|
510
599
|
*/
|
|
@@ -558,6 +647,18 @@ export class PaymentRequestsApi extends BaseAPI {
|
|
|
558
647
|
return PaymentRequestsApiFp(this.configuration).createPaymentRequest(requestParameters.createPaymentRequestRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
559
648
|
}
|
|
560
649
|
|
|
650
|
+
/**
|
|
651
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
652
|
+
* @summary Delete the payment request
|
|
653
|
+
* @param {PaymentRequestsApiDeletePaymentRequestRequest} requestParameters Request parameters.
|
|
654
|
+
* @param {*} [options] Override http request option.
|
|
655
|
+
* @throws {RequiredError}
|
|
656
|
+
* @memberof PaymentRequestsApi
|
|
657
|
+
*/
|
|
658
|
+
public deletePaymentRequest(requestParameters: PaymentRequestsApiDeletePaymentRequestRequest, options?: AxiosRequestConfig) {
|
|
659
|
+
return PaymentRequestsApiFp(this.configuration).deletePaymentRequest(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
660
|
+
}
|
|
661
|
+
|
|
561
662
|
/**
|
|
562
663
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
563
664
|
* @summary Retrieve the payment request
|
package/api/webhooks-api.ts
CHANGED
|
@@ -35,20 +35,66 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
35
35
|
* @summary Handle the webhook from PSP
|
|
36
36
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
37
37
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
38
|
-
* @param {string} productSlug
|
|
39
38
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
40
39
|
* @param {*} [options] Override http request option.
|
|
41
40
|
* @throws {RequiredError}
|
|
42
41
|
*/
|
|
43
|
-
postWebhook: async (pspType: string, tenantSlug: string,
|
|
42
|
+
postWebhook: async (pspType: string, tenantSlug: string, body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
43
|
// verify required parameter 'pspType' is not null or undefined
|
|
45
44
|
assertParamExists('postWebhook', 'pspType', pspType)
|
|
46
45
|
// verify required parameter 'tenantSlug' is not null or undefined
|
|
47
46
|
assertParamExists('postWebhook', 'tenantSlug', tenantSlug)
|
|
48
|
-
// verify required parameter 'productSlug' is not null or undefined
|
|
49
|
-
assertParamExists('postWebhook', 'productSlug', productSlug)
|
|
50
47
|
// verify required parameter 'body' is not null or undefined
|
|
51
48
|
assertParamExists('postWebhook', 'body', body)
|
|
49
|
+
const localVarPath = `/paymentservice/v1/webhooks/{pspType}/{tenantSlug}`
|
|
50
|
+
.replace(`{${"pspType"}}`, encodeURIComponent(String(pspType)))
|
|
51
|
+
.replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)));
|
|
52
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
53
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54
|
+
let baseOptions;
|
|
55
|
+
let baseAccessToken;
|
|
56
|
+
if (configuration) {
|
|
57
|
+
baseOptions = configuration.baseOptions;
|
|
58
|
+
baseAccessToken = configuration.accessToken;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
62
|
+
const localVarHeaderParameter = {} as any;
|
|
63
|
+
const localVarQueryParameter = {} as any;
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
68
|
+
|
|
69
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
70
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
71
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
72
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
url: toPathString(localVarUrlObj),
|
|
76
|
+
options: localVarRequestOptions,
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
/**
|
|
80
|
+
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
81
|
+
* @summary Handle the webhook from PSP
|
|
82
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
83
|
+
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
84
|
+
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
85
|
+
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
*/
|
|
89
|
+
postWebhookWithProductSlug: async (pspType: string, tenantSlug: string, productSlug: string, body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
90
|
+
// verify required parameter 'pspType' is not null or undefined
|
|
91
|
+
assertParamExists('postWebhookWithProductSlug', 'pspType', pspType)
|
|
92
|
+
// verify required parameter 'tenantSlug' is not null or undefined
|
|
93
|
+
assertParamExists('postWebhookWithProductSlug', 'tenantSlug', tenantSlug)
|
|
94
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
95
|
+
assertParamExists('postWebhookWithProductSlug', 'productSlug', productSlug)
|
|
96
|
+
// verify required parameter 'body' is not null or undefined
|
|
97
|
+
assertParamExists('postWebhookWithProductSlug', 'body', body)
|
|
52
98
|
const localVarPath = `/paymentservice/v1/webhooks/{pspType}/{tenantSlug}/{productSlug}`
|
|
53
99
|
.replace(`{${"pspType"}}`, encodeURIComponent(String(pspType)))
|
|
54
100
|
.replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)))
|
|
@@ -95,13 +141,26 @@ export const WebhooksApiFp = function(configuration?: Configuration) {
|
|
|
95
141
|
* @summary Handle the webhook from PSP
|
|
96
142
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
97
143
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
98
|
-
* @param {string} productSlug
|
|
99
144
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
100
145
|
* @param {*} [options] Override http request option.
|
|
101
146
|
* @throws {RequiredError}
|
|
102
147
|
*/
|
|
103
|
-
async postWebhook(pspType: string, tenantSlug: string,
|
|
104
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postWebhook(pspType, tenantSlug,
|
|
148
|
+
async postWebhook(pspType: string, tenantSlug: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
149
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, body, options);
|
|
150
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
151
|
+
},
|
|
152
|
+
/**
|
|
153
|
+
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
154
|
+
* @summary Handle the webhook from PSP
|
|
155
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
156
|
+
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
157
|
+
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
158
|
+
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
*/
|
|
162
|
+
async postWebhookWithProductSlug(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
163
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postWebhookWithProductSlug(pspType, tenantSlug, productSlug, body, options);
|
|
105
164
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
106
165
|
},
|
|
107
166
|
}
|
|
@@ -119,13 +178,25 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP
|
|
|
119
178
|
* @summary Handle the webhook from PSP
|
|
120
179
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
121
180
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
122
|
-
* @param {string} productSlug
|
|
123
181
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
124
182
|
* @param {*} [options] Override http request option.
|
|
125
183
|
* @throws {RequiredError}
|
|
126
184
|
*/
|
|
127
|
-
postWebhook(pspType: string, tenantSlug: string,
|
|
128
|
-
return localVarFp.postWebhook(pspType, tenantSlug,
|
|
185
|
+
postWebhook(pspType: string, tenantSlug: string, body: object, options?: any): AxiosPromise<void> {
|
|
186
|
+
return localVarFp.postWebhook(pspType, tenantSlug, body, options).then((request) => request(axios, basePath));
|
|
187
|
+
},
|
|
188
|
+
/**
|
|
189
|
+
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
190
|
+
* @summary Handle the webhook from PSP
|
|
191
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
192
|
+
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
193
|
+
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
194
|
+
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
195
|
+
* @param {*} [options] Override http request option.
|
|
196
|
+
* @throws {RequiredError}
|
|
197
|
+
*/
|
|
198
|
+
postWebhookWithProductSlug(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: any): AxiosPromise<void> {
|
|
199
|
+
return localVarFp.postWebhookWithProductSlug(pspType, tenantSlug, productSlug, body, options).then((request) => request(axios, basePath));
|
|
129
200
|
},
|
|
130
201
|
};
|
|
131
202
|
};
|
|
@@ -151,16 +222,44 @@ export interface WebhooksApiPostWebhookRequest {
|
|
|
151
222
|
readonly tenantSlug: string
|
|
152
223
|
|
|
153
224
|
/**
|
|
154
|
-
*
|
|
155
|
-
* @type {
|
|
225
|
+
* Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
226
|
+
* @type {object}
|
|
156
227
|
* @memberof WebhooksApiPostWebhook
|
|
157
228
|
*/
|
|
229
|
+
readonly body: object
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Request parameters for postWebhookWithProductSlug operation in WebhooksApi.
|
|
234
|
+
* @export
|
|
235
|
+
* @interface WebhooksApiPostWebhookWithProductSlugRequest
|
|
236
|
+
*/
|
|
237
|
+
export interface WebhooksApiPostWebhookWithProductSlugRequest {
|
|
238
|
+
/**
|
|
239
|
+
* The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
240
|
+
* @type {string}
|
|
241
|
+
* @memberof WebhooksApiPostWebhookWithProductSlug
|
|
242
|
+
*/
|
|
243
|
+
readonly pspType: string
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Unique slug identifier representing a tenant.
|
|
247
|
+
* @type {string}
|
|
248
|
+
* @memberof WebhooksApiPostWebhookWithProductSlug
|
|
249
|
+
*/
|
|
250
|
+
readonly tenantSlug: string
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Optional product slug associated with the webhook.
|
|
254
|
+
* @type {string}
|
|
255
|
+
* @memberof WebhooksApiPostWebhookWithProductSlug
|
|
256
|
+
*/
|
|
158
257
|
readonly productSlug: string
|
|
159
258
|
|
|
160
259
|
/**
|
|
161
260
|
* Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
162
261
|
* @type {object}
|
|
163
|
-
* @memberof
|
|
262
|
+
* @memberof WebhooksApiPostWebhookWithProductSlug
|
|
164
263
|
*/
|
|
165
264
|
readonly body: object
|
|
166
265
|
}
|
|
@@ -181,6 +280,18 @@ export class WebhooksApi extends BaseAPI {
|
|
|
181
280
|
* @memberof WebhooksApi
|
|
182
281
|
*/
|
|
183
282
|
public postWebhook(requestParameters: WebhooksApiPostWebhookRequest, options?: AxiosRequestConfig) {
|
|
184
|
-
return WebhooksApiFp(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.
|
|
283
|
+
return WebhooksApiFp(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
288
|
+
* @summary Handle the webhook from PSP
|
|
289
|
+
* @param {WebhooksApiPostWebhookWithProductSlugRequest} requestParameters Request parameters.
|
|
290
|
+
* @param {*} [options] Override http request option.
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
* @memberof WebhooksApi
|
|
293
|
+
*/
|
|
294
|
+
public postWebhookWithProductSlug(requestParameters: WebhooksApiPostWebhookWithProductSlugRequest, options?: AxiosRequestConfig) {
|
|
295
|
+
return WebhooksApiFp(this.configuration).postWebhookWithProductSlug(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
185
296
|
}
|
|
186
297
|
}
|
|
@@ -57,11 +57,11 @@ export declare const PaymentRemindersApiAxiosParamCreator: (configuration?: Conf
|
|
|
57
57
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
58
58
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
59
59
|
* @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.
|
|
60
|
-
* @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>
|
|
60
|
+
* @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, isActive</i>
|
|
61
61
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
62
|
-
* @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>
|
|
62
|
+
* @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, isActive</i>
|
|
63
63
|
* @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/>
|
|
64
|
-
* @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>
|
|
64
|
+
* @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, isActive</i>
|
|
65
65
|
* @param {*} [options] Override http request option.
|
|
66
66
|
* @throws {RequiredError}
|
|
67
67
|
*/
|
|
@@ -106,11 +106,11 @@ export declare const PaymentRemindersApiFp: (configuration?: Configuration) => {
|
|
|
106
106
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
107
107
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
108
108
|
* @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.
|
|
109
|
-
* @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>
|
|
109
|
+
* @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, isActive</i>
|
|
110
110
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
111
|
-
* @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>
|
|
111
|
+
* @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, isActive</i>
|
|
112
112
|
* @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/>
|
|
113
|
-
* @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>
|
|
113
|
+
* @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, isActive</i>
|
|
114
114
|
* @param {*} [options] Override http request option.
|
|
115
115
|
* @throws {RequiredError}
|
|
116
116
|
*/
|
|
@@ -155,11 +155,11 @@ export declare const PaymentRemindersApiFactory: (configuration?: Configuration,
|
|
|
155
155
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
156
156
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
157
157
|
* @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.
|
|
158
|
-
* @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>
|
|
158
|
+
* @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, isActive</i>
|
|
159
159
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
160
|
-
* @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>
|
|
160
|
+
* @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, isActive</i>
|
|
161
161
|
* @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/>
|
|
162
|
-
* @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>
|
|
162
|
+
* @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, isActive</i>
|
|
163
163
|
* @param {*} [options] Override http request option.
|
|
164
164
|
* @throws {RequiredError}
|
|
165
165
|
*/
|
|
@@ -253,7 +253,7 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
253
253
|
*/
|
|
254
254
|
readonly pageToken?: string;
|
|
255
255
|
/**
|
|
256
|
-
* 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>
|
|
256
|
+
* 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, isActive</i>
|
|
257
257
|
* @type {string}
|
|
258
258
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
259
259
|
*/
|
|
@@ -265,7 +265,7 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
265
265
|
*/
|
|
266
266
|
readonly search?: string;
|
|
267
267
|
/**
|
|
268
|
-
* 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>
|
|
268
|
+
* 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, isActive</i>
|
|
269
269
|
* @type {string}
|
|
270
270
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
271
271
|
*/
|
|
@@ -277,7 +277,7 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
277
277
|
*/
|
|
278
278
|
readonly expand?: string;
|
|
279
279
|
/**
|
|
280
|
-
* 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>
|
|
280
|
+
* 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, isActive</i>
|
|
281
281
|
* @type {string}
|
|
282
282
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
283
283
|
*/
|