@emilgroup/payment-sdk-node 1.28.0 → 1.28.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api/payment-reminders-api.ts +12 -12
- package/api/payment-requests-api.ts +113 -12
- package/api/webhooks-api.ts +125 -14
- package/dist/api/payment-reminders-api.d.ts +12 -12
- package/dist/api/payment-reminders-api.js +9 -9
- package/dist/api/payment-requests-api.d.ts +67 -12
- package/dist/api/payment-requests-api.js +101 -9
- package/dist/api/webhooks-api.d.ts +73 -9
- package/dist/api/webhooks-api.js +100 -11
- package/dist/models/bank-transaction-entity.d.ts +4 -2
- package/dist/models/create-payment-order-dto.d.ts +4 -2
- package/dist/models/create-payment-order-request-dto.d.ts +4 -2
- package/dist/models/create-payment-request-dto.d.ts +4 -2
- package/dist/models/create-payment-request-request-dto.d.ts +16 -2
- package/dist/models/credit-allocation-class.d.ts +6 -0
- package/dist/models/credit-allocation-entity.d.ts +6 -0
- package/dist/models/invoice-match-suggestion-entity.d.ts +4 -2
- package/dist/models/payment-class-without-expand-properties.d.ts +1 -1
- package/dist/models/payment-class.d.ts +1 -1
- package/dist/models/payment-entity.d.ts +5 -3
- package/dist/models/payment-request-class.d.ts +16 -2
- package/dist/models/validate-pspconfig-request-dto.d.ts +4 -2
- package/models/bank-transaction-entity.ts +2 -2
- package/models/create-payment-order-dto.ts +2 -2
- package/models/create-payment-order-request-dto.ts +2 -2
- package/models/create-payment-request-dto.ts +2 -2
- package/models/create-payment-request-request-dto.ts +14 -2
- package/models/credit-allocation-class.ts +6 -0
- package/models/credit-allocation-entity.ts +6 -0
- package/models/invoice-match-suggestion-entity.ts +2 -2
- package/models/payment-class-without-expand-properties.ts +1 -1
- package/models/payment-class.ts +1 -1
- package/models/payment-entity.ts +3 -3
- package/models/payment-request-class.ts +14 -2
- package/models/validate-pspconfig-request-dto.ts +2 -2
- package/package.json +1 -1
|
@@ -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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
255
|
+
* @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>
|
|
256
256
|
* @param {string} [search] To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt</i>
|
|
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.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, isActive</i>
|
|
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.<br/> <br/>
|
|
259
|
-
* @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>
|
|
259
|
+
* @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>
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
401
|
+
* @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>
|
|
402
402
|
* @param {string} [search] To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt</i>
|
|
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.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, isActive</i>
|
|
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.<br/> <br/>
|
|
405
|
-
* @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>
|
|
405
|
+
* @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>
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
472
|
+
* @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>
|
|
473
473
|
* @param {string} [search] To search the list by any field, pass search=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.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt</i>
|
|
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.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, isActive</i>
|
|
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.<br/> <br/>
|
|
476
|
-
* @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>
|
|
476
|
+
* @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>
|
|
477
477
|
* @param {*} [options] Override http request option.
|
|
478
478
|
* @throws {RequiredError}
|
|
479
479
|
*/
|
|
@@ -32,6 +32,15 @@ export declare const PaymentRequestsApiAxiosParamCreator: (configuration?: Confi
|
|
|
32
32
|
* @throws {RequiredError}
|
|
33
33
|
*/
|
|
34
34
|
createPaymentRequest: (createPaymentRequestRequestDto: CreatePaymentRequestRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
|
+
/**
|
|
36
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
37
|
+
* @summary Delete the payment request
|
|
38
|
+
* @param {string} code Unique identifier for the object.
|
|
39
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
deletePaymentRequest: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
44
|
/**
|
|
36
45
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
37
46
|
* @summary Retrieve the payment request
|
|
@@ -48,11 +57,11 @@ export declare const PaymentRequestsApiAxiosParamCreator: (configuration?: Confi
|
|
|
48
57
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
49
58
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
50
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.
|
|
51
|
-
* @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>
|
|
52
|
-
* @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>
|
|
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, settlementCode</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, settlementCode</i>
|
|
53
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>
|
|
54
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>
|
|
55
|
-
* @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>
|
|
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, settlementCode</i>
|
|
56
65
|
* @param {*} [options] Override http request option.
|
|
57
66
|
* @throws {RequiredError}
|
|
58
67
|
*/
|
|
@@ -82,6 +91,15 @@ export declare const PaymentRequestsApiFp: (configuration?: Configuration) => {
|
|
|
82
91
|
* @throws {RequiredError}
|
|
83
92
|
*/
|
|
84
93
|
createPaymentRequest(createPaymentRequestRequestDto: CreatePaymentRequestRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentRequestResponseClass>>;
|
|
94
|
+
/**
|
|
95
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
96
|
+
* @summary Delete the payment request
|
|
97
|
+
* @param {string} code Unique identifier for the object.
|
|
98
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
deletePaymentRequest(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
85
103
|
/**
|
|
86
104
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
87
105
|
* @summary Retrieve the payment request
|
|
@@ -98,11 +116,11 @@ export declare const PaymentRequestsApiFp: (configuration?: Configuration) => {
|
|
|
98
116
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
99
117
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
100
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.
|
|
101
|
-
* @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>
|
|
102
|
-
* @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>
|
|
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, settlementCode</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, settlementCode</i>
|
|
103
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>
|
|
104
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>
|
|
105
|
-
* @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>
|
|
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, settlementCode</i>
|
|
106
124
|
* @param {*} [options] Override http request option.
|
|
107
125
|
* @throws {RequiredError}
|
|
108
126
|
*/
|
|
@@ -132,6 +150,15 @@ export declare const PaymentRequestsApiFactory: (configuration?: Configuration,
|
|
|
132
150
|
* @throws {RequiredError}
|
|
133
151
|
*/
|
|
134
152
|
createPaymentRequest(createPaymentRequestRequestDto: CreatePaymentRequestRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentRequestResponseClass>;
|
|
153
|
+
/**
|
|
154
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
155
|
+
* @summary Delete the payment request
|
|
156
|
+
* @param {string} code Unique identifier for the object.
|
|
157
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
deletePaymentRequest(code: string, authorization?: string, options?: any): AxiosPromise<object>;
|
|
135
162
|
/**
|
|
136
163
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
137
164
|
* @summary Retrieve the payment request
|
|
@@ -148,11 +175,11 @@ export declare const PaymentRequestsApiFactory: (configuration?: Configuration,
|
|
|
148
175
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
149
176
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
150
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.
|
|
151
|
-
* @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>
|
|
152
|
-
* @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>
|
|
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, settlementCode</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, settlementCode</i>
|
|
153
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>
|
|
154
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>
|
|
155
|
-
* @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>
|
|
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, settlementCode</i>
|
|
156
183
|
* @param {*} [options] Override http request option.
|
|
157
184
|
* @throws {RequiredError}
|
|
158
185
|
*/
|
|
@@ -187,6 +214,25 @@ export interface PaymentRequestsApiCreatePaymentRequestRequest {
|
|
|
187
214
|
*/
|
|
188
215
|
readonly authorization?: string;
|
|
189
216
|
}
|
|
217
|
+
/**
|
|
218
|
+
* Request parameters for deletePaymentRequest operation in PaymentRequestsApi.
|
|
219
|
+
* @export
|
|
220
|
+
* @interface PaymentRequestsApiDeletePaymentRequestRequest
|
|
221
|
+
*/
|
|
222
|
+
export interface PaymentRequestsApiDeletePaymentRequestRequest {
|
|
223
|
+
/**
|
|
224
|
+
* Unique identifier for the object.
|
|
225
|
+
* @type {string}
|
|
226
|
+
* @memberof PaymentRequestsApiDeletePaymentRequest
|
|
227
|
+
*/
|
|
228
|
+
readonly code: string;
|
|
229
|
+
/**
|
|
230
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
231
|
+
* @type {string}
|
|
232
|
+
* @memberof PaymentRequestsApiDeletePaymentRequest
|
|
233
|
+
*/
|
|
234
|
+
readonly authorization?: string;
|
|
235
|
+
}
|
|
190
236
|
/**
|
|
191
237
|
* Request parameters for getPaymentRequest operation in PaymentRequestsApi.
|
|
192
238
|
* @export
|
|
@@ -237,13 +283,13 @@ export interface PaymentRequestsApiListPaymentRequestsRequest {
|
|
|
237
283
|
*/
|
|
238
284
|
readonly pageToken?: string;
|
|
239
285
|
/**
|
|
240
|
-
* 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>
|
|
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, settlementCode</i>
|
|
241
287
|
* @type {string}
|
|
242
288
|
* @memberof PaymentRequestsApiListPaymentRequests
|
|
243
289
|
*/
|
|
244
290
|
readonly filter?: string;
|
|
245
291
|
/**
|
|
246
|
-
* 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>
|
|
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, settlementCode</i>
|
|
247
293
|
* @type {string}
|
|
248
294
|
* @memberof PaymentRequestsApiListPaymentRequests
|
|
249
295
|
*/
|
|
@@ -261,7 +307,7 @@ export interface PaymentRequestsApiListPaymentRequestsRequest {
|
|
|
261
307
|
*/
|
|
262
308
|
readonly expand?: string;
|
|
263
309
|
/**
|
|
264
|
-
* 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>
|
|
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, settlementCode</i>
|
|
265
311
|
* @type {string}
|
|
266
312
|
* @memberof PaymentRequestsApiListPaymentRequests
|
|
267
313
|
*/
|
|
@@ -308,6 +354,15 @@ export declare class PaymentRequestsApi extends BaseAPI {
|
|
|
308
354
|
* @memberof PaymentRequestsApi
|
|
309
355
|
*/
|
|
310
356
|
createPaymentRequest(requestParameters: PaymentRequestsApiCreatePaymentRequestRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentRequestResponseClass, any, {}>>;
|
|
357
|
+
/**
|
|
358
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
359
|
+
* @summary Delete the payment request
|
|
360
|
+
* @param {PaymentRequestsApiDeletePaymentRequestRequest} requestParameters Request parameters.
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
* @memberof PaymentRequestsApi
|
|
364
|
+
*/
|
|
365
|
+
deletePaymentRequest(requestParameters: PaymentRequestsApiDeletePaymentRequestRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
311
366
|
/**
|
|
312
367
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
313
368
|
* @summary Retrieve the payment request
|
|
@@ -145,6 +145,54 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
|
+
/**
|
|
149
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
150
|
+
* @summary Delete the payment request
|
|
151
|
+
* @param {string} code Unique identifier for the object.
|
|
152
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
|
+
* @param {*} [options] Override http request option.
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
*/
|
|
156
|
+
deletePaymentRequest: function (code, authorization, options) {
|
|
157
|
+
if (options === void 0) { options = {}; }
|
|
158
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
|
+
return __generator(this, function (_a) {
|
|
161
|
+
switch (_a.label) {
|
|
162
|
+
case 0:
|
|
163
|
+
// verify required parameter 'code' is not null or undefined
|
|
164
|
+
(0, common_1.assertParamExists)('deletePaymentRequest', 'code', code);
|
|
165
|
+
localVarPath = "/paymentservice/v1/payment-requests/{code}"
|
|
166
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
167
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
168
|
+
if (configuration) {
|
|
169
|
+
baseOptions = configuration.baseOptions;
|
|
170
|
+
baseAccessToken = configuration.accessToken;
|
|
171
|
+
}
|
|
172
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
173
|
+
localVarHeaderParameter = {};
|
|
174
|
+
localVarQueryParameter = {};
|
|
175
|
+
// authentication bearer required
|
|
176
|
+
// http bearer authentication required
|
|
177
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
178
|
+
case 1:
|
|
179
|
+
// authentication bearer required
|
|
180
|
+
// http bearer authentication required
|
|
181
|
+
_a.sent();
|
|
182
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
183
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
184
|
+
}
|
|
185
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
188
|
+
return [2 /*return*/, {
|
|
189
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
190
|
+
options: localVarRequestOptions,
|
|
191
|
+
}];
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
},
|
|
148
196
|
/**
|
|
149
197
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
150
198
|
* @summary Retrieve the payment request
|
|
@@ -205,11 +253,11 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
205
253
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
206
254
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
207
255
|
* @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.
|
|
208
|
-
* @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>
|
|
209
|
-
* @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>
|
|
256
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
|
|
257
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode</i>
|
|
210
258
|
* @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>
|
|
211
259
|
* @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>
|
|
212
|
-
* @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>
|
|
260
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
|
|
213
261
|
* @param {*} [options] Override http request option.
|
|
214
262
|
* @throws {RequiredError}
|
|
215
263
|
*/
|
|
@@ -355,6 +403,27 @@ var PaymentRequestsApiFp = function (configuration) {
|
|
|
355
403
|
});
|
|
356
404
|
});
|
|
357
405
|
},
|
|
406
|
+
/**
|
|
407
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
408
|
+
* @summary Delete the payment request
|
|
409
|
+
* @param {string} code Unique identifier for the object.
|
|
410
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
411
|
+
* @param {*} [options] Override http request option.
|
|
412
|
+
* @throws {RequiredError}
|
|
413
|
+
*/
|
|
414
|
+
deletePaymentRequest: function (code, authorization, options) {
|
|
415
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
416
|
+
var localVarAxiosArgs;
|
|
417
|
+
return __generator(this, function (_a) {
|
|
418
|
+
switch (_a.label) {
|
|
419
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePaymentRequest(code, authorization, options)];
|
|
420
|
+
case 1:
|
|
421
|
+
localVarAxiosArgs = _a.sent();
|
|
422
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
423
|
+
}
|
|
424
|
+
});
|
|
425
|
+
});
|
|
426
|
+
},
|
|
358
427
|
/**
|
|
359
428
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
360
429
|
* @summary Retrieve the payment request
|
|
@@ -383,11 +452,11 @@ var PaymentRequestsApiFp = function (configuration) {
|
|
|
383
452
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
384
453
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
385
454
|
* @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.
|
|
386
|
-
* @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>
|
|
387
|
-
* @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>
|
|
455
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
|
|
456
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode</i>
|
|
388
457
|
* @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>
|
|
389
458
|
* @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>
|
|
390
|
-
* @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>
|
|
459
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
|
|
391
460
|
* @param {*} [options] Override http request option.
|
|
392
461
|
* @throws {RequiredError}
|
|
393
462
|
*/
|
|
@@ -447,6 +516,17 @@ var PaymentRequestsApiFactory = function (configuration, basePath, axios) {
|
|
|
447
516
|
createPaymentRequest: function (createPaymentRequestRequestDto, authorization, options) {
|
|
448
517
|
return localVarFp.createPaymentRequest(createPaymentRequestRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
449
518
|
},
|
|
519
|
+
/**
|
|
520
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
521
|
+
* @summary Delete the payment request
|
|
522
|
+
* @param {string} code Unique identifier for the object.
|
|
523
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
524
|
+
* @param {*} [options] Override http request option.
|
|
525
|
+
* @throws {RequiredError}
|
|
526
|
+
*/
|
|
527
|
+
deletePaymentRequest: function (code, authorization, options) {
|
|
528
|
+
return localVarFp.deletePaymentRequest(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
529
|
+
},
|
|
450
530
|
/**
|
|
451
531
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
452
532
|
* @summary Retrieve the payment request
|
|
@@ -465,11 +545,11 @@ var PaymentRequestsApiFactory = function (configuration, basePath, axios) {
|
|
|
465
545
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
466
546
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
467
547
|
* @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.
|
|
468
|
-
* @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>
|
|
469
|
-
* @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>
|
|
548
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
|
|
549
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode</i>
|
|
470
550
|
* @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>
|
|
471
551
|
* @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>
|
|
472
|
-
* @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>
|
|
552
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
|
|
473
553
|
* @param {*} [options] Override http request option.
|
|
474
554
|
* @throws {RequiredError}
|
|
475
555
|
*/
|
|
@@ -514,6 +594,18 @@ var PaymentRequestsApi = /** @class */ (function (_super) {
|
|
|
514
594
|
var _this = this;
|
|
515
595
|
return (0, exports.PaymentRequestsApiFp)(this.configuration).createPaymentRequest(requestParameters.createPaymentRequestRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
516
596
|
};
|
|
597
|
+
/**
|
|
598
|
+
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
599
|
+
* @summary Delete the payment request
|
|
600
|
+
* @param {PaymentRequestsApiDeletePaymentRequestRequest} requestParameters Request parameters.
|
|
601
|
+
* @param {*} [options] Override http request option.
|
|
602
|
+
* @throws {RequiredError}
|
|
603
|
+
* @memberof PaymentRequestsApi
|
|
604
|
+
*/
|
|
605
|
+
PaymentRequestsApi.prototype.deletePaymentRequest = function (requestParameters, options) {
|
|
606
|
+
var _this = this;
|
|
607
|
+
return (0, exports.PaymentRequestsApiFp)(this.configuration).deletePaymentRequest(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
608
|
+
};
|
|
517
609
|
/**
|
|
518
610
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
519
611
|
* @summary Retrieve the payment request
|
|
@@ -22,12 +22,22 @@ 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
|
|
26
25
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
27
26
|
* @param {*} [options] Override http request option.
|
|
28
27
|
* @throws {RequiredError}
|
|
29
28
|
*/
|
|
30
|
-
postWebhook: (pspType: string, tenantSlug: string,
|
|
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>;
|
|
31
41
|
};
|
|
32
42
|
/**
|
|
33
43
|
* WebhooksApi - functional programming interface
|
|
@@ -39,12 +49,22 @@ export declare const WebhooksApiFp: (configuration?: Configuration) => {
|
|
|
39
49
|
* @summary Handle the webhook from PSP
|
|
40
50
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
41
51
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
42
|
-
* @param {string} productSlug
|
|
43
52
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
44
53
|
* @param {*} [options] Override http request option.
|
|
45
54
|
* @throws {RequiredError}
|
|
46
55
|
*/
|
|
47
|
-
postWebhook(pspType: string, tenantSlug: string,
|
|
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>>;
|
|
48
68
|
};
|
|
49
69
|
/**
|
|
50
70
|
* WebhooksApi - factory interface
|
|
@@ -56,12 +76,22 @@ export declare const WebhooksApiFactory: (configuration?: Configuration, basePat
|
|
|
56
76
|
* @summary Handle the webhook from PSP
|
|
57
77
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
58
78
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
59
|
-
* @param {string} productSlug
|
|
60
79
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
61
80
|
* @param {*} [options] Override http request option.
|
|
62
81
|
* @throws {RequiredError}
|
|
63
82
|
*/
|
|
64
|
-
postWebhook(pspType: string, tenantSlug: string,
|
|
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>;
|
|
65
95
|
};
|
|
66
96
|
/**
|
|
67
97
|
* Request parameters for postWebhook operation in WebhooksApi.
|
|
@@ -82,15 +112,40 @@ export interface WebhooksApiPostWebhookRequest {
|
|
|
82
112
|
*/
|
|
83
113
|
readonly tenantSlug: string;
|
|
84
114
|
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {
|
|
115
|
+
* Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
116
|
+
* @type {object}
|
|
87
117
|
* @memberof WebhooksApiPostWebhook
|
|
88
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.
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof WebhooksApiPostWebhookWithProductSlug
|
|
143
|
+
*/
|
|
89
144
|
readonly productSlug: string;
|
|
90
145
|
/**
|
|
91
146
|
* Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
92
147
|
* @type {object}
|
|
93
|
-
* @memberof
|
|
148
|
+
* @memberof WebhooksApiPostWebhookWithProductSlug
|
|
94
149
|
*/
|
|
95
150
|
readonly body: object;
|
|
96
151
|
}
|
|
@@ -110,4 +165,13 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
110
165
|
* @memberof WebhooksApi
|
|
111
166
|
*/
|
|
112
167
|
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, {}>>;
|
|
113
177
|
}
|