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