@emilgroup/payment-sdk 1.4.1-beta.1 → 1.4.1-beta.3
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 +29 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +21 -17
- package/api/bank-transaction-api.ts +4 -4
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +42 -38
- package/api/payment-reminders-api.ts +13 -9
- package/api/payment-setup-api.ts +37 -29
- package/api/payments-api.ts +28 -26
- package/api/refunds-api.ts +14 -16
- package/api/tenant-bank-account-api.ts +1 -1
- package/api/webhooks-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +15 -13
- package/dist/api/bank-accounts-api.js +13 -13
- package/dist/api/bank-transaction-api.d.ts +4 -4
- package/dist/api/bank-transaction-api.js +1 -2
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/payment-methods-api.d.ts +32 -28
- package/dist/api/payment-methods-api.js +25 -29
- package/dist/api/payment-reminders-api.d.ts +15 -13
- package/dist/api/payment-reminders-api.js +1 -1
- package/dist/api/payment-setup-api.d.ts +23 -19
- package/dist/api/payment-setup-api.js +25 -25
- package/dist/api/payments-api.d.ts +25 -22
- package/dist/api/payments-api.js +13 -17
- package/dist/api/refunds-api.d.ts +11 -11
- package/dist/api/refunds-api.js +10 -12
- package/dist/api/tenant-bank-account-api.d.ts +1 -1
- package/dist/api/tenant-bank-account-api.js +1 -1
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/bank-account-class.d.ts +54 -0
- package/dist/models/bank-account-class.js +15 -0
- package/dist/models/bank-transaction-response-class.d.ts +1 -1
- package/dist/models/bank-transaction-response-class.js +1 -1
- 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-reminder-request-dto.d.ts +1 -1
- package/dist/models/create-payment-reminder-request-dto.js +1 -1
- package/dist/models/create-payment-request-dto.d.ts +4 -4
- package/dist/models/create-payment-request-dto.js +1 -1
- 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 +1 -1
- package/dist/models/create-refund-request-dto.js +1 -1
- package/dist/models/create-refund-response-class.d.ts +1 -1
- package/dist/models/create-refund-response-class.js +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
- 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-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/get-bank-transactions-response-class.js +1 -1
- 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 +1 -1
- package/dist/models/get-refund-response-class.js +1 -1
- package/dist/models/get-request-dto.d.ts +2 -2
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/get-tenant-bank-account-response-class.js +1 -1
- package/dist/models/index.d.ts +29 -0
- package/dist/models/index.js +29 -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/inline-response200.d.ts +1 -1
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +1 -1
- package/dist/models/inline-response503.js +1 -1
- 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-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/list-bank-transactions-response-class.js +1 -1
- 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 +1 -1
- package/dist/models/list-refunds-response-class.js +1 -1
- 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 +1 -1
- package/dist/models/refund-class.js +1 -1
- 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/tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/tenant-bank-account-response-class.js +1 -1
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
- package/dist/models/validate-pspconfig-request-dto.d.ts +9 -2
- package/dist/models/validate-pspconfig-request-dto.js +8 -1
- package/index.ts +1 -1
- package/models/bank-account-class.ts +60 -0
- package/models/bank-transaction-response-class.ts +1 -1
- 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-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +4 -4
- 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 +1 -1
- package/models/create-refund-response-class.ts +1 -1
- package/models/create-tenant-bank-account-request-dto.ts +1 -1
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/deactivate-payment-reminder-response-class.ts +31 -0
- package/models/get-bank-transactions-response-class.ts +1 -1
- 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 +1 -1
- package/models/get-request-dto.ts +2 -2
- package/models/get-tenant-bank-account-response-class.ts +1 -1
- package/models/index.ts +29 -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/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/list-bank-accounts-response-class.ts +37 -0
- package/models/list-bank-transactions-response-class.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- package/models/sepa-direct-dto.ts +30 -0
- package/models/symphony-profile-limited-response-dto.ts +48 -0
- package/models/tenant-bank-account-response-class.ts +1 -1
- package/models/transaction-class.ts +1 -1
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +12 -2
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact:
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -95,20 +95,20 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
95
95
|
/**
|
|
96
96
|
* Creates a bank account for a specified account.
|
|
97
97
|
* @summary Create a bank account
|
|
98
|
-
* @param {
|
|
98
|
+
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
100
100
|
* @param {*} [options] Override http request option.
|
|
101
101
|
* @throws {RequiredError}
|
|
102
102
|
*/
|
|
103
|
-
createBankAccount: function (
|
|
103
|
+
createBankAccount: function (createBankAccountRequestDto, 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)('createBankAccount', '
|
|
110
|
+
// verify required parameter 'createBankAccountRequestDto' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('createBankAccount', 'createBankAccountRequestDto', createBankAccountRequestDto);
|
|
112
112
|
localVarPath = "/paymentservice/v1/bank-accounts";
|
|
113
113
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
114
|
if (configuration) {
|
|
@@ -132,7 +132,7 @@ var BankAccountsApiAxiosParamCreator = 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)(createBankAccountRequestDto, localVarRequestOptions, configuration);
|
|
136
136
|
return [2 /*return*/, {
|
|
137
137
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
138
138
|
options: localVarRequestOptions,
|
|
@@ -226,17 +226,17 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
226
226
|
/**
|
|
227
227
|
* Creates a bank account for a specified account.
|
|
228
228
|
* @summary Create a bank account
|
|
229
|
-
* @param {
|
|
229
|
+
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
230
230
|
* @param {string} [authorization] Bearer Token
|
|
231
231
|
* @param {*} [options] Override http request option.
|
|
232
232
|
* @throws {RequiredError}
|
|
233
233
|
*/
|
|
234
|
-
createBankAccount: function (
|
|
234
|
+
createBankAccount: function (createBankAccountRequestDto, authorization, options) {
|
|
235
235
|
return __awaiter(this, void 0, void 0, function () {
|
|
236
236
|
var localVarAxiosArgs;
|
|
237
237
|
return __generator(this, function (_a) {
|
|
238
238
|
switch (_a.label) {
|
|
239
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createBankAccount(
|
|
239
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options)];
|
|
240
240
|
case 1:
|
|
241
241
|
localVarAxiosArgs = _a.sent();
|
|
242
242
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -284,13 +284,13 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
284
284
|
/**
|
|
285
285
|
* Creates a bank account for a specified account.
|
|
286
286
|
* @summary Create a bank account
|
|
287
|
-
* @param {
|
|
287
|
+
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
288
288
|
* @param {string} [authorization] Bearer Token
|
|
289
289
|
* @param {*} [options] Override http request option.
|
|
290
290
|
* @throws {RequiredError}
|
|
291
291
|
*/
|
|
292
|
-
createBankAccount: function (
|
|
293
|
-
return localVarFp.createBankAccount(
|
|
292
|
+
createBankAccount: function (createBankAccountRequestDto, authorization, options) {
|
|
293
|
+
return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
294
294
|
},
|
|
295
295
|
/**
|
|
296
296
|
* Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -333,7 +333,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
333
333
|
*/
|
|
334
334
|
BankAccountsApi.prototype.createBankAccount = function (requestParameters, options) {
|
|
335
335
|
var _this = this;
|
|
336
|
-
return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.
|
|
336
|
+
return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
337
337
|
};
|
|
338
338
|
/**
|
|
339
339
|
* Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -119,7 +119,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
119
119
|
* @param {*} [options] Override http request option.
|
|
120
120
|
* @throws {RequiredError}
|
|
121
121
|
*/
|
|
122
|
-
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
122
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>>;
|
|
123
123
|
/**
|
|
124
124
|
* Unlinks an already linked bank transaction
|
|
125
125
|
* @summary Unlink Bank Transaction
|
|
@@ -177,7 +177,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
177
177
|
* @param {*} [options] Override http request option.
|
|
178
178
|
* @throws {RequiredError}
|
|
179
179
|
*/
|
|
180
|
-
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<
|
|
180
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass>;
|
|
181
181
|
/**
|
|
182
182
|
* Unlinks an already linked bank transaction
|
|
183
183
|
* @summary Unlink Bank Transaction
|
|
@@ -367,7 +367,7 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
367
367
|
* @throws {RequiredError}
|
|
368
368
|
* @memberof BankTransactionApi
|
|
369
369
|
*/
|
|
370
|
-
listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
370
|
+
listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any>>;
|
|
371
371
|
/**
|
|
372
372
|
* Unlinks an already linked bank transaction
|
|
373
373
|
* @summary Unlink Bank Transaction
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact:
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -182,7 +182,6 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
182
182
|
if (file !== undefined) {
|
|
183
183
|
localVarFormParams.append('file', file);
|
|
184
184
|
}
|
|
185
|
-
localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
|
|
186
185
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
187
186
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
188
187
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
package/dist/api/default-api.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact:
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreatePaymentMethodResponseClass } from '../models';
|
|
16
|
+
import { CreatePspPaymentMethodRequestDto } from '../models';
|
|
17
|
+
import { GetPaymentMethodResponseClass } from '../models';
|
|
18
|
+
import { ListPaymentMethodsResponseClass } from '../models';
|
|
15
19
|
/**
|
|
16
20
|
* PaymentMethodsApi - axios parameter creator
|
|
17
21
|
* @export
|
|
@@ -20,12 +24,12 @@ export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Config
|
|
|
20
24
|
/**
|
|
21
25
|
* 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.
|
|
22
26
|
* @summary Create the payment-method
|
|
23
|
-
* @param {
|
|
27
|
+
* @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
|
|
24
28
|
* @param {string} [authorization] Bearer Token
|
|
25
29
|
* @param {*} [options] Override http request option.
|
|
26
30
|
* @throws {RequiredError}
|
|
27
31
|
*/
|
|
28
|
-
createPaymentMethod: (
|
|
32
|
+
createPaymentMethod: (createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
33
|
/**
|
|
30
34
|
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
31
35
|
* @summary Delete a payment method
|
|
@@ -39,13 +43,13 @@ export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Config
|
|
|
39
43
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
40
44
|
* @summary Retrieve a payment method
|
|
41
45
|
* @param {string} code Unique identifier for the object.
|
|
42
|
-
* @param {string} expand Fields to expand response by
|
|
43
|
-
* @param {string} expand2 Fields to expand response by
|
|
44
46
|
* @param {string} [authorization] Bearer Token
|
|
47
|
+
* @param {string} [expand] Fields to expand response by
|
|
48
|
+
* @param {string} [expand2] Fields to expand response by
|
|
45
49
|
* @param {*} [options] Override http request option.
|
|
46
50
|
* @throws {RequiredError}
|
|
47
51
|
*/
|
|
48
|
-
getPaymentMethod: (code: string,
|
|
52
|
+
getPaymentMethod: (code: string, authorization?: string, expand?: string, expand2?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
49
53
|
/**
|
|
50
54
|
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
51
55
|
* @summary List payment methods
|
|
@@ -70,12 +74,12 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
|
|
|
70
74
|
/**
|
|
71
75
|
* 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.
|
|
72
76
|
* @summary Create the payment-method
|
|
73
|
-
* @param {
|
|
77
|
+
* @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
|
|
74
78
|
* @param {string} [authorization] Bearer Token
|
|
75
79
|
* @param {*} [options] Override http request option.
|
|
76
80
|
* @throws {RequiredError}
|
|
77
81
|
*/
|
|
78
|
-
createPaymentMethod(
|
|
82
|
+
createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentMethodResponseClass>>;
|
|
79
83
|
/**
|
|
80
84
|
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
81
85
|
* @summary Delete a payment method
|
|
@@ -89,13 +93,13 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
|
|
|
89
93
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
90
94
|
* @summary Retrieve a payment method
|
|
91
95
|
* @param {string} code Unique identifier for the object.
|
|
92
|
-
* @param {string} expand Fields to expand response by
|
|
93
|
-
* @param {string} expand2 Fields to expand response by
|
|
94
96
|
* @param {string} [authorization] Bearer Token
|
|
97
|
+
* @param {string} [expand] Fields to expand response by
|
|
98
|
+
* @param {string} [expand2] Fields to expand response by
|
|
95
99
|
* @param {*} [options] Override http request option.
|
|
96
100
|
* @throws {RequiredError}
|
|
97
101
|
*/
|
|
98
|
-
getPaymentMethod(code: string,
|
|
102
|
+
getPaymentMethod(code: string, authorization?: string, expand?: string, expand2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentMethodResponseClass>>;
|
|
99
103
|
/**
|
|
100
104
|
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
101
105
|
* @summary List payment methods
|
|
@@ -110,7 +114,7 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
|
|
|
110
114
|
* @param {*} [options] Override http request option.
|
|
111
115
|
* @throws {RequiredError}
|
|
112
116
|
*/
|
|
113
|
-
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
117
|
+
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentMethodsResponseClass>>;
|
|
114
118
|
};
|
|
115
119
|
/**
|
|
116
120
|
* PaymentMethodsApi - factory interface
|
|
@@ -120,12 +124,12 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
|
|
|
120
124
|
/**
|
|
121
125
|
* 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.
|
|
122
126
|
* @summary Create the payment-method
|
|
123
|
-
* @param {
|
|
127
|
+
* @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
|
|
124
128
|
* @param {string} [authorization] Bearer Token
|
|
125
129
|
* @param {*} [options] Override http request option.
|
|
126
130
|
* @throws {RequiredError}
|
|
127
131
|
*/
|
|
128
|
-
createPaymentMethod(
|
|
132
|
+
createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentMethodResponseClass>;
|
|
129
133
|
/**
|
|
130
134
|
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
131
135
|
* @summary Delete a payment method
|
|
@@ -139,13 +143,13 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
|
|
|
139
143
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
140
144
|
* @summary Retrieve a payment method
|
|
141
145
|
* @param {string} code Unique identifier for the object.
|
|
142
|
-
* @param {string} expand Fields to expand response by
|
|
143
|
-
* @param {string} expand2 Fields to expand response by
|
|
144
146
|
* @param {string} [authorization] Bearer Token
|
|
147
|
+
* @param {string} [expand] Fields to expand response by
|
|
148
|
+
* @param {string} [expand2] Fields to expand response by
|
|
145
149
|
* @param {*} [options] Override http request option.
|
|
146
150
|
* @throws {RequiredError}
|
|
147
151
|
*/
|
|
148
|
-
getPaymentMethod(code: string,
|
|
152
|
+
getPaymentMethod(code: string, authorization?: string, expand?: string, expand2?: string, options?: any): AxiosPromise<GetPaymentMethodResponseClass>;
|
|
149
153
|
/**
|
|
150
154
|
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
151
155
|
* @summary List payment methods
|
|
@@ -160,7 +164,7 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
|
|
|
160
164
|
* @param {*} [options] Override http request option.
|
|
161
165
|
* @throws {RequiredError}
|
|
162
166
|
*/
|
|
163
|
-
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
167
|
+
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentMethodsResponseClass>;
|
|
164
168
|
};
|
|
165
169
|
/**
|
|
166
170
|
* Request parameters for createPaymentMethod operation in PaymentMethodsApi.
|
|
@@ -170,10 +174,10 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
|
|
|
170
174
|
export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
171
175
|
/**
|
|
172
176
|
*
|
|
173
|
-
* @type {
|
|
177
|
+
* @type {CreatePspPaymentMethodRequestDto}
|
|
174
178
|
* @memberof PaymentMethodsApiCreatePaymentMethod
|
|
175
179
|
*/
|
|
176
|
-
readonly
|
|
180
|
+
readonly createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto;
|
|
177
181
|
/**
|
|
178
182
|
* Bearer Token
|
|
179
183
|
* @type {string}
|
|
@@ -213,23 +217,23 @@ export interface PaymentMethodsApiGetPaymentMethodRequest {
|
|
|
213
217
|
*/
|
|
214
218
|
readonly code: string;
|
|
215
219
|
/**
|
|
216
|
-
*
|
|
220
|
+
* Bearer Token
|
|
217
221
|
* @type {string}
|
|
218
222
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
219
223
|
*/
|
|
220
|
-
readonly
|
|
224
|
+
readonly authorization?: string;
|
|
221
225
|
/**
|
|
222
226
|
* Fields to expand response by
|
|
223
227
|
* @type {string}
|
|
224
228
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
225
229
|
*/
|
|
226
|
-
readonly
|
|
230
|
+
readonly expand?: string;
|
|
227
231
|
/**
|
|
228
|
-
*
|
|
232
|
+
* Fields to expand response by
|
|
229
233
|
* @type {string}
|
|
230
234
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
231
235
|
*/
|
|
232
|
-
readonly
|
|
236
|
+
readonly expand2?: string;
|
|
233
237
|
}
|
|
234
238
|
/**
|
|
235
239
|
* Request parameters for listPaymentMethods operation in PaymentMethodsApi.
|
|
@@ -301,7 +305,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
301
305
|
* @throws {RequiredError}
|
|
302
306
|
* @memberof PaymentMethodsApi
|
|
303
307
|
*/
|
|
304
|
-
createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
308
|
+
createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentMethodResponseClass, any>>;
|
|
305
309
|
/**
|
|
306
310
|
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
307
311
|
* @summary Delete a payment method
|
|
@@ -319,7 +323,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
319
323
|
* @throws {RequiredError}
|
|
320
324
|
* @memberof PaymentMethodsApi
|
|
321
325
|
*/
|
|
322
|
-
getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
326
|
+
getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentMethodResponseClass, any>>;
|
|
323
327
|
/**
|
|
324
328
|
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
325
329
|
* @summary List payment methods
|
|
@@ -328,5 +332,5 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
328
332
|
* @throws {RequiredError}
|
|
329
333
|
* @memberof PaymentMethodsApi
|
|
330
334
|
*/
|
|
331
|
-
listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
335
|
+
listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentMethodsResponseClass, any>>;
|
|
332
336
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact:
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -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 {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
|
|
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 (createPspPaymentMethodRequestDto, 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 'createPspPaymentMethodRequestDto' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('createPaymentMethod', 'createPspPaymentMethodRequestDto', createPspPaymentMethodRequestDto);
|
|
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)(createPspPaymentMethodRequestDto, localVarRequestOptions, configuration);
|
|
136
136
|
return [2 /*return*/, {
|
|
137
137
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
138
138
|
options: localVarRequestOptions,
|
|
@@ -195,13 +195,13 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
195
195
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
196
196
|
* @summary Retrieve a payment method
|
|
197
197
|
* @param {string} code Unique identifier for the object.
|
|
198
|
-
* @param {string} expand Fields to expand response by
|
|
199
|
-
* @param {string} expand2 Fields to expand response by
|
|
200
198
|
* @param {string} [authorization] Bearer Token
|
|
199
|
+
* @param {string} [expand] Fields to expand response by
|
|
200
|
+
* @param {string} [expand2] Fields to expand response by
|
|
201
201
|
* @param {*} [options] Override http request option.
|
|
202
202
|
* @throws {RequiredError}
|
|
203
203
|
*/
|
|
204
|
-
getPaymentMethod: function (code, expand, expand2,
|
|
204
|
+
getPaymentMethod: function (code, authorization, expand, expand2, options) {
|
|
205
205
|
if (options === void 0) { options = {}; }
|
|
206
206
|
return __awaiter(_this, void 0, void 0, function () {
|
|
207
207
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -210,10 +210,6 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
210
210
|
case 0:
|
|
211
211
|
// verify required parameter 'code' is not null or undefined
|
|
212
212
|
(0, common_1.assertParamExists)('getPaymentMethod', 'code', code);
|
|
213
|
-
// verify required parameter 'expand' is not null or undefined
|
|
214
|
-
(0, common_1.assertParamExists)('getPaymentMethod', 'expand', expand);
|
|
215
|
-
// verify required parameter 'expand2' is not null or undefined
|
|
216
|
-
(0, common_1.assertParamExists)('getPaymentMethod', 'expand2', expand2);
|
|
217
213
|
localVarPath = "/paymentservice/v1/payment-methods/{code}";
|
|
218
214
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
219
215
|
if (configuration) {
|
|
@@ -338,17 +334,17 @@ var PaymentMethodsApiFp = function (configuration) {
|
|
|
338
334
|
/**
|
|
339
335
|
* 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.
|
|
340
336
|
* @summary Create the payment-method
|
|
341
|
-
* @param {
|
|
337
|
+
* @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
|
|
342
338
|
* @param {string} [authorization] Bearer Token
|
|
343
339
|
* @param {*} [options] Override http request option.
|
|
344
340
|
* @throws {RequiredError}
|
|
345
341
|
*/
|
|
346
|
-
createPaymentMethod: function (
|
|
342
|
+
createPaymentMethod: function (createPspPaymentMethodRequestDto, authorization, options) {
|
|
347
343
|
return __awaiter(this, void 0, void 0, function () {
|
|
348
344
|
var localVarAxiosArgs;
|
|
349
345
|
return __generator(this, function (_a) {
|
|
350
346
|
switch (_a.label) {
|
|
351
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPaymentMethod(
|
|
347
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options)];
|
|
352
348
|
case 1:
|
|
353
349
|
localVarAxiosArgs = _a.sent();
|
|
354
350
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -381,18 +377,18 @@ var PaymentMethodsApiFp = function (configuration) {
|
|
|
381
377
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
382
378
|
* @summary Retrieve a payment method
|
|
383
379
|
* @param {string} code Unique identifier for the object.
|
|
384
|
-
* @param {string} expand Fields to expand response by
|
|
385
|
-
* @param {string} expand2 Fields to expand response by
|
|
386
380
|
* @param {string} [authorization] Bearer Token
|
|
381
|
+
* @param {string} [expand] Fields to expand response by
|
|
382
|
+
* @param {string} [expand2] Fields to expand response by
|
|
387
383
|
* @param {*} [options] Override http request option.
|
|
388
384
|
* @throws {RequiredError}
|
|
389
385
|
*/
|
|
390
|
-
getPaymentMethod: function (code, expand, expand2,
|
|
386
|
+
getPaymentMethod: function (code, authorization, expand, expand2, options) {
|
|
391
387
|
return __awaiter(this, void 0, void 0, function () {
|
|
392
388
|
var localVarAxiosArgs;
|
|
393
389
|
return __generator(this, function (_a) {
|
|
394
390
|
switch (_a.label) {
|
|
395
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPaymentMethod(code, expand, expand2,
|
|
391
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPaymentMethod(code, authorization, expand, expand2, options)];
|
|
396
392
|
case 1:
|
|
397
393
|
localVarAxiosArgs = _a.sent();
|
|
398
394
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -440,13 +436,13 @@ var PaymentMethodsApiFactory = function (configuration, basePath, axios) {
|
|
|
440
436
|
/**
|
|
441
437
|
* 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.
|
|
442
438
|
* @summary Create the payment-method
|
|
443
|
-
* @param {
|
|
439
|
+
* @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
|
|
444
440
|
* @param {string} [authorization] Bearer Token
|
|
445
441
|
* @param {*} [options] Override http request option.
|
|
446
442
|
* @throws {RequiredError}
|
|
447
443
|
*/
|
|
448
|
-
createPaymentMethod: function (
|
|
449
|
-
return localVarFp.createPaymentMethod(
|
|
444
|
+
createPaymentMethod: function (createPspPaymentMethodRequestDto, authorization, options) {
|
|
445
|
+
return localVarFp.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
450
446
|
},
|
|
451
447
|
/**
|
|
452
448
|
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
@@ -463,14 +459,14 @@ var PaymentMethodsApiFactory = function (configuration, basePath, axios) {
|
|
|
463
459
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
464
460
|
* @summary Retrieve a payment method
|
|
465
461
|
* @param {string} code Unique identifier for the object.
|
|
466
|
-
* @param {string} expand Fields to expand response by
|
|
467
|
-
* @param {string} expand2 Fields to expand response by
|
|
468
462
|
* @param {string} [authorization] Bearer Token
|
|
463
|
+
* @param {string} [expand] Fields to expand response by
|
|
464
|
+
* @param {string} [expand2] Fields to expand response by
|
|
469
465
|
* @param {*} [options] Override http request option.
|
|
470
466
|
* @throws {RequiredError}
|
|
471
467
|
*/
|
|
472
|
-
getPaymentMethod: function (code, expand, expand2,
|
|
473
|
-
return localVarFp.getPaymentMethod(code, expand, expand2,
|
|
468
|
+
getPaymentMethod: function (code, authorization, expand, expand2, options) {
|
|
469
|
+
return localVarFp.getPaymentMethod(code, authorization, expand, expand2, options).then(function (request) { return request(axios, basePath); });
|
|
474
470
|
},
|
|
475
471
|
/**
|
|
476
472
|
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -513,7 +509,7 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
513
509
|
*/
|
|
514
510
|
PaymentMethodsApi.prototype.createPaymentMethod = function (requestParameters, options) {
|
|
515
511
|
var _this = this;
|
|
516
|
-
return (0, exports.PaymentMethodsApiFp)(this.configuration).createPaymentMethod(requestParameters.
|
|
512
|
+
return (0, exports.PaymentMethodsApiFp)(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
517
513
|
};
|
|
518
514
|
/**
|
|
519
515
|
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
@@ -537,7 +533,7 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
537
533
|
*/
|
|
538
534
|
PaymentMethodsApi.prototype.getPaymentMethod = function (requestParameters, options) {
|
|
539
535
|
var _this = this;
|
|
540
|
-
return (0, exports.PaymentMethodsApiFp)(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.
|
|
536
|
+
return (0, exports.PaymentMethodsApiFp)(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.authorization, requestParameters.expand, requestParameters.expand2, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
541
537
|
};
|
|
542
538
|
/**
|
|
543
539
|
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|