@emilgroup/payment-sdk 1.4.1-beta.17 → 1.4.1-beta.19
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 +135 -15
- package/api/bank-transaction-api.ts +3 -3
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +38 -32
- package/api/payment-reminders-api.ts +13 -9
- package/api/payment-setup-api.ts +37 -29
- package/api/payments-api.ts +24 -20
- 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 +84 -18
- package/dist/api/bank-accounts-api.js +108 -9
- package/dist/api/bank-transaction-api.d.ts +4 -4
- package/dist/api/bank-transaction-api.js +1 -1
- 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 +28 -24
- package/dist/api/payment-methods-api.js +22 -24
- 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 +21 -18
- package/dist/api/payments-api.js +10 -12
- 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 +15 -3
- package/dist/models/bank-account-class.js +1 -1
- 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 +19 -7
- package/dist/models/create-bank-account-request-dto.js +1 -1
- 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/create-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-response-class.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-account-response-class.d.ts +2 -2
- package/dist/models/get-bank-account-response-class.js +1 -1
- 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/link-bank-transaction-request-dto-rest.d.ts +1 -1
- package/dist/models/link-bank-transaction-request-dto-rest.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/list-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/list-tenant-bank-account-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/primary-bank-account-response-class.d.ts +2 -2
- package/dist/models/primary-bank-account-response-class.js +1 -1
- 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/set-primary-bank-account-request-dto-rest.d.ts +2 -2
- package/dist/models/set-primary-bank-account-request-dto-rest.js +1 -1
- 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/unlink-bank-transaction-request-dto-rest.d.ts +1 -1
- package/dist/models/unlink-bank-transaction-request-dto-rest.js +1 -1
- package/dist/models/update-bank-account-request-dto-rest.d.ts +30 -0
- package/dist/models/update-bank-account-request-dto-rest.js +15 -0
- package/dist/models/update-bank-account-request-dto.d.ts +36 -0
- package/dist/models/update-bank-account-request-dto.js +15 -0
- 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 +15 -3
- 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 +19 -7
- 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/create-tenant-bank-account-response-class.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-account-response-class.ts +2 -2
- 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/link-bank-transaction-request-dto-rest.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/list-tenant-bank-account-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/primary-bank-account-response-class.ts +2 -2
- package/models/refund-class.ts +1 -1
- package/models/sepa-direct-dto.ts +30 -0
- package/models/set-primary-bank-account-request-dto-rest.ts +2 -2
- 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/unlink-bank-transaction-request-dto-rest.ts +1 -1
- package/models/update-bank-account-request-dto-rest.ts +36 -0
- package/models/update-bank-account-request-dto.ts +42 -0
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Emil Payment Service
|
|
3
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
6
|
* Contact: kontakt@emil.de
|
|
@@ -14,7 +14,9 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateBankAccountRequestDto } from '../models';
|
|
16
16
|
import { GetBankAccountResponseClass } from '../models';
|
|
17
|
+
import { ListBankAccountsResponseClass } from '../models';
|
|
17
18
|
import { SetPrimaryBankAccountRequestDtoRest } from '../models';
|
|
19
|
+
import { UpdateBankAccountRequestDtoRest } from '../models';
|
|
18
20
|
/**
|
|
19
21
|
* BankAccountsApi - axios parameter creator
|
|
20
22
|
* @export
|
|
@@ -63,8 +65,8 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
|
|
|
63
65
|
*/
|
|
64
66
|
listBankAccounts: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
65
67
|
/**
|
|
66
|
-
* Set
|
|
67
|
-
* @summary Set
|
|
68
|
+
* Set primary bank account
|
|
69
|
+
* @summary Set primary bank account
|
|
68
70
|
* @param {string} code Code of the bank account to set primary
|
|
69
71
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
70
72
|
* @param {string} [authorization] Bearer Token
|
|
@@ -72,6 +74,16 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
|
|
|
72
74
|
* @throws {RequiredError}
|
|
73
75
|
*/
|
|
74
76
|
setPrimaryBankAccount: (code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
77
|
+
/**
|
|
78
|
+
* Update a bank account by code
|
|
79
|
+
* @summary Update the Update bank account
|
|
80
|
+
* @param {string} code Unique identifier for the object.
|
|
81
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
82
|
+
* @param {string} [authorization] Bearer Token
|
|
83
|
+
* @param {*} [options] Override http request option.
|
|
84
|
+
* @throws {RequiredError}
|
|
85
|
+
*/
|
|
86
|
+
updateBankAccount: (code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
75
87
|
};
|
|
76
88
|
/**
|
|
77
89
|
* BankAccountsApi - functional programming interface
|
|
@@ -86,7 +98,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
86
98
|
* @param {*} [options] Override http request option.
|
|
87
99
|
* @throws {RequiredError}
|
|
88
100
|
*/
|
|
89
|
-
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
101
|
+
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
90
102
|
/**
|
|
91
103
|
* Deletes a bank account by code
|
|
92
104
|
* @summary Delete the bank account
|
|
@@ -119,17 +131,27 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
119
131
|
* @param {*} [options] Override http request option.
|
|
120
132
|
* @throws {RequiredError}
|
|
121
133
|
*/
|
|
122
|
-
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
134
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>>;
|
|
123
135
|
/**
|
|
124
|
-
* Set
|
|
125
|
-
* @summary Set
|
|
136
|
+
* Set primary bank account
|
|
137
|
+
* @summary Set primary bank account
|
|
126
138
|
* @param {string} code Code of the bank account to set primary
|
|
127
139
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
128
140
|
* @param {string} [authorization] Bearer Token
|
|
129
141
|
* @param {*} [options] Override http request option.
|
|
130
142
|
* @throws {RequiredError}
|
|
131
143
|
*/
|
|
132
|
-
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
144
|
+
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
145
|
+
/**
|
|
146
|
+
* Update a bank account by code
|
|
147
|
+
* @summary Update the Update bank account
|
|
148
|
+
* @param {string} code Unique identifier for the object.
|
|
149
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
150
|
+
* @param {string} [authorization] Bearer Token
|
|
151
|
+
* @param {*} [options] Override http request option.
|
|
152
|
+
* @throws {RequiredError}
|
|
153
|
+
*/
|
|
154
|
+
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
133
155
|
};
|
|
134
156
|
/**
|
|
135
157
|
* BankAccountsApi - factory interface
|
|
@@ -144,7 +166,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
144
166
|
* @param {*} [options] Override http request option.
|
|
145
167
|
* @throws {RequiredError}
|
|
146
168
|
*/
|
|
147
|
-
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
169
|
+
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
|
|
148
170
|
/**
|
|
149
171
|
* Deletes a bank account by code
|
|
150
172
|
* @summary Delete the bank account
|
|
@@ -177,17 +199,27 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
177
199
|
* @param {*} [options] Override http request option.
|
|
178
200
|
* @throws {RequiredError}
|
|
179
201
|
*/
|
|
180
|
-
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
202
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListBankAccountsResponseClass>;
|
|
181
203
|
/**
|
|
182
|
-
* Set
|
|
183
|
-
* @summary Set
|
|
204
|
+
* Set primary bank account
|
|
205
|
+
* @summary Set primary bank account
|
|
184
206
|
* @param {string} code Code of the bank account to set primary
|
|
185
207
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
186
208
|
* @param {string} [authorization] Bearer Token
|
|
187
209
|
* @param {*} [options] Override http request option.
|
|
188
210
|
* @throws {RequiredError}
|
|
189
211
|
*/
|
|
190
|
-
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
212
|
+
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<object>;
|
|
213
|
+
/**
|
|
214
|
+
* Update a bank account by code
|
|
215
|
+
* @summary Update the Update bank account
|
|
216
|
+
* @param {string} code Unique identifier for the object.
|
|
217
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
218
|
+
* @param {string} [authorization] Bearer Token
|
|
219
|
+
* @param {*} [options] Override http request option.
|
|
220
|
+
* @throws {RequiredError}
|
|
221
|
+
*/
|
|
222
|
+
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<object>;
|
|
191
223
|
};
|
|
192
224
|
/**
|
|
193
225
|
* Request parameters for createBankAccount operation in BankAccountsApi.
|
|
@@ -326,6 +358,31 @@ export interface BankAccountsApiSetPrimaryBankAccountRequest {
|
|
|
326
358
|
*/
|
|
327
359
|
readonly authorization?: string;
|
|
328
360
|
}
|
|
361
|
+
/**
|
|
362
|
+
* Request parameters for updateBankAccount operation in BankAccountsApi.
|
|
363
|
+
* @export
|
|
364
|
+
* @interface BankAccountsApiUpdateBankAccountRequest
|
|
365
|
+
*/
|
|
366
|
+
export interface BankAccountsApiUpdateBankAccountRequest {
|
|
367
|
+
/**
|
|
368
|
+
* Unique identifier for the object.
|
|
369
|
+
* @type {string}
|
|
370
|
+
* @memberof BankAccountsApiUpdateBankAccount
|
|
371
|
+
*/
|
|
372
|
+
readonly code: string;
|
|
373
|
+
/**
|
|
374
|
+
*
|
|
375
|
+
* @type {UpdateBankAccountRequestDtoRest}
|
|
376
|
+
* @memberof BankAccountsApiUpdateBankAccount
|
|
377
|
+
*/
|
|
378
|
+
readonly updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest;
|
|
379
|
+
/**
|
|
380
|
+
* Bearer Token
|
|
381
|
+
* @type {string}
|
|
382
|
+
* @memberof BankAccountsApiUpdateBankAccount
|
|
383
|
+
*/
|
|
384
|
+
readonly authorization?: string;
|
|
385
|
+
}
|
|
329
386
|
/**
|
|
330
387
|
* BankAccountsApi - object-oriented interface
|
|
331
388
|
* @export
|
|
@@ -341,7 +398,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
341
398
|
* @throws {RequiredError}
|
|
342
399
|
* @memberof BankAccountsApi
|
|
343
400
|
*/
|
|
344
|
-
createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
401
|
+
createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
345
402
|
/**
|
|
346
403
|
* Deletes a bank account by code
|
|
347
404
|
* @summary Delete the bank account
|
|
@@ -368,14 +425,23 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
368
425
|
* @throws {RequiredError}
|
|
369
426
|
* @memberof BankAccountsApi
|
|
370
427
|
*/
|
|
371
|
-
listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
428
|
+
listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankAccountsResponseClass, any>>;
|
|
372
429
|
/**
|
|
373
|
-
* Set
|
|
374
|
-
* @summary Set
|
|
430
|
+
* Set primary bank account
|
|
431
|
+
* @summary Set primary bank account
|
|
375
432
|
* @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
|
|
376
433
|
* @param {*} [options] Override http request option.
|
|
377
434
|
* @throws {RequiredError}
|
|
378
435
|
* @memberof BankAccountsApi
|
|
379
436
|
*/
|
|
380
|
-
setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
437
|
+
setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
438
|
+
/**
|
|
439
|
+
* Update a bank account by code
|
|
440
|
+
* @summary Update the Update bank account
|
|
441
|
+
* @param {BankAccountsApiUpdateBankAccountRequest} requestParameters Request parameters.
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
* @memberof BankAccountsApi
|
|
445
|
+
*/
|
|
446
|
+
updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
381
447
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Emil Payment Service
|
|
6
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
9
|
* Contact: kontakt@emil.de
|
|
@@ -310,8 +310,8 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
310
310
|
});
|
|
311
311
|
},
|
|
312
312
|
/**
|
|
313
|
-
* Set
|
|
314
|
-
* @summary Set
|
|
313
|
+
* Set primary bank account
|
|
314
|
+
* @summary Set primary bank account
|
|
315
315
|
* @param {string} code Code of the bank account to set primary
|
|
316
316
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
317
317
|
* @param {string} [authorization] Bearer Token
|
|
@@ -362,6 +362,59 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
362
362
|
});
|
|
363
363
|
});
|
|
364
364
|
},
|
|
365
|
+
/**
|
|
366
|
+
* Update a bank account by code
|
|
367
|
+
* @summary Update the Update bank account
|
|
368
|
+
* @param {string} code Unique identifier for the object.
|
|
369
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
370
|
+
* @param {string} [authorization] Bearer Token
|
|
371
|
+
* @param {*} [options] Override http request option.
|
|
372
|
+
* @throws {RequiredError}
|
|
373
|
+
*/
|
|
374
|
+
updateBankAccount: function (code, updateBankAccountRequestDtoRest, authorization, options) {
|
|
375
|
+
if (options === void 0) { options = {}; }
|
|
376
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
377
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
378
|
+
return __generator(this, function (_a) {
|
|
379
|
+
switch (_a.label) {
|
|
380
|
+
case 0:
|
|
381
|
+
// verify required parameter 'code' is not null or undefined
|
|
382
|
+
(0, common_1.assertParamExists)('updateBankAccount', 'code', code);
|
|
383
|
+
// verify required parameter 'updateBankAccountRequestDtoRest' is not null or undefined
|
|
384
|
+
(0, common_1.assertParamExists)('updateBankAccount', 'updateBankAccountRequestDtoRest', updateBankAccountRequestDtoRest);
|
|
385
|
+
localVarPath = "/paymentservice/v1/bank-accounts/{code}"
|
|
386
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
387
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
388
|
+
if (configuration) {
|
|
389
|
+
baseOptions = configuration.baseOptions;
|
|
390
|
+
baseAccessToken = configuration.accessToken;
|
|
391
|
+
}
|
|
392
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
393
|
+
localVarHeaderParameter = {};
|
|
394
|
+
localVarQueryParameter = {};
|
|
395
|
+
// authentication bearer required
|
|
396
|
+
// http bearer authentication required
|
|
397
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
398
|
+
case 1:
|
|
399
|
+
// authentication bearer required
|
|
400
|
+
// http bearer authentication required
|
|
401
|
+
_a.sent();
|
|
402
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
403
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
404
|
+
}
|
|
405
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
406
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
407
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
408
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
409
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBankAccountRequestDtoRest, localVarRequestOptions, configuration);
|
|
410
|
+
return [2 /*return*/, {
|
|
411
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
412
|
+
options: localVarRequestOptions,
|
|
413
|
+
}];
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
});
|
|
417
|
+
},
|
|
365
418
|
};
|
|
366
419
|
};
|
|
367
420
|
exports.BankAccountsApiAxiosParamCreator = BankAccountsApiAxiosParamCreator;
|
|
@@ -463,8 +516,8 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
463
516
|
});
|
|
464
517
|
},
|
|
465
518
|
/**
|
|
466
|
-
* Set
|
|
467
|
-
* @summary Set
|
|
519
|
+
* Set primary bank account
|
|
520
|
+
* @summary Set primary bank account
|
|
468
521
|
* @param {string} code Code of the bank account to set primary
|
|
469
522
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
470
523
|
* @param {string} [authorization] Bearer Token
|
|
@@ -484,6 +537,28 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
484
537
|
});
|
|
485
538
|
});
|
|
486
539
|
},
|
|
540
|
+
/**
|
|
541
|
+
* Update a bank account by code
|
|
542
|
+
* @summary Update the Update bank account
|
|
543
|
+
* @param {string} code Unique identifier for the object.
|
|
544
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
545
|
+
* @param {string} [authorization] Bearer Token
|
|
546
|
+
* @param {*} [options] Override http request option.
|
|
547
|
+
* @throws {RequiredError}
|
|
548
|
+
*/
|
|
549
|
+
updateBankAccount: function (code, updateBankAccountRequestDtoRest, authorization, options) {
|
|
550
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
551
|
+
var localVarAxiosArgs;
|
|
552
|
+
return __generator(this, function (_a) {
|
|
553
|
+
switch (_a.label) {
|
|
554
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options)];
|
|
555
|
+
case 1:
|
|
556
|
+
localVarAxiosArgs = _a.sent();
|
|
557
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
558
|
+
}
|
|
559
|
+
});
|
|
560
|
+
});
|
|
561
|
+
},
|
|
487
562
|
};
|
|
488
563
|
};
|
|
489
564
|
exports.BankAccountsApiFp = BankAccountsApiFp;
|
|
@@ -545,8 +620,8 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
545
620
|
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
546
621
|
},
|
|
547
622
|
/**
|
|
548
|
-
* Set
|
|
549
|
-
* @summary Set
|
|
623
|
+
* Set primary bank account
|
|
624
|
+
* @summary Set primary bank account
|
|
550
625
|
* @param {string} code Code of the bank account to set primary
|
|
551
626
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
552
627
|
* @param {string} [authorization] Bearer Token
|
|
@@ -556,6 +631,18 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
556
631
|
setPrimaryBankAccount: function (code, setPrimaryBankAccountRequestDtoRest, authorization, options) {
|
|
557
632
|
return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
558
633
|
},
|
|
634
|
+
/**
|
|
635
|
+
* Update a bank account by code
|
|
636
|
+
* @summary Update the Update bank account
|
|
637
|
+
* @param {string} code Unique identifier for the object.
|
|
638
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
639
|
+
* @param {string} [authorization] Bearer Token
|
|
640
|
+
* @param {*} [options] Override http request option.
|
|
641
|
+
* @throws {RequiredError}
|
|
642
|
+
*/
|
|
643
|
+
updateBankAccount: function (code, updateBankAccountRequestDtoRest, authorization, options) {
|
|
644
|
+
return localVarFp.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
645
|
+
},
|
|
559
646
|
};
|
|
560
647
|
};
|
|
561
648
|
exports.BankAccountsApiFactory = BankAccountsApiFactory;
|
|
@@ -620,8 +707,8 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
620
707
|
return (0, exports.BankAccountsApiFp)(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
621
708
|
};
|
|
622
709
|
/**
|
|
623
|
-
* Set
|
|
624
|
-
* @summary Set
|
|
710
|
+
* Set primary bank account
|
|
711
|
+
* @summary Set primary bank account
|
|
625
712
|
* @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
|
|
626
713
|
* @param {*} [options] Override http request option.
|
|
627
714
|
* @throws {RequiredError}
|
|
@@ -631,6 +718,18 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
631
718
|
var _this = this;
|
|
632
719
|
return (0, exports.BankAccountsApiFp)(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
633
720
|
};
|
|
721
|
+
/**
|
|
722
|
+
* Update a bank account by code
|
|
723
|
+
* @summary Update the Update bank account
|
|
724
|
+
* @param {BankAccountsApiUpdateBankAccountRequest} requestParameters Request parameters.
|
|
725
|
+
* @param {*} [options] Override http request option.
|
|
726
|
+
* @throws {RequiredError}
|
|
727
|
+
* @memberof BankAccountsApi
|
|
728
|
+
*/
|
|
729
|
+
BankAccountsApi.prototype.updateBankAccount = function (requestParameters, options) {
|
|
730
|
+
var _this = this;
|
|
731
|
+
return (0, exports.BankAccountsApiFp)(this.configuration).updateBankAccount(requestParameters.code, requestParameters.updateBankAccountRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
732
|
+
};
|
|
634
733
|
return BankAccountsApi;
|
|
635
734
|
}(base_1.BaseAPI));
|
|
636
735
|
exports.BankAccountsApi = BankAccountsApi;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Emil Payment Service
|
|
3
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
6
|
* Contact: kontakt@emil.de
|
|
@@ -124,7 +124,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
124
124
|
* @param {*} [options] Override http request option.
|
|
125
125
|
* @throws {RequiredError}
|
|
126
126
|
*/
|
|
127
|
-
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', 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?: 'bankAccount' | 'transaction', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>>;
|
|
128
128
|
/**
|
|
129
129
|
* Unlinks an already linked bank transaction
|
|
130
130
|
* @summary Unlink Bank Transaction
|
|
@@ -184,7 +184,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
184
184
|
* @param {*} [options] Override http request option.
|
|
185
185
|
* @throws {RequiredError}
|
|
186
186
|
*/
|
|
187
|
-
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: any): AxiosPromise<
|
|
187
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass>;
|
|
188
188
|
/**
|
|
189
189
|
* Unlinks an already linked bank transaction
|
|
190
190
|
* @summary Unlink Bank Transaction
|
|
@@ -387,7 +387,7 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
387
387
|
* @throws {RequiredError}
|
|
388
388
|
* @memberof BankTransactionApi
|
|
389
389
|
*/
|
|
390
|
-
listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
390
|
+
listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any>>;
|
|
391
391
|
/**
|
|
392
392
|
* Unlinks an already linked bank transaction
|
|
393
393
|
* @summary Unlink Bank Transaction
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Emil Payment Service
|
|
6
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
9
|
* Contact: kontakt@emil.de
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Emil Payment Service
|
|
3
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
6
|
* Contact: kontakt@emil.de
|
package/dist/api/default-api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Emil Payment Service
|
|
6
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
9
|
* Contact: kontakt@emil.de
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Emil Payment Service
|
|
3
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
6
|
* Contact: kontakt@emil.de
|
|
@@ -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,23 +24,23 @@ 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
|
* 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.
|
|
31
35
|
* @summary Retrieve the payment method
|
|
32
36
|
* @param {string} code
|
|
33
37
|
* @param {string} code2 Unique identifier for the object.
|
|
34
|
-
* @param {string} expand Fields to expand response by
|
|
35
38
|
* @param {string} [authorization] Bearer Token
|
|
39
|
+
* @param {string} [expand] Fields to expand response by
|
|
36
40
|
* @param {*} [options] Override http request option.
|
|
37
41
|
* @throws {RequiredError}
|
|
38
42
|
*/
|
|
39
|
-
getPaymentMethod: (code: string, code2: string,
|
|
43
|
+
getPaymentMethod: (code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
40
44
|
/**
|
|
41
45
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
42
46
|
* @summary List payment methods
|
|
@@ -61,23 +65,23 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
|
|
|
61
65
|
/**
|
|
62
66
|
* 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.
|
|
63
67
|
* @summary Create the payment method
|
|
64
|
-
* @param {
|
|
68
|
+
* @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
|
|
65
69
|
* @param {string} [authorization] Bearer Token
|
|
66
70
|
* @param {*} [options] Override http request option.
|
|
67
71
|
* @throws {RequiredError}
|
|
68
72
|
*/
|
|
69
|
-
createPaymentMethod(
|
|
73
|
+
createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentMethodResponseClass>>;
|
|
70
74
|
/**
|
|
71
75
|
* 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.
|
|
72
76
|
* @summary Retrieve the payment method
|
|
73
77
|
* @param {string} code
|
|
74
78
|
* @param {string} code2 Unique identifier for the object.
|
|
75
|
-
* @param {string} expand Fields to expand response by
|
|
76
79
|
* @param {string} [authorization] Bearer Token
|
|
80
|
+
* @param {string} [expand] Fields to expand response by
|
|
77
81
|
* @param {*} [options] Override http request option.
|
|
78
82
|
* @throws {RequiredError}
|
|
79
83
|
*/
|
|
80
|
-
getPaymentMethod(code: string, code2: string,
|
|
84
|
+
getPaymentMethod(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentMethodResponseClass>>;
|
|
81
85
|
/**
|
|
82
86
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
83
87
|
* @summary List payment methods
|
|
@@ -92,7 +96,7 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
|
|
|
92
96
|
* @param {*} [options] Override http request option.
|
|
93
97
|
* @throws {RequiredError}
|
|
94
98
|
*/
|
|
95
|
-
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<
|
|
99
|
+
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>>;
|
|
96
100
|
};
|
|
97
101
|
/**
|
|
98
102
|
* PaymentMethodsApi - factory interface
|
|
@@ -102,23 +106,23 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
|
|
|
102
106
|
/**
|
|
103
107
|
* 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.
|
|
104
108
|
* @summary Create the payment method
|
|
105
|
-
* @param {
|
|
109
|
+
* @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
|
|
106
110
|
* @param {string} [authorization] Bearer Token
|
|
107
111
|
* @param {*} [options] Override http request option.
|
|
108
112
|
* @throws {RequiredError}
|
|
109
113
|
*/
|
|
110
|
-
createPaymentMethod(
|
|
114
|
+
createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentMethodResponseClass>;
|
|
111
115
|
/**
|
|
112
116
|
* 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.
|
|
113
117
|
* @summary Retrieve the payment method
|
|
114
118
|
* @param {string} code
|
|
115
119
|
* @param {string} code2 Unique identifier for the object.
|
|
116
|
-
* @param {string} expand Fields to expand response by
|
|
117
120
|
* @param {string} [authorization] Bearer Token
|
|
121
|
+
* @param {string} [expand] Fields to expand response by
|
|
118
122
|
* @param {*} [options] Override http request option.
|
|
119
123
|
* @throws {RequiredError}
|
|
120
124
|
*/
|
|
121
|
-
getPaymentMethod(code: string, code2: string,
|
|
125
|
+
getPaymentMethod(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPaymentMethodResponseClass>;
|
|
122
126
|
/**
|
|
123
127
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
124
128
|
* @summary List payment methods
|
|
@@ -133,7 +137,7 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
|
|
|
133
137
|
* @param {*} [options] Override http request option.
|
|
134
138
|
* @throws {RequiredError}
|
|
135
139
|
*/
|
|
136
|
-
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
140
|
+
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentMethodsResponseClass>;
|
|
137
141
|
};
|
|
138
142
|
/**
|
|
139
143
|
* Request parameters for createPaymentMethod operation in PaymentMethodsApi.
|
|
@@ -143,10 +147,10 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
|
|
|
143
147
|
export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
144
148
|
/**
|
|
145
149
|
*
|
|
146
|
-
* @type {
|
|
150
|
+
* @type {CreatePspPaymentMethodRequestDto}
|
|
147
151
|
* @memberof PaymentMethodsApiCreatePaymentMethod
|
|
148
152
|
*/
|
|
149
|
-
readonly
|
|
153
|
+
readonly createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto;
|
|
150
154
|
/**
|
|
151
155
|
* Bearer Token
|
|
152
156
|
* @type {string}
|
|
@@ -173,17 +177,17 @@ export interface PaymentMethodsApiGetPaymentMethodRequest {
|
|
|
173
177
|
*/
|
|
174
178
|
readonly code2: string;
|
|
175
179
|
/**
|
|
176
|
-
*
|
|
180
|
+
* Bearer Token
|
|
177
181
|
* @type {string}
|
|
178
182
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
179
183
|
*/
|
|
180
|
-
readonly
|
|
184
|
+
readonly authorization?: string;
|
|
181
185
|
/**
|
|
182
|
-
*
|
|
186
|
+
* Fields to expand response by
|
|
183
187
|
* @type {string}
|
|
184
188
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
185
189
|
*/
|
|
186
|
-
readonly
|
|
190
|
+
readonly expand?: string;
|
|
187
191
|
}
|
|
188
192
|
/**
|
|
189
193
|
* Request parameters for listPaymentMethods operation in PaymentMethodsApi.
|
|
@@ -255,7 +259,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
255
259
|
* @throws {RequiredError}
|
|
256
260
|
* @memberof PaymentMethodsApi
|
|
257
261
|
*/
|
|
258
|
-
createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
262
|
+
createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentMethodResponseClass, any>>;
|
|
259
263
|
/**
|
|
260
264
|
* 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.
|
|
261
265
|
* @summary Retrieve the payment method
|
|
@@ -264,7 +268,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
264
268
|
* @throws {RequiredError}
|
|
265
269
|
* @memberof PaymentMethodsApi
|
|
266
270
|
*/
|
|
267
|
-
getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
271
|
+
getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentMethodResponseClass, any>>;
|
|
268
272
|
/**
|
|
269
273
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
270
274
|
* @summary List payment methods
|
|
@@ -273,5 +277,5 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
273
277
|
* @throws {RequiredError}
|
|
274
278
|
* @memberof PaymentMethodsApi
|
|
275
279
|
*/
|
|
276
|
-
listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
280
|
+
listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentMethodsResponseClass, any>>;
|
|
277
281
|
}
|