@emilgroup/payment-sdk-node 1.23.1-beta.99 → 1.26.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 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.23.1-beta.99 --save
20
+ npm install @emilgroup/payment-sdk-node@1.26.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk-node@1.23.1-beta.99
24
+ yarn add @emilgroup/payment-sdk-node@1.26.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, isActive</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</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, isActive</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</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, isActive</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</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, isActive</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</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, isActive</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</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, isActive</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</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, isActive</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</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, isActive</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</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, isActive</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</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, isActive</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</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, isActive</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</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, isActive</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</i>
520
520
  * @type {string}
521
521
  * @memberof PaymentRemindersApiListPaymentReminders
522
522
  */
@@ -89,51 +89,6 @@ 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
- },
137
92
  /**
138
93
  * This will get payment request. **Required Permissions** \"payment-management.payments.view\"
139
94
  * @summary Retrieve the payment request
@@ -335,18 +290,6 @@ export const PaymentRequestsApiFp = function(configuration?: Configuration) {
335
290
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentRequest(createPaymentRequestRequestDto, authorization, options);
336
291
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
337
292
  },
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
- },
350
293
  /**
351
294
  * This will get payment request. **Required Permissions** \"payment-management.payments.view\"
352
295
  * @summary Retrieve the payment request
@@ -412,17 +355,6 @@ export const PaymentRequestsApiFactory = function (configuration?: Configuration
412
355
  createPaymentRequest(createPaymentRequestRequestDto: CreatePaymentRequestRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentRequestResponseClass> {
413
356
  return localVarFp.createPaymentRequest(createPaymentRequestRequestDto, authorization, options).then((request) => request(axios, basePath));
414
357
  },
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
- },
426
358
  /**
427
359
  * This will get payment request. **Required Permissions** \"payment-management.payments.view\"
428
360
  * @summary Retrieve the payment request
@@ -488,27 +420,6 @@ export interface PaymentRequestsApiCreatePaymentRequestRequest {
488
420
  readonly authorization?: string
489
421
  }
490
422
 
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
-
512
423
  /**
513
424
  * Request parameters for getPaymentRequest operation in PaymentRequestsApi.
514
425
  * @export
@@ -647,18 +558,6 @@ export class PaymentRequestsApi extends BaseAPI {
647
558
  return PaymentRequestsApiFp(this.configuration).createPaymentRequest(requestParameters.createPaymentRequestRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
648
559
  }
649
560
 
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
-
662
561
  /**
663
562
  * This will get payment request. **Required Permissions** \"payment-management.payments.view\"
664
563
  * @summary Retrieve the payment request
@@ -40,65 +40,15 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat
40
40
  * @param {*} [options] Override http request option.
41
41
  * @throws {RequiredError}
42
42
  */
43
- postWebhook0: async (pspType: string, tenantSlug: string, productSlug: string, body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43
+ postWebhook: async (pspType: string, tenantSlug: string, productSlug: string, body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44
44
  // verify required parameter 'pspType' is not null or undefined
45
- assertParamExists('postWebhook0', 'pspType', pspType)
45
+ assertParamExists('postWebhook', 'pspType', pspType)
46
46
  // verify required parameter 'tenantSlug' is not null or undefined
47
- assertParamExists('postWebhook0', 'tenantSlug', tenantSlug)
47
+ assertParamExists('postWebhook', 'tenantSlug', tenantSlug)
48
48
  // verify required parameter 'productSlug' is not null or undefined
49
- assertParamExists('postWebhook0', 'productSlug', productSlug)
49
+ assertParamExists('postWebhook', 'productSlug', productSlug)
50
50
  // verify required parameter 'body' is not null or undefined
51
- assertParamExists('postWebhook0', 'body', body)
52
- const localVarPath = `/paymentservice/v1/webhooks/{pspType}/{tenantSlug}`
53
- .replace(`{${"pspType"}}`, encodeURIComponent(String(pspType)))
54
- .replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)))
55
- .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
56
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
57
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58
- let baseOptions;
59
- let baseAccessToken;
60
- if (configuration) {
61
- baseOptions = configuration.baseOptions;
62
- baseAccessToken = configuration.accessToken;
63
- }
64
-
65
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
66
- const localVarHeaderParameter = {} as any;
67
- const localVarQueryParameter = {} as any;
68
-
69
-
70
-
71
- localVarHeaderParameter['Content-Type'] = 'application/json';
72
-
73
- setSearchParams(localVarUrlObj, localVarQueryParameter);
74
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
75
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
76
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
77
-
78
- return {
79
- url: toPathString(localVarUrlObj),
80
- options: localVarRequestOptions,
81
- };
82
- },
83
- /**
84
- * This will processes the webhook from external payment service provider. **Required Permissions** none
85
- * @summary Handle the webhook from PSP
86
- * @param {string} pspType The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis, adyen&lt;/i&gt;
87
- * @param {string} tenantSlug Unique slug identifier representing a tenant.
88
- * @param {string} productSlug
89
- * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
90
- * @param {*} [options] Override http request option.
91
- * @throws {RequiredError}
92
- */
93
- postWebhook1: async (pspType: string, tenantSlug: string, productSlug: string, body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
94
- // verify required parameter 'pspType' is not null or undefined
95
- assertParamExists('postWebhook1', 'pspType', pspType)
96
- // verify required parameter 'tenantSlug' is not null or undefined
97
- assertParamExists('postWebhook1', 'tenantSlug', tenantSlug)
98
- // verify required parameter 'productSlug' is not null or undefined
99
- assertParamExists('postWebhook1', 'productSlug', productSlug)
100
- // verify required parameter 'body' is not null or undefined
101
- assertParamExists('postWebhook1', 'body', body)
51
+ assertParamExists('postWebhook', 'body', body)
102
52
  const localVarPath = `/paymentservice/v1/webhooks/{pspType}/{tenantSlug}/{productSlug}`
103
53
  .replace(`{${"pspType"}}`, encodeURIComponent(String(pspType)))
104
54
  .replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)))
@@ -150,22 +100,8 @@ export const WebhooksApiFp = function(configuration?: Configuration) {
150
100
  * @param {*} [options] Override http request option.
151
101
  * @throws {RequiredError}
152
102
  */
153
- async postWebhook0(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
154
- const localVarAxiosArgs = await localVarAxiosParamCreator.postWebhook0(pspType, tenantSlug, productSlug, body, options);
155
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
156
- },
157
- /**
158
- * This will processes the webhook from external payment service provider. **Required Permissions** none
159
- * @summary Handle the webhook from PSP
160
- * @param {string} pspType The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis, adyen&lt;/i&gt;
161
- * @param {string} tenantSlug Unique slug identifier representing a tenant.
162
- * @param {string} productSlug
163
- * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
164
- * @param {*} [options] Override http request option.
165
- * @throws {RequiredError}
166
- */
167
- async postWebhook1(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
168
- const localVarAxiosArgs = await localVarAxiosParamCreator.postWebhook1(pspType, tenantSlug, productSlug, body, options);
103
+ async postWebhook(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
104
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug, body, options);
169
105
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
170
106
  },
171
107
  }
@@ -188,91 +124,43 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP
188
124
  * @param {*} [options] Override http request option.
189
125
  * @throws {RequiredError}
190
126
  */
191
- postWebhook0(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: any): AxiosPromise<void> {
192
- return localVarFp.postWebhook0(pspType, tenantSlug, productSlug, body, options).then((request) => request(axios, basePath));
193
- },
194
- /**
195
- * This will processes the webhook from external payment service provider. **Required Permissions** none
196
- * @summary Handle the webhook from PSP
197
- * @param {string} pspType The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis, adyen&lt;/i&gt;
198
- * @param {string} tenantSlug Unique slug identifier representing a tenant.
199
- * @param {string} productSlug
200
- * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
201
- * @param {*} [options] Override http request option.
202
- * @throws {RequiredError}
203
- */
204
- postWebhook1(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: any): AxiosPromise<void> {
205
- return localVarFp.postWebhook1(pspType, tenantSlug, productSlug, body, options).then((request) => request(axios, basePath));
127
+ postWebhook(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: any): AxiosPromise<void> {
128
+ return localVarFp.postWebhook(pspType, tenantSlug, productSlug, body, options).then((request) => request(axios, basePath));
206
129
  },
207
130
  };
208
131
  };
209
132
 
210
133
  /**
211
- * Request parameters for postWebhook0 operation in WebhooksApi.
212
- * @export
213
- * @interface WebhooksApiPostWebhook0Request
214
- */
215
- export interface WebhooksApiPostWebhook0Request {
216
- /**
217
- * The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis, adyen&lt;/i&gt;
218
- * @type {string}
219
- * @memberof WebhooksApiPostWebhook0
220
- */
221
- readonly pspType: string
222
-
223
- /**
224
- * Unique slug identifier representing a tenant.
225
- * @type {string}
226
- * @memberof WebhooksApiPostWebhook0
227
- */
228
- readonly tenantSlug: string
229
-
230
- /**
231
- *
232
- * @type {string}
233
- * @memberof WebhooksApiPostWebhook0
234
- */
235
- readonly productSlug: string
236
-
237
- /**
238
- * Accepts a webhook payload. The structure may vary depending on the payment service provider.
239
- * @type {object}
240
- * @memberof WebhooksApiPostWebhook0
241
- */
242
- readonly body: object
243
- }
244
-
245
- /**
246
- * Request parameters for postWebhook1 operation in WebhooksApi.
134
+ * Request parameters for postWebhook operation in WebhooksApi.
247
135
  * @export
248
- * @interface WebhooksApiPostWebhook1Request
136
+ * @interface WebhooksApiPostWebhookRequest
249
137
  */
250
- export interface WebhooksApiPostWebhook1Request {
138
+ export interface WebhooksApiPostWebhookRequest {
251
139
  /**
252
140
  * The type of the payment service provider (PSP).&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Supported PSP: braintree, stripe, b4u, eis, adyen&lt;/i&gt;
253
141
  * @type {string}
254
- * @memberof WebhooksApiPostWebhook1
142
+ * @memberof WebhooksApiPostWebhook
255
143
  */
256
144
  readonly pspType: string
257
145
 
258
146
  /**
259
147
  * Unique slug identifier representing a tenant.
260
148
  * @type {string}
261
- * @memberof WebhooksApiPostWebhook1
149
+ * @memberof WebhooksApiPostWebhook
262
150
  */
263
151
  readonly tenantSlug: string
264
152
 
265
153
  /**
266
154
  *
267
155
  * @type {string}
268
- * @memberof WebhooksApiPostWebhook1
156
+ * @memberof WebhooksApiPostWebhook
269
157
  */
270
158
  readonly productSlug: string
271
159
 
272
160
  /**
273
161
  * Accepts a webhook payload. The structure may vary depending on the payment service provider.
274
162
  * @type {object}
275
- * @memberof WebhooksApiPostWebhook1
163
+ * @memberof WebhooksApiPostWebhook
276
164
  */
277
165
  readonly body: object
278
166
  }
@@ -287,24 +175,12 @@ export class WebhooksApi extends BaseAPI {
287
175
  /**
288
176
  * This will processes the webhook from external payment service provider. **Required Permissions** none
289
177
  * @summary Handle the webhook from PSP
290
- * @param {WebhooksApiPostWebhook0Request} requestParameters Request parameters.
291
- * @param {*} [options] Override http request option.
292
- * @throws {RequiredError}
293
- * @memberof WebhooksApi
294
- */
295
- public postWebhook0(requestParameters: WebhooksApiPostWebhook0Request, options?: AxiosRequestConfig) {
296
- return WebhooksApiFp(this.configuration).postWebhook0(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
297
- }
298
-
299
- /**
300
- * This will processes the webhook from external payment service provider. **Required Permissions** none
301
- * @summary Handle the webhook from PSP
302
- * @param {WebhooksApiPostWebhook1Request} requestParameters Request parameters.
178
+ * @param {WebhooksApiPostWebhookRequest} requestParameters Request parameters.
303
179
  * @param {*} [options] Override http request option.
304
180
  * @throws {RequiredError}
305
181
  * @memberof WebhooksApi
306
182
  */
307
- public postWebhook1(requestParameters: WebhooksApiPostWebhook1Request, options?: AxiosRequestConfig) {
308
- return WebhooksApiFp(this.configuration).postWebhook1(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
183
+ public postWebhook(requestParameters: WebhooksApiPostWebhookRequest, options?: AxiosRequestConfig) {
184
+ return WebhooksApiFp(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
309
185
  }
310
186
  }
@@ -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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate, isActive&lt;/i&gt;
60
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
61
61
  * @param {string} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, isActive&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
64
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate, isActive&lt;/i&gt;
64
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate, isActive&lt;/i&gt;
109
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
110
110
  * @param {string} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, isActive&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
113
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate, isActive&lt;/i&gt;
113
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate, isActive&lt;/i&gt;
158
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
159
159
  * @param {string} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, isActive&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
162
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate, isActive&lt;/i&gt;
162
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate, isActive&lt;/i&gt;
256
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, isActive&lt;/i&gt;
268
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate, isActive&lt;/i&gt;
280
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
281
281
  * @type {string}
282
282
  * @memberof PaymentRemindersApiListPaymentReminders
283
283
  */
@@ -252,11 +252,11 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
252
252
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
253
253
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
254
254
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
255
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate, isActive&lt;/i&gt;
255
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
256
256
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
257
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, isActive&lt;/i&gt;
257
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
258
258
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
259
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate, isActive&lt;/i&gt;
259
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
260
260
  * @param {*} [options] Override http request option.
261
261
  * @throws {RequiredError}
262
262
  */
@@ -398,11 +398,11 @@ var PaymentRemindersApiFp = function (configuration) {
398
398
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
399
399
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
400
400
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
401
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate, isActive&lt;/i&gt;
401
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
402
402
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
403
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, isActive&lt;/i&gt;
403
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
404
404
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
405
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate, isActive&lt;/i&gt;
405
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
406
406
  * @param {*} [options] Override http request option.
407
407
  * @throws {RequiredError}
408
408
  */
@@ -469,11 +469,11 @@ var PaymentRemindersApiFactory = function (configuration, basePath, axios) {
469
469
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
470
470
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
471
471
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
472
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate, isActive&lt;/i&gt;
472
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
473
473
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
474
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, isActive&lt;/i&gt;
474
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
475
475
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
476
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate, isActive&lt;/i&gt;
476
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, nextReminderDate&lt;/i&gt;
477
477
  * @param {*} [options] Override http request option.
478
478
  * @throws {RequiredError}
479
479
  */