@emilgroup/payment-sdk 1.4.1-beta.5 → 1.4.1-beta.7
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 +35 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +20 -16
- package/api/bank-transaction-api.ts +204 -2
- package/api/payment-methods-api.ts +41 -37
- package/api/payment-reminders-api.ts +12 -8
- package/api/payment-setup-api.ts +36 -28
- package/api/payments-api.ts +27 -25
- package/api/refunds-api.ts +474 -0
- package/api.ts +2 -0
- package/dist/api/bank-accounts-api.d.ts +14 -12
- package/dist/api/bank-accounts-api.js +12 -12
- package/dist/api/bank-transaction-api.d.ts +113 -3
- package/dist/api/bank-transaction-api.js +184 -0
- package/dist/api/payment-methods-api.d.ts +31 -27
- package/dist/api/payment-methods-api.js +24 -28
- package/dist/api/payment-reminders-api.d.ts +14 -12
- package/dist/api/payment-setup-api.d.ts +22 -18
- package/dist/api/payment-setup-api.js +24 -24
- package/dist/api/payments-api.d.ts +24 -21
- package/dist/api/payments-api.js +12 -16
- package/dist/api/refunds-api.d.ts +269 -0
- package/dist/api/refunds-api.js +447 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/bank-account-class.d.ts +54 -0
- package/dist/models/bank-account-class.js +15 -0
- package/dist/models/billing-profile-dto.d.ts +38 -0
- package/dist/models/billing-profile-dto.js +15 -0
- package/dist/models/billing-profile-limited-response-dto.d.ts +54 -0
- package/dist/models/billing-profile-limited-response-dto.js +15 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +32 -0
- package/dist/models/complete-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
- package/dist/models/complete-payment-setup-response-class.js +15 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.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/create-payment-method-response-class.d.ts +25 -0
- package/dist/models/create-payment-method-response-class.js +15 -0
- package/dist/models/create-payment-request-dto.d.ts +3 -3
- package/dist/models/create-payment-response-class.d.ts +25 -0
- package/dist/models/create-payment-response-class.js +15 -0
- package/dist/models/create-psp-payment-method-request-dto.d.ts +61 -0
- package/dist/models/create-psp-payment-method-request-dto.js +32 -0
- package/dist/models/create-refund-request-dto.d.ts +24 -0
- package/dist/models/create-refund-request-dto.js +15 -0
- package/dist/models/create-refund-response-class.d.ts +25 -0
- package/dist/models/create-refund-response-class.js +15 -0
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +25 -0
- package/dist/models/deactivate-payment-reminder-response-class.js +15 -0
- package/dist/models/get-payment-method-response-class.d.ts +25 -0
- package/dist/models/get-payment-method-response-class.js +15 -0
- package/dist/models/get-payment-response-class.d.ts +25 -0
- package/dist/models/get-payment-response-class.js +15 -0
- package/dist/models/get-refund-response-class.d.ts +25 -0
- package/dist/models/get-refund-response-class.js +15 -0
- package/dist/models/get-request-dto.d.ts +1 -1
- package/dist/models/index.d.ts +34 -0
- package/dist/models/index.js +34 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +44 -0
- package/dist/models/initiate-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
- package/dist/models/initiate-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
- package/dist/models/list-bank-accounts-response-class.d.ts +31 -0
- package/dist/models/list-bank-accounts-response-class.js +15 -0
- package/dist/models/list-payment-methods-response-class.d.ts +31 -0
- package/dist/models/list-payment-methods-response-class.js +15 -0
- package/dist/models/list-payment-reminders-response-class.d.ts +31 -0
- package/dist/models/list-payment-reminders-response-class.js +15 -0
- package/dist/models/list-payments-response-class.d.ts +31 -0
- package/dist/models/list-payments-response-class.js +15 -0
- package/dist/models/list-refunds-response-class.d.ts +31 -0
- package/dist/models/list-refunds-response-class.js +15 -0
- package/dist/models/payment-class.d.ts +103 -0
- package/dist/models/payment-class.js +15 -0
- package/dist/models/payment-method-class.d.ts +66 -0
- package/dist/models/payment-method-class.js +15 -0
- package/dist/models/payment-reminder-class.d.ts +112 -0
- package/dist/models/payment-reminder-class.js +36 -0
- package/dist/models/refund-class.d.ts +104 -0
- package/dist/models/refund-class.js +28 -0
- package/dist/models/sepa-direct-dto.d.ts +24 -0
- package/dist/models/sepa-direct-dto.js +15 -0
- package/dist/models/symphony-profile-limited-response-dto.d.ts +42 -0
- package/dist/models/symphony-profile-limited-response-dto.js +15 -0
- package/dist/models/validate-pspconfig-request-dto.d.ts +8 -1
- package/dist/models/validate-pspconfig-request-dto.js +7 -0
- package/models/bank-account-class.ts +60 -0
- package/models/billing-profile-dto.ts +44 -0
- package/models/billing-profile-limited-response-dto.ts +60 -0
- package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
- package/models/complete-payment-setup-request-dto.ts +38 -0
- package/models/complete-payment-setup-response-class.ts +31 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +66 -0
- package/models/create-bank-account-request-dto.ts +36 -0
- package/models/create-payment-method-response-class.ts +31 -0
- package/models/create-payment-request-dto.ts +3 -3
- package/models/create-payment-response-class.ts +31 -0
- package/models/create-psp-payment-method-request-dto.ts +70 -0
- package/models/create-refund-request-dto.ts +30 -0
- package/models/create-refund-response-class.ts +31 -0
- package/models/deactivate-payment-reminder-response-class.ts +31 -0
- package/models/get-payment-method-response-class.ts +31 -0
- package/models/get-payment-response-class.ts +31 -0
- package/models/get-refund-response-class.ts +31 -0
- package/models/get-request-dto.ts +1 -1
- package/models/index.ts +34 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +36 -0
- package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
- package/models/initiate-payment-setup-request-dto.ts +50 -0
- package/models/initiate-payment-setup-response-class.ts +38 -0
- package/models/initiate-stripe-payment-setup-request-dto.ts +36 -0
- package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
- package/models/list-bank-accounts-response-class.ts +37 -0
- package/models/list-payment-methods-response-class.ts +37 -0
- package/models/list-payment-reminders-response-class.ts +37 -0
- package/models/list-payments-response-class.ts +37 -0
- package/models/list-refunds-response-class.ts +37 -0
- package/models/payment-class.ts +109 -0
- package/models/payment-method-class.ts +72 -0
- package/models/payment-reminder-class.ts +122 -0
- package/models/refund-class.ts +114 -0
- package/models/sepa-direct-dto.ts +30 -0
- package/models/symphony-profile-limited-response-dto.ts +48 -0
- package/models/validate-pspconfig-request-dto.ts +11 -1
- package/package.json +1 -1
|
@@ -94,20 +94,20 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
|
-
* @param {
|
|
97
|
+
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
98
98
|
* @param {string} [authorization] Bearer Token
|
|
99
99
|
* @param {*} [options] Override http request option.
|
|
100
100
|
* @throws {RequiredError}
|
|
101
101
|
*/
|
|
102
|
-
completePaymentSetup: function (
|
|
102
|
+
completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
|
|
103
103
|
if (options === void 0) { options = {}; }
|
|
104
104
|
return __awaiter(_this, void 0, void 0, function () {
|
|
105
105
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
106
106
|
return __generator(this, function (_a) {
|
|
107
107
|
switch (_a.label) {
|
|
108
108
|
case 0:
|
|
109
|
-
// verify required parameter '
|
|
110
|
-
(0, common_1.assertParamExists)('completePaymentSetup', '
|
|
109
|
+
// verify required parameter 'completePaymentSetupRequestDto' is not null or undefined
|
|
110
|
+
(0, common_1.assertParamExists)('completePaymentSetup', 'completePaymentSetupRequestDto', completePaymentSetupRequestDto);
|
|
111
111
|
localVarPath = "/paymentservice/v1/payment-setup/complete";
|
|
112
112
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
113
113
|
if (configuration) {
|
|
@@ -131,7 +131,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
131
131
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
132
132
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
133
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
134
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
134
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(completePaymentSetupRequestDto, localVarRequestOptions, configuration);
|
|
135
135
|
return [2 /*return*/, {
|
|
136
136
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
137
137
|
options: localVarRequestOptions,
|
|
@@ -142,20 +142,20 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
142
142
|
},
|
|
143
143
|
/**
|
|
144
144
|
*
|
|
145
|
-
* @param {
|
|
145
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
146
146
|
* @param {string} [authorization] Bearer Token
|
|
147
147
|
* @param {*} [options] Override http request option.
|
|
148
148
|
* @throws {RequiredError}
|
|
149
149
|
*/
|
|
150
|
-
initiatePaymentSetup: function (
|
|
150
|
+
initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
|
|
151
151
|
if (options === void 0) { options = {}; }
|
|
152
152
|
return __awaiter(_this, void 0, void 0, function () {
|
|
153
153
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
154
154
|
return __generator(this, function (_a) {
|
|
155
155
|
switch (_a.label) {
|
|
156
156
|
case 0:
|
|
157
|
-
// verify required parameter '
|
|
158
|
-
(0, common_1.assertParamExists)('initiatePaymentSetup', '
|
|
157
|
+
// verify required parameter 'initiatePaymentSetupRequestDto' is not null or undefined
|
|
158
|
+
(0, common_1.assertParamExists)('initiatePaymentSetup', 'initiatePaymentSetupRequestDto', initiatePaymentSetupRequestDto);
|
|
159
159
|
localVarPath = "/paymentservice/v1/payment-setup/initiate";
|
|
160
160
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
161
161
|
if (configuration) {
|
|
@@ -179,7 +179,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
179
179
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
180
180
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
181
181
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
182
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
182
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initiatePaymentSetupRequestDto, localVarRequestOptions, configuration);
|
|
183
183
|
return [2 /*return*/, {
|
|
184
184
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
185
185
|
options: localVarRequestOptions,
|
|
@@ -200,17 +200,17 @@ var PaymentSetupApiFp = function (configuration) {
|
|
|
200
200
|
return {
|
|
201
201
|
/**
|
|
202
202
|
*
|
|
203
|
-
* @param {
|
|
203
|
+
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
204
204
|
* @param {string} [authorization] Bearer Token
|
|
205
205
|
* @param {*} [options] Override http request option.
|
|
206
206
|
* @throws {RequiredError}
|
|
207
207
|
*/
|
|
208
|
-
completePaymentSetup: function (
|
|
208
|
+
completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
|
|
209
209
|
return __awaiter(this, void 0, void 0, function () {
|
|
210
210
|
var localVarAxiosArgs;
|
|
211
211
|
return __generator(this, function (_a) {
|
|
212
212
|
switch (_a.label) {
|
|
213
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(
|
|
213
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(completePaymentSetupRequestDto, authorization, options)];
|
|
214
214
|
case 1:
|
|
215
215
|
localVarAxiosArgs = _a.sent();
|
|
216
216
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -220,17 +220,17 @@ var PaymentSetupApiFp = function (configuration) {
|
|
|
220
220
|
},
|
|
221
221
|
/**
|
|
222
222
|
*
|
|
223
|
-
* @param {
|
|
223
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
224
224
|
* @param {string} [authorization] Bearer Token
|
|
225
225
|
* @param {*} [options] Override http request option.
|
|
226
226
|
* @throws {RequiredError}
|
|
227
227
|
*/
|
|
228
|
-
initiatePaymentSetup: function (
|
|
228
|
+
initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
|
|
229
229
|
return __awaiter(this, void 0, void 0, function () {
|
|
230
230
|
var localVarAxiosArgs;
|
|
231
231
|
return __generator(this, function (_a) {
|
|
232
232
|
switch (_a.label) {
|
|
233
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(
|
|
233
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options)];
|
|
234
234
|
case 1:
|
|
235
235
|
localVarAxiosArgs = _a.sent();
|
|
236
236
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -250,23 +250,23 @@ var PaymentSetupApiFactory = function (configuration, basePath, axios) {
|
|
|
250
250
|
return {
|
|
251
251
|
/**
|
|
252
252
|
*
|
|
253
|
-
* @param {
|
|
253
|
+
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
254
254
|
* @param {string} [authorization] Bearer Token
|
|
255
255
|
* @param {*} [options] Override http request option.
|
|
256
256
|
* @throws {RequiredError}
|
|
257
257
|
*/
|
|
258
|
-
completePaymentSetup: function (
|
|
259
|
-
return localVarFp.completePaymentSetup(
|
|
258
|
+
completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
|
|
259
|
+
return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
260
260
|
},
|
|
261
261
|
/**
|
|
262
262
|
*
|
|
263
|
-
* @param {
|
|
263
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
264
264
|
* @param {string} [authorization] Bearer Token
|
|
265
265
|
* @param {*} [options] Override http request option.
|
|
266
266
|
* @throws {RequiredError}
|
|
267
267
|
*/
|
|
268
|
-
initiatePaymentSetup: function (
|
|
269
|
-
return localVarFp.initiatePaymentSetup(
|
|
268
|
+
initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
|
|
269
|
+
return localVarFp.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
270
270
|
},
|
|
271
271
|
};
|
|
272
272
|
};
|
|
@@ -291,7 +291,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
|
|
|
291
291
|
*/
|
|
292
292
|
PaymentSetupApi.prototype.completePaymentSetup = function (requestParameters, options) {
|
|
293
293
|
var _this = this;
|
|
294
|
-
return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.
|
|
294
|
+
return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
295
295
|
};
|
|
296
296
|
/**
|
|
297
297
|
*
|
|
@@ -302,7 +302,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
|
|
|
302
302
|
*/
|
|
303
303
|
PaymentSetupApi.prototype.initiatePaymentSetup = function (requestParameters, options) {
|
|
304
304
|
var _this = this;
|
|
305
|
-
return (0, exports.PaymentSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.
|
|
305
|
+
return (0, exports.PaymentSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
306
306
|
};
|
|
307
307
|
return PaymentSetupApi;
|
|
308
308
|
}(base_1.BaseAPI));
|
|
@@ -13,6 +13,9 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreatePaymentRequestDto } from '../models';
|
|
16
|
+
import { CreatePaymentResponseClass } from '../models';
|
|
17
|
+
import { GetPaymentResponseClass } from '../models';
|
|
18
|
+
import { ListPaymentsResponseClass } from '../models';
|
|
16
19
|
/**
|
|
17
20
|
* PaymentsApi - axios parameter creator
|
|
18
21
|
* @export
|
|
@@ -32,13 +35,13 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
32
35
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
33
36
|
* @summary Retrieve a payment
|
|
34
37
|
* @param {string} code Unique identifier for the object.
|
|
35
|
-
* @param {string} expand Fields to expand response by
|
|
36
|
-
* @param {string} expand2 Fields to expand response by
|
|
37
38
|
* @param {string} [authorization] Bearer Token
|
|
39
|
+
* @param {string} [expand] Fields to expand response by
|
|
40
|
+
* @param {string} [expand2] Fields to expand response by
|
|
38
41
|
* @param {*} [options] Override http request option.
|
|
39
42
|
* @throws {RequiredError}
|
|
40
43
|
*/
|
|
41
|
-
getPayment: (code: string,
|
|
44
|
+
getPayment: (code: string, authorization?: string, expand?: string, expand2?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
45
|
/**
|
|
43
46
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
44
47
|
* @summary List payments
|
|
@@ -69,18 +72,18 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
69
72
|
* @param {*} [options] Override http request option.
|
|
70
73
|
* @throws {RequiredError}
|
|
71
74
|
*/
|
|
72
|
-
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
75
|
+
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>>;
|
|
73
76
|
/**
|
|
74
77
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
75
78
|
* @summary Retrieve a payment
|
|
76
79
|
* @param {string} code Unique identifier for the object.
|
|
77
|
-
* @param {string} expand Fields to expand response by
|
|
78
|
-
* @param {string} expand2 Fields to expand response by
|
|
79
80
|
* @param {string} [authorization] Bearer Token
|
|
81
|
+
* @param {string} [expand] Fields to expand response by
|
|
82
|
+
* @param {string} [expand2] Fields to expand response by
|
|
80
83
|
* @param {*} [options] Override http request option.
|
|
81
84
|
* @throws {RequiredError}
|
|
82
85
|
*/
|
|
83
|
-
getPayment(code: string,
|
|
86
|
+
getPayment(code: string, authorization?: string, expand?: string, expand2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentResponseClass>>;
|
|
84
87
|
/**
|
|
85
88
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
86
89
|
* @summary List payments
|
|
@@ -95,7 +98,7 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
95
98
|
* @param {*} [options] Override http request option.
|
|
96
99
|
* @throws {RequiredError}
|
|
97
100
|
*/
|
|
98
|
-
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
101
|
+
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponseClass>>;
|
|
99
102
|
};
|
|
100
103
|
/**
|
|
101
104
|
* PaymentsApi - factory interface
|
|
@@ -111,18 +114,18 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
|
|
|
111
114
|
* @param {*} [options] Override http request option.
|
|
112
115
|
* @throws {RequiredError}
|
|
113
116
|
*/
|
|
114
|
-
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
117
|
+
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass>;
|
|
115
118
|
/**
|
|
116
119
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
117
120
|
* @summary Retrieve a payment
|
|
118
121
|
* @param {string} code Unique identifier for the object.
|
|
119
|
-
* @param {string} expand Fields to expand response by
|
|
120
|
-
* @param {string} expand2 Fields to expand response by
|
|
121
122
|
* @param {string} [authorization] Bearer Token
|
|
123
|
+
* @param {string} [expand] Fields to expand response by
|
|
124
|
+
* @param {string} [expand2] Fields to expand response by
|
|
122
125
|
* @param {*} [options] Override http request option.
|
|
123
126
|
* @throws {RequiredError}
|
|
124
127
|
*/
|
|
125
|
-
getPayment(code: string,
|
|
128
|
+
getPayment(code: string, authorization?: string, expand?: string, expand2?: string, options?: any): AxiosPromise<GetPaymentResponseClass>;
|
|
126
129
|
/**
|
|
127
130
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
128
131
|
* @summary List payments
|
|
@@ -137,7 +140,7 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
|
|
|
137
140
|
* @param {*} [options] Override http request option.
|
|
138
141
|
* @throws {RequiredError}
|
|
139
142
|
*/
|
|
140
|
-
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
143
|
+
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentsResponseClass>;
|
|
141
144
|
};
|
|
142
145
|
/**
|
|
143
146
|
* Request parameters for createPayment operation in PaymentsApi.
|
|
@@ -177,23 +180,23 @@ export interface PaymentsApiGetPaymentRequest {
|
|
|
177
180
|
*/
|
|
178
181
|
readonly code: string;
|
|
179
182
|
/**
|
|
180
|
-
*
|
|
183
|
+
* Bearer Token
|
|
181
184
|
* @type {string}
|
|
182
185
|
* @memberof PaymentsApiGetPayment
|
|
183
186
|
*/
|
|
184
|
-
readonly
|
|
187
|
+
readonly authorization?: string;
|
|
185
188
|
/**
|
|
186
189
|
* Fields to expand response by
|
|
187
190
|
* @type {string}
|
|
188
191
|
* @memberof PaymentsApiGetPayment
|
|
189
192
|
*/
|
|
190
|
-
readonly
|
|
193
|
+
readonly expand?: string;
|
|
191
194
|
/**
|
|
192
|
-
*
|
|
195
|
+
* Fields to expand response by
|
|
193
196
|
* @type {string}
|
|
194
197
|
* @memberof PaymentsApiGetPayment
|
|
195
198
|
*/
|
|
196
|
-
readonly
|
|
199
|
+
readonly expand2?: string;
|
|
197
200
|
}
|
|
198
201
|
/**
|
|
199
202
|
* Request parameters for listPayments operation in PaymentsApi.
|
|
@@ -265,7 +268,7 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
265
268
|
* @throws {RequiredError}
|
|
266
269
|
* @memberof PaymentsApi
|
|
267
270
|
*/
|
|
268
|
-
createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
271
|
+
createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponseClass, any>>;
|
|
269
272
|
/**
|
|
270
273
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
271
274
|
* @summary Retrieve a payment
|
|
@@ -274,7 +277,7 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
274
277
|
* @throws {RequiredError}
|
|
275
278
|
* @memberof PaymentsApi
|
|
276
279
|
*/
|
|
277
|
-
getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
280
|
+
getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentResponseClass, any>>;
|
|
278
281
|
/**
|
|
279
282
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
280
283
|
* @summary List payments
|
|
@@ -283,5 +286,5 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
283
286
|
* @throws {RequiredError}
|
|
284
287
|
* @memberof PaymentsApi
|
|
285
288
|
*/
|
|
286
|
-
listPayments(requestParameters?: PaymentsApiListPaymentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
289
|
+
listPayments(requestParameters?: PaymentsApiListPaymentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentsResponseClass, any>>;
|
|
287
290
|
}
|
package/dist/api/payments-api.js
CHANGED
|
@@ -151,13 +151,13 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
151
151
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
152
152
|
* @summary Retrieve a payment
|
|
153
153
|
* @param {string} code Unique identifier for the object.
|
|
154
|
-
* @param {string} expand Fields to expand response by
|
|
155
|
-
* @param {string} expand2 Fields to expand response by
|
|
156
154
|
* @param {string} [authorization] Bearer Token
|
|
155
|
+
* @param {string} [expand] Fields to expand response by
|
|
156
|
+
* @param {string} [expand2] Fields to expand response by
|
|
157
157
|
* @param {*} [options] Override http request option.
|
|
158
158
|
* @throws {RequiredError}
|
|
159
159
|
*/
|
|
160
|
-
getPayment: function (code, expand, expand2,
|
|
160
|
+
getPayment: function (code, authorization, expand, expand2, options) {
|
|
161
161
|
if (options === void 0) { options = {}; }
|
|
162
162
|
return __awaiter(_this, void 0, void 0, function () {
|
|
163
163
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -166,10 +166,6 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
166
166
|
case 0:
|
|
167
167
|
// verify required parameter 'code' is not null or undefined
|
|
168
168
|
(0, common_1.assertParamExists)('getPayment', 'code', code);
|
|
169
|
-
// verify required parameter 'expand' is not null or undefined
|
|
170
|
-
(0, common_1.assertParamExists)('getPayment', 'expand', expand);
|
|
171
|
-
// verify required parameter 'expand2' is not null or undefined
|
|
172
|
-
(0, common_1.assertParamExists)('getPayment', 'expand2', expand2);
|
|
173
169
|
localVarPath = "/paymentservice/v1/payments/{code}";
|
|
174
170
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
175
171
|
if (configuration) {
|
|
@@ -317,18 +313,18 @@ var PaymentsApiFp = function (configuration) {
|
|
|
317
313
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
318
314
|
* @summary Retrieve a payment
|
|
319
315
|
* @param {string} code Unique identifier for the object.
|
|
320
|
-
* @param {string} expand Fields to expand response by
|
|
321
|
-
* @param {string} expand2 Fields to expand response by
|
|
322
316
|
* @param {string} [authorization] Bearer Token
|
|
317
|
+
* @param {string} [expand] Fields to expand response by
|
|
318
|
+
* @param {string} [expand2] Fields to expand response by
|
|
323
319
|
* @param {*} [options] Override http request option.
|
|
324
320
|
* @throws {RequiredError}
|
|
325
321
|
*/
|
|
326
|
-
getPayment: function (code, expand, expand2,
|
|
322
|
+
getPayment: function (code, authorization, expand, expand2, options) {
|
|
327
323
|
return __awaiter(this, void 0, void 0, function () {
|
|
328
324
|
var localVarAxiosArgs;
|
|
329
325
|
return __generator(this, function (_a) {
|
|
330
326
|
switch (_a.label) {
|
|
331
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPayment(code, expand, expand2,
|
|
327
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPayment(code, authorization, expand, expand2, options)];
|
|
332
328
|
case 1:
|
|
333
329
|
localVarAxiosArgs = _a.sent();
|
|
334
330
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -389,14 +385,14 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
389
385
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
390
386
|
* @summary Retrieve a payment
|
|
391
387
|
* @param {string} code Unique identifier for the object.
|
|
392
|
-
* @param {string} expand Fields to expand response by
|
|
393
|
-
* @param {string} expand2 Fields to expand response by
|
|
394
388
|
* @param {string} [authorization] Bearer Token
|
|
389
|
+
* @param {string} [expand] Fields to expand response by
|
|
390
|
+
* @param {string} [expand2] Fields to expand response by
|
|
395
391
|
* @param {*} [options] Override http request option.
|
|
396
392
|
* @throws {RequiredError}
|
|
397
393
|
*/
|
|
398
|
-
getPayment: function (code, expand, expand2,
|
|
399
|
-
return localVarFp.getPayment(code, expand, expand2,
|
|
394
|
+
getPayment: function (code, authorization, expand, expand2, options) {
|
|
395
|
+
return localVarFp.getPayment(code, authorization, expand, expand2, options).then(function (request) { return request(axios, basePath); });
|
|
400
396
|
},
|
|
401
397
|
/**
|
|
402
398
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -451,7 +447,7 @@ var PaymentsApi = /** @class */ (function (_super) {
|
|
|
451
447
|
*/
|
|
452
448
|
PaymentsApi.prototype.getPayment = function (requestParameters, options) {
|
|
453
449
|
var _this = this;
|
|
454
|
-
return (0, exports.PaymentsApiFp)(this.configuration).getPayment(requestParameters.code, requestParameters.
|
|
450
|
+
return (0, exports.PaymentsApiFp)(this.configuration).getPayment(requestParameters.code, requestParameters.authorization, requestParameters.expand, requestParameters.expand2, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
455
451
|
};
|
|
456
452
|
/**
|
|
457
453
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|