@emilgroup/payment-sdk-node 1.13.1-beta.13 → 1.13.1-beta.17
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 +5 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +346 -22
- package/api/bank-transaction-api.ts +12 -12
- package/api/payment-methods-api.ts +38 -145
- package/api/payment-reminders-api.ts +12 -12
- package/api/payments-api.ts +42 -45
- package/api/refunds-api.ts +4 -4
- package/api/tenant-bank-account-api.ts +20 -20
- package/dist/api/bank-accounts-api.d.ts +193 -16
- package/dist/api/bank-accounts-api.js +302 -19
- package/dist/api/bank-transaction-api.d.ts +12 -12
- package/dist/api/bank-transaction-api.js +11 -11
- package/dist/api/payment-methods-api.d.ts +29 -84
- package/dist/api/payment-methods-api.js +33 -129
- package/dist/api/payment-reminders-api.d.ts +12 -12
- package/dist/api/payment-reminders-api.js +11 -11
- package/dist/api/payments-api.d.ts +33 -33
- package/dist/api/payments-api.js +37 -39
- package/dist/api/refunds-api.d.ts +4 -4
- package/dist/api/refunds-api.js +3 -3
- package/dist/api/tenant-bank-account-api.d.ts +20 -20
- package/dist/api/tenant-bank-account-api.js +14 -14
- package/dist/models/bank-account-class.d.ts +67 -0
- package/dist/models/bank-account-class.js +15 -0
- package/dist/models/create-bank-account-request-dto.d.ts +30 -0
- package/dist/models/create-bank-account-request-dto.js +15 -0
- package/dist/models/get-bank-account-response-class.d.ts +25 -0
- package/dist/models/get-bank-account-response-class.js +15 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/primary-bank-account-response-class.d.ts +42 -0
- package/dist/models/primary-bank-account-response-class.js +15 -0
- package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +24 -0
- package/dist/models/set-primary-bank-account-request-dto-rest.js +15 -0
- package/models/bank-account-class.ts +73 -0
- package/models/create-bank-account-request-dto.ts +36 -0
- package/models/get-bank-account-response-class.ts +31 -0
- package/models/index.ts +5 -0
- package/models/primary-bank-account-response-class.ts +48 -0
- package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
- package/package.json +1 -1
|
@@ -20,7 +20,7 @@ import { CreatePaymentRequestDto } from '../models';
|
|
|
20
20
|
export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
21
|
/**
|
|
22
22
|
* Creates a payment for a specified account. This function is idempotent.
|
|
23
|
-
* @summary Create
|
|
23
|
+
* @summary Create the payment
|
|
24
24
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
25
25
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
26
26
|
* @param {string} [authorization] Bearer Token
|
|
@@ -29,24 +29,24 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
29
29
|
*/
|
|
30
30
|
createPayment: (idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
31
|
/**
|
|
32
|
-
* Retrieves the details of
|
|
33
|
-
* @summary Retrieve
|
|
34
|
-
* @param {string} code
|
|
32
|
+
* 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.
|
|
33
|
+
* @summary Retrieve the payment
|
|
34
|
+
* @param {string} code
|
|
35
|
+
* @param {string} code2 Unique identifier for the object.
|
|
35
36
|
* @param {string} expand Fields to expand response by
|
|
36
|
-
* @param {string} expand2 Fields to expand response by
|
|
37
37
|
* @param {string} [authorization] Bearer Token
|
|
38
38
|
* @param {*} [options] Override http request option.
|
|
39
39
|
* @throws {RequiredError}
|
|
40
40
|
*/
|
|
41
|
-
getPayment: (code: string,
|
|
41
|
+
getPayment: (code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
42
|
/**
|
|
43
|
-
* Returns a list of payments you
|
|
43
|
+
* 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.
|
|
44
44
|
* @summary List payments
|
|
45
45
|
* @param {string} [authorization] Bearer Token
|
|
46
46
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
47
47
|
* @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.
|
|
48
48
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
49
|
-
* @param {any} [search]
|
|
49
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
50
50
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
51
51
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
52
52
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
@@ -62,7 +62,7 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
62
62
|
export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
63
63
|
/**
|
|
64
64
|
* Creates a payment for a specified account. This function is idempotent.
|
|
65
|
-
* @summary Create
|
|
65
|
+
* @summary Create the payment
|
|
66
66
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
67
67
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
68
68
|
* @param {string} [authorization] Bearer Token
|
|
@@ -71,24 +71,24 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
71
71
|
*/
|
|
72
72
|
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
73
73
|
/**
|
|
74
|
-
* Retrieves the details of
|
|
75
|
-
* @summary Retrieve
|
|
76
|
-
* @param {string} code
|
|
74
|
+
* 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.
|
|
75
|
+
* @summary Retrieve the payment
|
|
76
|
+
* @param {string} code
|
|
77
|
+
* @param {string} code2 Unique identifier for the object.
|
|
77
78
|
* @param {string} expand Fields to expand response by
|
|
78
|
-
* @param {string} expand2 Fields to expand response by
|
|
79
79
|
* @param {string} [authorization] Bearer Token
|
|
80
80
|
* @param {*} [options] Override http request option.
|
|
81
81
|
* @throws {RequiredError}
|
|
82
82
|
*/
|
|
83
|
-
getPayment(code: string,
|
|
83
|
+
getPayment(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
84
84
|
/**
|
|
85
|
-
* Returns a list of payments you
|
|
85
|
+
* 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.
|
|
86
86
|
* @summary List payments
|
|
87
87
|
* @param {string} [authorization] Bearer Token
|
|
88
88
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
89
89
|
* @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.
|
|
90
90
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
91
|
-
* @param {any} [search]
|
|
91
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
92
92
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
93
93
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
94
94
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
@@ -104,7 +104,7 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
104
104
|
export declare const PaymentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
105
105
|
/**
|
|
106
106
|
* Creates a payment for a specified account. This function is idempotent.
|
|
107
|
-
* @summary Create
|
|
107
|
+
* @summary Create the payment
|
|
108
108
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
109
109
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
110
110
|
* @param {string} [authorization] Bearer Token
|
|
@@ -113,24 +113,24 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
|
|
|
113
113
|
*/
|
|
114
114
|
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
115
115
|
/**
|
|
116
|
-
* Retrieves the details of
|
|
117
|
-
* @summary Retrieve
|
|
118
|
-
* @param {string} code
|
|
116
|
+
* 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.
|
|
117
|
+
* @summary Retrieve the payment
|
|
118
|
+
* @param {string} code
|
|
119
|
+
* @param {string} code2 Unique identifier for the object.
|
|
119
120
|
* @param {string} expand Fields to expand response by
|
|
120
|
-
* @param {string} expand2 Fields to expand response by
|
|
121
121
|
* @param {string} [authorization] Bearer Token
|
|
122
122
|
* @param {*} [options] Override http request option.
|
|
123
123
|
* @throws {RequiredError}
|
|
124
124
|
*/
|
|
125
|
-
getPayment(code: string,
|
|
125
|
+
getPayment(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
126
126
|
/**
|
|
127
|
-
* Returns a list of payments you
|
|
127
|
+
* 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.
|
|
128
128
|
* @summary List payments
|
|
129
129
|
* @param {string} [authorization] Bearer Token
|
|
130
130
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
131
131
|
* @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.
|
|
132
132
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
133
|
-
* @param {any} [search]
|
|
133
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
134
134
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
135
135
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
136
136
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
@@ -171,23 +171,23 @@ export interface PaymentsApiCreatePaymentRequest {
|
|
|
171
171
|
*/
|
|
172
172
|
export interface PaymentsApiGetPaymentRequest {
|
|
173
173
|
/**
|
|
174
|
-
*
|
|
174
|
+
*
|
|
175
175
|
* @type {string}
|
|
176
176
|
* @memberof PaymentsApiGetPayment
|
|
177
177
|
*/
|
|
178
178
|
readonly code: string;
|
|
179
179
|
/**
|
|
180
|
-
*
|
|
180
|
+
* Unique identifier for the object.
|
|
181
181
|
* @type {string}
|
|
182
182
|
* @memberof PaymentsApiGetPayment
|
|
183
183
|
*/
|
|
184
|
-
readonly
|
|
184
|
+
readonly code2: string;
|
|
185
185
|
/**
|
|
186
186
|
* Fields to expand response by
|
|
187
187
|
* @type {string}
|
|
188
188
|
* @memberof PaymentsApiGetPayment
|
|
189
189
|
*/
|
|
190
|
-
readonly
|
|
190
|
+
readonly expand: string;
|
|
191
191
|
/**
|
|
192
192
|
* Bearer Token
|
|
193
193
|
* @type {string}
|
|
@@ -226,7 +226,7 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
226
226
|
*/
|
|
227
227
|
readonly filter?: any;
|
|
228
228
|
/**
|
|
229
|
-
*
|
|
229
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
230
230
|
* @type {any}
|
|
231
231
|
* @memberof PaymentsApiListPayments
|
|
232
232
|
*/
|
|
@@ -259,7 +259,7 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
259
259
|
export declare class PaymentsApi extends BaseAPI {
|
|
260
260
|
/**
|
|
261
261
|
* Creates a payment for a specified account. This function is idempotent.
|
|
262
|
-
* @summary Create
|
|
262
|
+
* @summary Create the payment
|
|
263
263
|
* @param {PaymentsApiCreatePaymentRequest} requestParameters Request parameters.
|
|
264
264
|
* @param {*} [options] Override http request option.
|
|
265
265
|
* @throws {RequiredError}
|
|
@@ -267,8 +267,8 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
267
267
|
*/
|
|
268
268
|
createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
269
269
|
/**
|
|
270
|
-
* Retrieves the details of
|
|
271
|
-
* @summary Retrieve
|
|
270
|
+
* 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.
|
|
271
|
+
* @summary Retrieve the payment
|
|
272
272
|
* @param {PaymentsApiGetPaymentRequest} requestParameters Request parameters.
|
|
273
273
|
* @param {*} [options] Override http request option.
|
|
274
274
|
* @throws {RequiredError}
|
|
@@ -276,7 +276,7 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
276
276
|
*/
|
|
277
277
|
getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
278
278
|
/**
|
|
279
|
-
* Returns a list of payments you
|
|
279
|
+
* 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.
|
|
280
280
|
* @summary List payments
|
|
281
281
|
* @param {PaymentsApiListPaymentsRequest} requestParameters Request parameters.
|
|
282
282
|
* @param {*} [options] Override http request option.
|
package/dist/api/payments-api.js
CHANGED
|
@@ -98,7 +98,7 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
100
|
* Creates a payment for a specified account. This function is idempotent.
|
|
101
|
-
* @summary Create
|
|
101
|
+
* @summary Create the payment
|
|
102
102
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
103
103
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
104
104
|
* @param {string} [authorization] Bearer Token
|
|
@@ -152,16 +152,16 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
152
152
|
});
|
|
153
153
|
},
|
|
154
154
|
/**
|
|
155
|
-
* Retrieves the details of
|
|
156
|
-
* @summary Retrieve
|
|
157
|
-
* @param {string} code
|
|
155
|
+
* 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.
|
|
156
|
+
* @summary Retrieve the payment
|
|
157
|
+
* @param {string} code
|
|
158
|
+
* @param {string} code2 Unique identifier for the object.
|
|
158
159
|
* @param {string} expand Fields to expand response by
|
|
159
|
-
* @param {string} expand2 Fields to expand response by
|
|
160
160
|
* @param {string} [authorization] Bearer Token
|
|
161
161
|
* @param {*} [options] Override http request option.
|
|
162
162
|
* @throws {RequiredError}
|
|
163
163
|
*/
|
|
164
|
-
getPayment: function (code,
|
|
164
|
+
getPayment: function (code, code2, expand, authorization, options) {
|
|
165
165
|
if (options === void 0) { options = {}; }
|
|
166
166
|
return __awaiter(_this, void 0, void 0, function () {
|
|
167
167
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -170,11 +170,12 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
170
170
|
case 0:
|
|
171
171
|
// verify required parameter 'code' is not null or undefined
|
|
172
172
|
(0, common_1.assertParamExists)('getPayment', 'code', code);
|
|
173
|
+
// verify required parameter 'code2' is not null or undefined
|
|
174
|
+
(0, common_1.assertParamExists)('getPayment', 'code2', code2);
|
|
173
175
|
// verify required parameter 'expand' is not null or undefined
|
|
174
176
|
(0, common_1.assertParamExists)('getPayment', 'expand', expand);
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
localVarPath = "/paymentservice/v1/payments/{code}";
|
|
177
|
+
localVarPath = "/paymentservice/v1/payments/{code}"
|
|
178
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
178
179
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
179
180
|
if (configuration) {
|
|
180
181
|
baseOptions = configuration.baseOptions;
|
|
@@ -190,15 +191,12 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
190
191
|
// authentication bearer required
|
|
191
192
|
// http bearer authentication required
|
|
192
193
|
_a.sent();
|
|
193
|
-
if (
|
|
194
|
-
localVarQueryParameter['code'] =
|
|
194
|
+
if (code2 !== undefined) {
|
|
195
|
+
localVarQueryParameter['code'] = code2;
|
|
195
196
|
}
|
|
196
197
|
if (expand !== undefined) {
|
|
197
198
|
localVarQueryParameter['expand'] = expand;
|
|
198
199
|
}
|
|
199
|
-
if (expand2 !== undefined) {
|
|
200
|
-
localVarQueryParameter['expand'] = expand2;
|
|
201
|
-
}
|
|
202
200
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
203
201
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
204
202
|
}
|
|
@@ -214,13 +212,13 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
214
212
|
});
|
|
215
213
|
},
|
|
216
214
|
/**
|
|
217
|
-
* Returns a list of payments you
|
|
215
|
+
* 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.
|
|
218
216
|
* @summary List payments
|
|
219
217
|
* @param {string} [authorization] Bearer Token
|
|
220
218
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
221
219
|
* @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.
|
|
222
220
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
223
|
-
* @param {any} [search]
|
|
221
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
224
222
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
225
223
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
226
224
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
@@ -297,7 +295,7 @@ var PaymentsApiFp = function (configuration) {
|
|
|
297
295
|
return {
|
|
298
296
|
/**
|
|
299
297
|
* Creates a payment for a specified account. This function is idempotent.
|
|
300
|
-
* @summary Create
|
|
298
|
+
* @summary Create the payment
|
|
301
299
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
302
300
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
303
301
|
* @param {string} [authorization] Bearer Token
|
|
@@ -318,21 +316,21 @@ var PaymentsApiFp = function (configuration) {
|
|
|
318
316
|
});
|
|
319
317
|
},
|
|
320
318
|
/**
|
|
321
|
-
* Retrieves the details of
|
|
322
|
-
* @summary Retrieve
|
|
323
|
-
* @param {string} code
|
|
319
|
+
* 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.
|
|
320
|
+
* @summary Retrieve the payment
|
|
321
|
+
* @param {string} code
|
|
322
|
+
* @param {string} code2 Unique identifier for the object.
|
|
324
323
|
* @param {string} expand Fields to expand response by
|
|
325
|
-
* @param {string} expand2 Fields to expand response by
|
|
326
324
|
* @param {string} [authorization] Bearer Token
|
|
327
325
|
* @param {*} [options] Override http request option.
|
|
328
326
|
* @throws {RequiredError}
|
|
329
327
|
*/
|
|
330
|
-
getPayment: function (code,
|
|
328
|
+
getPayment: function (code, code2, expand, authorization, options) {
|
|
331
329
|
return __awaiter(this, void 0, void 0, function () {
|
|
332
330
|
var localVarAxiosArgs;
|
|
333
331
|
return __generator(this, function (_a) {
|
|
334
332
|
switch (_a.label) {
|
|
335
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPayment(code,
|
|
333
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPayment(code, code2, expand, authorization, options)];
|
|
336
334
|
case 1:
|
|
337
335
|
localVarAxiosArgs = _a.sent();
|
|
338
336
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -341,13 +339,13 @@ var PaymentsApiFp = function (configuration) {
|
|
|
341
339
|
});
|
|
342
340
|
},
|
|
343
341
|
/**
|
|
344
|
-
* Returns a list of payments you
|
|
342
|
+
* 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.
|
|
345
343
|
* @summary List payments
|
|
346
344
|
* @param {string} [authorization] Bearer Token
|
|
347
345
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
348
346
|
* @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.
|
|
349
347
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
350
|
-
* @param {any} [search]
|
|
348
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
351
349
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
352
350
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
353
351
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
@@ -379,7 +377,7 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
379
377
|
return {
|
|
380
378
|
/**
|
|
381
379
|
* Creates a payment for a specified account. This function is idempotent.
|
|
382
|
-
* @summary Create
|
|
380
|
+
* @summary Create the payment
|
|
383
381
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
384
382
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
385
383
|
* @param {string} [authorization] Bearer Token
|
|
@@ -390,26 +388,26 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
390
388
|
return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
391
389
|
},
|
|
392
390
|
/**
|
|
393
|
-
* Retrieves the details of
|
|
394
|
-
* @summary Retrieve
|
|
395
|
-
* @param {string} code
|
|
391
|
+
* 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.
|
|
392
|
+
* @summary Retrieve the payment
|
|
393
|
+
* @param {string} code
|
|
394
|
+
* @param {string} code2 Unique identifier for the object.
|
|
396
395
|
* @param {string} expand Fields to expand response by
|
|
397
|
-
* @param {string} expand2 Fields to expand response by
|
|
398
396
|
* @param {string} [authorization] Bearer Token
|
|
399
397
|
* @param {*} [options] Override http request option.
|
|
400
398
|
* @throws {RequiredError}
|
|
401
399
|
*/
|
|
402
|
-
getPayment: function (code,
|
|
403
|
-
return localVarFp.getPayment(code,
|
|
400
|
+
getPayment: function (code, code2, expand, authorization, options) {
|
|
401
|
+
return localVarFp.getPayment(code, code2, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
404
402
|
},
|
|
405
403
|
/**
|
|
406
|
-
* Returns a list of payments you
|
|
404
|
+
* 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.
|
|
407
405
|
* @summary List payments
|
|
408
406
|
* @param {string} [authorization] Bearer Token
|
|
409
407
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
410
408
|
* @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.
|
|
411
409
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
412
|
-
* @param {any} [search]
|
|
410
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
413
411
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
414
412
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
415
413
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
@@ -435,7 +433,7 @@ var PaymentsApi = /** @class */ (function (_super) {
|
|
|
435
433
|
}
|
|
436
434
|
/**
|
|
437
435
|
* Creates a payment for a specified account. This function is idempotent.
|
|
438
|
-
* @summary Create
|
|
436
|
+
* @summary Create the payment
|
|
439
437
|
* @param {PaymentsApiCreatePaymentRequest} requestParameters Request parameters.
|
|
440
438
|
* @param {*} [options] Override http request option.
|
|
441
439
|
* @throws {RequiredError}
|
|
@@ -446,8 +444,8 @@ var PaymentsApi = /** @class */ (function (_super) {
|
|
|
446
444
|
return (0, exports.PaymentsApiFp)(this.configuration).createPayment(requestParameters.idempotencyKey, requestParameters.createPaymentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
447
445
|
};
|
|
448
446
|
/**
|
|
449
|
-
* Retrieves the details of
|
|
450
|
-
* @summary Retrieve
|
|
447
|
+
* 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.
|
|
448
|
+
* @summary Retrieve the payment
|
|
451
449
|
* @param {PaymentsApiGetPaymentRequest} requestParameters Request parameters.
|
|
452
450
|
* @param {*} [options] Override http request option.
|
|
453
451
|
* @throws {RequiredError}
|
|
@@ -455,10 +453,10 @@ var PaymentsApi = /** @class */ (function (_super) {
|
|
|
455
453
|
*/
|
|
456
454
|
PaymentsApi.prototype.getPayment = function (requestParameters, options) {
|
|
457
455
|
var _this = this;
|
|
458
|
-
return (0, exports.PaymentsApiFp)(this.configuration).getPayment(requestParameters.code, requestParameters.
|
|
456
|
+
return (0, exports.PaymentsApiFp)(this.configuration).getPayment(requestParameters.code, requestParameters.code2, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
459
457
|
};
|
|
460
458
|
/**
|
|
461
|
-
* Returns a list of payments you
|
|
459
|
+
* 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.
|
|
462
460
|
* @summary List payments
|
|
463
461
|
* @param {PaymentsApiListPaymentsRequest} requestParameters Request parameters.
|
|
464
462
|
* @param {*} [options] Override http request option.
|
|
@@ -45,7 +45,7 @@ export declare const RefundsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
45
45
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
46
46
|
* @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.
|
|
47
47
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
48
|
-
* @param {any} [search]
|
|
48
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
49
49
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
50
50
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
51
51
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
@@ -83,7 +83,7 @@ export declare const RefundsApiFp: (configuration?: Configuration) => {
|
|
|
83
83
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
84
84
|
* @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.
|
|
85
85
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
86
|
-
* @param {any} [search]
|
|
86
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
87
87
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
88
88
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
89
89
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
@@ -121,7 +121,7 @@ export declare const RefundsApiFactory: (configuration?: Configuration, basePath
|
|
|
121
121
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
122
122
|
* @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.
|
|
123
123
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
124
|
-
* @param {any} [search]
|
|
124
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
125
125
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
126
126
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
127
127
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
@@ -211,7 +211,7 @@ export interface RefundsApiListRefundsRequest {
|
|
|
211
211
|
*/
|
|
212
212
|
readonly filter?: any;
|
|
213
213
|
/**
|
|
214
|
-
*
|
|
214
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
215
215
|
* @type {any}
|
|
216
216
|
* @memberof RefundsApiListRefunds
|
|
217
217
|
*/
|
package/dist/api/refunds-api.js
CHANGED
|
@@ -209,7 +209,7 @@ var RefundsApiAxiosParamCreator = function (configuration) {
|
|
|
209
209
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
210
210
|
* @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.
|
|
211
211
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
212
|
-
* @param {any} [search]
|
|
212
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
213
213
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
214
214
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
215
215
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
@@ -332,7 +332,7 @@ var RefundsApiFp = function (configuration) {
|
|
|
332
332
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
333
333
|
* @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.
|
|
334
334
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
335
|
-
* @param {any} [search]
|
|
335
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
336
336
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
337
337
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
338
338
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
@@ -390,7 +390,7 @@ var RefundsApiFactory = function (configuration, basePath, axios) {
|
|
|
390
390
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
391
391
|
* @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.
|
|
392
392
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
393
|
-
* @param {any} [search]
|
|
393
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
394
394
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
395
395
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
396
396
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|