@emilgroup/payment-sdk 1.16.1-beta.66 → 1.16.1-beta.67
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-requests-api.ts +12 -12
- package/api/webhooks-api.ts +14 -125
- package/dist/api/payment-requests-api.d.ts +12 -12
- package/dist/api/payment-requests-api.js +9 -9
- package/dist/api/webhooks-api.d.ts +9 -73
- package/dist/api/webhooks-api.js +11 -100
- package/dist/models/create-payment-request-request-dto.d.ts +2 -10
- package/dist/models/payment-request-class.d.ts +2 -10
- package/models/create-payment-request-request-dto.ts +2 -8
- package/models/payment-request-class.ts +2 -8
- 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@1.16.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.16.1-beta.67 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.16.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.16.1-beta.67
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
|
@@ -188,11 +188,11 @@ export const PaymentRequestsApiAxiosParamCreator = function (configuration?: Con
|
|
|
188
188
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
189
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
190
190
|
* @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.
|
|
191
|
-
* @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
|
|
192
|
-
* @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
|
|
191
|
+
* @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>
|
|
192
|
+
* @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>
|
|
193
193
|
* @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>
|
|
194
194
|
* @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>
|
|
195
|
-
* @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
|
|
195
|
+
* @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>
|
|
196
196
|
* @param {*} [options] Override http request option.
|
|
197
197
|
* @throws {RequiredError}
|
|
198
198
|
*/
|
|
@@ -362,11 +362,11 @@ export const PaymentRequestsApiFp = function(configuration?: Configuration) {
|
|
|
362
362
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
363
363
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
364
364
|
* @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.
|
|
365
|
-
* @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
|
|
366
|
-
* @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
|
|
365
|
+
* @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>
|
|
366
|
+
* @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>
|
|
367
367
|
* @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>
|
|
368
368
|
* @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>
|
|
369
|
-
* @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
|
|
369
|
+
* @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>
|
|
370
370
|
* @param {*} [options] Override http request option.
|
|
371
371
|
* @throws {RequiredError}
|
|
372
372
|
*/
|
|
@@ -437,11 +437,11 @@ export const PaymentRequestsApiFactory = function (configuration?: Configuration
|
|
|
437
437
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
438
438
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
439
439
|
* @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.
|
|
440
|
-
* @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
|
|
441
|
-
* @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
|
|
440
|
+
* @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>
|
|
441
|
+
* @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>
|
|
442
442
|
* @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>
|
|
443
443
|
* @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>
|
|
444
|
-
* @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
|
|
444
|
+
* @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>
|
|
445
445
|
* @param {*} [options] Override http request option.
|
|
446
446
|
* @throws {RequiredError}
|
|
447
447
|
*/
|
|
@@ -561,14 +561,14 @@ export interface PaymentRequestsApiListPaymentRequestsRequest {
|
|
|
561
561
|
readonly pageToken?: string
|
|
562
562
|
|
|
563
563
|
/**
|
|
564
|
-
* 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
|
|
564
|
+
* 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>
|
|
565
565
|
* @type {string}
|
|
566
566
|
* @memberof PaymentRequestsApiListPaymentRequests
|
|
567
567
|
*/
|
|
568
568
|
readonly filter?: string
|
|
569
569
|
|
|
570
570
|
/**
|
|
571
|
-
* 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
|
|
571
|
+
* 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>
|
|
572
572
|
* @type {string}
|
|
573
573
|
* @memberof PaymentRequestsApiListPaymentRequests
|
|
574
574
|
*/
|
|
@@ -589,7 +589,7 @@ export interface PaymentRequestsApiListPaymentRequestsRequest {
|
|
|
589
589
|
readonly expand?: string
|
|
590
590
|
|
|
591
591
|
/**
|
|
592
|
-
* 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
|
|
592
|
+
* 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>
|
|
593
593
|
* @type {string}
|
|
594
594
|
* @memberof PaymentRequestsApiListPaymentRequests
|
|
595
595
|
*/
|
package/api/webhooks-api.ts
CHANGED
|
@@ -31,66 +31,20 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
31
31
|
* @summary Handle the webhook from PSP
|
|
32
32
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
33
33
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
34
|
+
* @param {string} productSlug
|
|
34
35
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
35
36
|
* @param {*} [options] Override http request option.
|
|
36
37
|
* @throws {RequiredError}
|
|
37
38
|
*/
|
|
38
|
-
postWebhook: async (pspType: string, tenantSlug: string, body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39
|
+
postWebhook: async (pspType: string, tenantSlug: string, productSlug: string, body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39
40
|
// verify required parameter 'pspType' is not null or undefined
|
|
40
41
|
assertParamExists('postWebhook', 'pspType', pspType)
|
|
41
42
|
// verify required parameter 'tenantSlug' is not null or undefined
|
|
42
43
|
assertParamExists('postWebhook', 'tenantSlug', tenantSlug)
|
|
43
|
-
// verify required parameter 'body' is not null or undefined
|
|
44
|
-
assertParamExists('postWebhook', 'body', body)
|
|
45
|
-
const localVarPath = `/paymentservice/v1/webhooks/{pspType}/{tenantSlug}`
|
|
46
|
-
.replace(`{${"pspType"}}`, encodeURIComponent(String(pspType)))
|
|
47
|
-
.replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)));
|
|
48
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50
|
-
let baseOptions;
|
|
51
|
-
let baseAccessToken;
|
|
52
|
-
if (configuration) {
|
|
53
|
-
baseOptions = configuration.baseOptions;
|
|
54
|
-
baseAccessToken = configuration.accessToken;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
58
|
-
const localVarHeaderParameter = {} as any;
|
|
59
|
-
const localVarQueryParameter = {} as any;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
64
|
-
|
|
65
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
66
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
67
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
68
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
69
|
-
|
|
70
|
-
return {
|
|
71
|
-
url: toPathString(localVarUrlObj),
|
|
72
|
-
options: localVarRequestOptions,
|
|
73
|
-
};
|
|
74
|
-
},
|
|
75
|
-
/**
|
|
76
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
77
|
-
* @summary Handle the webhook from PSP
|
|
78
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
79
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
80
|
-
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
81
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
82
|
-
* @param {*} [options] Override http request option.
|
|
83
|
-
* @throws {RequiredError}
|
|
84
|
-
*/
|
|
85
|
-
postWebhookWithProductSlug: async (pspType: string, tenantSlug: string, productSlug: string, body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
86
|
-
// verify required parameter 'pspType' is not null or undefined
|
|
87
|
-
assertParamExists('postWebhookWithProductSlug', 'pspType', pspType)
|
|
88
|
-
// verify required parameter 'tenantSlug' is not null or undefined
|
|
89
|
-
assertParamExists('postWebhookWithProductSlug', 'tenantSlug', tenantSlug)
|
|
90
44
|
// verify required parameter 'productSlug' is not null or undefined
|
|
91
|
-
assertParamExists('
|
|
45
|
+
assertParamExists('postWebhook', 'productSlug', productSlug)
|
|
92
46
|
// verify required parameter 'body' is not null or undefined
|
|
93
|
-
assertParamExists('
|
|
47
|
+
assertParamExists('postWebhook', 'body', body)
|
|
94
48
|
const localVarPath = `/paymentservice/v1/webhooks/{pspType}/{tenantSlug}/{productSlug}`
|
|
95
49
|
.replace(`{${"pspType"}}`, encodeURIComponent(String(pspType)))
|
|
96
50
|
.replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)))
|
|
@@ -137,26 +91,13 @@ export const WebhooksApiFp = function(configuration?: Configuration) {
|
|
|
137
91
|
* @summary Handle the webhook from PSP
|
|
138
92
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
139
93
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
94
|
+
* @param {string} productSlug
|
|
140
95
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
141
96
|
* @param {*} [options] Override http request option.
|
|
142
97
|
* @throws {RequiredError}
|
|
143
98
|
*/
|
|
144
|
-
async postWebhook(pspType: string, tenantSlug: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
145
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, body, options);
|
|
146
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
147
|
-
},
|
|
148
|
-
/**
|
|
149
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
150
|
-
* @summary Handle the webhook from PSP
|
|
151
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
152
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
153
|
-
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
154
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
155
|
-
* @param {*} [options] Override http request option.
|
|
156
|
-
* @throws {RequiredError}
|
|
157
|
-
*/
|
|
158
|
-
async postWebhookWithProductSlug(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
159
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postWebhookWithProductSlug(pspType, tenantSlug, productSlug, body, options);
|
|
99
|
+
async postWebhook(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
100
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug, body, options);
|
|
160
101
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
161
102
|
},
|
|
162
103
|
}
|
|
@@ -174,25 +115,13 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP
|
|
|
174
115
|
* @summary Handle the webhook from PSP
|
|
175
116
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
176
117
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
118
|
+
* @param {string} productSlug
|
|
177
119
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
178
120
|
* @param {*} [options] Override http request option.
|
|
179
121
|
* @throws {RequiredError}
|
|
180
122
|
*/
|
|
181
|
-
postWebhook(pspType: string, tenantSlug: string, body: object, options?: any): AxiosPromise<void> {
|
|
182
|
-
return localVarFp.postWebhook(pspType, tenantSlug, body, options).then((request) => request(axios, basePath));
|
|
183
|
-
},
|
|
184
|
-
/**
|
|
185
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
186
|
-
* @summary Handle the webhook from PSP
|
|
187
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
188
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
189
|
-
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
190
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
191
|
-
* @param {*} [options] Override http request option.
|
|
192
|
-
* @throws {RequiredError}
|
|
193
|
-
*/
|
|
194
|
-
postWebhookWithProductSlug(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: any): AxiosPromise<void> {
|
|
195
|
-
return localVarFp.postWebhookWithProductSlug(pspType, tenantSlug, productSlug, body, options).then((request) => request(axios, basePath));
|
|
123
|
+
postWebhook(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: any): AxiosPromise<void> {
|
|
124
|
+
return localVarFp.postWebhook(pspType, tenantSlug, productSlug, body, options).then((request) => request(axios, basePath));
|
|
196
125
|
},
|
|
197
126
|
};
|
|
198
127
|
};
|
|
@@ -218,44 +147,16 @@ export interface WebhooksApiPostWebhookRequest {
|
|
|
218
147
|
readonly tenantSlug: string
|
|
219
148
|
|
|
220
149
|
/**
|
|
221
|
-
*
|
|
222
|
-
* @type {object}
|
|
223
|
-
* @memberof WebhooksApiPostWebhook
|
|
224
|
-
*/
|
|
225
|
-
readonly body: object
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Request parameters for postWebhookWithProductSlug operation in WebhooksApi.
|
|
230
|
-
* @export
|
|
231
|
-
* @interface WebhooksApiPostWebhookWithProductSlugRequest
|
|
232
|
-
*/
|
|
233
|
-
export interface WebhooksApiPostWebhookWithProductSlugRequest {
|
|
234
|
-
/**
|
|
235
|
-
* The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
236
|
-
* @type {string}
|
|
237
|
-
* @memberof WebhooksApiPostWebhookWithProductSlug
|
|
238
|
-
*/
|
|
239
|
-
readonly pspType: string
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* Unique slug identifier representing a tenant.
|
|
243
|
-
* @type {string}
|
|
244
|
-
* @memberof WebhooksApiPostWebhookWithProductSlug
|
|
245
|
-
*/
|
|
246
|
-
readonly tenantSlug: string
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Optional product slug associated with the webhook.
|
|
150
|
+
*
|
|
250
151
|
* @type {string}
|
|
251
|
-
* @memberof
|
|
152
|
+
* @memberof WebhooksApiPostWebhook
|
|
252
153
|
*/
|
|
253
154
|
readonly productSlug: string
|
|
254
155
|
|
|
255
156
|
/**
|
|
256
157
|
* Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
257
158
|
* @type {object}
|
|
258
|
-
* @memberof
|
|
159
|
+
* @memberof WebhooksApiPostWebhook
|
|
259
160
|
*/
|
|
260
161
|
readonly body: object
|
|
261
162
|
}
|
|
@@ -276,18 +177,6 @@ export class WebhooksApi extends BaseAPI {
|
|
|
276
177
|
* @memberof WebhooksApi
|
|
277
178
|
*/
|
|
278
179
|
public postWebhook(requestParameters: WebhooksApiPostWebhookRequest, options?: AxiosRequestConfig) {
|
|
279
|
-
return WebhooksApiFp(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
284
|
-
* @summary Handle the webhook from PSP
|
|
285
|
-
* @param {WebhooksApiPostWebhookWithProductSlugRequest} requestParameters Request parameters.
|
|
286
|
-
* @param {*} [options] Override http request option.
|
|
287
|
-
* @throws {RequiredError}
|
|
288
|
-
* @memberof WebhooksApi
|
|
289
|
-
*/
|
|
290
|
-
public postWebhookWithProductSlug(requestParameters: WebhooksApiPostWebhookWithProductSlugRequest, options?: AxiosRequestConfig) {
|
|
291
|
-
return WebhooksApiFp(this.configuration).postWebhookWithProductSlug(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
180
|
+
return WebhooksApiFp(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
292
181
|
}
|
|
293
182
|
}
|
|
@@ -57,11 +57,11 @@ export declare const PaymentRequestsApiAxiosParamCreator: (configuration?: Confi
|
|
|
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: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt
|
|
61
|
-
* @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
|
|
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: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt</i>
|
|
61
|
+
* @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>
|
|
62
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, paymentRequestNumber, financialEntityNumber, domainEntityNumber, createdAt, status</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/> <i>Allowed values: paymentReceipts<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: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt
|
|
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: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt</i>
|
|
65
65
|
* @param {*} [options] Override http request option.
|
|
66
66
|
* @throws {RequiredError}
|
|
67
67
|
*/
|
|
@@ -116,11 +116,11 @@ export declare const PaymentRequestsApiFp: (configuration?: Configuration) => {
|
|
|
116
116
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
117
117
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
118
118
|
* @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.
|
|
119
|
-
* @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
|
|
120
|
-
* @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
|
|
119
|
+
* @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>
|
|
120
|
+
* @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>
|
|
121
121
|
* @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>
|
|
122
122
|
* @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>
|
|
123
|
-
* @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
|
|
123
|
+
* @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>
|
|
124
124
|
* @param {*} [options] Override http request option.
|
|
125
125
|
* @throws {RequiredError}
|
|
126
126
|
*/
|
|
@@ -175,11 +175,11 @@ export declare const PaymentRequestsApiFactory: (configuration?: Configuration,
|
|
|
175
175
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
176
176
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
177
177
|
* @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.
|
|
178
|
-
* @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
|
|
179
|
-
* @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
|
|
178
|
+
* @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>
|
|
179
|
+
* @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>
|
|
180
180
|
* @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>
|
|
181
181
|
* @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>
|
|
182
|
-
* @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
|
|
182
|
+
* @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>
|
|
183
183
|
* @param {*} [options] Override http request option.
|
|
184
184
|
* @throws {RequiredError}
|
|
185
185
|
*/
|
|
@@ -283,13 +283,13 @@ export interface PaymentRequestsApiListPaymentRequestsRequest {
|
|
|
283
283
|
*/
|
|
284
284
|
readonly pageToken?: string;
|
|
285
285
|
/**
|
|
286
|
-
* 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
|
|
286
|
+
* 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>
|
|
287
287
|
* @type {string}
|
|
288
288
|
* @memberof PaymentRequestsApiListPaymentRequests
|
|
289
289
|
*/
|
|
290
290
|
readonly filter?: string;
|
|
291
291
|
/**
|
|
292
|
-
* 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
|
|
292
|
+
* 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>
|
|
293
293
|
* @type {string}
|
|
294
294
|
* @memberof PaymentRequestsApiListPaymentRequests
|
|
295
295
|
*/
|
|
@@ -307,7 +307,7 @@ export interface PaymentRequestsApiListPaymentRequestsRequest {
|
|
|
307
307
|
*/
|
|
308
308
|
readonly expand?: string;
|
|
309
309
|
/**
|
|
310
|
-
* 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
|
|
310
|
+
* 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>
|
|
311
311
|
* @type {string}
|
|
312
312
|
* @memberof PaymentRequestsApiListPaymentRequests
|
|
313
313
|
*/
|
|
@@ -249,11 +249,11 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
249
249
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
250
250
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
251
251
|
* @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.
|
|
252
|
-
* @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
|
|
253
|
-
* @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
|
|
252
|
+
* @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>
|
|
253
|
+
* @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>
|
|
254
254
|
* @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>
|
|
255
255
|
* @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>
|
|
256
|
-
* @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
|
|
256
|
+
* @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>
|
|
257
257
|
* @param {*} [options] Override http request option.
|
|
258
258
|
* @throws {RequiredError}
|
|
259
259
|
*/
|
|
@@ -448,11 +448,11 @@ var PaymentRequestsApiFp = function (configuration) {
|
|
|
448
448
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
449
449
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
450
450
|
* @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.
|
|
451
|
-
* @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
|
|
452
|
-
* @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
|
|
451
|
+
* @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>
|
|
452
|
+
* @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>
|
|
453
453
|
* @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>
|
|
454
454
|
* @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>
|
|
455
|
-
* @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
|
|
455
|
+
* @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>
|
|
456
456
|
* @param {*} [options] Override http request option.
|
|
457
457
|
* @throws {RequiredError}
|
|
458
458
|
*/
|
|
@@ -541,11 +541,11 @@ var PaymentRequestsApiFactory = function (configuration, basePath, axios) {
|
|
|
541
541
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
542
542
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
543
543
|
* @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.
|
|
544
|
-
* @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
|
|
545
|
-
* @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
|
|
544
|
+
* @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>
|
|
545
|
+
* @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>
|
|
546
546
|
* @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>
|
|
547
547
|
* @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>
|
|
548
|
-
* @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
|
|
548
|
+
* @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>
|
|
549
549
|
* @param {*} [options] Override http request option.
|
|
550
550
|
* @throws {RequiredError}
|
|
551
551
|
*/
|
|
@@ -22,22 +22,12 @@ export declare const WebhooksApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
22
22
|
* @summary Handle the webhook from PSP
|
|
23
23
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
24
24
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
25
|
+
* @param {string} productSlug
|
|
25
26
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
26
27
|
* @param {*} [options] Override http request option.
|
|
27
28
|
* @throws {RequiredError}
|
|
28
29
|
*/
|
|
29
|
-
postWebhook: (pspType: string, tenantSlug: string, body: object, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
-
/**
|
|
31
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
32
|
-
* @summary Handle the webhook from PSP
|
|
33
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
34
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
35
|
-
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
36
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
37
|
-
* @param {*} [options] Override http request option.
|
|
38
|
-
* @throws {RequiredError}
|
|
39
|
-
*/
|
|
40
|
-
postWebhookWithProductSlug: (pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
+
postWebhook: (pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
31
|
};
|
|
42
32
|
/**
|
|
43
33
|
* WebhooksApi - functional programming interface
|
|
@@ -49,22 +39,12 @@ export declare const WebhooksApiFp: (configuration?: Configuration) => {
|
|
|
49
39
|
* @summary Handle the webhook from PSP
|
|
50
40
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
51
41
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
42
|
+
* @param {string} productSlug
|
|
52
43
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
53
44
|
* @param {*} [options] Override http request option.
|
|
54
45
|
* @throws {RequiredError}
|
|
55
46
|
*/
|
|
56
|
-
postWebhook(pspType: string, tenantSlug: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
57
|
-
/**
|
|
58
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
59
|
-
* @summary Handle the webhook from PSP
|
|
60
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
61
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
62
|
-
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
63
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
64
|
-
* @param {*} [options] Override http request option.
|
|
65
|
-
* @throws {RequiredError}
|
|
66
|
-
*/
|
|
67
|
-
postWebhookWithProductSlug(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
47
|
+
postWebhook(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
68
48
|
};
|
|
69
49
|
/**
|
|
70
50
|
* WebhooksApi - factory interface
|
|
@@ -76,22 +56,12 @@ export declare const WebhooksApiFactory: (configuration?: Configuration, basePat
|
|
|
76
56
|
* @summary Handle the webhook from PSP
|
|
77
57
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
78
58
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
59
|
+
* @param {string} productSlug
|
|
79
60
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
80
61
|
* @param {*} [options] Override http request option.
|
|
81
62
|
* @throws {RequiredError}
|
|
82
63
|
*/
|
|
83
|
-
postWebhook(pspType: string, tenantSlug: string, body: object, options?: any): AxiosPromise<void>;
|
|
84
|
-
/**
|
|
85
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
86
|
-
* @summary Handle the webhook from PSP
|
|
87
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
88
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
89
|
-
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
90
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
91
|
-
* @param {*} [options] Override http request option.
|
|
92
|
-
* @throws {RequiredError}
|
|
93
|
-
*/
|
|
94
|
-
postWebhookWithProductSlug(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: any): AxiosPromise<void>;
|
|
64
|
+
postWebhook(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: any): AxiosPromise<void>;
|
|
95
65
|
};
|
|
96
66
|
/**
|
|
97
67
|
* Request parameters for postWebhook operation in WebhooksApi.
|
|
@@ -112,40 +82,15 @@ export interface WebhooksApiPostWebhookRequest {
|
|
|
112
82
|
*/
|
|
113
83
|
readonly tenantSlug: string;
|
|
114
84
|
/**
|
|
115
|
-
*
|
|
116
|
-
* @type {object}
|
|
117
|
-
* @memberof WebhooksApiPostWebhook
|
|
118
|
-
*/
|
|
119
|
-
readonly body: object;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Request parameters for postWebhookWithProductSlug operation in WebhooksApi.
|
|
123
|
-
* @export
|
|
124
|
-
* @interface WebhooksApiPostWebhookWithProductSlugRequest
|
|
125
|
-
*/
|
|
126
|
-
export interface WebhooksApiPostWebhookWithProductSlugRequest {
|
|
127
|
-
/**
|
|
128
|
-
* The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
129
|
-
* @type {string}
|
|
130
|
-
* @memberof WebhooksApiPostWebhookWithProductSlug
|
|
131
|
-
*/
|
|
132
|
-
readonly pspType: string;
|
|
133
|
-
/**
|
|
134
|
-
* Unique slug identifier representing a tenant.
|
|
135
|
-
* @type {string}
|
|
136
|
-
* @memberof WebhooksApiPostWebhookWithProductSlug
|
|
137
|
-
*/
|
|
138
|
-
readonly tenantSlug: string;
|
|
139
|
-
/**
|
|
140
|
-
* Optional product slug associated with the webhook.
|
|
85
|
+
*
|
|
141
86
|
* @type {string}
|
|
142
|
-
* @memberof
|
|
87
|
+
* @memberof WebhooksApiPostWebhook
|
|
143
88
|
*/
|
|
144
89
|
readonly productSlug: string;
|
|
145
90
|
/**
|
|
146
91
|
* Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
147
92
|
* @type {object}
|
|
148
|
-
* @memberof
|
|
93
|
+
* @memberof WebhooksApiPostWebhook
|
|
149
94
|
*/
|
|
150
95
|
readonly body: object;
|
|
151
96
|
}
|
|
@@ -165,13 +110,4 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
165
110
|
* @memberof WebhooksApi
|
|
166
111
|
*/
|
|
167
112
|
postWebhook(requestParameters: WebhooksApiPostWebhookRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
168
|
-
/**
|
|
169
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
170
|
-
* @summary Handle the webhook from PSP
|
|
171
|
-
* @param {WebhooksApiPostWebhookWithProductSlugRequest} requestParameters Request parameters.
|
|
172
|
-
* @param {*} [options] Override http request option.
|
|
173
|
-
* @throws {RequiredError}
|
|
174
|
-
* @memberof WebhooksApi
|
|
175
|
-
*/
|
|
176
|
-
postWebhookWithProductSlug(requestParameters: WebhooksApiPostWebhookWithProductSlugRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
177
113
|
}
|
package/dist/api/webhooks-api.js
CHANGED
|
@@ -97,11 +97,12 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
* @summary Handle the webhook from PSP
|
|
98
98
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
99
99
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
100
|
+
* @param {string} productSlug
|
|
100
101
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
101
102
|
* @param {*} [options] Override http request option.
|
|
102
103
|
* @throws {RequiredError}
|
|
103
104
|
*/
|
|
104
|
-
postWebhook: function (pspType, tenantSlug, body, options) {
|
|
105
|
+
postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
|
|
105
106
|
if (options === void 0) { options = {}; }
|
|
106
107
|
return __awaiter(_this, void 0, void 0, function () {
|
|
107
108
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -110,54 +111,10 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
110
111
|
(0, common_1.assertParamExists)('postWebhook', 'pspType', pspType);
|
|
111
112
|
// verify required parameter 'tenantSlug' is not null or undefined
|
|
112
113
|
(0, common_1.assertParamExists)('postWebhook', 'tenantSlug', tenantSlug);
|
|
113
|
-
// verify required parameter 'body' is not null or undefined
|
|
114
|
-
(0, common_1.assertParamExists)('postWebhook', 'body', body);
|
|
115
|
-
localVarPath = "/paymentservice/v1/webhooks/{pspType}/{tenantSlug}"
|
|
116
|
-
.replace("{".concat("pspType", "}"), encodeURIComponent(String(pspType)))
|
|
117
|
-
.replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)));
|
|
118
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
119
|
-
if (configuration) {
|
|
120
|
-
baseOptions = configuration.baseOptions;
|
|
121
|
-
baseAccessToken = configuration.accessToken;
|
|
122
|
-
}
|
|
123
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
124
|
-
localVarHeaderParameter = {};
|
|
125
|
-
localVarQueryParameter = {};
|
|
126
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
127
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
128
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
130
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
131
|
-
return [2 /*return*/, {
|
|
132
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
133
|
-
options: localVarRequestOptions,
|
|
134
|
-
}];
|
|
135
|
-
});
|
|
136
|
-
});
|
|
137
|
-
},
|
|
138
|
-
/**
|
|
139
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
140
|
-
* @summary Handle the webhook from PSP
|
|
141
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
142
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
143
|
-
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
144
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
145
|
-
* @param {*} [options] Override http request option.
|
|
146
|
-
* @throws {RequiredError}
|
|
147
|
-
*/
|
|
148
|
-
postWebhookWithProductSlug: function (pspType, tenantSlug, productSlug, body, options) {
|
|
149
|
-
if (options === void 0) { options = {}; }
|
|
150
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
151
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
152
|
-
return __generator(this, function (_a) {
|
|
153
|
-
// verify required parameter 'pspType' is not null or undefined
|
|
154
|
-
(0, common_1.assertParamExists)('postWebhookWithProductSlug', 'pspType', pspType);
|
|
155
|
-
// verify required parameter 'tenantSlug' is not null or undefined
|
|
156
|
-
(0, common_1.assertParamExists)('postWebhookWithProductSlug', 'tenantSlug', tenantSlug);
|
|
157
114
|
// verify required parameter 'productSlug' is not null or undefined
|
|
158
|
-
(0, common_1.assertParamExists)('
|
|
115
|
+
(0, common_1.assertParamExists)('postWebhook', 'productSlug', productSlug);
|
|
159
116
|
// verify required parameter 'body' is not null or undefined
|
|
160
|
-
(0, common_1.assertParamExists)('
|
|
117
|
+
(0, common_1.assertParamExists)('postWebhook', 'body', body);
|
|
161
118
|
localVarPath = "/paymentservice/v1/webhooks/{pspType}/{tenantSlug}/{productSlug}"
|
|
162
119
|
.replace("{".concat("pspType", "}"), encodeURIComponent(String(pspType)))
|
|
163
120
|
.replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)))
|
|
@@ -197,39 +154,17 @@ var WebhooksApiFp = function (configuration) {
|
|
|
197
154
|
* @summary Handle the webhook from PSP
|
|
198
155
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
199
156
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
157
|
+
* @param {string} productSlug
|
|
200
158
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
201
159
|
* @param {*} [options] Override http request option.
|
|
202
160
|
* @throws {RequiredError}
|
|
203
161
|
*/
|
|
204
|
-
postWebhook: function (pspType, tenantSlug, body, options) {
|
|
162
|
+
postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
|
|
205
163
|
return __awaiter(this, void 0, void 0, function () {
|
|
206
164
|
var localVarAxiosArgs;
|
|
207
165
|
return __generator(this, function (_a) {
|
|
208
166
|
switch (_a.label) {
|
|
209
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, body, options)];
|
|
210
|
-
case 1:
|
|
211
|
-
localVarAxiosArgs = _a.sent();
|
|
212
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
213
|
-
}
|
|
214
|
-
});
|
|
215
|
-
});
|
|
216
|
-
},
|
|
217
|
-
/**
|
|
218
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
219
|
-
* @summary Handle the webhook from PSP
|
|
220
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
221
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
222
|
-
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
223
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
224
|
-
* @param {*} [options] Override http request option.
|
|
225
|
-
* @throws {RequiredError}
|
|
226
|
-
*/
|
|
227
|
-
postWebhookWithProductSlug: function (pspType, tenantSlug, productSlug, body, options) {
|
|
228
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
229
|
-
var localVarAxiosArgs;
|
|
230
|
-
return __generator(this, function (_a) {
|
|
231
|
-
switch (_a.label) {
|
|
232
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhookWithProductSlug(pspType, tenantSlug, productSlug, body, options)];
|
|
167
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug, body, options)];
|
|
233
168
|
case 1:
|
|
234
169
|
localVarAxiosArgs = _a.sent();
|
|
235
170
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -252,25 +187,13 @@ var WebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
252
187
|
* @summary Handle the webhook from PSP
|
|
253
188
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
254
189
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
190
|
+
* @param {string} productSlug
|
|
255
191
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
256
192
|
* @param {*} [options] Override http request option.
|
|
257
193
|
* @throws {RequiredError}
|
|
258
194
|
*/
|
|
259
|
-
postWebhook: function (pspType, tenantSlug, body, options) {
|
|
260
|
-
return localVarFp.postWebhook(pspType, tenantSlug, body, options).then(function (request) { return request(axios, basePath); });
|
|
261
|
-
},
|
|
262
|
-
/**
|
|
263
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
264
|
-
* @summary Handle the webhook from PSP
|
|
265
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
266
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
267
|
-
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
268
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
269
|
-
* @param {*} [options] Override http request option.
|
|
270
|
-
* @throws {RequiredError}
|
|
271
|
-
*/
|
|
272
|
-
postWebhookWithProductSlug: function (pspType, tenantSlug, productSlug, body, options) {
|
|
273
|
-
return localVarFp.postWebhookWithProductSlug(pspType, tenantSlug, productSlug, body, options).then(function (request) { return request(axios, basePath); });
|
|
195
|
+
postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
|
|
196
|
+
return localVarFp.postWebhook(pspType, tenantSlug, productSlug, body, options).then(function (request) { return request(axios, basePath); });
|
|
274
197
|
},
|
|
275
198
|
};
|
|
276
199
|
};
|
|
@@ -296,19 +219,7 @@ var WebhooksApi = /** @class */ (function (_super) {
|
|
|
296
219
|
*/
|
|
297
220
|
WebhooksApi.prototype.postWebhook = function (requestParameters, options) {
|
|
298
221
|
var _this = this;
|
|
299
|
-
return (0, exports.WebhooksApiFp)(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.body, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
300
|
-
};
|
|
301
|
-
/**
|
|
302
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
303
|
-
* @summary Handle the webhook from PSP
|
|
304
|
-
* @param {WebhooksApiPostWebhookWithProductSlugRequest} requestParameters Request parameters.
|
|
305
|
-
* @param {*} [options] Override http request option.
|
|
306
|
-
* @throws {RequiredError}
|
|
307
|
-
* @memberof WebhooksApi
|
|
308
|
-
*/
|
|
309
|
-
WebhooksApi.prototype.postWebhookWithProductSlug = function (requestParameters, options) {
|
|
310
|
-
var _this = this;
|
|
311
|
-
return (0, exports.WebhooksApiFp)(this.configuration).postWebhookWithProductSlug(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
222
|
+
return (0, exports.WebhooksApiFp)(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
312
223
|
};
|
|
313
224
|
return WebhooksApi;
|
|
314
225
|
}(base_1.BaseAPI));
|
|
@@ -69,12 +69,6 @@ export interface CreatePaymentRequestRequestDto {
|
|
|
69
69
|
* @memberof CreatePaymentRequestRequestDto
|
|
70
70
|
*/
|
|
71
71
|
'domainEntityType': CreatePaymentRequestRequestDtoDomainEntityTypeEnum;
|
|
72
|
-
/**
|
|
73
|
-
* Code of the settlement the payment request was created for.
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof CreatePaymentRequestRequestDto
|
|
76
|
-
*/
|
|
77
|
-
'settlementCode'?: string;
|
|
78
72
|
/**
|
|
79
73
|
* Code of the payment method to be used for this payment request. If not provided, a default payment method may be selected.
|
|
80
74
|
* @type {string}
|
|
@@ -83,12 +77,10 @@ export interface CreatePaymentRequestRequestDto {
|
|
|
83
77
|
'paymentMethodCode'?: string;
|
|
84
78
|
/**
|
|
85
79
|
* Optional field containing extra information about the payment request.
|
|
86
|
-
* @type {
|
|
80
|
+
* @type {object}
|
|
87
81
|
* @memberof CreatePaymentRequestRequestDto
|
|
88
82
|
*/
|
|
89
|
-
'metadata'?:
|
|
90
|
-
[key: string]: object;
|
|
91
|
-
};
|
|
83
|
+
'metadata'?: object;
|
|
92
84
|
}
|
|
93
85
|
export declare const CreatePaymentRequestRequestDtoDirectionEnum: {
|
|
94
86
|
readonly Collect: "collect";
|
|
@@ -94,12 +94,6 @@ export interface PaymentRequestClass {
|
|
|
94
94
|
* @memberof PaymentRequestClass
|
|
95
95
|
*/
|
|
96
96
|
'status': PaymentRequestClassStatusEnum;
|
|
97
|
-
/**
|
|
98
|
-
* Code of the settlement the payment request was created for.
|
|
99
|
-
* @type {string}
|
|
100
|
-
* @memberof PaymentRequestClass
|
|
101
|
-
*/
|
|
102
|
-
'settlementCode'?: string;
|
|
103
97
|
/**
|
|
104
98
|
* Code of the payment method used for this payment request.
|
|
105
99
|
* @type {string}
|
|
@@ -120,12 +114,10 @@ export interface PaymentRequestClass {
|
|
|
120
114
|
'paymentMethodPsp'?: string;
|
|
121
115
|
/**
|
|
122
116
|
* Optional field containing extra information about the payment request.
|
|
123
|
-
* @type {
|
|
117
|
+
* @type {object}
|
|
124
118
|
* @memberof PaymentRequestClass
|
|
125
119
|
*/
|
|
126
|
-
'metadata'?:
|
|
127
|
-
[key: string]: object;
|
|
128
|
-
};
|
|
120
|
+
'metadata'?: object;
|
|
129
121
|
/**
|
|
130
122
|
* The list of payment receipts.
|
|
131
123
|
* @type {Array<PaymentReceiptClass>}
|
|
@@ -74,12 +74,6 @@ export interface CreatePaymentRequestRequestDto {
|
|
|
74
74
|
* @memberof CreatePaymentRequestRequestDto
|
|
75
75
|
*/
|
|
76
76
|
'domainEntityType': CreatePaymentRequestRequestDtoDomainEntityTypeEnum;
|
|
77
|
-
/**
|
|
78
|
-
* Code of the settlement the payment request was created for.
|
|
79
|
-
* @type {string}
|
|
80
|
-
* @memberof CreatePaymentRequestRequestDto
|
|
81
|
-
*/
|
|
82
|
-
'settlementCode'?: string;
|
|
83
77
|
/**
|
|
84
78
|
* Code of the payment method to be used for this payment request. If not provided, a default payment method may be selected.
|
|
85
79
|
* @type {string}
|
|
@@ -88,10 +82,10 @@ export interface CreatePaymentRequestRequestDto {
|
|
|
88
82
|
'paymentMethodCode'?: string;
|
|
89
83
|
/**
|
|
90
84
|
* Optional field containing extra information about the payment request.
|
|
91
|
-
* @type {
|
|
85
|
+
* @type {object}
|
|
92
86
|
* @memberof CreatePaymentRequestRequestDto
|
|
93
87
|
*/
|
|
94
|
-
'metadata'?:
|
|
88
|
+
'metadata'?: object;
|
|
95
89
|
}
|
|
96
90
|
|
|
97
91
|
export const CreatePaymentRequestRequestDtoDirectionEnum = {
|
|
@@ -99,12 +99,6 @@ export interface PaymentRequestClass {
|
|
|
99
99
|
* @memberof PaymentRequestClass
|
|
100
100
|
*/
|
|
101
101
|
'status': PaymentRequestClassStatusEnum;
|
|
102
|
-
/**
|
|
103
|
-
* Code of the settlement the payment request was created for.
|
|
104
|
-
* @type {string}
|
|
105
|
-
* @memberof PaymentRequestClass
|
|
106
|
-
*/
|
|
107
|
-
'settlementCode'?: string;
|
|
108
102
|
/**
|
|
109
103
|
* Code of the payment method used for this payment request.
|
|
110
104
|
* @type {string}
|
|
@@ -125,10 +119,10 @@ export interface PaymentRequestClass {
|
|
|
125
119
|
'paymentMethodPsp'?: string;
|
|
126
120
|
/**
|
|
127
121
|
* Optional field containing extra information about the payment request.
|
|
128
|
-
* @type {
|
|
122
|
+
* @type {object}
|
|
129
123
|
* @memberof PaymentRequestClass
|
|
130
124
|
*/
|
|
131
|
-
'metadata'?:
|
|
125
|
+
'metadata'?: object;
|
|
132
126
|
/**
|
|
133
127
|
* The list of payment receipts.
|
|
134
128
|
* @type {Array<PaymentReceiptClass>}
|