@emilgroup/payment-sdk 1.4.1-beta.7 → 1.4.1-beta.8
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 +2 -29
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +16 -20
- package/api/bank-transaction-api.ts +48 -14
- package/api/payment-methods-api.ts +37 -41
- package/api/payment-reminders-api.ts +8 -12
- package/api/payment-setup-api.ts +28 -36
- package/api/payments-api.ts +25 -27
- package/api/refunds-api.ts +15 -13
- package/dist/api/bank-accounts-api.d.ts +12 -14
- package/dist/api/bank-accounts-api.js +12 -12
- package/dist/api/bank-transaction-api.d.ts +29 -9
- package/dist/api/bank-transaction-api.js +26 -12
- package/dist/api/payment-methods-api.d.ts +27 -31
- package/dist/api/payment-methods-api.js +28 -24
- package/dist/api/payment-reminders-api.d.ts +12 -14
- package/dist/api/payment-setup-api.d.ts +18 -22
- package/dist/api/payment-setup-api.js +24 -24
- package/dist/api/payments-api.d.ts +21 -24
- package/dist/api/payments-api.js +16 -12
- package/dist/api/refunds-api.d.ts +10 -10
- package/dist/api/refunds-api.js +11 -9
- package/dist/models/create-payment-request-dto.d.ts +3 -3
- package/dist/models/get-request-dto.d.ts +1 -1
- package/dist/models/index.d.ts +2 -29
- package/dist/models/index.js +2 -29
- package/dist/models/{sepa-direct-dto.d.ts → link-bank-transaction-request-dto-rest.d.ts} +5 -5
- package/dist/models/{initiate-braintree-payment-setup-response-class.d.ts → unlink-bank-transaction-request-dto-rest.d.ts} +5 -5
- package/dist/models/validate-pspconfig-request-dto.d.ts +1 -8
- package/dist/models/validate-pspconfig-request-dto.js +0 -7
- package/models/create-payment-request-dto.ts +3 -3
- package/models/get-request-dto.ts +1 -1
- package/models/index.ts +2 -29
- package/models/{sepa-direct-dto.ts → link-bank-transaction-request-dto-rest.ts} +5 -5
- package/models/{initiate-braintree-payment-setup-response-class.ts → unlink-bank-transaction-request-dto-rest.ts} +5 -5
- package/models/validate-pspconfig-request-dto.ts +1 -11
- package/package.json +1 -1
- package/dist/models/bank-account-class.d.ts +0 -54
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- package/dist/models/billing-profile-limited-response-dto.js +0 -15
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- package/dist/models/complete-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
- package/dist/models/complete-payment-setup-response-class.js +0 -15
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/create-bank-account-request-dto.d.ts +0 -30
- package/dist/models/create-bank-account-request-dto.js +0 -15
- package/dist/models/create-payment-method-response-class.d.ts +0 -25
- package/dist/models/create-payment-method-response-class.js +0 -15
- package/dist/models/create-payment-response-class.d.ts +0 -25
- package/dist/models/create-payment-response-class.js +0 -15
- package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
- package/dist/models/create-psp-payment-method-request-dto.js +0 -32
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
- package/dist/models/get-payment-method-response-class.d.ts +0 -25
- package/dist/models/get-payment-method-response-class.js +0 -15
- package/dist/models/get-payment-response-class.d.ts +0 -25
- package/dist/models/get-payment-response-class.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
- package/dist/models/initiate-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
- package/dist/models/list-bank-accounts-response-class.js +0 -15
- package/dist/models/list-payment-methods-response-class.d.ts +0 -31
- package/dist/models/list-payment-methods-response-class.js +0 -15
- package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
- package/dist/models/list-payment-reminders-response-class.js +0 -15
- package/dist/models/list-payments-response-class.d.ts +0 -31
- package/dist/models/list-payments-response-class.js +0 -15
- package/dist/models/payment-class.d.ts +0 -103
- package/dist/models/payment-class.js +0 -15
- package/dist/models/payment-method-class.d.ts +0 -66
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -112
- package/dist/models/payment-reminder-class.js +0 -36
- package/dist/models/sepa-direct-dto.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- package/models/bank-account-class.ts +0 -60
- package/models/billing-profile-dto.ts +0 -44
- package/models/billing-profile-limited-response-dto.ts +0 -60
- package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
- package/models/complete-payment-setup-request-dto.ts +0 -38
- package/models/complete-payment-setup-response-class.ts +0 -31
- package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
- package/models/create-bank-account-request-dto.ts +0 -36
- package/models/create-payment-method-response-class.ts +0 -31
- package/models/create-payment-response-class.ts +0 -31
- package/models/create-psp-payment-method-request-dto.ts +0 -70
- package/models/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/get-payment-method-response-class.ts +0 -31
- package/models/get-payment-response-class.ts +0 -31
- package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
- package/models/initiate-payment-setup-request-dto.ts +0 -50
- package/models/initiate-payment-setup-response-class.ts +0 -38
- package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
- package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
- package/models/list-bank-accounts-response-class.ts +0 -37
- package/models/list-payment-methods-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/list-payments-response-class.ts +0 -37
- package/models/payment-class.ts +0 -109
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -122
- package/models/symphony-profile-limited-response-dto.ts +0 -48
- /package/dist/models/{bank-account-class.js → link-bank-transaction-request-dto-rest.js} +0 -0
- /package/dist/models/{billing-profile-dto.js → unlink-bank-transaction-request-dto-rest.js} +0 -0
|
@@ -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 {object} body
|
|
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 (body, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
106
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
107
|
return __generator(this, function (_a) {
|
|
108
108
|
switch (_a.label) {
|
|
109
109
|
case 0:
|
|
110
|
-
// verify required parameter '
|
|
111
|
-
(0, common_1.assertParamExists)('createBankAccount', '
|
|
110
|
+
// verify required parameter 'body' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('createBankAccount', 'body', body);
|
|
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)(body, 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 {object} body
|
|
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 (body, 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(body, 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 {object} body
|
|
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 (body, authorization, options) {
|
|
293
|
+
return localVarFp.createBankAccount(body, 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.body, 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.
|
|
@@ -13,7 +13,9 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { GetBankTransactionsResponseClass } from '../models';
|
|
16
|
+
import { LinkBankTransactionRequestDtoRest } from '../models';
|
|
16
17
|
import { ListBankTransactionsResponseClass } from '../models';
|
|
18
|
+
import { UnlinkBankTransactionRequestDtoRest } from '../models';
|
|
17
19
|
/**
|
|
18
20
|
* BankTransactionApi - axios parameter creator
|
|
19
21
|
* @export
|
|
@@ -42,11 +44,12 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
42
44
|
* Links a bank transaction with an invoice
|
|
43
45
|
* @summary Link Bank Transaction
|
|
44
46
|
* @param {string} code Code of the bank transaction to link
|
|
47
|
+
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
45
48
|
* @param {string} [authorization] Bearer Token
|
|
46
49
|
* @param {*} [options] Override http request option.
|
|
47
50
|
* @throws {RequiredError}
|
|
48
51
|
*/
|
|
49
|
-
linkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
52
|
+
linkBankTransaction: (code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
50
53
|
/**
|
|
51
54
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
52
55
|
* @summary List bank transactions
|
|
@@ -66,11 +69,12 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
66
69
|
* Unlinks an already linked bank transaction
|
|
67
70
|
* @summary Unlink Bank Transaction
|
|
68
71
|
* @param {string} code Code of the bank transaction to unlink
|
|
72
|
+
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
69
73
|
* @param {string} [authorization] Bearer Token
|
|
70
74
|
* @param {*} [options] Override http request option.
|
|
71
75
|
* @throws {RequiredError}
|
|
72
76
|
*/
|
|
73
|
-
unlinkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
77
|
+
unlinkBankTransaction: (code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
74
78
|
};
|
|
75
79
|
/**
|
|
76
80
|
* BankTransactionApi - functional programming interface
|
|
@@ -100,11 +104,12 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
100
104
|
* Links a bank transaction with an invoice
|
|
101
105
|
* @summary Link Bank Transaction
|
|
102
106
|
* @param {string} code Code of the bank transaction to link
|
|
107
|
+
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
103
108
|
* @param {string} [authorization] Bearer Token
|
|
104
109
|
* @param {*} [options] Override http request option.
|
|
105
110
|
* @throws {RequiredError}
|
|
106
111
|
*/
|
|
107
|
-
linkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
112
|
+
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
108
113
|
/**
|
|
109
114
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
110
115
|
* @summary List bank transactions
|
|
@@ -119,16 +124,17 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
119
124
|
* @param {*} [options] Override http request option.
|
|
120
125
|
* @throws {RequiredError}
|
|
121
126
|
*/
|
|
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<
|
|
127
|
+
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<void>>;
|
|
123
128
|
/**
|
|
124
129
|
* Unlinks an already linked bank transaction
|
|
125
130
|
* @summary Unlink Bank Transaction
|
|
126
131
|
* @param {string} code Code of the bank transaction to unlink
|
|
132
|
+
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
127
133
|
* @param {string} [authorization] Bearer Token
|
|
128
134
|
* @param {*} [options] Override http request option.
|
|
129
135
|
* @throws {RequiredError}
|
|
130
136
|
*/
|
|
131
|
-
unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
137
|
+
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
132
138
|
};
|
|
133
139
|
/**
|
|
134
140
|
* BankTransactionApi - factory interface
|
|
@@ -158,11 +164,12 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
158
164
|
* Links a bank transaction with an invoice
|
|
159
165
|
* @summary Link Bank Transaction
|
|
160
166
|
* @param {string} code Code of the bank transaction to link
|
|
167
|
+
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
161
168
|
* @param {string} [authorization] Bearer Token
|
|
162
169
|
* @param {*} [options] Override http request option.
|
|
163
170
|
* @throws {RequiredError}
|
|
164
171
|
*/
|
|
165
|
-
linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
172
|
+
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
166
173
|
/**
|
|
167
174
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
168
175
|
* @summary List bank transactions
|
|
@@ -177,16 +184,17 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
177
184
|
* @param {*} [options] Override http request option.
|
|
178
185
|
* @throws {RequiredError}
|
|
179
186
|
*/
|
|
180
|
-
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<
|
|
187
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<void>;
|
|
181
188
|
/**
|
|
182
189
|
* Unlinks an already linked bank transaction
|
|
183
190
|
* @summary Unlink Bank Transaction
|
|
184
191
|
* @param {string} code Code of the bank transaction to unlink
|
|
192
|
+
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
185
193
|
* @param {string} [authorization] Bearer Token
|
|
186
194
|
* @param {*} [options] Override http request option.
|
|
187
195
|
* @throws {RequiredError}
|
|
188
196
|
*/
|
|
189
|
-
unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
197
|
+
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
190
198
|
};
|
|
191
199
|
/**
|
|
192
200
|
* Request parameters for getBankTransaction operation in BankTransactionApi.
|
|
@@ -244,6 +252,12 @@ export interface BankTransactionApiLinkBankTransactionRequest {
|
|
|
244
252
|
* @memberof BankTransactionApiLinkBankTransaction
|
|
245
253
|
*/
|
|
246
254
|
readonly code: string;
|
|
255
|
+
/**
|
|
256
|
+
*
|
|
257
|
+
* @type {LinkBankTransactionRequestDtoRest}
|
|
258
|
+
* @memberof BankTransactionApiLinkBankTransaction
|
|
259
|
+
*/
|
|
260
|
+
readonly linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest;
|
|
247
261
|
/**
|
|
248
262
|
* Bearer Token
|
|
249
263
|
* @type {string}
|
|
@@ -318,6 +332,12 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
|
318
332
|
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
319
333
|
*/
|
|
320
334
|
readonly code: string;
|
|
335
|
+
/**
|
|
336
|
+
*
|
|
337
|
+
* @type {UnlinkBankTransactionRequestDtoRest}
|
|
338
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
339
|
+
*/
|
|
340
|
+
readonly unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest;
|
|
321
341
|
/**
|
|
322
342
|
* Bearer Token
|
|
323
343
|
* @type {string}
|
|
@@ -367,7 +387,7 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
367
387
|
* @throws {RequiredError}
|
|
368
388
|
* @memberof BankTransactionApi
|
|
369
389
|
*/
|
|
370
|
-
listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
390
|
+
listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
371
391
|
/**
|
|
372
392
|
* Unlinks an already linked bank transaction
|
|
373
393
|
* @summary Unlink Bank Transaction
|
|
@@ -198,11 +198,12 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
198
198
|
* Links a bank transaction with an invoice
|
|
199
199
|
* @summary Link Bank Transaction
|
|
200
200
|
* @param {string} code Code of the bank transaction to link
|
|
201
|
+
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
201
202
|
* @param {string} [authorization] Bearer Token
|
|
202
203
|
* @param {*} [options] Override http request option.
|
|
203
204
|
* @throws {RequiredError}
|
|
204
205
|
*/
|
|
205
|
-
linkBankTransaction: function (code, authorization, options) {
|
|
206
|
+
linkBankTransaction: function (code, linkBankTransactionRequestDtoRest, authorization, options) {
|
|
206
207
|
if (options === void 0) { options = {}; }
|
|
207
208
|
return __awaiter(_this, void 0, void 0, function () {
|
|
208
209
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -211,6 +212,8 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
211
212
|
case 0:
|
|
212
213
|
// verify required parameter 'code' is not null or undefined
|
|
213
214
|
(0, common_1.assertParamExists)('linkBankTransaction', 'code', code);
|
|
215
|
+
// verify required parameter 'linkBankTransactionRequestDtoRest' is not null or undefined
|
|
216
|
+
(0, common_1.assertParamExists)('linkBankTransaction', 'linkBankTransactionRequestDtoRest', linkBankTransactionRequestDtoRest);
|
|
214
217
|
localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/link"
|
|
215
218
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
216
219
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -231,9 +234,11 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
231
234
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
232
235
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
233
236
|
}
|
|
237
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
234
238
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
235
239
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
236
240
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
241
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(linkBankTransactionRequestDtoRest, localVarRequestOptions, configuration);
|
|
237
242
|
return [2 /*return*/, {
|
|
238
243
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
239
244
|
options: localVarRequestOptions,
|
|
@@ -318,11 +323,12 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
318
323
|
* Unlinks an already linked bank transaction
|
|
319
324
|
* @summary Unlink Bank Transaction
|
|
320
325
|
* @param {string} code Code of the bank transaction to unlink
|
|
326
|
+
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
321
327
|
* @param {string} [authorization] Bearer Token
|
|
322
328
|
* @param {*} [options] Override http request option.
|
|
323
329
|
* @throws {RequiredError}
|
|
324
330
|
*/
|
|
325
|
-
unlinkBankTransaction: function (code, authorization, options) {
|
|
331
|
+
unlinkBankTransaction: function (code, unlinkBankTransactionRequestDtoRest, authorization, options) {
|
|
326
332
|
if (options === void 0) { options = {}; }
|
|
327
333
|
return __awaiter(_this, void 0, void 0, function () {
|
|
328
334
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -331,6 +337,8 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
331
337
|
case 0:
|
|
332
338
|
// verify required parameter 'code' is not null or undefined
|
|
333
339
|
(0, common_1.assertParamExists)('unlinkBankTransaction', 'code', code);
|
|
340
|
+
// verify required parameter 'unlinkBankTransactionRequestDtoRest' is not null or undefined
|
|
341
|
+
(0, common_1.assertParamExists)('unlinkBankTransaction', 'unlinkBankTransactionRequestDtoRest', unlinkBankTransactionRequestDtoRest);
|
|
334
342
|
localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/unlink"
|
|
335
343
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
336
344
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -351,9 +359,11 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
351
359
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
352
360
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
353
361
|
}
|
|
362
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
354
363
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
355
364
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
356
365
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
366
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(unlinkBankTransactionRequestDtoRest, localVarRequestOptions, configuration);
|
|
357
367
|
return [2 /*return*/, {
|
|
358
368
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
359
369
|
options: localVarRequestOptions,
|
|
@@ -419,16 +429,17 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
419
429
|
* Links a bank transaction with an invoice
|
|
420
430
|
* @summary Link Bank Transaction
|
|
421
431
|
* @param {string} code Code of the bank transaction to link
|
|
432
|
+
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
422
433
|
* @param {string} [authorization] Bearer Token
|
|
423
434
|
* @param {*} [options] Override http request option.
|
|
424
435
|
* @throws {RequiredError}
|
|
425
436
|
*/
|
|
426
|
-
linkBankTransaction: function (code, authorization, options) {
|
|
437
|
+
linkBankTransaction: function (code, linkBankTransactionRequestDtoRest, authorization, options) {
|
|
427
438
|
return __awaiter(this, void 0, void 0, function () {
|
|
428
439
|
var localVarAxiosArgs;
|
|
429
440
|
return __generator(this, function (_a) {
|
|
430
441
|
switch (_a.label) {
|
|
431
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkBankTransaction(code, authorization, options)];
|
|
442
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options)];
|
|
432
443
|
case 1:
|
|
433
444
|
localVarAxiosArgs = _a.sent();
|
|
434
445
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -467,16 +478,17 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
467
478
|
* Unlinks an already linked bank transaction
|
|
468
479
|
* @summary Unlink Bank Transaction
|
|
469
480
|
* @param {string} code Code of the bank transaction to unlink
|
|
481
|
+
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
470
482
|
* @param {string} [authorization] Bearer Token
|
|
471
483
|
* @param {*} [options] Override http request option.
|
|
472
484
|
* @throws {RequiredError}
|
|
473
485
|
*/
|
|
474
|
-
unlinkBankTransaction: function (code, authorization, options) {
|
|
486
|
+
unlinkBankTransaction: function (code, unlinkBankTransactionRequestDtoRest, authorization, options) {
|
|
475
487
|
return __awaiter(this, void 0, void 0, function () {
|
|
476
488
|
var localVarAxiosArgs;
|
|
477
489
|
return __generator(this, function (_a) {
|
|
478
490
|
switch (_a.label) {
|
|
479
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options)];
|
|
491
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options)];
|
|
480
492
|
case 1:
|
|
481
493
|
localVarAxiosArgs = _a.sent();
|
|
482
494
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -521,12 +533,13 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
521
533
|
* Links a bank transaction with an invoice
|
|
522
534
|
* @summary Link Bank Transaction
|
|
523
535
|
* @param {string} code Code of the bank transaction to link
|
|
536
|
+
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
524
537
|
* @param {string} [authorization] Bearer Token
|
|
525
538
|
* @param {*} [options] Override http request option.
|
|
526
539
|
* @throws {RequiredError}
|
|
527
540
|
*/
|
|
528
|
-
linkBankTransaction: function (code, authorization, options) {
|
|
529
|
-
return localVarFp.linkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
541
|
+
linkBankTransaction: function (code, linkBankTransactionRequestDtoRest, authorization, options) {
|
|
542
|
+
return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
530
543
|
},
|
|
531
544
|
/**
|
|
532
545
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -549,12 +562,13 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
549
562
|
* Unlinks an already linked bank transaction
|
|
550
563
|
* @summary Unlink Bank Transaction
|
|
551
564
|
* @param {string} code Code of the bank transaction to unlink
|
|
565
|
+
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
552
566
|
* @param {string} [authorization] Bearer Token
|
|
553
567
|
* @param {*} [options] Override http request option.
|
|
554
568
|
* @throws {RequiredError}
|
|
555
569
|
*/
|
|
556
|
-
unlinkBankTransaction: function (code, authorization, options) {
|
|
557
|
-
return localVarFp.unlinkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
570
|
+
unlinkBankTransaction: function (code, unlinkBankTransactionRequestDtoRest, authorization, options) {
|
|
571
|
+
return localVarFp.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
558
572
|
},
|
|
559
573
|
};
|
|
560
574
|
};
|
|
@@ -605,7 +619,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
605
619
|
*/
|
|
606
620
|
BankTransactionApi.prototype.linkBankTransaction = function (requestParameters, options) {
|
|
607
621
|
var _this = this;
|
|
608
|
-
return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
622
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
609
623
|
};
|
|
610
624
|
/**
|
|
611
625
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -630,7 +644,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
630
644
|
*/
|
|
631
645
|
BankTransactionApi.prototype.unlinkBankTransaction = function (requestParameters, options) {
|
|
632
646
|
var _this = this;
|
|
633
|
-
return (0, exports.BankTransactionApiFp)(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
647
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.unlinkBankTransactionRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
634
648
|
};
|
|
635
649
|
return BankTransactionApi;
|
|
636
650
|
}(base_1.BaseAPI));
|
|
@@ -12,10 +12,6 @@
|
|
|
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';
|
|
19
15
|
/**
|
|
20
16
|
* PaymentMethodsApi - axios parameter creator
|
|
21
17
|
* @export
|
|
@@ -24,12 +20,12 @@ export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Config
|
|
|
24
20
|
/**
|
|
25
21
|
* 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.
|
|
26
22
|
* @summary Create the payment-method
|
|
27
|
-
* @param {
|
|
23
|
+
* @param {object} body
|
|
28
24
|
* @param {string} [authorization] Bearer Token
|
|
29
25
|
* @param {*} [options] Override http request option.
|
|
30
26
|
* @throws {RequiredError}
|
|
31
27
|
*/
|
|
32
|
-
createPaymentMethod: (
|
|
28
|
+
createPaymentMethod: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
29
|
/**
|
|
34
30
|
* 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.
|
|
35
31
|
* @summary Delete a payment method
|
|
@@ -43,13 +39,13 @@ export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Config
|
|
|
43
39
|
* 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.
|
|
44
40
|
* @summary Retrieve a payment method
|
|
45
41
|
* @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
|
|
46
44
|
* @param {string} [authorization] Bearer Token
|
|
47
|
-
* @param {string} [expand] Fields to expand response by
|
|
48
|
-
* @param {string} [expand2] Fields to expand response by
|
|
49
45
|
* @param {*} [options] Override http request option.
|
|
50
46
|
* @throws {RequiredError}
|
|
51
47
|
*/
|
|
52
|
-
getPaymentMethod: (code: string,
|
|
48
|
+
getPaymentMethod: (code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
53
49
|
/**
|
|
54
50
|
* 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.
|
|
55
51
|
* @summary List payment methods
|
|
@@ -74,12 +70,12 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
|
|
|
74
70
|
/**
|
|
75
71
|
* 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.
|
|
76
72
|
* @summary Create the payment-method
|
|
77
|
-
* @param {
|
|
73
|
+
* @param {object} body
|
|
78
74
|
* @param {string} [authorization] Bearer Token
|
|
79
75
|
* @param {*} [options] Override http request option.
|
|
80
76
|
* @throws {RequiredError}
|
|
81
77
|
*/
|
|
82
|
-
createPaymentMethod(
|
|
78
|
+
createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
83
79
|
/**
|
|
84
80
|
* 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.
|
|
85
81
|
* @summary Delete a payment method
|
|
@@ -93,13 +89,13 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
|
|
|
93
89
|
* 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.
|
|
94
90
|
* @summary Retrieve a payment method
|
|
95
91
|
* @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
|
|
96
94
|
* @param {string} [authorization] Bearer Token
|
|
97
|
-
* @param {string} [expand] Fields to expand response by
|
|
98
|
-
* @param {string} [expand2] Fields to expand response by
|
|
99
95
|
* @param {*} [options] Override http request option.
|
|
100
96
|
* @throws {RequiredError}
|
|
101
97
|
*/
|
|
102
|
-
getPaymentMethod(code: string,
|
|
98
|
+
getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
103
99
|
/**
|
|
104
100
|
* 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.
|
|
105
101
|
* @summary List payment methods
|
|
@@ -114,7 +110,7 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
|
|
|
114
110
|
* @param {*} [options] Override http request option.
|
|
115
111
|
* @throws {RequiredError}
|
|
116
112
|
*/
|
|
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<
|
|
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<void>>;
|
|
118
114
|
};
|
|
119
115
|
/**
|
|
120
116
|
* PaymentMethodsApi - factory interface
|
|
@@ -124,12 +120,12 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
|
|
|
124
120
|
/**
|
|
125
121
|
* 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.
|
|
126
122
|
* @summary Create the payment-method
|
|
127
|
-
* @param {
|
|
123
|
+
* @param {object} body
|
|
128
124
|
* @param {string} [authorization] Bearer Token
|
|
129
125
|
* @param {*} [options] Override http request option.
|
|
130
126
|
* @throws {RequiredError}
|
|
131
127
|
*/
|
|
132
|
-
createPaymentMethod(
|
|
128
|
+
createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void>;
|
|
133
129
|
/**
|
|
134
130
|
* 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.
|
|
135
131
|
* @summary Delete a payment method
|
|
@@ -143,13 +139,13 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
|
|
|
143
139
|
* 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.
|
|
144
140
|
* @summary Retrieve a payment method
|
|
145
141
|
* @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
|
|
146
144
|
* @param {string} [authorization] Bearer Token
|
|
147
|
-
* @param {string} [expand] Fields to expand response by
|
|
148
|
-
* @param {string} [expand2] Fields to expand response by
|
|
149
145
|
* @param {*} [options] Override http request option.
|
|
150
146
|
* @throws {RequiredError}
|
|
151
147
|
*/
|
|
152
|
-
getPaymentMethod(code: string,
|
|
148
|
+
getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
153
149
|
/**
|
|
154
150
|
* 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.
|
|
155
151
|
* @summary List payment methods
|
|
@@ -164,7 +160,7 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
|
|
|
164
160
|
* @param {*} [options] Override http request option.
|
|
165
161
|
* @throws {RequiredError}
|
|
166
162
|
*/
|
|
167
|
-
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
163
|
+
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void>;
|
|
168
164
|
};
|
|
169
165
|
/**
|
|
170
166
|
* Request parameters for createPaymentMethod operation in PaymentMethodsApi.
|
|
@@ -174,10 +170,10 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
|
|
|
174
170
|
export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
175
171
|
/**
|
|
176
172
|
*
|
|
177
|
-
* @type {
|
|
173
|
+
* @type {object}
|
|
178
174
|
* @memberof PaymentMethodsApiCreatePaymentMethod
|
|
179
175
|
*/
|
|
180
|
-
readonly
|
|
176
|
+
readonly body: object;
|
|
181
177
|
/**
|
|
182
178
|
* Bearer Token
|
|
183
179
|
* @type {string}
|
|
@@ -217,23 +213,23 @@ export interface PaymentMethodsApiGetPaymentMethodRequest {
|
|
|
217
213
|
*/
|
|
218
214
|
readonly code: string;
|
|
219
215
|
/**
|
|
220
|
-
*
|
|
216
|
+
* Fields to expand response by
|
|
221
217
|
* @type {string}
|
|
222
218
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
223
219
|
*/
|
|
224
|
-
readonly
|
|
220
|
+
readonly expand: string;
|
|
225
221
|
/**
|
|
226
222
|
* Fields to expand response by
|
|
227
223
|
* @type {string}
|
|
228
224
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
229
225
|
*/
|
|
230
|
-
readonly
|
|
226
|
+
readonly expand2: string;
|
|
231
227
|
/**
|
|
232
|
-
*
|
|
228
|
+
* Bearer Token
|
|
233
229
|
* @type {string}
|
|
234
230
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
235
231
|
*/
|
|
236
|
-
readonly
|
|
232
|
+
readonly authorization?: string;
|
|
237
233
|
}
|
|
238
234
|
/**
|
|
239
235
|
* Request parameters for listPaymentMethods operation in PaymentMethodsApi.
|
|
@@ -305,7 +301,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
305
301
|
* @throws {RequiredError}
|
|
306
302
|
* @memberof PaymentMethodsApi
|
|
307
303
|
*/
|
|
308
|
-
createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
304
|
+
createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
309
305
|
/**
|
|
310
306
|
* 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.
|
|
311
307
|
* @summary Delete a payment method
|
|
@@ -323,7 +319,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
323
319
|
* @throws {RequiredError}
|
|
324
320
|
* @memberof PaymentMethodsApi
|
|
325
321
|
*/
|
|
326
|
-
getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
322
|
+
getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
327
323
|
/**
|
|
328
324
|
* 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.
|
|
329
325
|
* @summary List payment methods
|
|
@@ -332,5 +328,5 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
332
328
|
* @throws {RequiredError}
|
|
333
329
|
* @memberof PaymentMethodsApi
|
|
334
330
|
*/
|
|
335
|
-
listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
331
|
+
listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
336
332
|
}
|