@emilgroup/payment-sdk-node 1.21.1-beta.12 → 1.21.1-beta.120
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/.openapi-generator/FILES +31 -1
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +55 -13
- package/api/bank-orders-api.ts +695 -0
- package/api/bank-transaction-api.ts +59 -48
- package/api/exceeding-credits-api.ts +353 -0
- package/api/payment-methods-api.ts +59 -17
- package/api/payment-reminders-api.ts +55 -13
- package/api/payments-api.ts +180 -17
- package/api/policy-payment-methods-api.ts +357 -0
- package/api/refunds-api.ts +45 -17
- package/api/tenant-bank-account-api.ts +45 -17
- package/api.ts +6 -0
- package/base.ts +45 -3
- package/dist/api/bank-accounts-api.d.ts +35 -8
- package/dist/api/bank-accounts-api.js +48 -63
- package/dist/api/bank-orders-api.d.ts +393 -0
- package/dist/api/bank-orders-api.js +646 -0
- package/dist/api/bank-transaction-api.d.ts +39 -31
- package/dist/api/bank-transaction-api.js +54 -82
- package/dist/api/exceeding-credits-api.d.ts +206 -0
- package/dist/api/exceeding-credits-api.js +356 -0
- package/dist/api/health-check-api.js +5 -18
- package/dist/api/payment-methods-api.d.ts +39 -12
- package/dist/api/payment-methods-api.js +42 -45
- package/dist/api/payment-reminders-api.d.ts +35 -8
- package/dist/api/payment-reminders-api.js +42 -49
- package/dist/api/payment-setup-api.js +8 -25
- package/dist/api/payments-api.d.ts +104 -12
- package/dist/api/payments-api.js +143 -45
- package/dist/api/policy-payment-methods-api.d.ts +207 -0
- package/dist/api/policy-payment-methods-api.js +357 -0
- package/dist/api/refunds-api.d.ts +28 -10
- package/dist/api/refunds-api.js +34 -43
- package/dist/api/tenant-bank-account-api.d.ts +28 -10
- package/dist/api/tenant-bank-account-api.js +40 -57
- package/dist/api/webhooks-api.js +5 -18
- package/dist/api.d.ts +3 -0
- package/dist/api.js +3 -0
- package/dist/base.d.ts +11 -2
- package/dist/base.js +56 -27
- package/dist/common.d.ts +1 -1
- package/dist/common.js +2 -2
- package/dist/models/bank-order-class.d.ts +122 -0
- package/dist/models/bank-order-xml-file-class.d.ts +72 -0
- package/dist/models/bank-order-xml-file-class.js +15 -0
- package/dist/models/bank-transaction-class-without-expand-properties.d.ts +18 -18
- package/dist/models/bank-transaction-class-without-expand-properties.js +5 -0
- package/dist/models/bank-transaction-class.d.ts +22 -22
- package/dist/models/bank-transaction-class.js +5 -0
- package/dist/models/bank-transaction-invoice-class.d.ts +60 -0
- package/dist/models/bank-transaction-invoice-class.js +15 -0
- package/dist/models/bank-transfer-dto.d.ts +25 -0
- package/dist/models/bank-transfer-dto.js +15 -0
- package/dist/models/billing-address-dto.d.ts +54 -0
- package/dist/models/billing-address-dto.js +15 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +2 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.js +3 -1
- package/dist/models/complete-eis-payment-setup-request-dto.d.ts +36 -0
- package/dist/models/complete-eis-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +2 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +3 -1
- package/dist/models/create-bank-order-request-dto.d.ts +74 -0
- package/dist/models/create-bank-order-request-dto.js +28 -0
- package/dist/models/create-bank-order-response-class.d.ts +25 -0
- package/dist/models/create-bank-order-response-class.js +15 -0
- package/dist/models/create-payment-order-dto.d.ts +48 -0
- package/dist/models/create-payment-order-dto.js +15 -0
- package/dist/models/create-payment-order-request-dto.d.ts +48 -0
- package/dist/models/create-payment-order-request-dto.js +15 -0
- package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
- package/dist/models/create-payment-request-dto.d.ts +7 -1
- package/dist/models/create-policy-payment-method-request-dto.d.ts +30 -0
- package/dist/models/create-policy-payment-method-request-dto.js +15 -0
- package/dist/models/create-policy-payment-method-response-class.d.ts +25 -0
- package/dist/models/create-policy-payment-method-response-class.js +15 -0
- package/dist/models/create-psp-payment-method-request-dto.d.ts +29 -1
- package/dist/models/create-psp-payment-method-request-dto.js +3 -1
- package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
- package/dist/models/eis-sepa-debit-dto.d.ts +55 -0
- package/dist/models/eis-sepa-debit-dto.js +15 -0
- package/dist/models/exceeding-credit-class.d.ts +116 -0
- package/dist/models/exceeding-credit-class.js +29 -0
- package/dist/models/financial-account-class.d.ts +111 -0
- package/dist/models/financial-account-class.js +24 -0
- package/dist/models/get-bank-order-response-class.d.ts +25 -0
- package/dist/models/get-bank-order-response-class.js +15 -0
- package/dist/models/get-exceeding-credit-response-class.d.ts +25 -0
- package/dist/models/get-exceeding-credit-response-class.js +15 -0
- package/dist/models/index.d.ts +28 -1
- package/dist/models/index.js +28 -1
- package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-eis-payment-setup-request-dto.d.ts +36 -0
- package/dist/models/initiate-eis-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +3 -2
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/{unlink-bank-transaction-request-dto-rest.d.ts → invoice-allocation-dto.d.ts} +10 -4
- package/dist/models/invoice-allocation-dto.js +15 -0
- package/dist/models/link-bank-transaction-request-dto-rest.d.ts +4 -3
- package/dist/models/list-bank-orders-response-class.d.ts +31 -0
- package/dist/models/list-bank-orders-response-class.js +15 -0
- package/dist/models/list-exceeding-credits-response-class.d.ts +31 -0
- package/dist/models/list-exceeding-credits-response-class.js +15 -0
- package/dist/models/list-policy-payment-methods-response-class.d.ts +31 -0
- package/dist/models/list-policy-payment-methods-response-class.js +15 -0
- package/dist/models/mandate-dto.d.ts +43 -0
- package/dist/models/mandate-dto.js +15 -0
- package/dist/models/mandate-hash-data-dto.d.ts +42 -0
- package/dist/models/mandate-hash-data-dto.js +15 -0
- package/dist/models/mandate-reference-class.d.ts +90 -0
- package/dist/models/mandate-reference-class.js +15 -0
- package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
- package/dist/models/payment-class.d.ts +7 -1
- package/dist/models/payment-method-class.d.ts +6 -0
- package/dist/models/payment-reminder-class.d.ts +7 -1
- package/dist/models/policy-payment-method-class.d.ts +86 -0
- package/dist/models/policy-payment-method-class.js +15 -0
- package/dist/models/refund-class.d.ts +7 -1
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +18 -0
- package/dist/models/unlinked-bank-transaction-response-class.js +5 -0
- package/dist/models/update-bank-order-request-dto.d.ts +62 -0
- package/dist/models/update-bank-order-request-dto.js +23 -0
- package/dist/models/update-bank-order-response-class.d.ts +25 -0
- package/dist/models/update-bank-order-response-class.js +15 -0
- package/models/bank-order-class.ts +128 -0
- package/models/bank-order-xml-file-class.ts +78 -0
- package/models/bank-transaction-class-without-expand-properties.ts +21 -18
- package/models/bank-transaction-class.ts +25 -22
- package/models/bank-transaction-invoice-class.ts +66 -0
- package/models/bank-transfer-dto.ts +31 -0
- package/models/billing-address-dto.ts +60 -0
- package/models/complete-adyen-payment-setup-request-dto.ts +3 -1
- package/models/complete-eis-payment-setup-request-dto.ts +42 -0
- package/models/complete-payment-setup-request-dto.ts +7 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +3 -1
- package/models/create-bank-order-request-dto.ts +84 -0
- package/models/create-bank-order-response-class.ts +31 -0
- package/models/create-payment-order-dto.ts +54 -0
- package/models/create-payment-order-request-dto.ts +54 -0
- package/models/create-payment-reminder-request-dto.ts +7 -1
- package/models/create-payment-request-dto.ts +7 -1
- package/models/create-policy-payment-method-request-dto.ts +36 -0
- package/models/create-policy-payment-method-response-class.ts +31 -0
- package/models/create-psp-payment-method-request-dto.ts +30 -2
- package/models/deactivated-payment-reminder-class.ts +7 -1
- package/models/eis-sepa-debit-dto.ts +61 -0
- package/models/exceeding-credit-class.ts +125 -0
- package/models/financial-account-class.ts +120 -0
- package/models/get-bank-order-response-class.ts +31 -0
- package/models/get-exceeding-credit-response-class.ts +31 -0
- package/models/index.ts +28 -1
- package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
- package/models/initiate-eis-payment-setup-request-dto.ts +42 -0
- package/models/initiate-payment-setup-request-dto.ts +3 -2
- package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
- package/models/{unlink-bank-transaction-request-dto-rest.ts → invoice-allocation-dto.ts} +10 -4
- package/models/link-bank-transaction-request-dto-rest.ts +4 -3
- package/models/list-bank-orders-response-class.ts +37 -0
- package/models/list-exceeding-credits-response-class.ts +37 -0
- package/models/list-policy-payment-methods-response-class.ts +37 -0
- package/models/mandate-dto.ts +49 -0
- package/models/mandate-hash-data-dto.ts +48 -0
- package/models/mandate-reference-class.ts +96 -0
- package/models/payment-class-without-expand-properties.ts +7 -1
- package/models/payment-class.ts +7 -1
- package/models/payment-method-class.ts +6 -0
- package/models/payment-reminder-class.ts +7 -1
- package/models/policy-payment-method-class.ts +92 -0
- package/models/refund-class.ts +7 -1
- package/models/unlinked-bank-transaction-response-class.ts +21 -0
- package/models/update-bank-order-request-dto.ts +71 -0
- package/models/update-bank-order-response-class.ts +31 -0
- package/package.json +4 -4
- /package/dist/models/{unlink-bank-transaction-request-dto-rest.js → bank-order-class.js} +0 -0
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
52
|
-
return g
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -113,14 +104,10 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
|
|
|
113
104
|
* @param {*} [options] Override http request option.
|
|
114
105
|
* @throws {RequiredError}
|
|
115
106
|
*/
|
|
116
|
-
createPaymentReminder: function (
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
args_1[_i - 2] = arguments[_i];
|
|
120
|
-
}
|
|
121
|
-
return __awaiter(_this, __spreadArray([createPaymentReminderRequestDto_1, authorization_1], args_1, true), void 0, function (createPaymentReminderRequestDto, authorization, options) {
|
|
107
|
+
createPaymentReminder: function (createPaymentReminderRequestDto, authorization, options) {
|
|
108
|
+
if (options === void 0) { options = {}; }
|
|
109
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
122
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
123
|
-
if (options === void 0) { options = {}; }
|
|
124
111
|
return __generator(this, function (_a) {
|
|
125
112
|
switch (_a.label) {
|
|
126
113
|
case 0:
|
|
@@ -167,14 +154,10 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
|
|
|
167
154
|
* @param {*} [options] Override http request option.
|
|
168
155
|
* @throws {RequiredError}
|
|
169
156
|
*/
|
|
170
|
-
deactivatePaymentReminder: function (
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
args_1[_i - 3] = arguments[_i];
|
|
174
|
-
}
|
|
175
|
-
return __awaiter(_this, __spreadArray([code_1, deactivatePaymentReminderRequestDto_1, authorization_1], args_1, true), void 0, function (code, deactivatePaymentReminderRequestDto, authorization, options) {
|
|
157
|
+
deactivatePaymentReminder: function (code, deactivatePaymentReminderRequestDto, authorization, options) {
|
|
158
|
+
if (options === void 0) { options = {}; }
|
|
159
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
176
160
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
177
|
-
if (options === void 0) { options = {}; }
|
|
178
161
|
return __generator(this, function (_a) {
|
|
179
162
|
switch (_a.label) {
|
|
180
163
|
case 0:
|
|
@@ -223,14 +206,10 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
|
|
|
223
206
|
* @param {*} [options] Override http request option.
|
|
224
207
|
* @throws {RequiredError}
|
|
225
208
|
*/
|
|
226
|
-
getPaymentReminder: function (
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
args_1[_i - 2] = arguments[_i];
|
|
230
|
-
}
|
|
231
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
209
|
+
getPaymentReminder: function (code, authorization, options) {
|
|
210
|
+
if (options === void 0) { options = {}; }
|
|
211
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
232
212
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
233
|
-
if (options === void 0) { options = {}; }
|
|
234
213
|
return __generator(this, function (_a) {
|
|
235
214
|
switch (_a.label) {
|
|
236
215
|
case 0:
|
|
@@ -271,21 +250,20 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
|
|
|
271
250
|
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.reminders.view\"
|
|
272
251
|
* @summary List payment reminders
|
|
273
252
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
253
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
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.
|
|
274
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>
|
|
275
|
-
* @param {string} [
|
|
256
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
276
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>
|
|
277
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>
|
|
278
260
|
* @param {*} [options] Override http request option.
|
|
279
261
|
* @throws {RequiredError}
|
|
280
262
|
*/
|
|
281
|
-
listPaymentReminders: function (
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
args_1[_i - 5] = arguments[_i];
|
|
285
|
-
}
|
|
286
|
-
return __awaiter(_this, __spreadArray([authorization_1, filter_1, filters_1, order_1, expand_1], args_1, true), void 0, function (authorization, filter, filters, order, expand, options) {
|
|
263
|
+
listPaymentReminders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
264
|
+
if (options === void 0) { options = {}; }
|
|
265
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
287
266
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
288
|
-
if (options === void 0) { options = {}; }
|
|
289
267
|
return __generator(this, function (_a) {
|
|
290
268
|
switch (_a.label) {
|
|
291
269
|
case 0:
|
|
@@ -305,11 +283,17 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
|
|
|
305
283
|
// authentication bearer required
|
|
306
284
|
// http bearer authentication required
|
|
307
285
|
_a.sent();
|
|
286
|
+
if (pageSize !== undefined) {
|
|
287
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
288
|
+
}
|
|
289
|
+
if (pageToken !== undefined) {
|
|
290
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
291
|
+
}
|
|
308
292
|
if (filter !== undefined) {
|
|
309
293
|
localVarQueryParameter['filter'] = filter;
|
|
310
294
|
}
|
|
311
|
-
if (
|
|
312
|
-
localVarQueryParameter['
|
|
295
|
+
if (search !== undefined) {
|
|
296
|
+
localVarQueryParameter['search'] = search;
|
|
313
297
|
}
|
|
314
298
|
if (order !== undefined) {
|
|
315
299
|
localVarQueryParameter['order'] = order;
|
|
@@ -317,6 +301,9 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
|
|
|
317
301
|
if (expand !== undefined) {
|
|
318
302
|
localVarQueryParameter['expand'] = expand;
|
|
319
303
|
}
|
|
304
|
+
if (filters !== undefined) {
|
|
305
|
+
localVarQueryParameter['filters'] = filters;
|
|
306
|
+
}
|
|
320
307
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
321
308
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
322
309
|
}
|
|
@@ -409,19 +396,22 @@ var PaymentRemindersApiFp = function (configuration) {
|
|
|
409
396
|
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.reminders.view\"
|
|
410
397
|
* @summary List payment reminders
|
|
411
398
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
399
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
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.
|
|
412
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>
|
|
413
|
-
* @param {string} [
|
|
402
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
414
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>
|
|
415
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>
|
|
416
406
|
* @param {*} [options] Override http request option.
|
|
417
407
|
* @throws {RequiredError}
|
|
418
408
|
*/
|
|
419
|
-
listPaymentReminders: function (authorization, filter,
|
|
409
|
+
listPaymentReminders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
420
410
|
return __awaiter(this, void 0, void 0, function () {
|
|
421
411
|
var localVarAxiosArgs;
|
|
422
412
|
return __generator(this, function (_a) {
|
|
423
413
|
switch (_a.label) {
|
|
424
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPaymentReminders(authorization, filter,
|
|
414
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
425
415
|
case 1:
|
|
426
416
|
localVarAxiosArgs = _a.sent();
|
|
427
417
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -477,15 +467,18 @@ var PaymentRemindersApiFactory = function (configuration, basePath, axios) {
|
|
|
477
467
|
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.reminders.view\"
|
|
478
468
|
* @summary List payment reminders
|
|
479
469
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
470
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
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.
|
|
480
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>
|
|
481
|
-
* @param {string} [
|
|
473
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
482
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>
|
|
483
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>
|
|
484
477
|
* @param {*} [options] Override http request option.
|
|
485
478
|
* @throws {RequiredError}
|
|
486
479
|
*/
|
|
487
|
-
listPaymentReminders: function (authorization, filter,
|
|
488
|
-
return localVarFp.listPaymentReminders(authorization, filter,
|
|
480
|
+
listPaymentReminders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
481
|
+
return localVarFp.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
489
482
|
},
|
|
490
483
|
};
|
|
491
484
|
};
|
|
@@ -548,7 +541,7 @@ var PaymentRemindersApi = /** @class */ (function (_super) {
|
|
|
548
541
|
PaymentRemindersApi.prototype.listPaymentReminders = function (requestParameters, options) {
|
|
549
542
|
var _this = this;
|
|
550
543
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
551
|
-
return (0, exports.PaymentRemindersApiFp)(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.filter, requestParameters.
|
|
544
|
+
return (0, exports.PaymentRemindersApiFp)(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
552
545
|
};
|
|
553
546
|
return PaymentRemindersApi;
|
|
554
547
|
}(base_1.BaseAPI));
|
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
52
|
-
return g
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -113,14 +104,10 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
113
104
|
* @param {*} [options] Override http request option.
|
|
114
105
|
* @throws {RequiredError}
|
|
115
106
|
*/
|
|
116
|
-
completePaymentSetup: function (
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
args_1[_i - 2] = arguments[_i];
|
|
120
|
-
}
|
|
121
|
-
return __awaiter(_this, __spreadArray([completePaymentSetupRequestDto_1, authorization_1], args_1, true), void 0, function (completePaymentSetupRequestDto, authorization, options) {
|
|
107
|
+
completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
|
|
108
|
+
if (options === void 0) { options = {}; }
|
|
109
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
122
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
123
|
-
if (options === void 0) { options = {}; }
|
|
124
111
|
return __generator(this, function (_a) {
|
|
125
112
|
switch (_a.label) {
|
|
126
113
|
case 0:
|
|
@@ -166,14 +153,10 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
166
153
|
* @param {*} [options] Override http request option.
|
|
167
154
|
* @throws {RequiredError}
|
|
168
155
|
*/
|
|
169
|
-
initiatePaymentSetup: function (
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
args_1[_i - 2] = arguments[_i];
|
|
173
|
-
}
|
|
174
|
-
return __awaiter(_this, __spreadArray([initiatePaymentSetupRequestDto_1, authorization_1], args_1, true), void 0, function (initiatePaymentSetupRequestDto, authorization, options) {
|
|
156
|
+
initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
|
|
157
|
+
if (options === void 0) { options = {}; }
|
|
158
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
175
159
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
176
|
-
if (options === void 0) { options = {}; }
|
|
177
160
|
return __generator(this, function (_a) {
|
|
178
161
|
switch (_a.label) {
|
|
179
162
|
case 0:
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreatePaymentOrderDto } from '../models';
|
|
15
16
|
import { CreatePaymentRequestDto } from '../models';
|
|
16
17
|
import { CreatePaymentResponseClass } from '../models';
|
|
17
18
|
import { GetPaymentResponseClass } from '../models';
|
|
@@ -31,6 +32,16 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
31
32
|
* @throws {RequiredError}
|
|
32
33
|
*/
|
|
33
34
|
createPayment: (idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
|
+
/**
|
|
36
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
37
|
+
* @summary Create the payment
|
|
38
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
39
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
40
|
+
* @param {string} [authorization] Bearer Token
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
createPaymentOrder: (idempotencyKey: string, createPaymentOrderDto: CreatePaymentOrderDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
34
45
|
/**
|
|
35
46
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
36
47
|
* @summary Retrieve the payment
|
|
@@ -45,14 +56,17 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
45
56
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
|
|
46
57
|
* @summary List payments
|
|
47
58
|
* @param {string} [authorization] Bearer Token
|
|
48
|
-
* @param {
|
|
49
|
-
* @param {string} [
|
|
59
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
60
|
+
* @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.
|
|
61
|
+
* @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode</i>
|
|
62
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
50
63
|
* @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, code, amount</i>
|
|
51
64
|
* @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: transactions<i>
|
|
65
|
+
* @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode</i>
|
|
52
66
|
* @param {*} [options] Override http request option.
|
|
53
67
|
* @throws {RequiredError}
|
|
54
68
|
*/
|
|
55
|
-
listPayments: (authorization?: string, filter?: string,
|
|
69
|
+
listPayments: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
56
70
|
};
|
|
57
71
|
/**
|
|
58
72
|
* PaymentsApi - functional programming interface
|
|
@@ -69,6 +83,16 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
69
83
|
* @throws {RequiredError}
|
|
70
84
|
*/
|
|
71
85
|
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>>;
|
|
86
|
+
/**
|
|
87
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
88
|
+
* @summary Create the payment
|
|
89
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
90
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
91
|
+
* @param {string} [authorization] Bearer Token
|
|
92
|
+
* @param {*} [options] Override http request option.
|
|
93
|
+
* @throws {RequiredError}
|
|
94
|
+
*/
|
|
95
|
+
createPaymentOrder(idempotencyKey: string, createPaymentOrderDto: CreatePaymentOrderDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>>;
|
|
72
96
|
/**
|
|
73
97
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
74
98
|
* @summary Retrieve the payment
|
|
@@ -83,14 +107,17 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
83
107
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
|
|
84
108
|
* @summary List payments
|
|
85
109
|
* @param {string} [authorization] Bearer Token
|
|
86
|
-
* @param {
|
|
87
|
-
* @param {string} [
|
|
110
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
111
|
+
* @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.
|
|
112
|
+
* @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode</i>
|
|
113
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
88
114
|
* @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, code, amount</i>
|
|
89
115
|
* @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: transactions<i>
|
|
116
|
+
* @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode</i>
|
|
90
117
|
* @param {*} [options] Override http request option.
|
|
91
118
|
* @throws {RequiredError}
|
|
92
119
|
*/
|
|
93
|
-
listPayments(authorization?: string, filter?: string,
|
|
120
|
+
listPayments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponseClass>>;
|
|
94
121
|
};
|
|
95
122
|
/**
|
|
96
123
|
* PaymentsApi - factory interface
|
|
@@ -107,6 +134,16 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
|
|
|
107
134
|
* @throws {RequiredError}
|
|
108
135
|
*/
|
|
109
136
|
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass>;
|
|
137
|
+
/**
|
|
138
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
139
|
+
* @summary Create the payment
|
|
140
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
141
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
142
|
+
* @param {string} [authorization] Bearer Token
|
|
143
|
+
* @param {*} [options] Override http request option.
|
|
144
|
+
* @throws {RequiredError}
|
|
145
|
+
*/
|
|
146
|
+
createPaymentOrder(idempotencyKey: string, createPaymentOrderDto: CreatePaymentOrderDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass>;
|
|
110
147
|
/**
|
|
111
148
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
112
149
|
* @summary Retrieve the payment
|
|
@@ -121,14 +158,17 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
|
|
|
121
158
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
|
|
122
159
|
* @summary List payments
|
|
123
160
|
* @param {string} [authorization] Bearer Token
|
|
124
|
-
* @param {
|
|
125
|
-
* @param {string} [
|
|
161
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
162
|
+
* @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.
|
|
163
|
+
* @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode</i>
|
|
164
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
126
165
|
* @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, code, amount</i>
|
|
127
166
|
* @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: transactions<i>
|
|
167
|
+
* @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode</i>
|
|
128
168
|
* @param {*} [options] Override http request option.
|
|
129
169
|
* @throws {RequiredError}
|
|
130
170
|
*/
|
|
131
|
-
listPayments(authorization?: string, filter?: string,
|
|
171
|
+
listPayments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPaymentsResponseClass>;
|
|
132
172
|
};
|
|
133
173
|
/**
|
|
134
174
|
* Request parameters for createPayment operation in PaymentsApi.
|
|
@@ -155,6 +195,31 @@ export interface PaymentsApiCreatePaymentRequest {
|
|
|
155
195
|
*/
|
|
156
196
|
readonly authorization?: string;
|
|
157
197
|
}
|
|
198
|
+
/**
|
|
199
|
+
* Request parameters for createPaymentOrder operation in PaymentsApi.
|
|
200
|
+
* @export
|
|
201
|
+
* @interface PaymentsApiCreatePaymentOrderRequest
|
|
202
|
+
*/
|
|
203
|
+
export interface PaymentsApiCreatePaymentOrderRequest {
|
|
204
|
+
/**
|
|
205
|
+
* Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
206
|
+
* @type {string}
|
|
207
|
+
* @memberof PaymentsApiCreatePaymentOrder
|
|
208
|
+
*/
|
|
209
|
+
readonly idempotencyKey: string;
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @type {CreatePaymentOrderDto}
|
|
213
|
+
* @memberof PaymentsApiCreatePaymentOrder
|
|
214
|
+
*/
|
|
215
|
+
readonly createPaymentOrderDto: CreatePaymentOrderDto;
|
|
216
|
+
/**
|
|
217
|
+
* Bearer Token
|
|
218
|
+
* @type {string}
|
|
219
|
+
* @memberof PaymentsApiCreatePaymentOrder
|
|
220
|
+
*/
|
|
221
|
+
readonly authorization?: string;
|
|
222
|
+
}
|
|
158
223
|
/**
|
|
159
224
|
* Request parameters for getPayment operation in PaymentsApi.
|
|
160
225
|
* @export
|
|
@@ -193,17 +258,29 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
193
258
|
*/
|
|
194
259
|
readonly authorization?: string;
|
|
195
260
|
/**
|
|
196
|
-
*
|
|
261
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
262
|
+
* @type {number}
|
|
263
|
+
* @memberof PaymentsApiListPayments
|
|
264
|
+
*/
|
|
265
|
+
readonly pageSize?: number;
|
|
266
|
+
/**
|
|
267
|
+
* 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.
|
|
268
|
+
* @type {string}
|
|
269
|
+
* @memberof PaymentsApiListPayments
|
|
270
|
+
*/
|
|
271
|
+
readonly pageToken?: string;
|
|
272
|
+
/**
|
|
273
|
+
* 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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode</i>
|
|
197
274
|
* @type {string}
|
|
198
275
|
* @memberof PaymentsApiListPayments
|
|
199
276
|
*/
|
|
200
277
|
readonly filter?: string;
|
|
201
278
|
/**
|
|
202
|
-
*
|
|
279
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
203
280
|
* @type {string}
|
|
204
281
|
* @memberof PaymentsApiListPayments
|
|
205
282
|
*/
|
|
206
|
-
readonly
|
|
283
|
+
readonly search?: string;
|
|
207
284
|
/**
|
|
208
285
|
* 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, code, amount</i>
|
|
209
286
|
* @type {string}
|
|
@@ -216,6 +293,12 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
216
293
|
* @memberof PaymentsApiListPayments
|
|
217
294
|
*/
|
|
218
295
|
readonly expand?: string;
|
|
296
|
+
/**
|
|
297
|
+
* 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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode</i>
|
|
298
|
+
* @type {string}
|
|
299
|
+
* @memberof PaymentsApiListPayments
|
|
300
|
+
*/
|
|
301
|
+
readonly filters?: string;
|
|
219
302
|
}
|
|
220
303
|
/**
|
|
221
304
|
* PaymentsApi - object-oriented interface
|
|
@@ -233,6 +316,15 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
233
316
|
* @memberof PaymentsApi
|
|
234
317
|
*/
|
|
235
318
|
createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponseClass, any>>;
|
|
319
|
+
/**
|
|
320
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
321
|
+
* @summary Create the payment
|
|
322
|
+
* @param {PaymentsApiCreatePaymentOrderRequest} requestParameters Request parameters.
|
|
323
|
+
* @param {*} [options] Override http request option.
|
|
324
|
+
* @throws {RequiredError}
|
|
325
|
+
* @memberof PaymentsApi
|
|
326
|
+
*/
|
|
327
|
+
createPaymentOrder(requestParameters: PaymentsApiCreatePaymentOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponseClass, any>>;
|
|
236
328
|
/**
|
|
237
329
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
238
330
|
* @summary Retrieve the payment
|