@emilgroup/payment-sdk 1.4.1-beta.38 → 1.4.1-beta.39
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 +0 -51
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +24 -74
- package/api/bank-transaction-api.ts +26 -64
- package/api/payment-methods-api.ts +30 -80
- package/api/payment-reminders-api.ts +20 -70
- package/api/payment-setup-api.ts +28 -36
- package/api/payments-api.ts +18 -66
- package/api/refunds-api.ts +22 -56
- package/api/tenant-bank-account-api.ts +18 -46
- package/dist/api/bank-accounts-api.d.ts +25 -56
- package/dist/api/bank-accounts-api.js +11 -29
- package/dist/api/bank-transaction-api.d.ts +24 -47
- package/dist/api/bank-transaction-api.js +12 -24
- package/dist/api/payment-methods-api.d.ts +22 -53
- package/dist/api/payment-methods-api.js +23 -41
- package/dist/api/payment-reminders-api.d.ts +19 -50
- package/dist/api/payment-reminders-api.js +11 -29
- package/dist/api/payment-setup-api.d.ts +18 -22
- package/dist/api/payment-setup-api.js +24 -24
- package/dist/api/payments-api.d.ts +16 -46
- package/dist/api/payments-api.js +11 -29
- package/dist/api/refunds-api.d.ts +18 -39
- package/dist/api/refunds-api.js +12 -24
- package/dist/api/tenant-bank-account-api.d.ts +11 -29
- package/dist/api/tenant-bank-account-api.js +12 -24
- package/dist/models/bank-transaction-class-without-expand-properties.d.ts +12 -0
- package/dist/models/create-bank-account-request-dto.d.ts +2 -2
- package/dist/models/create-payment-request-dto.d.ts +3 -3
- package/dist/models/index.d.ts +0 -51
- package/dist/models/index.js +0 -51
- package/dist/models/tenant-bank-account-class-without-expand-properties.d.ts +12 -0
- package/dist/models/tenant-bank-account-class.d.ts +12 -0
- package/dist/models/validate-pspconfig-request-dto.d.ts +1 -8
- package/dist/models/validate-pspconfig-request-dto.js +0 -7
- package/models/bank-transaction-class-without-expand-properties.ts +12 -0
- package/models/create-bank-account-request-dto.ts +2 -2
- package/models/create-payment-request-dto.ts +3 -3
- package/models/index.ts +0 -51
- package/models/tenant-bank-account-class-without-expand-properties.ts +12 -0
- package/models/tenant-bank-account-class.ts +12 -0
- package/models/validate-pspconfig-request-dto.ts +1 -11
- package/package.json +1 -1
- package/dist/models/bank-account-class-without-expand-properties.d.ts +0 -72
- package/dist/models/bank-account-class-without-expand-properties.js +0 -15
- package/dist/models/bank-account-class.d.ts +0 -79
- package/dist/models/bank-account-class.js +0 -15
- package/dist/models/bank-transaction-class.d.ts +0 -128
- package/dist/models/bank-transaction-class.js +0 -15
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-dto.js +0 -15
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- package/dist/models/billing-profile-limited-response-dto.js +0 -15
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- package/dist/models/complete-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
- package/dist/models/complete-payment-setup-response-class.js +0 -15
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/create-bank-account-response-class.d.ts +0 -25
- package/dist/models/create-bank-account-response-class.js +0 -15
- package/dist/models/create-payment-method-response-class.d.ts +0 -25
- package/dist/models/create-payment-method-response-class.js +0 -15
- package/dist/models/create-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/create-payment-reminder-response-class.js +0 -15
- package/dist/models/create-payment-response-class.d.ts +0 -25
- package/dist/models/create-payment-response-class.js +0 -15
- package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
- package/dist/models/create-psp-payment-method-request-dto.js +0 -32
- package/dist/models/create-refund-response-class.d.ts +0 -25
- package/dist/models/create-refund-response-class.js +0 -15
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
- package/dist/models/deactivated-payment-reminder-class.d.ts +0 -90
- package/dist/models/deactivated-payment-reminder-class.js +0 -15
- package/dist/models/get-bank-account-response-class.d.ts +0 -25
- package/dist/models/get-bank-account-response-class.js +0 -15
- package/dist/models/get-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/get-bank-transactions-response-class.js +0 -15
- package/dist/models/get-payment-method-response-class.d.ts +0 -25
- package/dist/models/get-payment-method-response-class.js +0 -15
- package/dist/models/get-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/get-payment-reminder-response-class.js +0 -15
- package/dist/models/get-payment-response-class.d.ts +0 -25
- package/dist/models/get-payment-response-class.js +0 -15
- package/dist/models/get-refund-response-class.d.ts +0 -25
- package/dist/models/get-refund-response-class.js +0 -15
- package/dist/models/import-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/import-bank-transactions-response-class.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -50
- package/dist/models/initiate-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/link-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/link-bank-transactions-response-class.js +0 -15
- package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
- package/dist/models/list-bank-accounts-response-class.js +0 -15
- package/dist/models/list-bank-transactions-response-class.d.ts +0 -31
- package/dist/models/list-bank-transactions-response-class.js +0 -15
- package/dist/models/list-payment-methods-response-class.d.ts +0 -31
- package/dist/models/list-payment-methods-response-class.js +0 -15
- package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
- package/dist/models/list-payment-reminders-response-class.js +0 -15
- package/dist/models/list-payments-response-class.d.ts +0 -31
- package/dist/models/list-payments-response-class.js +0 -15
- package/dist/models/list-refunds-response-class.d.ts +0 -31
- package/dist/models/list-refunds-response-class.js +0 -15
- package/dist/models/payment-class-without-expand-properties.d.ts +0 -102
- package/dist/models/payment-class-without-expand-properties.js +0 -15
- package/dist/models/payment-class.d.ts +0 -109
- package/dist/models/payment-class.js +0 -15
- package/dist/models/payment-method-class.d.ts +0 -66
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -90
- package/dist/models/payment-reminder-class.js +0 -15
- package/dist/models/primary-bank-account-response-class.d.ts +0 -42
- package/dist/models/primary-bank-account-response-class.js +0 -15
- package/dist/models/refund-class-without-expand-properties.d.ts +0 -99
- package/dist/models/refund-class-without-expand-properties.js +0 -29
- package/dist/models/refund-class.d.ts +0 -106
- package/dist/models/refund-class.js +0 -29
- package/dist/models/refund-item-class.d.ts +0 -102
- package/dist/models/refund-item-class.js +0 -15
- package/dist/models/sepa-direct-dto.d.ts +0 -24
- package/dist/models/sepa-direct-dto.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- package/dist/models/transaction-class.d.ts +0 -54
- package/dist/models/transaction-class.js +0 -15
- package/dist/models/unlink-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/unlink-bank-transactions-response-class.js +0 -15
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +0 -96
- package/dist/models/unlinked-bank-transaction-response-class.js +0 -15
- package/dist/models/update-bank-account-response-class.d.ts +0 -25
- package/dist/models/update-bank-account-response-class.js +0 -15
- package/models/bank-account-class-without-expand-properties.ts +0 -78
- package/models/bank-account-class.ts +0 -85
- package/models/bank-transaction-class.ts +0 -134
- package/models/billing-profile-dto.ts +0 -44
- package/models/billing-profile-limited-response-dto.ts +0 -60
- package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
- package/models/complete-payment-setup-request-dto.ts +0 -38
- package/models/complete-payment-setup-response-class.ts +0 -31
- package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
- package/models/create-bank-account-response-class.ts +0 -31
- package/models/create-payment-method-response-class.ts +0 -31
- package/models/create-payment-reminder-response-class.ts +0 -31
- package/models/create-payment-response-class.ts +0 -31
- package/models/create-psp-payment-method-request-dto.ts +0 -70
- package/models/create-refund-response-class.ts +0 -31
- package/models/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/deactivated-payment-reminder-class.ts +0 -96
- package/models/get-bank-account-response-class.ts +0 -31
- package/models/get-bank-transactions-response-class.ts +0 -31
- package/models/get-payment-method-response-class.ts +0 -31
- package/models/get-payment-reminder-response-class.ts +0 -31
- package/models/get-payment-response-class.ts +0 -31
- package/models/get-refund-response-class.ts +0 -31
- package/models/import-bank-transactions-response-class.ts +0 -31
- package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
- package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
- package/models/initiate-payment-setup-request-dto.ts +0 -56
- package/models/initiate-payment-setup-response-class.ts +0 -38
- package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
- package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
- package/models/link-bank-transactions-response-class.ts +0 -31
- package/models/list-bank-accounts-response-class.ts +0 -37
- package/models/list-bank-transactions-response-class.ts +0 -37
- package/models/list-payment-methods-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/list-payments-response-class.ts +0 -37
- package/models/list-refunds-response-class.ts +0 -37
- package/models/payment-class-without-expand-properties.ts +0 -108
- package/models/payment-class.ts +0 -115
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -96
- package/models/primary-bank-account-response-class.ts +0 -48
- package/models/refund-class-without-expand-properties.ts +0 -109
- package/models/refund-class.ts +0 -116
- package/models/refund-item-class.ts +0 -108
- package/models/sepa-direct-dto.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
- package/models/transaction-class.ts +0 -60
- package/models/unlink-bank-transactions-response-class.ts +0 -31
- package/models/unlinked-bank-transaction-response-class.ts +0 -102
- package/models/update-bank-account-response-class.ts +0 -31
|
@@ -95,20 +95,20 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
95
95
|
/**
|
|
96
96
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
97
97
|
* @summary Create the payment method
|
|
98
|
-
* @param {
|
|
98
|
+
* @param {object} body
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
100
100
|
* @param {*} [options] Override http request option.
|
|
101
101
|
* @throws {RequiredError}
|
|
102
102
|
*/
|
|
103
|
-
createPaymentMethod: function (
|
|
103
|
+
createPaymentMethod: function (body, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
106
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
107
|
return __generator(this, function (_a) {
|
|
108
108
|
switch (_a.label) {
|
|
109
109
|
case 0:
|
|
110
|
-
// verify required parameter '
|
|
111
|
-
(0, common_1.assertParamExists)('createPaymentMethod', '
|
|
110
|
+
// verify required parameter 'body' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('createPaymentMethod', 'body', body);
|
|
112
112
|
localVarPath = "/paymentservice/v1/payment-methods";
|
|
113
113
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
114
|
if (configuration) {
|
|
@@ -132,7 +132,7 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
132
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
133
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
134
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
135
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
135
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
136
136
|
return [2 /*return*/, {
|
|
137
137
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
138
138
|
options: localVarRequestOptions,
|
|
@@ -193,17 +193,14 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
193
193
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
194
194
|
* @summary List payment methods
|
|
195
195
|
* @param {string} [authorization] Bearer Token
|
|
196
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
197
|
-
* @param {any} [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.
|
|
198
196
|
* @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</i>
|
|
199
|
-
* @param {
|
|
197
|
+
* @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</i>
|
|
200
198
|
* @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</i>
|
|
201
199
|
* @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: <i>
|
|
202
|
-
* @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</i>
|
|
203
200
|
* @param {*} [options] Override http request option.
|
|
204
201
|
* @throws {RequiredError}
|
|
205
202
|
*/
|
|
206
|
-
listPaymentMethods: function (authorization,
|
|
203
|
+
listPaymentMethods: function (authorization, filter, filters, order, expand, options) {
|
|
207
204
|
if (options === void 0) { options = {}; }
|
|
208
205
|
return __awaiter(_this, void 0, void 0, function () {
|
|
209
206
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -226,17 +223,11 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
226
223
|
// authentication bearer required
|
|
227
224
|
// http bearer authentication required
|
|
228
225
|
_a.sent();
|
|
229
|
-
if (pageSize !== undefined) {
|
|
230
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
231
|
-
}
|
|
232
|
-
if (pageToken !== undefined) {
|
|
233
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
234
|
-
}
|
|
235
226
|
if (filter !== undefined) {
|
|
236
227
|
localVarQueryParameter['filter'] = filter;
|
|
237
228
|
}
|
|
238
|
-
if (
|
|
239
|
-
localVarQueryParameter['
|
|
229
|
+
if (filters !== undefined) {
|
|
230
|
+
localVarQueryParameter['filters'] = filters;
|
|
240
231
|
}
|
|
241
232
|
if (order !== undefined) {
|
|
242
233
|
localVarQueryParameter['order'] = order;
|
|
@@ -244,9 +235,6 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
244
235
|
if (expand !== undefined) {
|
|
245
236
|
localVarQueryParameter['expand'] = expand;
|
|
246
237
|
}
|
|
247
|
-
if (filters !== undefined) {
|
|
248
|
-
localVarQueryParameter['filters'] = filters;
|
|
249
|
-
}
|
|
250
238
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
251
239
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
252
240
|
}
|
|
@@ -274,17 +262,17 @@ var PaymentMethodsApiFp = function (configuration) {
|
|
|
274
262
|
/**
|
|
275
263
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
276
264
|
* @summary Create the payment method
|
|
277
|
-
* @param {
|
|
265
|
+
* @param {object} body
|
|
278
266
|
* @param {string} [authorization] Bearer Token
|
|
279
267
|
* @param {*} [options] Override http request option.
|
|
280
268
|
* @throws {RequiredError}
|
|
281
269
|
*/
|
|
282
|
-
createPaymentMethod: function (
|
|
270
|
+
createPaymentMethod: function (body, authorization, options) {
|
|
283
271
|
return __awaiter(this, void 0, void 0, function () {
|
|
284
272
|
var localVarAxiosArgs;
|
|
285
273
|
return __generator(this, function (_a) {
|
|
286
274
|
switch (_a.label) {
|
|
287
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPaymentMethod(
|
|
275
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPaymentMethod(body, authorization, options)];
|
|
288
276
|
case 1:
|
|
289
277
|
localVarAxiosArgs = _a.sent();
|
|
290
278
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -317,22 +305,19 @@ var PaymentMethodsApiFp = function (configuration) {
|
|
|
317
305
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
318
306
|
* @summary List payment methods
|
|
319
307
|
* @param {string} [authorization] Bearer Token
|
|
320
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
321
|
-
* @param {any} [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.
|
|
322
308
|
* @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</i>
|
|
323
|
-
* @param {
|
|
309
|
+
* @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</i>
|
|
324
310
|
* @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</i>
|
|
325
311
|
* @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: <i>
|
|
326
|
-
* @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</i>
|
|
327
312
|
* @param {*} [options] Override http request option.
|
|
328
313
|
* @throws {RequiredError}
|
|
329
314
|
*/
|
|
330
|
-
listPaymentMethods: function (authorization,
|
|
315
|
+
listPaymentMethods: function (authorization, filter, filters, order, expand, options) {
|
|
331
316
|
return __awaiter(this, void 0, void 0, function () {
|
|
332
317
|
var localVarAxiosArgs;
|
|
333
318
|
return __generator(this, function (_a) {
|
|
334
319
|
switch (_a.label) {
|
|
335
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPaymentMethods(authorization,
|
|
320
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPaymentMethods(authorization, filter, filters, order, expand, options)];
|
|
336
321
|
case 1:
|
|
337
322
|
localVarAxiosArgs = _a.sent();
|
|
338
323
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -353,13 +338,13 @@ var PaymentMethodsApiFactory = function (configuration, basePath, axios) {
|
|
|
353
338
|
/**
|
|
354
339
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
355
340
|
* @summary Create the payment method
|
|
356
|
-
* @param {
|
|
341
|
+
* @param {object} body
|
|
357
342
|
* @param {string} [authorization] Bearer Token
|
|
358
343
|
* @param {*} [options] Override http request option.
|
|
359
344
|
* @throws {RequiredError}
|
|
360
345
|
*/
|
|
361
|
-
createPaymentMethod: function (
|
|
362
|
-
return localVarFp.createPaymentMethod(
|
|
346
|
+
createPaymentMethod: function (body, authorization, options) {
|
|
347
|
+
return localVarFp.createPaymentMethod(body, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
363
348
|
},
|
|
364
349
|
/**
|
|
365
350
|
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
|
|
@@ -376,18 +361,15 @@ var PaymentMethodsApiFactory = function (configuration, basePath, axios) {
|
|
|
376
361
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
377
362
|
* @summary List payment methods
|
|
378
363
|
* @param {string} [authorization] Bearer Token
|
|
379
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
380
|
-
* @param {any} [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.
|
|
381
364
|
* @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</i>
|
|
382
|
-
* @param {
|
|
365
|
+
* @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</i>
|
|
383
366
|
* @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</i>
|
|
384
367
|
* @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: <i>
|
|
385
|
-
* @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</i>
|
|
386
368
|
* @param {*} [options] Override http request option.
|
|
387
369
|
* @throws {RequiredError}
|
|
388
370
|
*/
|
|
389
|
-
listPaymentMethods: function (authorization,
|
|
390
|
-
return localVarFp.listPaymentMethods(authorization,
|
|
371
|
+
listPaymentMethods: function (authorization, filter, filters, order, expand, options) {
|
|
372
|
+
return localVarFp.listPaymentMethods(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
391
373
|
},
|
|
392
374
|
};
|
|
393
375
|
};
|
|
@@ -413,7 +395,7 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
413
395
|
*/
|
|
414
396
|
PaymentMethodsApi.prototype.createPaymentMethod = function (requestParameters, options) {
|
|
415
397
|
var _this = this;
|
|
416
|
-
return (0, exports.PaymentMethodsApiFp)(this.configuration).createPaymentMethod(requestParameters.
|
|
398
|
+
return (0, exports.PaymentMethodsApiFp)(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
417
399
|
};
|
|
418
400
|
/**
|
|
419
401
|
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
|
|
@@ -438,7 +420,7 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
438
420
|
PaymentMethodsApi.prototype.listPaymentMethods = function (requestParameters, options) {
|
|
439
421
|
var _this = this;
|
|
440
422
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
441
|
-
return (0, exports.PaymentMethodsApiFp)(this.configuration).listPaymentMethods(requestParameters.authorization, requestParameters.
|
|
423
|
+
return (0, exports.PaymentMethodsApiFp)(this.configuration).listPaymentMethods(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
442
424
|
};
|
|
443
425
|
return PaymentMethodsApi;
|
|
444
426
|
}(base_1.BaseAPI));
|
|
@@ -13,11 +13,7 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreatePaymentReminderRequestDto } from '../models';
|
|
16
|
-
import { CreatePaymentReminderResponseClass } from '../models';
|
|
17
16
|
import { DeactivatePaymentReminderRequestDto } from '../models';
|
|
18
|
-
import { DeactivatePaymentReminderResponseClass } from '../models';
|
|
19
|
-
import { GetPaymentReminderResponseClass } from '../models';
|
|
20
|
-
import { ListPaymentRemindersResponseClass } from '../models';
|
|
21
17
|
/**
|
|
22
18
|
* PaymentRemindersApi - axios parameter creator
|
|
23
19
|
* @export
|
|
@@ -55,17 +51,14 @@ export declare const PaymentRemindersApiAxiosParamCreator: (configuration?: Conf
|
|
|
55
51
|
* 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.
|
|
56
52
|
* @summary List payment reminders
|
|
57
53
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
58
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
59
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
60
54
|
* @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>
|
|
61
|
-
* @param {
|
|
55
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
62
56
|
* @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>
|
|
63
57
|
* @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: <i>
|
|
64
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
65
58
|
* @param {*} [options] Override http request option.
|
|
66
59
|
* @throws {RequiredError}
|
|
67
60
|
*/
|
|
68
|
-
listPaymentReminders: (authorization?: string,
|
|
61
|
+
listPaymentReminders: (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
69
62
|
};
|
|
70
63
|
/**
|
|
71
64
|
* PaymentRemindersApi - functional programming interface
|
|
@@ -80,7 +73,7 @@ export declare const PaymentRemindersApiFp: (configuration?: Configuration) => {
|
|
|
80
73
|
* @param {*} [options] Override http request option.
|
|
81
74
|
* @throws {RequiredError}
|
|
82
75
|
*/
|
|
83
|
-
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
76
|
+
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
84
77
|
/**
|
|
85
78
|
* This will deactivate the payment reminder
|
|
86
79
|
* @summary Deactivate payment reminder
|
|
@@ -90,7 +83,7 @@ export declare const PaymentRemindersApiFp: (configuration?: Configuration) => {
|
|
|
90
83
|
* @param {*} [options] Override http request option.
|
|
91
84
|
* @throws {RequiredError}
|
|
92
85
|
*/
|
|
93
|
-
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
86
|
+
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
94
87
|
/**
|
|
95
88
|
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
|
|
96
89
|
* @summary Retrieve the payment reminder
|
|
@@ -99,22 +92,19 @@ export declare const PaymentRemindersApiFp: (configuration?: Configuration) => {
|
|
|
99
92
|
* @param {*} [options] Override http request option.
|
|
100
93
|
* @throws {RequiredError}
|
|
101
94
|
*/
|
|
102
|
-
getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
95
|
+
getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
103
96
|
/**
|
|
104
97
|
* 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.
|
|
105
98
|
* @summary List payment reminders
|
|
106
99
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
107
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
108
|
-
* @param {any} [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.
|
|
109
100
|
* @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>
|
|
110
|
-
* @param {
|
|
101
|
+
* @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>
|
|
111
102
|
* @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>
|
|
112
103
|
* @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: <i>
|
|
113
|
-
* @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>
|
|
114
104
|
* @param {*} [options] Override http request option.
|
|
115
105
|
* @throws {RequiredError}
|
|
116
106
|
*/
|
|
117
|
-
listPaymentReminders(authorization?: string,
|
|
107
|
+
listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
118
108
|
};
|
|
119
109
|
/**
|
|
120
110
|
* PaymentRemindersApi - factory interface
|
|
@@ -129,7 +119,7 @@ export declare const PaymentRemindersApiFactory: (configuration?: Configuration,
|
|
|
129
119
|
* @param {*} [options] Override http request option.
|
|
130
120
|
* @throws {RequiredError}
|
|
131
121
|
*/
|
|
132
|
-
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
122
|
+
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
133
123
|
/**
|
|
134
124
|
* This will deactivate the payment reminder
|
|
135
125
|
* @summary Deactivate payment reminder
|
|
@@ -139,7 +129,7 @@ export declare const PaymentRemindersApiFactory: (configuration?: Configuration,
|
|
|
139
129
|
* @param {*} [options] Override http request option.
|
|
140
130
|
* @throws {RequiredError}
|
|
141
131
|
*/
|
|
142
|
-
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
132
|
+
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
143
133
|
/**
|
|
144
134
|
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
|
|
145
135
|
* @summary Retrieve the payment reminder
|
|
@@ -148,22 +138,19 @@ export declare const PaymentRemindersApiFactory: (configuration?: Configuration,
|
|
|
148
138
|
* @param {*} [options] Override http request option.
|
|
149
139
|
* @throws {RequiredError}
|
|
150
140
|
*/
|
|
151
|
-
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
141
|
+
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
152
142
|
/**
|
|
153
143
|
* 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.
|
|
154
144
|
* @summary List payment reminders
|
|
155
145
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
156
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
157
|
-
* @param {any} [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.
|
|
158
146
|
* @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>
|
|
159
|
-
* @param {
|
|
147
|
+
* @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>
|
|
160
148
|
* @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>
|
|
161
149
|
* @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: <i>
|
|
162
|
-
* @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>
|
|
163
150
|
* @param {*} [options] Override http request option.
|
|
164
151
|
* @throws {RequiredError}
|
|
165
152
|
*/
|
|
166
|
-
listPaymentReminders(authorization?: string,
|
|
153
|
+
listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<void>;
|
|
167
154
|
};
|
|
168
155
|
/**
|
|
169
156
|
* Request parameters for createPaymentReminder operation in PaymentRemindersApi.
|
|
@@ -240,18 +227,6 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
240
227
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
241
228
|
*/
|
|
242
229
|
readonly authorization?: string;
|
|
243
|
-
/**
|
|
244
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
245
|
-
* @type {any}
|
|
246
|
-
* @memberof PaymentRemindersApiListPaymentReminders
|
|
247
|
-
*/
|
|
248
|
-
readonly pageSize?: any;
|
|
249
|
-
/**
|
|
250
|
-
* 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.
|
|
251
|
-
* @type {any}
|
|
252
|
-
* @memberof PaymentRemindersApiListPaymentReminders
|
|
253
|
-
*/
|
|
254
|
-
readonly pageToken?: any;
|
|
255
230
|
/**
|
|
256
231
|
* 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>
|
|
257
232
|
* @type {string}
|
|
@@ -259,11 +234,11 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
259
234
|
*/
|
|
260
235
|
readonly filter?: string;
|
|
261
236
|
/**
|
|
262
|
-
*
|
|
263
|
-
* @type {
|
|
237
|
+
* 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>
|
|
238
|
+
* @type {string}
|
|
264
239
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
265
240
|
*/
|
|
266
|
-
readonly
|
|
241
|
+
readonly filters?: string;
|
|
267
242
|
/**
|
|
268
243
|
* 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>
|
|
269
244
|
* @type {string}
|
|
@@ -276,12 +251,6 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
276
251
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
277
252
|
*/
|
|
278
253
|
readonly expand?: string;
|
|
279
|
-
/**
|
|
280
|
-
* 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>
|
|
281
|
-
* @type {string}
|
|
282
|
-
* @memberof PaymentRemindersApiListPaymentReminders
|
|
283
|
-
*/
|
|
284
|
-
readonly filters?: string;
|
|
285
254
|
}
|
|
286
255
|
/**
|
|
287
256
|
* PaymentRemindersApi - object-oriented interface
|
|
@@ -298,7 +267,7 @@ export declare class PaymentRemindersApi extends BaseAPI {
|
|
|
298
267
|
* @throws {RequiredError}
|
|
299
268
|
* @memberof PaymentRemindersApi
|
|
300
269
|
*/
|
|
301
|
-
createPaymentReminder(requestParameters: PaymentRemindersApiCreatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
270
|
+
createPaymentReminder(requestParameters: PaymentRemindersApiCreatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
302
271
|
/**
|
|
303
272
|
* This will deactivate the payment reminder
|
|
304
273
|
* @summary Deactivate payment reminder
|
|
@@ -307,7 +276,7 @@ export declare class PaymentRemindersApi extends BaseAPI {
|
|
|
307
276
|
* @throws {RequiredError}
|
|
308
277
|
* @memberof PaymentRemindersApi
|
|
309
278
|
*/
|
|
310
|
-
deactivatePaymentReminder(requestParameters: PaymentRemindersApiDeactivatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
279
|
+
deactivatePaymentReminder(requestParameters: PaymentRemindersApiDeactivatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
311
280
|
/**
|
|
312
281
|
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
|
|
313
282
|
* @summary Retrieve the payment reminder
|
|
@@ -316,7 +285,7 @@ export declare class PaymentRemindersApi extends BaseAPI {
|
|
|
316
285
|
* @throws {RequiredError}
|
|
317
286
|
* @memberof PaymentRemindersApi
|
|
318
287
|
*/
|
|
319
|
-
getPolicy(requestParameters: PaymentRemindersApiGetPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
288
|
+
getPolicy(requestParameters: PaymentRemindersApiGetPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
320
289
|
/**
|
|
321
290
|
* 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.
|
|
322
291
|
* @summary List payment reminders
|
|
@@ -325,5 +294,5 @@ export declare class PaymentRemindersApi extends BaseAPI {
|
|
|
325
294
|
* @throws {RequiredError}
|
|
326
295
|
* @memberof PaymentRemindersApi
|
|
327
296
|
*/
|
|
328
|
-
listPaymentReminders(requestParameters?: PaymentRemindersApiListPaymentRemindersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
297
|
+
listPaymentReminders(requestParameters?: PaymentRemindersApiListPaymentRemindersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
329
298
|
}
|
|
@@ -246,17 +246,14 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
|
|
|
246
246
|
* 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.
|
|
247
247
|
* @summary List payment reminders
|
|
248
248
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
249
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
250
|
-
* @param {any} [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.
|
|
251
249
|
* @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>
|
|
252
|
-
* @param {
|
|
250
|
+
* @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>
|
|
253
251
|
* @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>
|
|
254
252
|
* @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: <i>
|
|
255
|
-
* @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>
|
|
256
253
|
* @param {*} [options] Override http request option.
|
|
257
254
|
* @throws {RequiredError}
|
|
258
255
|
*/
|
|
259
|
-
listPaymentReminders: function (authorization,
|
|
256
|
+
listPaymentReminders: function (authorization, filter, filters, order, expand, options) {
|
|
260
257
|
if (options === void 0) { options = {}; }
|
|
261
258
|
return __awaiter(_this, void 0, void 0, function () {
|
|
262
259
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -279,17 +276,11 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
|
|
|
279
276
|
// authentication bearer required
|
|
280
277
|
// http bearer authentication required
|
|
281
278
|
_a.sent();
|
|
282
|
-
if (pageSize !== undefined) {
|
|
283
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
284
|
-
}
|
|
285
|
-
if (pageToken !== undefined) {
|
|
286
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
287
|
-
}
|
|
288
279
|
if (filter !== undefined) {
|
|
289
280
|
localVarQueryParameter['filter'] = filter;
|
|
290
281
|
}
|
|
291
|
-
if (
|
|
292
|
-
localVarQueryParameter['
|
|
282
|
+
if (filters !== undefined) {
|
|
283
|
+
localVarQueryParameter['filters'] = filters;
|
|
293
284
|
}
|
|
294
285
|
if (order !== undefined) {
|
|
295
286
|
localVarQueryParameter['order'] = order;
|
|
@@ -297,9 +288,6 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
|
|
|
297
288
|
if (expand !== undefined) {
|
|
298
289
|
localVarQueryParameter['expand'] = expand;
|
|
299
290
|
}
|
|
300
|
-
if (filters !== undefined) {
|
|
301
|
-
localVarQueryParameter['filters'] = filters;
|
|
302
|
-
}
|
|
303
291
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
304
292
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
305
293
|
}
|
|
@@ -392,22 +380,19 @@ var PaymentRemindersApiFp = function (configuration) {
|
|
|
392
380
|
* 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.
|
|
393
381
|
* @summary List payment reminders
|
|
394
382
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
395
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
396
|
-
* @param {any} [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.
|
|
397
383
|
* @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>
|
|
398
|
-
* @param {
|
|
384
|
+
* @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>
|
|
399
385
|
* @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>
|
|
400
386
|
* @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: <i>
|
|
401
|
-
* @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>
|
|
402
387
|
* @param {*} [options] Override http request option.
|
|
403
388
|
* @throws {RequiredError}
|
|
404
389
|
*/
|
|
405
|
-
listPaymentReminders: function (authorization,
|
|
390
|
+
listPaymentReminders: function (authorization, filter, filters, order, expand, options) {
|
|
406
391
|
return __awaiter(this, void 0, void 0, function () {
|
|
407
392
|
var localVarAxiosArgs;
|
|
408
393
|
return __generator(this, function (_a) {
|
|
409
394
|
switch (_a.label) {
|
|
410
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPaymentReminders(authorization,
|
|
395
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPaymentReminders(authorization, filter, filters, order, expand, options)];
|
|
411
396
|
case 1:
|
|
412
397
|
localVarAxiosArgs = _a.sent();
|
|
413
398
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -463,18 +448,15 @@ var PaymentRemindersApiFactory = function (configuration, basePath, axios) {
|
|
|
463
448
|
* 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.
|
|
464
449
|
* @summary List payment reminders
|
|
465
450
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
466
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
467
|
-
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
468
451
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
469
|
-
* @param {
|
|
452
|
+
* @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>
|
|
470
453
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt</i>
|
|
471
454
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
|
|
472
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
473
455
|
* @param {*} [options] Override http request option.
|
|
474
456
|
* @throws {RequiredError}
|
|
475
457
|
*/
|
|
476
|
-
listPaymentReminders: function (authorization,
|
|
477
|
-
return localVarFp.listPaymentReminders(authorization,
|
|
458
|
+
listPaymentReminders: function (authorization, filter, filters, order, expand, options) {
|
|
459
|
+
return localVarFp.listPaymentReminders(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
478
460
|
},
|
|
479
461
|
};
|
|
480
462
|
};
|
|
@@ -537,7 +519,7 @@ var PaymentRemindersApi = /** @class */ (function (_super) {
|
|
|
537
519
|
PaymentRemindersApi.prototype.listPaymentReminders = function (requestParameters, options) {
|
|
538
520
|
var _this = this;
|
|
539
521
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
540
|
-
return (0, exports.PaymentRemindersApiFp)(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.
|
|
522
|
+
return (0, exports.PaymentRemindersApiFp)(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
541
523
|
};
|
|
542
524
|
return PaymentRemindersApi;
|
|
543
525
|
}(base_1.BaseAPI));
|