@emilgroup/payment-sdk 1.14.1-beta.54 → 1.14.1-beta.56

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.
@@ -0,0 +1,327 @@
1
+ /**
2
+ * Emil Payment Service
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
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { CreateBillingAddressRequestDto } from '../models';
16
+ import { CreateBillingAddressResponseClass } from '../models';
17
+ import { GetBillingAddressResponseClass } from '../models';
18
+ import { ListBillingAddressesResponseClass } from '../models';
19
+ /**
20
+ * BillingAddressesApi - axios parameter creator
21
+ * @export
22
+ */
23
+ export declare const BillingAddressesApiAxiosParamCreator: (configuration?: Configuration) => {
24
+ /**
25
+ * This will create a new billing address for a specified account or partner **Required Permissions** \"payment-management.payments.create\"
26
+ * @summary Create the Billing Address
27
+ * @param {CreateBillingAddressRequestDto} createBillingAddressRequestDto
28
+ * @param {string} [authorization] Bearer Token
29
+ * @param {*} [options] Override http request option.
30
+ * @throws {RequiredError}
31
+ */
32
+ createBillingAddress: (createBillingAddressRequestDto: CreateBillingAddressRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
+ /**
34
+ * Deletes a billing address by code **Required Permissions** \"payment-management.payments.delete\"
35
+ * @summary Delete the Billing Address
36
+ * @param {string} code Unique identifier for the object.
37
+ * @param {string} [authorization] Bearer Token
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ deleteBillingAddress: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
+ /**
43
+ * Retrieves the details of the Billing Address that was previously created. Supply the unique Billing Address code that was returned when you created it and Emil Api will return the corresponding Billing Address information. **Required Permissions** \"payment-management.payments.view\"
44
+ * @summary Retrieve the Billing Address
45
+ * @param {string} code
46
+ * @param {string} [authorization] Bearer Token
47
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
48
+ * @param {*} [options] Override http request option.
49
+ * @throws {RequiredError}
50
+ */
51
+ getBillingAddress: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
52
+ /**
53
+ * Returns a list of Billing Addresses you have previously created. The Billing Addresses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
54
+ * @summary List Billing Addresses
55
+ * @param {string} [authorization] Bearer Token
56
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
57
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
58
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, city, zipCode, countryCode, accountCode, partnerCode, createdAt, updatedAt&lt;/i&gt;
59
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, accountCode, partnerCode&lt;/i&gt;
60
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt, updatedAt&lt;/i&gt;
61
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
62
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, city, zipCode, countryCode, accountCode, partnerCode, createdAt, updatedAt&lt;/i&gt;
63
+ * @param {*} [options] Override http request option.
64
+ * @throws {RequiredError}
65
+ */
66
+ listBillingAddresses: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
67
+ };
68
+ /**
69
+ * BillingAddressesApi - functional programming interface
70
+ * @export
71
+ */
72
+ export declare const BillingAddressesApiFp: (configuration?: Configuration) => {
73
+ /**
74
+ * This will create a new billing address for a specified account or partner **Required Permissions** \"payment-management.payments.create\"
75
+ * @summary Create the Billing Address
76
+ * @param {CreateBillingAddressRequestDto} createBillingAddressRequestDto
77
+ * @param {string} [authorization] Bearer Token
78
+ * @param {*} [options] Override http request option.
79
+ * @throws {RequiredError}
80
+ */
81
+ createBillingAddress(createBillingAddressRequestDto: CreateBillingAddressRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBillingAddressResponseClass>>;
82
+ /**
83
+ * Deletes a billing address by code **Required Permissions** \"payment-management.payments.delete\"
84
+ * @summary Delete the Billing Address
85
+ * @param {string} code Unique identifier for the object.
86
+ * @param {string} [authorization] Bearer Token
87
+ * @param {*} [options] Override http request option.
88
+ * @throws {RequiredError}
89
+ */
90
+ deleteBillingAddress(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
91
+ /**
92
+ * Retrieves the details of the Billing Address that was previously created. Supply the unique Billing Address code that was returned when you created it and Emil Api will return the corresponding Billing Address information. **Required Permissions** \"payment-management.payments.view\"
93
+ * @summary Retrieve the Billing Address
94
+ * @param {string} code
95
+ * @param {string} [authorization] Bearer Token
96
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ getBillingAddress(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBillingAddressResponseClass>>;
101
+ /**
102
+ * Returns a list of Billing Addresses you have previously created. The Billing Addresses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
103
+ * @summary List Billing Addresses
104
+ * @param {string} [authorization] Bearer Token
105
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
106
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
107
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, city, zipCode, countryCode, accountCode, partnerCode, createdAt, updatedAt&lt;/i&gt;
108
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, accountCode, partnerCode&lt;/i&gt;
109
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt, updatedAt&lt;/i&gt;
110
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
111
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, city, zipCode, countryCode, accountCode, partnerCode, createdAt, updatedAt&lt;/i&gt;
112
+ * @param {*} [options] Override http request option.
113
+ * @throws {RequiredError}
114
+ */
115
+ listBillingAddresses(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBillingAddressesResponseClass>>;
116
+ };
117
+ /**
118
+ * BillingAddressesApi - factory interface
119
+ * @export
120
+ */
121
+ export declare const BillingAddressesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
122
+ /**
123
+ * This will create a new billing address for a specified account or partner **Required Permissions** \"payment-management.payments.create\"
124
+ * @summary Create the Billing Address
125
+ * @param {CreateBillingAddressRequestDto} createBillingAddressRequestDto
126
+ * @param {string} [authorization] Bearer Token
127
+ * @param {*} [options] Override http request option.
128
+ * @throws {RequiredError}
129
+ */
130
+ createBillingAddress(createBillingAddressRequestDto: CreateBillingAddressRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBillingAddressResponseClass>;
131
+ /**
132
+ * Deletes a billing address by code **Required Permissions** \"payment-management.payments.delete\"
133
+ * @summary Delete the Billing Address
134
+ * @param {string} code Unique identifier for the object.
135
+ * @param {string} [authorization] Bearer Token
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ deleteBillingAddress(code: string, authorization?: string, options?: any): AxiosPromise<object>;
140
+ /**
141
+ * Retrieves the details of the Billing Address that was previously created. Supply the unique Billing Address code that was returned when you created it and Emil Api will return the corresponding Billing Address information. **Required Permissions** \"payment-management.payments.view\"
142
+ * @summary Retrieve the Billing Address
143
+ * @param {string} code
144
+ * @param {string} [authorization] Bearer Token
145
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ getBillingAddress(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetBillingAddressResponseClass>;
150
+ /**
151
+ * Returns a list of Billing Addresses you have previously created. The Billing Addresses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
152
+ * @summary List Billing Addresses
153
+ * @param {string} [authorization] Bearer Token
154
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
155
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
156
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, city, zipCode, countryCode, accountCode, partnerCode, createdAt, updatedAt&lt;/i&gt;
157
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, accountCode, partnerCode&lt;/i&gt;
158
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt, updatedAt&lt;/i&gt;
159
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
160
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, city, zipCode, countryCode, accountCode, partnerCode, createdAt, updatedAt&lt;/i&gt;
161
+ * @param {*} [options] Override http request option.
162
+ * @throws {RequiredError}
163
+ */
164
+ listBillingAddresses(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBillingAddressesResponseClass>;
165
+ };
166
+ /**
167
+ * Request parameters for createBillingAddress operation in BillingAddressesApi.
168
+ * @export
169
+ * @interface BillingAddressesApiCreateBillingAddressRequest
170
+ */
171
+ export interface BillingAddressesApiCreateBillingAddressRequest {
172
+ /**
173
+ *
174
+ * @type {CreateBillingAddressRequestDto}
175
+ * @memberof BillingAddressesApiCreateBillingAddress
176
+ */
177
+ readonly createBillingAddressRequestDto: CreateBillingAddressRequestDto;
178
+ /**
179
+ * Bearer Token
180
+ * @type {string}
181
+ * @memberof BillingAddressesApiCreateBillingAddress
182
+ */
183
+ readonly authorization?: string;
184
+ }
185
+ /**
186
+ * Request parameters for deleteBillingAddress operation in BillingAddressesApi.
187
+ * @export
188
+ * @interface BillingAddressesApiDeleteBillingAddressRequest
189
+ */
190
+ export interface BillingAddressesApiDeleteBillingAddressRequest {
191
+ /**
192
+ * Unique identifier for the object.
193
+ * @type {string}
194
+ * @memberof BillingAddressesApiDeleteBillingAddress
195
+ */
196
+ readonly code: string;
197
+ /**
198
+ * Bearer Token
199
+ * @type {string}
200
+ * @memberof BillingAddressesApiDeleteBillingAddress
201
+ */
202
+ readonly authorization?: string;
203
+ }
204
+ /**
205
+ * Request parameters for getBillingAddress operation in BillingAddressesApi.
206
+ * @export
207
+ * @interface BillingAddressesApiGetBillingAddressRequest
208
+ */
209
+ export interface BillingAddressesApiGetBillingAddressRequest {
210
+ /**
211
+ *
212
+ * @type {string}
213
+ * @memberof BillingAddressesApiGetBillingAddress
214
+ */
215
+ readonly code: string;
216
+ /**
217
+ * Bearer Token
218
+ * @type {string}
219
+ * @memberof BillingAddressesApiGetBillingAddress
220
+ */
221
+ readonly authorization?: string;
222
+ /**
223
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
224
+ * @type {string}
225
+ * @memberof BillingAddressesApiGetBillingAddress
226
+ */
227
+ readonly expand?: string;
228
+ }
229
+ /**
230
+ * Request parameters for listBillingAddresses operation in BillingAddressesApi.
231
+ * @export
232
+ * @interface BillingAddressesApiListBillingAddressesRequest
233
+ */
234
+ export interface BillingAddressesApiListBillingAddressesRequest {
235
+ /**
236
+ * Bearer Token
237
+ * @type {string}
238
+ * @memberof BillingAddressesApiListBillingAddresses
239
+ */
240
+ readonly authorization?: string;
241
+ /**
242
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
243
+ * @type {number}
244
+ * @memberof BillingAddressesApiListBillingAddresses
245
+ */
246
+ readonly pageSize?: number;
247
+ /**
248
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
249
+ * @type {string}
250
+ * @memberof BillingAddressesApiListBillingAddresses
251
+ */
252
+ readonly pageToken?: string;
253
+ /**
254
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, city, zipCode, countryCode, accountCode, partnerCode, createdAt, updatedAt&lt;/i&gt;
255
+ * @type {string}
256
+ * @memberof BillingAddressesApiListBillingAddresses
257
+ */
258
+ readonly filter?: string;
259
+ /**
260
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: firstName, lastName, accountCode, partnerCode&lt;/i&gt;
261
+ * @type {string}
262
+ * @memberof BillingAddressesApiListBillingAddresses
263
+ */
264
+ readonly search?: string;
265
+ /**
266
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt, updatedAt&lt;/i&gt;
267
+ * @type {string}
268
+ * @memberof BillingAddressesApiListBillingAddresses
269
+ */
270
+ readonly order?: string;
271
+ /**
272
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: &lt;i&gt;
273
+ * @type {string}
274
+ * @memberof BillingAddressesApiListBillingAddresses
275
+ */
276
+ readonly expand?: string;
277
+ /**
278
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, city, zipCode, countryCode, accountCode, partnerCode, createdAt, updatedAt&lt;/i&gt;
279
+ * @type {string}
280
+ * @memberof BillingAddressesApiListBillingAddresses
281
+ */
282
+ readonly filters?: string;
283
+ }
284
+ /**
285
+ * BillingAddressesApi - object-oriented interface
286
+ * @export
287
+ * @class BillingAddressesApi
288
+ * @extends {BaseAPI}
289
+ */
290
+ export declare class BillingAddressesApi extends BaseAPI {
291
+ /**
292
+ * This will create a new billing address for a specified account or partner **Required Permissions** \"payment-management.payments.create\"
293
+ * @summary Create the Billing Address
294
+ * @param {BillingAddressesApiCreateBillingAddressRequest} requestParameters Request parameters.
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ * @memberof BillingAddressesApi
298
+ */
299
+ createBillingAddress(requestParameters: BillingAddressesApiCreateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBillingAddressResponseClass, any, {}>>;
300
+ /**
301
+ * Deletes a billing address by code **Required Permissions** \"payment-management.payments.delete\"
302
+ * @summary Delete the Billing Address
303
+ * @param {BillingAddressesApiDeleteBillingAddressRequest} requestParameters Request parameters.
304
+ * @param {*} [options] Override http request option.
305
+ * @throws {RequiredError}
306
+ * @memberof BillingAddressesApi
307
+ */
308
+ deleteBillingAddress(requestParameters: BillingAddressesApiDeleteBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
309
+ /**
310
+ * Retrieves the details of the Billing Address that was previously created. Supply the unique Billing Address code that was returned when you created it and Emil Api will return the corresponding Billing Address information. **Required Permissions** \"payment-management.payments.view\"
311
+ * @summary Retrieve the Billing Address
312
+ * @param {BillingAddressesApiGetBillingAddressRequest} requestParameters Request parameters.
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ * @memberof BillingAddressesApi
316
+ */
317
+ getBillingAddress(requestParameters: BillingAddressesApiGetBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBillingAddressResponseClass, any, {}>>;
318
+ /**
319
+ * Returns a list of Billing Addresses you have previously created. The Billing Addresses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
320
+ * @summary List Billing Addresses
321
+ * @param {BillingAddressesApiListBillingAddressesRequest} requestParameters Request parameters.
322
+ * @param {*} [options] Override http request option.
323
+ * @throws {RequiredError}
324
+ * @memberof BillingAddressesApi
325
+ */
326
+ listBillingAddresses(requestParameters?: BillingAddressesApiListBillingAddressesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBillingAddressesResponseClass, any, {}>>;
327
+ }