@emilgroup/payment-sdk 1.4.1-beta.22 → 1.4.1-beta.24
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 +0 -7
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +19 -461
- package/api/bank-transaction-api.ts +1 -1
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +35 -142
- package/api/payment-reminders-api.ts +1 -1
- package/api/payment-setup-api.ts +1 -1
- package/api/payments-api.ts +39 -42
- package/api/refunds-api.ts +1 -1
- package/api/tenant-bank-account-api.ts +9 -9
- 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 +13 -255
- package/dist/api/bank-accounts-api.js +17 -399
- package/dist/api/bank-transaction-api.d.ts +1 -1
- 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 +26 -81
- package/dist/api/payment-methods-api.js +31 -127
- package/dist/api/payment-reminders-api.d.ts +1 -1
- package/dist/api/payment-reminders-api.js +1 -1
- package/dist/api/payment-setup-api.d.ts +1 -1
- package/dist/api/payment-setup-api.js +1 -1
- package/dist/api/payments-api.d.ts +30 -30
- package/dist/api/payments-api.js +35 -37
- package/dist/api/refunds-api.d.ts +1 -1
- package/dist/api/refunds-api.js +1 -1
- package/dist/api/tenant-bank-account-api.d.ts +9 -9
- package/dist/api/tenant-bank-account-api.js +4 -4
- 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-transaction-response-class.d.ts +1 -1
- package/dist/models/bank-transaction-response-class.js +1 -1
- 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 +1 -1
- package/dist/models/create-payment-request-dto.js +1 -1
- 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/get-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/get-bank-transactions-response-class.js +1 -1
- 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 +1 -1
- 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 +0 -7
- package/dist/models/index.js +0 -7
- 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-transactions-response-class.d.ts +1 -1
- package/dist/models/list-bank-transactions-response-class.js +1 -1
- 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/refund-class.d.ts +1 -1
- package/dist/models/refund-class.js +1 -1
- 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-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 +1 -1
- package/dist/models/validate-pspconfig-request-dto.js +1 -1
- package/index.ts +1 -1
- package/models/bank-transaction-response-class.ts +1 -1
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +1 -1
- 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/get-bank-transactions-response-class.ts +1 -1
- package/models/get-refund-response-class.ts +1 -1
- package/models/get-request-dto.ts +1 -1
- package/models/get-tenant-bank-account-response-class.ts +1 -1
- package/models/index.ts +0 -7
- 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-transactions-response-class.ts +1 -1
- package/models/list-refunds-response-class.ts +1 -1
- package/models/list-tenant-bank-account-response-class.ts +1 -1
- package/models/refund-class.ts +1 -1
- 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-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +1 -1
- package/package.json +1 -1
- package/dist/models/bank-account-class.d.ts +0 -79
- package/dist/models/bank-account-class.js +0 -15
- package/dist/models/create-bank-account-request-dto.d.ts +0 -36
- package/dist/models/create-bank-account-request-dto.js +0 -15
- package/dist/models/get-bank-account-response-class.d.ts +0 -25
- package/dist/models/get-bank-account-response-class.js +0 -15
- package/dist/models/primary-bank-account-response-class.d.ts +0 -42
- package/dist/models/primary-bank-account-response-class.js +0 -15
- package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +0 -24
- package/dist/models/set-primary-bank-account-request-dto-rest.js +0 -15
- package/dist/models/update-bank-account-request-dto-rest.d.ts +0 -30
- package/dist/models/update-bank-account-request-dto-rest.js +0 -15
- package/dist/models/update-bank-account-request-dto.d.ts +0 -36
- package/dist/models/update-bank-account-request-dto.js +0 -15
- package/models/bank-account-class.ts +0 -85
- package/models/create-bank-account-request-dto.ts +0 -42
- package/models/get-bank-account-response-class.ts +0 -31
- package/models/primary-bank-account-response-class.ts +0 -48
- package/models/set-primary-bank-account-request-dto-rest.ts +0 -30
- package/models/update-bank-account-request-dto-rest.ts +0 -36
- package/models/update-bank-account-request-dto.ts +0 -42
|
@@ -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
|
|
@@ -19,35 +19,26 @@ import { RequestArgs, BaseAPI } from '../base';
|
|
|
19
19
|
export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
20
|
/**
|
|
21
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.
|
|
22
|
-
* @summary Create the payment
|
|
22
|
+
* @summary Create the payment method
|
|
23
23
|
* @param {object} body
|
|
24
24
|
* @param {string} [authorization] Bearer Token
|
|
25
25
|
* @param {*} [options] Override http request option.
|
|
26
26
|
* @throws {RequiredError}
|
|
27
27
|
*/
|
|
28
28
|
createPaymentMethod: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
|
-
/**
|
|
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.
|
|
31
|
-
* @summary Delete a payment method
|
|
32
|
-
* @param {number} id Unique identifier for payment method
|
|
33
|
-
* @param {string} [authorization] Bearer Token
|
|
34
|
-
* @param {*} [options] Override http request option.
|
|
35
|
-
* @throws {RequiredError}
|
|
36
|
-
*/
|
|
37
|
-
deletePaymentMethod: (id: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
38
29
|
/**
|
|
39
30
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
40
|
-
* @summary Retrieve
|
|
41
|
-
* @param {string} code
|
|
31
|
+
* @summary Retrieve the payment method
|
|
32
|
+
* @param {string} code
|
|
33
|
+
* @param {string} code2 Unique identifier for the object.
|
|
42
34
|
* @param {string} expand Fields to expand response by
|
|
43
|
-
* @param {string} expand2 Fields to expand response by
|
|
44
35
|
* @param {string} [authorization] Bearer Token
|
|
45
36
|
* @param {*} [options] Override http request option.
|
|
46
37
|
* @throws {RequiredError}
|
|
47
38
|
*/
|
|
48
|
-
getPaymentMethod: (code: string,
|
|
39
|
+
getPaymentMethod: (code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
49
40
|
/**
|
|
50
|
-
* Returns a list of payment methods you
|
|
41
|
+
* 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.
|
|
51
42
|
* @summary List payment methods
|
|
52
43
|
* @param {string} [authorization] Bearer Token
|
|
53
44
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -69,35 +60,26 @@ export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Config
|
|
|
69
60
|
export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
|
|
70
61
|
/**
|
|
71
62
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
72
|
-
* @summary Create the payment
|
|
63
|
+
* @summary Create the payment method
|
|
73
64
|
* @param {object} body
|
|
74
65
|
* @param {string} [authorization] Bearer Token
|
|
75
66
|
* @param {*} [options] Override http request option.
|
|
76
67
|
* @throws {RequiredError}
|
|
77
68
|
*/
|
|
78
69
|
createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
79
|
-
/**
|
|
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.
|
|
81
|
-
* @summary Delete a payment method
|
|
82
|
-
* @param {number} id Unique identifier for payment method
|
|
83
|
-
* @param {string} [authorization] Bearer Token
|
|
84
|
-
* @param {*} [options] Override http request option.
|
|
85
|
-
* @throws {RequiredError}
|
|
86
|
-
*/
|
|
87
|
-
deletePaymentMethod(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
88
70
|
/**
|
|
89
71
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
90
|
-
* @summary Retrieve
|
|
91
|
-
* @param {string} code
|
|
72
|
+
* @summary Retrieve the payment method
|
|
73
|
+
* @param {string} code
|
|
74
|
+
* @param {string} code2 Unique identifier for the object.
|
|
92
75
|
* @param {string} expand Fields to expand response by
|
|
93
|
-
* @param {string} expand2 Fields to expand response by
|
|
94
76
|
* @param {string} [authorization] Bearer Token
|
|
95
77
|
* @param {*} [options] Override http request option.
|
|
96
78
|
* @throws {RequiredError}
|
|
97
79
|
*/
|
|
98
|
-
getPaymentMethod(code: string,
|
|
80
|
+
getPaymentMethod(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
99
81
|
/**
|
|
100
|
-
* Returns a list of payment methods you
|
|
82
|
+
* 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.
|
|
101
83
|
* @summary List payment methods
|
|
102
84
|
* @param {string} [authorization] Bearer Token
|
|
103
85
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -119,35 +101,26 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
|
|
|
119
101
|
export declare const PaymentMethodsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
120
102
|
/**
|
|
121
103
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
122
|
-
* @summary Create the payment
|
|
104
|
+
* @summary Create the payment method
|
|
123
105
|
* @param {object} body
|
|
124
106
|
* @param {string} [authorization] Bearer Token
|
|
125
107
|
* @param {*} [options] Override http request option.
|
|
126
108
|
* @throws {RequiredError}
|
|
127
109
|
*/
|
|
128
110
|
createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void>;
|
|
129
|
-
/**
|
|
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.
|
|
131
|
-
* @summary Delete a payment method
|
|
132
|
-
* @param {number} id Unique identifier for payment method
|
|
133
|
-
* @param {string} [authorization] Bearer Token
|
|
134
|
-
* @param {*} [options] Override http request option.
|
|
135
|
-
* @throws {RequiredError}
|
|
136
|
-
*/
|
|
137
|
-
deletePaymentMethod(id: number, authorization?: string, options?: any): AxiosPromise<void>;
|
|
138
111
|
/**
|
|
139
112
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
140
|
-
* @summary Retrieve
|
|
141
|
-
* @param {string} code
|
|
113
|
+
* @summary Retrieve the payment method
|
|
114
|
+
* @param {string} code
|
|
115
|
+
* @param {string} code2 Unique identifier for the object.
|
|
142
116
|
* @param {string} expand Fields to expand response by
|
|
143
|
-
* @param {string} expand2 Fields to expand response by
|
|
144
117
|
* @param {string} [authorization] Bearer Token
|
|
145
118
|
* @param {*} [options] Override http request option.
|
|
146
119
|
* @throws {RequiredError}
|
|
147
120
|
*/
|
|
148
|
-
getPaymentMethod(code: string,
|
|
121
|
+
getPaymentMethod(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
149
122
|
/**
|
|
150
|
-
* Returns a list of payment methods you
|
|
123
|
+
* 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.
|
|
151
124
|
* @summary List payment methods
|
|
152
125
|
* @param {string} [authorization] Bearer Token
|
|
153
126
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -181,25 +154,6 @@ export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
|
181
154
|
*/
|
|
182
155
|
readonly authorization?: string;
|
|
183
156
|
}
|
|
184
|
-
/**
|
|
185
|
-
* Request parameters for deletePaymentMethod operation in PaymentMethodsApi.
|
|
186
|
-
* @export
|
|
187
|
-
* @interface PaymentMethodsApiDeletePaymentMethodRequest
|
|
188
|
-
*/
|
|
189
|
-
export interface PaymentMethodsApiDeletePaymentMethodRequest {
|
|
190
|
-
/**
|
|
191
|
-
* Unique identifier for payment method
|
|
192
|
-
* @type {number}
|
|
193
|
-
* @memberof PaymentMethodsApiDeletePaymentMethod
|
|
194
|
-
*/
|
|
195
|
-
readonly id: number;
|
|
196
|
-
/**
|
|
197
|
-
* Bearer Token
|
|
198
|
-
* @type {string}
|
|
199
|
-
* @memberof PaymentMethodsApiDeletePaymentMethod
|
|
200
|
-
*/
|
|
201
|
-
readonly authorization?: string;
|
|
202
|
-
}
|
|
203
157
|
/**
|
|
204
158
|
* Request parameters for getPaymentMethod operation in PaymentMethodsApi.
|
|
205
159
|
* @export
|
|
@@ -207,23 +161,23 @@ export interface PaymentMethodsApiDeletePaymentMethodRequest {
|
|
|
207
161
|
*/
|
|
208
162
|
export interface PaymentMethodsApiGetPaymentMethodRequest {
|
|
209
163
|
/**
|
|
210
|
-
*
|
|
164
|
+
*
|
|
211
165
|
* @type {string}
|
|
212
166
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
213
167
|
*/
|
|
214
168
|
readonly code: string;
|
|
215
169
|
/**
|
|
216
|
-
*
|
|
170
|
+
* Unique identifier for the object.
|
|
217
171
|
* @type {string}
|
|
218
172
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
219
173
|
*/
|
|
220
|
-
readonly
|
|
174
|
+
readonly code2: string;
|
|
221
175
|
/**
|
|
222
176
|
* Fields to expand response by
|
|
223
177
|
* @type {string}
|
|
224
178
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
225
179
|
*/
|
|
226
|
-
readonly
|
|
180
|
+
readonly expand: string;
|
|
227
181
|
/**
|
|
228
182
|
* Bearer Token
|
|
229
183
|
* @type {string}
|
|
@@ -295,25 +249,16 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
|
|
|
295
249
|
export declare class PaymentMethodsApi extends BaseAPI {
|
|
296
250
|
/**
|
|
297
251
|
* 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.
|
|
298
|
-
* @summary Create the payment
|
|
252
|
+
* @summary Create the payment method
|
|
299
253
|
* @param {PaymentMethodsApiCreatePaymentMethodRequest} requestParameters Request parameters.
|
|
300
254
|
* @param {*} [options] Override http request option.
|
|
301
255
|
* @throws {RequiredError}
|
|
302
256
|
* @memberof PaymentMethodsApi
|
|
303
257
|
*/
|
|
304
258
|
createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
305
|
-
/**
|
|
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.
|
|
307
|
-
* @summary Delete a payment method
|
|
308
|
-
* @param {PaymentMethodsApiDeletePaymentMethodRequest} requestParameters Request parameters.
|
|
309
|
-
* @param {*} [options] Override http request option.
|
|
310
|
-
* @throws {RequiredError}
|
|
311
|
-
* @memberof PaymentMethodsApi
|
|
312
|
-
*/
|
|
313
|
-
deletePaymentMethod(requestParameters: PaymentMethodsApiDeletePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
314
259
|
/**
|
|
315
260
|
* 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.
|
|
316
|
-
* @summary Retrieve
|
|
261
|
+
* @summary Retrieve the payment method
|
|
317
262
|
* @param {PaymentMethodsApiGetPaymentMethodRequest} requestParameters Request parameters.
|
|
318
263
|
* @param {*} [options] Override http request option.
|
|
319
264
|
* @throws {RequiredError}
|
|
@@ -321,7 +266,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
321
266
|
*/
|
|
322
267
|
getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
323
268
|
/**
|
|
324
|
-
* Returns a list of payment methods you
|
|
269
|
+
* 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.
|
|
325
270
|
* @summary List payment methods
|
|
326
271
|
* @param {PaymentMethodsApiListPaymentMethodsRequest} requestParameters Request parameters.
|
|
327
272
|
* @param {*} [options] Override http request option.
|
|
@@ -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
|
|
@@ -94,7 +94,7 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
96
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
97
|
-
* @summary Create the payment
|
|
97
|
+
* @summary Create the payment method
|
|
98
98
|
* @param {object} body
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
100
100
|
* @param {*} [options] Override http request option.
|
|
@@ -141,67 +141,17 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
141
141
|
});
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
|
-
/**
|
|
145
|
-
* 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.
|
|
146
|
-
* @summary Delete a payment method
|
|
147
|
-
* @param {number} id Unique identifier for payment method
|
|
148
|
-
* @param {string} [authorization] Bearer Token
|
|
149
|
-
* @param {*} [options] Override http request option.
|
|
150
|
-
* @throws {RequiredError}
|
|
151
|
-
*/
|
|
152
|
-
deletePaymentMethod: function (id, authorization, options) {
|
|
153
|
-
if (options === void 0) { options = {}; }
|
|
154
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
-
return __generator(this, function (_a) {
|
|
157
|
-
switch (_a.label) {
|
|
158
|
-
case 0:
|
|
159
|
-
// verify required parameter 'id' is not null or undefined
|
|
160
|
-
(0, common_1.assertParamExists)('deletePaymentMethod', 'id', id);
|
|
161
|
-
localVarPath = "/paymentservice/v1/payment-methods/{id}";
|
|
162
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
163
|
-
if (configuration) {
|
|
164
|
-
baseOptions = configuration.baseOptions;
|
|
165
|
-
baseAccessToken = configuration.accessToken;
|
|
166
|
-
}
|
|
167
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
168
|
-
localVarHeaderParameter = {};
|
|
169
|
-
localVarQueryParameter = {};
|
|
170
|
-
// authentication bearer required
|
|
171
|
-
// http bearer authentication required
|
|
172
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
173
|
-
case 1:
|
|
174
|
-
// authentication bearer required
|
|
175
|
-
// http bearer authentication required
|
|
176
|
-
_a.sent();
|
|
177
|
-
if (id !== undefined) {
|
|
178
|
-
localVarQueryParameter['id'] = id;
|
|
179
|
-
}
|
|
180
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
181
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
182
|
-
}
|
|
183
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
184
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
185
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
186
|
-
return [2 /*return*/, {
|
|
187
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
188
|
-
options: localVarRequestOptions,
|
|
189
|
-
}];
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
});
|
|
193
|
-
},
|
|
194
144
|
/**
|
|
195
145
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
196
|
-
* @summary Retrieve
|
|
197
|
-
* @param {string} code
|
|
146
|
+
* @summary Retrieve the payment method
|
|
147
|
+
* @param {string} code
|
|
148
|
+
* @param {string} code2 Unique identifier for the object.
|
|
198
149
|
* @param {string} expand Fields to expand response by
|
|
199
|
-
* @param {string} expand2 Fields to expand response by
|
|
200
150
|
* @param {string} [authorization] Bearer Token
|
|
201
151
|
* @param {*} [options] Override http request option.
|
|
202
152
|
* @throws {RequiredError}
|
|
203
153
|
*/
|
|
204
|
-
getPaymentMethod: function (code,
|
|
154
|
+
getPaymentMethod: function (code, code2, expand, authorization, options) {
|
|
205
155
|
if (options === void 0) { options = {}; }
|
|
206
156
|
return __awaiter(_this, void 0, void 0, function () {
|
|
207
157
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -210,11 +160,12 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
210
160
|
case 0:
|
|
211
161
|
// verify required parameter 'code' is not null or undefined
|
|
212
162
|
(0, common_1.assertParamExists)('getPaymentMethod', 'code', code);
|
|
163
|
+
// verify required parameter 'code2' is not null or undefined
|
|
164
|
+
(0, common_1.assertParamExists)('getPaymentMethod', 'code2', code2);
|
|
213
165
|
// verify required parameter 'expand' is not null or undefined
|
|
214
166
|
(0, common_1.assertParamExists)('getPaymentMethod', 'expand', expand);
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
localVarPath = "/paymentservice/v1/payment-methods/{code}";
|
|
167
|
+
localVarPath = "/paymentservice/v1/payment-methods/{code}"
|
|
168
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
218
169
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
219
170
|
if (configuration) {
|
|
220
171
|
baseOptions = configuration.baseOptions;
|
|
@@ -230,15 +181,12 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
230
181
|
// authentication bearer required
|
|
231
182
|
// http bearer authentication required
|
|
232
183
|
_a.sent();
|
|
233
|
-
if (
|
|
234
|
-
localVarQueryParameter['code'] =
|
|
184
|
+
if (code2 !== undefined) {
|
|
185
|
+
localVarQueryParameter['code'] = code2;
|
|
235
186
|
}
|
|
236
187
|
if (expand !== undefined) {
|
|
237
188
|
localVarQueryParameter['expand'] = expand;
|
|
238
189
|
}
|
|
239
|
-
if (expand2 !== undefined) {
|
|
240
|
-
localVarQueryParameter['expand'] = expand2;
|
|
241
|
-
}
|
|
242
190
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
243
191
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
244
192
|
}
|
|
@@ -254,7 +202,7 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
254
202
|
});
|
|
255
203
|
},
|
|
256
204
|
/**
|
|
257
|
-
* Returns a list of payment methods you
|
|
205
|
+
* 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.
|
|
258
206
|
* @summary List payment methods
|
|
259
207
|
* @param {string} [authorization] Bearer Token
|
|
260
208
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -337,7 +285,7 @@ var PaymentMethodsApiFp = function (configuration) {
|
|
|
337
285
|
return {
|
|
338
286
|
/**
|
|
339
287
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
340
|
-
* @summary Create the payment
|
|
288
|
+
* @summary Create the payment method
|
|
341
289
|
* @param {object} body
|
|
342
290
|
* @param {string} [authorization] Bearer Token
|
|
343
291
|
* @param {*} [options] Override http request option.
|
|
@@ -356,43 +304,22 @@ var PaymentMethodsApiFp = function (configuration) {
|
|
|
356
304
|
});
|
|
357
305
|
});
|
|
358
306
|
},
|
|
359
|
-
/**
|
|
360
|
-
* 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.
|
|
361
|
-
* @summary Delete a payment method
|
|
362
|
-
* @param {number} id Unique identifier for payment method
|
|
363
|
-
* @param {string} [authorization] Bearer Token
|
|
364
|
-
* @param {*} [options] Override http request option.
|
|
365
|
-
* @throws {RequiredError}
|
|
366
|
-
*/
|
|
367
|
-
deletePaymentMethod: function (id, authorization, options) {
|
|
368
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
369
|
-
var localVarAxiosArgs;
|
|
370
|
-
return __generator(this, function (_a) {
|
|
371
|
-
switch (_a.label) {
|
|
372
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePaymentMethod(id, authorization, options)];
|
|
373
|
-
case 1:
|
|
374
|
-
localVarAxiosArgs = _a.sent();
|
|
375
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
376
|
-
}
|
|
377
|
-
});
|
|
378
|
-
});
|
|
379
|
-
},
|
|
380
307
|
/**
|
|
381
308
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
382
|
-
* @summary Retrieve
|
|
383
|
-
* @param {string} code
|
|
309
|
+
* @summary Retrieve the payment method
|
|
310
|
+
* @param {string} code
|
|
311
|
+
* @param {string} code2 Unique identifier for the object.
|
|
384
312
|
* @param {string} expand Fields to expand response by
|
|
385
|
-
* @param {string} expand2 Fields to expand response by
|
|
386
313
|
* @param {string} [authorization] Bearer Token
|
|
387
314
|
* @param {*} [options] Override http request option.
|
|
388
315
|
* @throws {RequiredError}
|
|
389
316
|
*/
|
|
390
|
-
getPaymentMethod: function (code,
|
|
317
|
+
getPaymentMethod: function (code, code2, expand, authorization, options) {
|
|
391
318
|
return __awaiter(this, void 0, void 0, function () {
|
|
392
319
|
var localVarAxiosArgs;
|
|
393
320
|
return __generator(this, function (_a) {
|
|
394
321
|
switch (_a.label) {
|
|
395
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPaymentMethod(code,
|
|
322
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPaymentMethod(code, code2, expand, authorization, options)];
|
|
396
323
|
case 1:
|
|
397
324
|
localVarAxiosArgs = _a.sent();
|
|
398
325
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -401,7 +328,7 @@ var PaymentMethodsApiFp = function (configuration) {
|
|
|
401
328
|
});
|
|
402
329
|
},
|
|
403
330
|
/**
|
|
404
|
-
* Returns a list of payment methods you
|
|
331
|
+
* 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.
|
|
405
332
|
* @summary List payment methods
|
|
406
333
|
* @param {string} [authorization] Bearer Token
|
|
407
334
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -439,7 +366,7 @@ var PaymentMethodsApiFactory = function (configuration, basePath, axios) {
|
|
|
439
366
|
return {
|
|
440
367
|
/**
|
|
441
368
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
442
|
-
* @summary Create the payment
|
|
369
|
+
* @summary Create the payment method
|
|
443
370
|
* @param {object} body
|
|
444
371
|
* @param {string} [authorization] Bearer Token
|
|
445
372
|
* @param {*} [options] Override http request option.
|
|
@@ -448,32 +375,21 @@ var PaymentMethodsApiFactory = function (configuration, basePath, axios) {
|
|
|
448
375
|
createPaymentMethod: function (body, authorization, options) {
|
|
449
376
|
return localVarFp.createPaymentMethod(body, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
450
377
|
},
|
|
451
|
-
/**
|
|
452
|
-
* 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.
|
|
453
|
-
* @summary Delete a payment method
|
|
454
|
-
* @param {number} id Unique identifier for payment method
|
|
455
|
-
* @param {string} [authorization] Bearer Token
|
|
456
|
-
* @param {*} [options] Override http request option.
|
|
457
|
-
* @throws {RequiredError}
|
|
458
|
-
*/
|
|
459
|
-
deletePaymentMethod: function (id, authorization, options) {
|
|
460
|
-
return localVarFp.deletePaymentMethod(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
461
|
-
},
|
|
462
378
|
/**
|
|
463
379
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
464
|
-
* @summary Retrieve
|
|
465
|
-
* @param {string} code
|
|
380
|
+
* @summary Retrieve the payment method
|
|
381
|
+
* @param {string} code
|
|
382
|
+
* @param {string} code2 Unique identifier for the object.
|
|
466
383
|
* @param {string} expand Fields to expand response by
|
|
467
|
-
* @param {string} expand2 Fields to expand response by
|
|
468
384
|
* @param {string} [authorization] Bearer Token
|
|
469
385
|
* @param {*} [options] Override http request option.
|
|
470
386
|
* @throws {RequiredError}
|
|
471
387
|
*/
|
|
472
|
-
getPaymentMethod: function (code,
|
|
473
|
-
return localVarFp.getPaymentMethod(code,
|
|
388
|
+
getPaymentMethod: function (code, code2, expand, authorization, options) {
|
|
389
|
+
return localVarFp.getPaymentMethod(code, code2, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
474
390
|
},
|
|
475
391
|
/**
|
|
476
|
-
* Returns a list of payment methods you
|
|
392
|
+
* 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.
|
|
477
393
|
* @summary List payment methods
|
|
478
394
|
* @param {string} [authorization] Bearer Token
|
|
479
395
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -505,7 +421,7 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
505
421
|
}
|
|
506
422
|
/**
|
|
507
423
|
* 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.
|
|
508
|
-
* @summary Create the payment
|
|
424
|
+
* @summary Create the payment method
|
|
509
425
|
* @param {PaymentMethodsApiCreatePaymentMethodRequest} requestParameters Request parameters.
|
|
510
426
|
* @param {*} [options] Override http request option.
|
|
511
427
|
* @throws {RequiredError}
|
|
@@ -515,21 +431,9 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
515
431
|
var _this = this;
|
|
516
432
|
return (0, exports.PaymentMethodsApiFp)(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
517
433
|
};
|
|
518
|
-
/**
|
|
519
|
-
* 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.
|
|
520
|
-
* @summary Delete a payment method
|
|
521
|
-
* @param {PaymentMethodsApiDeletePaymentMethodRequest} requestParameters Request parameters.
|
|
522
|
-
* @param {*} [options] Override http request option.
|
|
523
|
-
* @throws {RequiredError}
|
|
524
|
-
* @memberof PaymentMethodsApi
|
|
525
|
-
*/
|
|
526
|
-
PaymentMethodsApi.prototype.deletePaymentMethod = function (requestParameters, options) {
|
|
527
|
-
var _this = this;
|
|
528
|
-
return (0, exports.PaymentMethodsApiFp)(this.configuration).deletePaymentMethod(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
529
|
-
};
|
|
530
434
|
/**
|
|
531
435
|
* 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.
|
|
532
|
-
* @summary Retrieve
|
|
436
|
+
* @summary Retrieve the payment method
|
|
533
437
|
* @param {PaymentMethodsApiGetPaymentMethodRequest} requestParameters Request parameters.
|
|
534
438
|
* @param {*} [options] Override http request option.
|
|
535
439
|
* @throws {RequiredError}
|
|
@@ -537,10 +441,10 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
537
441
|
*/
|
|
538
442
|
PaymentMethodsApi.prototype.getPaymentMethod = function (requestParameters, options) {
|
|
539
443
|
var _this = this;
|
|
540
|
-
return (0, exports.PaymentMethodsApiFp)(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.
|
|
444
|
+
return (0, exports.PaymentMethodsApiFp)(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.code2, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
541
445
|
};
|
|
542
446
|
/**
|
|
543
|
-
* Returns a list of payment methods you
|
|
447
|
+
* 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.
|
|
544
448
|
* @summary List payment methods
|
|
545
449
|
* @param {PaymentMethodsApiListPaymentMethodsRequest} requestParameters Request parameters.
|
|
546
450
|
* @param {*} [options] Override http request option.
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|