@emilgroup/payment-sdk-node 1.23.1-beta.95 → 1.23.1-beta.97
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 +54 -41
- package/base.ts +0 -1
- 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 +36 -27
- package/dist/api/webhooks-api.js +33 -27
- package/dist/base.d.ts +1 -2
- package/dist/base.js +0 -1
- package/dist/models/bank-transaction-entity.d.ts +2 -4
- package/dist/models/create-payment-order-dto.d.ts +2 -4
- package/dist/models/create-payment-order-request-dto.d.ts +2 -4
- package/dist/models/create-payment-request-dto.d.ts +2 -4
- package/dist/models/create-payment-request-request-dto.d.ts +0 -6
- package/dist/models/credit-allocation-class.d.ts +0 -6
- package/dist/models/credit-allocation-entity.d.ts +0 -6
- package/dist/models/invoice-match-suggestion-entity.d.ts +2 -4
- package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
- package/dist/models/list-exceeding-credits-response-class.d.ts +18 -6
- package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
- package/dist/models/list-payment-requests-response-class.d.ts +18 -6
- package/dist/models/list-payout-methods-response-class.d.ts +9 -9
- package/dist/models/list-refunds-response-class.d.ts +18 -6
- 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 +3 -5
- package/dist/models/payment-request-class.d.ts +0 -12
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -4
- 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 +0 -6
- package/models/credit-allocation-class.ts +0 -6
- package/models/credit-allocation-entity.ts +0 -6
- package/models/invoice-match-suggestion-entity.ts +2 -2
- package/models/list-billing-addresses-response-class.ts +9 -9
- package/models/list-exceeding-credits-response-class.ts +18 -6
- package/models/list-payment-receipts-response-class.ts +9 -9
- package/models/list-payment-requests-response-class.ts +18 -6
- package/models/list-payout-methods-response-class.ts +9 -9
- package/models/list-refunds-response-class.ts +18 -6
- 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 +0 -12
- package/models/validate-pspconfig-request-dto.ts +2 -2
- package/package.json +2 -2
|
@@ -22,22 +22,23 @@ 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
|
-
|
|
30
|
+
postWebhook0: (pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
31
|
/**
|
|
31
32
|
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
32
33
|
* @summary Handle the webhook from PSP
|
|
33
34
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
34
35
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
35
|
-
* @param {string} productSlug
|
|
36
|
+
* @param {string} productSlug
|
|
36
37
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
37
38
|
* @param {*} [options] Override http request option.
|
|
38
39
|
* @throws {RequiredError}
|
|
39
40
|
*/
|
|
40
|
-
|
|
41
|
+
postWebhook1: (pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
42
|
};
|
|
42
43
|
/**
|
|
43
44
|
* WebhooksApi - functional programming interface
|
|
@@ -49,22 +50,23 @@ export declare const WebhooksApiFp: (configuration?: Configuration) => {
|
|
|
49
50
|
* @summary Handle the webhook from PSP
|
|
50
51
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
51
52
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
53
|
+
* @param {string} productSlug
|
|
52
54
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
53
55
|
* @param {*} [options] Override http request option.
|
|
54
56
|
* @throws {RequiredError}
|
|
55
57
|
*/
|
|
56
|
-
|
|
58
|
+
postWebhook0(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
57
59
|
/**
|
|
58
60
|
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
59
61
|
* @summary Handle the webhook from PSP
|
|
60
62
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
61
63
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
62
|
-
* @param {string} productSlug
|
|
64
|
+
* @param {string} productSlug
|
|
63
65
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
64
66
|
* @param {*} [options] Override http request option.
|
|
65
67
|
* @throws {RequiredError}
|
|
66
68
|
*/
|
|
67
|
-
|
|
69
|
+
postWebhook1(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
68
70
|
};
|
|
69
71
|
/**
|
|
70
72
|
* WebhooksApi - factory interface
|
|
@@ -76,76 +78,83 @@ export declare const WebhooksApiFactory: (configuration?: Configuration, basePat
|
|
|
76
78
|
* @summary Handle the webhook from PSP
|
|
77
79
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
78
80
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
81
|
+
* @param {string} productSlug
|
|
79
82
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
80
83
|
* @param {*} [options] Override http request option.
|
|
81
84
|
* @throws {RequiredError}
|
|
82
85
|
*/
|
|
83
|
-
|
|
86
|
+
postWebhook0(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: any): AxiosPromise<void>;
|
|
84
87
|
/**
|
|
85
88
|
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
86
89
|
* @summary Handle the webhook from PSP
|
|
87
90
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
88
91
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
89
|
-
* @param {string} productSlug
|
|
92
|
+
* @param {string} productSlug
|
|
90
93
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
91
94
|
* @param {*} [options] Override http request option.
|
|
92
95
|
* @throws {RequiredError}
|
|
93
96
|
*/
|
|
94
|
-
|
|
97
|
+
postWebhook1(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: any): AxiosPromise<void>;
|
|
95
98
|
};
|
|
96
99
|
/**
|
|
97
|
-
* Request parameters for
|
|
100
|
+
* Request parameters for postWebhook0 operation in WebhooksApi.
|
|
98
101
|
* @export
|
|
99
|
-
* @interface
|
|
102
|
+
* @interface WebhooksApiPostWebhook0Request
|
|
100
103
|
*/
|
|
101
|
-
export interface
|
|
104
|
+
export interface WebhooksApiPostWebhook0Request {
|
|
102
105
|
/**
|
|
103
106
|
* The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
104
107
|
* @type {string}
|
|
105
|
-
* @memberof
|
|
108
|
+
* @memberof WebhooksApiPostWebhook0
|
|
106
109
|
*/
|
|
107
110
|
readonly pspType: string;
|
|
108
111
|
/**
|
|
109
112
|
* Unique slug identifier representing a tenant.
|
|
110
113
|
* @type {string}
|
|
111
|
-
* @memberof
|
|
114
|
+
* @memberof WebhooksApiPostWebhook0
|
|
112
115
|
*/
|
|
113
116
|
readonly tenantSlug: string;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof WebhooksApiPostWebhook0
|
|
121
|
+
*/
|
|
122
|
+
readonly productSlug: string;
|
|
114
123
|
/**
|
|
115
124
|
* Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
116
125
|
* @type {object}
|
|
117
|
-
* @memberof
|
|
126
|
+
* @memberof WebhooksApiPostWebhook0
|
|
118
127
|
*/
|
|
119
128
|
readonly body: object;
|
|
120
129
|
}
|
|
121
130
|
/**
|
|
122
|
-
* Request parameters for
|
|
131
|
+
* Request parameters for postWebhook1 operation in WebhooksApi.
|
|
123
132
|
* @export
|
|
124
|
-
* @interface
|
|
133
|
+
* @interface WebhooksApiPostWebhook1Request
|
|
125
134
|
*/
|
|
126
|
-
export interface
|
|
135
|
+
export interface WebhooksApiPostWebhook1Request {
|
|
127
136
|
/**
|
|
128
137
|
* The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
129
138
|
* @type {string}
|
|
130
|
-
* @memberof
|
|
139
|
+
* @memberof WebhooksApiPostWebhook1
|
|
131
140
|
*/
|
|
132
141
|
readonly pspType: string;
|
|
133
142
|
/**
|
|
134
143
|
* Unique slug identifier representing a tenant.
|
|
135
144
|
* @type {string}
|
|
136
|
-
* @memberof
|
|
145
|
+
* @memberof WebhooksApiPostWebhook1
|
|
137
146
|
*/
|
|
138
147
|
readonly tenantSlug: string;
|
|
139
148
|
/**
|
|
140
|
-
*
|
|
149
|
+
*
|
|
141
150
|
* @type {string}
|
|
142
|
-
* @memberof
|
|
151
|
+
* @memberof WebhooksApiPostWebhook1
|
|
143
152
|
*/
|
|
144
153
|
readonly productSlug: string;
|
|
145
154
|
/**
|
|
146
155
|
* Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
147
156
|
* @type {object}
|
|
148
|
-
* @memberof
|
|
157
|
+
* @memberof WebhooksApiPostWebhook1
|
|
149
158
|
*/
|
|
150
159
|
readonly body: object;
|
|
151
160
|
}
|
|
@@ -159,19 +168,19 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
159
168
|
/**
|
|
160
169
|
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
161
170
|
* @summary Handle the webhook from PSP
|
|
162
|
-
* @param {
|
|
171
|
+
* @param {WebhooksApiPostWebhook0Request} requestParameters Request parameters.
|
|
163
172
|
* @param {*} [options] Override http request option.
|
|
164
173
|
* @throws {RequiredError}
|
|
165
174
|
* @memberof WebhooksApi
|
|
166
175
|
*/
|
|
167
|
-
|
|
176
|
+
postWebhook0(requestParameters: WebhooksApiPostWebhook0Request, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
168
177
|
/**
|
|
169
178
|
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
170
179
|
* @summary Handle the webhook from PSP
|
|
171
|
-
* @param {
|
|
180
|
+
* @param {WebhooksApiPostWebhook1Request} requestParameters Request parameters.
|
|
172
181
|
* @param {*} [options] Override http request option.
|
|
173
182
|
* @throws {RequiredError}
|
|
174
183
|
* @memberof WebhooksApi
|
|
175
184
|
*/
|
|
176
|
-
|
|
185
|
+
postWebhook1(requestParameters: WebhooksApiPostWebhook1Request, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
177
186
|
}
|
package/dist/api/webhooks-api.js
CHANGED
|
@@ -101,24 +101,28 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
101
101
|
* @summary Handle the webhook from PSP
|
|
102
102
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
103
103
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
104
|
+
* @param {string} productSlug
|
|
104
105
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
105
106
|
* @param {*} [options] Override http request option.
|
|
106
107
|
* @throws {RequiredError}
|
|
107
108
|
*/
|
|
108
|
-
|
|
109
|
+
postWebhook0: function (pspType, tenantSlug, productSlug, body, options) {
|
|
109
110
|
if (options === void 0) { options = {}; }
|
|
110
111
|
return __awaiter(_this, void 0, void 0, function () {
|
|
111
112
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
112
113
|
return __generator(this, function (_a) {
|
|
113
114
|
// verify required parameter 'pspType' is not null or undefined
|
|
114
|
-
(0, common_1.assertParamExists)('
|
|
115
|
+
(0, common_1.assertParamExists)('postWebhook0', 'pspType', pspType);
|
|
115
116
|
// verify required parameter 'tenantSlug' is not null or undefined
|
|
116
|
-
(0, common_1.assertParamExists)('
|
|
117
|
+
(0, common_1.assertParamExists)('postWebhook0', 'tenantSlug', tenantSlug);
|
|
118
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
119
|
+
(0, common_1.assertParamExists)('postWebhook0', 'productSlug', productSlug);
|
|
117
120
|
// verify required parameter 'body' is not null or undefined
|
|
118
|
-
(0, common_1.assertParamExists)('
|
|
121
|
+
(0, common_1.assertParamExists)('postWebhook0', 'body', body);
|
|
119
122
|
localVarPath = "/paymentservice/v1/webhooks/{pspType}/{tenantSlug}"
|
|
120
123
|
.replace("{".concat("pspType", "}"), encodeURIComponent(String(pspType)))
|
|
121
|
-
.replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)))
|
|
124
|
+
.replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)))
|
|
125
|
+
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
122
126
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
123
127
|
if (configuration) {
|
|
124
128
|
baseOptions = configuration.baseOptions;
|
|
@@ -144,24 +148,24 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
144
148
|
* @summary Handle the webhook from PSP
|
|
145
149
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
146
150
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
147
|
-
* @param {string} productSlug
|
|
151
|
+
* @param {string} productSlug
|
|
148
152
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
149
153
|
* @param {*} [options] Override http request option.
|
|
150
154
|
* @throws {RequiredError}
|
|
151
155
|
*/
|
|
152
|
-
|
|
156
|
+
postWebhook1: function (pspType, tenantSlug, productSlug, body, options) {
|
|
153
157
|
if (options === void 0) { options = {}; }
|
|
154
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155
159
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
160
|
return __generator(this, function (_a) {
|
|
157
161
|
// verify required parameter 'pspType' is not null or undefined
|
|
158
|
-
(0, common_1.assertParamExists)('
|
|
162
|
+
(0, common_1.assertParamExists)('postWebhook1', 'pspType', pspType);
|
|
159
163
|
// verify required parameter 'tenantSlug' is not null or undefined
|
|
160
|
-
(0, common_1.assertParamExists)('
|
|
164
|
+
(0, common_1.assertParamExists)('postWebhook1', 'tenantSlug', tenantSlug);
|
|
161
165
|
// verify required parameter 'productSlug' is not null or undefined
|
|
162
|
-
(0, common_1.assertParamExists)('
|
|
166
|
+
(0, common_1.assertParamExists)('postWebhook1', 'productSlug', productSlug);
|
|
163
167
|
// verify required parameter 'body' is not null or undefined
|
|
164
|
-
(0, common_1.assertParamExists)('
|
|
168
|
+
(0, common_1.assertParamExists)('postWebhook1', 'body', body);
|
|
165
169
|
localVarPath = "/paymentservice/v1/webhooks/{pspType}/{tenantSlug}/{productSlug}"
|
|
166
170
|
.replace("{".concat("pspType", "}"), encodeURIComponent(String(pspType)))
|
|
167
171
|
.replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)))
|
|
@@ -201,16 +205,17 @@ var WebhooksApiFp = function (configuration) {
|
|
|
201
205
|
* @summary Handle the webhook from PSP
|
|
202
206
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
203
207
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
208
|
+
* @param {string} productSlug
|
|
204
209
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
205
210
|
* @param {*} [options] Override http request option.
|
|
206
211
|
* @throws {RequiredError}
|
|
207
212
|
*/
|
|
208
|
-
|
|
213
|
+
postWebhook0: function (pspType, tenantSlug, productSlug, body, options) {
|
|
209
214
|
return __awaiter(this, void 0, void 0, function () {
|
|
210
215
|
var localVarAxiosArgs;
|
|
211
216
|
return __generator(this, function (_a) {
|
|
212
217
|
switch (_a.label) {
|
|
213
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
218
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook0(pspType, tenantSlug, productSlug, body, options)];
|
|
214
219
|
case 1:
|
|
215
220
|
localVarAxiosArgs = _a.sent();
|
|
216
221
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -223,17 +228,17 @@ var WebhooksApiFp = function (configuration) {
|
|
|
223
228
|
* @summary Handle the webhook from PSP
|
|
224
229
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
225
230
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
226
|
-
* @param {string} productSlug
|
|
231
|
+
* @param {string} productSlug
|
|
227
232
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
228
233
|
* @param {*} [options] Override http request option.
|
|
229
234
|
* @throws {RequiredError}
|
|
230
235
|
*/
|
|
231
|
-
|
|
236
|
+
postWebhook1: function (pspType, tenantSlug, productSlug, body, options) {
|
|
232
237
|
return __awaiter(this, void 0, void 0, function () {
|
|
233
238
|
var localVarAxiosArgs;
|
|
234
239
|
return __generator(this, function (_a) {
|
|
235
240
|
switch (_a.label) {
|
|
236
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
241
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook1(pspType, tenantSlug, productSlug, body, options)];
|
|
237
242
|
case 1:
|
|
238
243
|
localVarAxiosArgs = _a.sent();
|
|
239
244
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -256,25 +261,26 @@ var WebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
256
261
|
* @summary Handle the webhook from PSP
|
|
257
262
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
258
263
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
264
|
+
* @param {string} productSlug
|
|
259
265
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
260
266
|
* @param {*} [options] Override http request option.
|
|
261
267
|
* @throws {RequiredError}
|
|
262
268
|
*/
|
|
263
|
-
|
|
264
|
-
return localVarFp.
|
|
269
|
+
postWebhook0: function (pspType, tenantSlug, productSlug, body, options) {
|
|
270
|
+
return localVarFp.postWebhook0(pspType, tenantSlug, productSlug, body, options).then(function (request) { return request(axios, basePath); });
|
|
265
271
|
},
|
|
266
272
|
/**
|
|
267
273
|
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
268
274
|
* @summary Handle the webhook from PSP
|
|
269
275
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
270
276
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
271
|
-
* @param {string} productSlug
|
|
277
|
+
* @param {string} productSlug
|
|
272
278
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
273
279
|
* @param {*} [options] Override http request option.
|
|
274
280
|
* @throws {RequiredError}
|
|
275
281
|
*/
|
|
276
|
-
|
|
277
|
-
return localVarFp.
|
|
282
|
+
postWebhook1: function (pspType, tenantSlug, productSlug, body, options) {
|
|
283
|
+
return localVarFp.postWebhook1(pspType, tenantSlug, productSlug, body, options).then(function (request) { return request(axios, basePath); });
|
|
278
284
|
},
|
|
279
285
|
};
|
|
280
286
|
};
|
|
@@ -293,26 +299,26 @@ var WebhooksApi = /** @class */ (function (_super) {
|
|
|
293
299
|
/**
|
|
294
300
|
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
295
301
|
* @summary Handle the webhook from PSP
|
|
296
|
-
* @param {
|
|
302
|
+
* @param {WebhooksApiPostWebhook0Request} requestParameters Request parameters.
|
|
297
303
|
* @param {*} [options] Override http request option.
|
|
298
304
|
* @throws {RequiredError}
|
|
299
305
|
* @memberof WebhooksApi
|
|
300
306
|
*/
|
|
301
|
-
WebhooksApi.prototype.
|
|
307
|
+
WebhooksApi.prototype.postWebhook0 = function (requestParameters, options) {
|
|
302
308
|
var _this = this;
|
|
303
|
-
return (0, exports.WebhooksApiFp)(this.configuration).
|
|
309
|
+
return (0, exports.WebhooksApiFp)(this.configuration).postWebhook0(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
304
310
|
};
|
|
305
311
|
/**
|
|
306
312
|
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
307
313
|
* @summary Handle the webhook from PSP
|
|
308
|
-
* @param {
|
|
314
|
+
* @param {WebhooksApiPostWebhook1Request} requestParameters Request parameters.
|
|
309
315
|
* @param {*} [options] Override http request option.
|
|
310
316
|
* @throws {RequiredError}
|
|
311
317
|
* @memberof WebhooksApi
|
|
312
318
|
*/
|
|
313
|
-
WebhooksApi.prototype.
|
|
319
|
+
WebhooksApi.prototype.postWebhook1 = function (requestParameters, options) {
|
|
314
320
|
var _this = this;
|
|
315
|
-
return (0, exports.WebhooksApiFp)(this.configuration).
|
|
321
|
+
return (0, exports.WebhooksApiFp)(this.configuration).postWebhook1(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
316
322
|
};
|
|
317
323
|
return WebhooksApi;
|
|
318
324
|
}(base_1.BaseAPI));
|
package/dist/base.d.ts
CHANGED
|
@@ -39,8 +39,7 @@ export declare enum Environment {
|
|
|
39
39
|
Test = "https://apiv2-test.emil.de",
|
|
40
40
|
Staging = "https://apiv2-staging.emil.de",
|
|
41
41
|
Development = "https://apiv2-dev.emil.de",
|
|
42
|
-
ProductionZurich = "https://eu-central-2.apiv2.emil.de"
|
|
43
|
-
StagingZurich = "https://eu-central-2.apiv2-staging.emil.de"
|
|
42
|
+
ProductionZurich = "https://eu-central-2.apiv2.emil.de"
|
|
44
43
|
}
|
|
45
44
|
export declare function resetRetry(): void;
|
|
46
45
|
/**
|
package/dist/base.js
CHANGED
|
@@ -132,7 +132,6 @@ var Environment;
|
|
|
132
132
|
Environment["Staging"] = "https://apiv2-staging.emil.de";
|
|
133
133
|
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
134
134
|
Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
|
|
135
|
-
Environment["StagingZurich"] = "https://eu-central-2.apiv2-staging.emil.de";
|
|
136
135
|
})(Environment = exports.Environment || (exports.Environment = {}));
|
|
137
136
|
var _retry_count = 0;
|
|
138
137
|
var _retry = null;
|
|
@@ -95,12 +95,10 @@ export interface BankTransactionEntity {
|
|
|
95
95
|
'transactionReference': string;
|
|
96
96
|
/**
|
|
97
97
|
*
|
|
98
|
-
* @type {
|
|
98
|
+
* @type {object}
|
|
99
99
|
* @memberof BankTransactionEntity
|
|
100
100
|
*/
|
|
101
|
-
'metadata'?:
|
|
102
|
-
[key: string]: object;
|
|
103
|
-
};
|
|
101
|
+
'metadata'?: object;
|
|
104
102
|
/**
|
|
105
103
|
*
|
|
106
104
|
* @type {string}
|
|
@@ -41,10 +41,8 @@ export interface CreatePaymentOrderDto {
|
|
|
41
41
|
'referenceNumber'?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Optional field contain extra information.
|
|
44
|
-
* @type {
|
|
44
|
+
* @type {object}
|
|
45
45
|
* @memberof CreatePaymentOrderDto
|
|
46
46
|
*/
|
|
47
|
-
'metadata':
|
|
48
|
-
[key: string]: string;
|
|
49
|
-
};
|
|
47
|
+
'metadata': object;
|
|
50
48
|
}
|
|
@@ -41,10 +41,8 @@ export interface CreatePaymentOrderRequestDto {
|
|
|
41
41
|
'referenceNumber'?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @type {
|
|
44
|
+
* @type {object}
|
|
45
45
|
* @memberof CreatePaymentOrderRequestDto
|
|
46
46
|
*/
|
|
47
|
-
'metadata':
|
|
48
|
-
[key: string]: string;
|
|
49
|
-
};
|
|
47
|
+
'metadata': object;
|
|
50
48
|
}
|
|
@@ -47,12 +47,10 @@ export interface CreatePaymentRequestDto {
|
|
|
47
47
|
'invoiceIds': Array<number>;
|
|
48
48
|
/**
|
|
49
49
|
* Optional field contain extra information.
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {object}
|
|
51
51
|
* @memberof CreatePaymentRequestDto
|
|
52
52
|
*/
|
|
53
|
-
'metadata':
|
|
54
|
-
[key: string]: string;
|
|
55
|
-
};
|
|
53
|
+
'metadata': object;
|
|
56
54
|
/**
|
|
57
55
|
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
58
56
|
* @type {string}
|
|
@@ -75,12 +75,6 @@ export interface CreatePaymentRequestRequestDto {
|
|
|
75
75
|
* @memberof CreatePaymentRequestRequestDto
|
|
76
76
|
*/
|
|
77
77
|
'settlementCode'?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Code of the partner the payment request was created for.
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @memberof CreatePaymentRequestRequestDto
|
|
82
|
-
*/
|
|
83
|
-
'partnerCode': string;
|
|
84
78
|
/**
|
|
85
79
|
* Code of the payment method to be used for this payment request. If not provided, a default payment method may be selected.
|
|
86
80
|
* @type {string}
|
|
@@ -34,12 +34,6 @@ export interface CreditAllocationClass {
|
|
|
34
34
|
* @memberof CreditAllocationClass
|
|
35
35
|
*/
|
|
36
36
|
'exceedingCreditCodes': Array<string>;
|
|
37
|
-
/**
|
|
38
|
-
* Partner code derived from the policy related to the exceeding credits.
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof CreditAllocationClass
|
|
41
|
-
*/
|
|
42
|
-
'partnerCode': string;
|
|
43
37
|
/**
|
|
44
38
|
* Policy code associated with the credit.
|
|
45
39
|
* @type {string}
|
|
@@ -54,12 +54,10 @@ export interface InvoiceMatchSuggestionEntity {
|
|
|
54
54
|
'confidenceScore': number;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @type {
|
|
57
|
+
* @type {object}
|
|
58
58
|
* @memberof InvoiceMatchSuggestionEntity
|
|
59
59
|
*/
|
|
60
|
-
'matchCriteria'?:
|
|
61
|
-
[key: string]: object;
|
|
62
|
-
};
|
|
60
|
+
'matchCriteria'?: object;
|
|
63
61
|
/**
|
|
64
62
|
*
|
|
65
63
|
* @type {string}
|
|
@@ -16,18 +16,18 @@ import { BillingAddressClass } from './billing-address-class';
|
|
|
16
16
|
* @interface ListBillingAddressesResponseClass
|
|
17
17
|
*/
|
|
18
18
|
export interface ListBillingAddressesResponseClass {
|
|
19
|
-
/**
|
|
20
|
-
* The billing addresses
|
|
21
|
-
* @type {Array<BillingAddressClass>}
|
|
22
|
-
* @memberof ListBillingAddressesResponseClass
|
|
23
|
-
*/
|
|
24
|
-
'items': Array<BillingAddressClass>;
|
|
25
19
|
/**
|
|
26
20
|
* Next page token.
|
|
27
21
|
* @type {string}
|
|
28
22
|
* @memberof ListBillingAddressesResponseClass
|
|
29
23
|
*/
|
|
30
24
|
'nextPageToken': string;
|
|
25
|
+
/**
|
|
26
|
+
* Total amount of items.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ListBillingAddressesResponseClass
|
|
29
|
+
*/
|
|
30
|
+
'totalItems': number;
|
|
31
31
|
/**
|
|
32
32
|
* Items per page.
|
|
33
33
|
* @type {number}
|
|
@@ -35,9 +35,9 @@ export interface ListBillingAddressesResponseClass {
|
|
|
35
35
|
*/
|
|
36
36
|
'itemsPerPage': number;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {
|
|
38
|
+
* The billing addresses
|
|
39
|
+
* @type {Array<BillingAddressClass>}
|
|
40
40
|
* @memberof ListBillingAddressesResponseClass
|
|
41
41
|
*/
|
|
42
|
-
'
|
|
42
|
+
'items': Array<BillingAddressClass>;
|
|
43
43
|
}
|
|
@@ -16,16 +16,28 @@ import { ExceedingCreditClass } from './exceeding-credit-class';
|
|
|
16
16
|
* @interface ListExceedingCreditsResponseClass
|
|
17
17
|
*/
|
|
18
18
|
export interface ListExceedingCreditsResponseClass {
|
|
19
|
-
/**
|
|
20
|
-
* The list of exceeding credits.
|
|
21
|
-
* @type {Array<ExceedingCreditClass>}
|
|
22
|
-
* @memberof ListExceedingCreditsResponseClass
|
|
23
|
-
*/
|
|
24
|
-
'items': Array<ExceedingCreditClass>;
|
|
25
19
|
/**
|
|
26
20
|
* Next page token.
|
|
27
21
|
* @type {string}
|
|
28
22
|
* @memberof ListExceedingCreditsResponseClass
|
|
29
23
|
*/
|
|
30
24
|
'nextPageToken': string;
|
|
25
|
+
/**
|
|
26
|
+
* Total amount of items.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ListExceedingCreditsResponseClass
|
|
29
|
+
*/
|
|
30
|
+
'totalItems': number;
|
|
31
|
+
/**
|
|
32
|
+
* Items per page.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ListExceedingCreditsResponseClass
|
|
35
|
+
*/
|
|
36
|
+
'itemsPerPage': number;
|
|
37
|
+
/**
|
|
38
|
+
* The list of exceeding credits.
|
|
39
|
+
* @type {Array<ExceedingCreditClass>}
|
|
40
|
+
* @memberof ListExceedingCreditsResponseClass
|
|
41
|
+
*/
|
|
42
|
+
'items': Array<ExceedingCreditClass>;
|
|
31
43
|
}
|
|
@@ -16,18 +16,18 @@ import { PaymentReceiptClass } from './payment-receipt-class';
|
|
|
16
16
|
* @interface ListPaymentReceiptsResponseClass
|
|
17
17
|
*/
|
|
18
18
|
export interface ListPaymentReceiptsResponseClass {
|
|
19
|
-
/**
|
|
20
|
-
* The list of payment receipts.
|
|
21
|
-
* @type {Array<PaymentReceiptClass>}
|
|
22
|
-
* @memberof ListPaymentReceiptsResponseClass
|
|
23
|
-
*/
|
|
24
|
-
'items': Array<PaymentReceiptClass>;
|
|
25
19
|
/**
|
|
26
20
|
* Next page token.
|
|
27
21
|
* @type {string}
|
|
28
22
|
* @memberof ListPaymentReceiptsResponseClass
|
|
29
23
|
*/
|
|
30
24
|
'nextPageToken': string;
|
|
25
|
+
/**
|
|
26
|
+
* Total amount of items.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ListPaymentReceiptsResponseClass
|
|
29
|
+
*/
|
|
30
|
+
'totalItems': number;
|
|
31
31
|
/**
|
|
32
32
|
* Items per page.
|
|
33
33
|
* @type {number}
|
|
@@ -35,9 +35,9 @@ export interface ListPaymentReceiptsResponseClass {
|
|
|
35
35
|
*/
|
|
36
36
|
'itemsPerPage': number;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {
|
|
38
|
+
* The list of payment receipts.
|
|
39
|
+
* @type {Array<PaymentReceiptClass>}
|
|
40
40
|
* @memberof ListPaymentReceiptsResponseClass
|
|
41
41
|
*/
|
|
42
|
-
'
|
|
42
|
+
'items': Array<PaymentReceiptClass>;
|
|
43
43
|
}
|
|
@@ -16,16 +16,28 @@ import { PaymentRequestClass } from './payment-request-class';
|
|
|
16
16
|
* @interface ListPaymentRequestsResponseClass
|
|
17
17
|
*/
|
|
18
18
|
export interface ListPaymentRequestsResponseClass {
|
|
19
|
-
/**
|
|
20
|
-
* The list of payment requests.
|
|
21
|
-
* @type {Array<PaymentRequestClass>}
|
|
22
|
-
* @memberof ListPaymentRequestsResponseClass
|
|
23
|
-
*/
|
|
24
|
-
'items': Array<PaymentRequestClass>;
|
|
25
19
|
/**
|
|
26
20
|
* Next page token.
|
|
27
21
|
* @type {string}
|
|
28
22
|
* @memberof ListPaymentRequestsResponseClass
|
|
29
23
|
*/
|
|
30
24
|
'nextPageToken': string;
|
|
25
|
+
/**
|
|
26
|
+
* Total amount of items.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ListPaymentRequestsResponseClass
|
|
29
|
+
*/
|
|
30
|
+
'totalItems': number;
|
|
31
|
+
/**
|
|
32
|
+
* Items per page.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ListPaymentRequestsResponseClass
|
|
35
|
+
*/
|
|
36
|
+
'itemsPerPage': number;
|
|
37
|
+
/**
|
|
38
|
+
* The list of payment requests.
|
|
39
|
+
* @type {Array<PaymentRequestClass>}
|
|
40
|
+
* @memberof ListPaymentRequestsResponseClass
|
|
41
|
+
*/
|
|
42
|
+
'items': Array<PaymentRequestClass>;
|
|
31
43
|
}
|