@emilgroup/payment-sdk-node 1.22.1-beta.54 → 1.22.1-beta.55

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.
@@ -6,6 +6,7 @@ api.ts
6
6
  api/bank-accounts-api.ts
7
7
  api/bank-orders-api.ts
8
8
  api/bank-transaction-api.ts
9
+ api/billing-addresses-api.ts
9
10
  api/credit-allocation-api.ts
10
11
  api/exceeding-credits-api.ts
11
12
  api/health-check-api.ts
@@ -31,6 +32,7 @@ models/bank-transaction-class-without-expand-properties.ts
31
32
  models/bank-transaction-class.ts
32
33
  models/bank-transaction-invoice-class.ts
33
34
  models/bank-transfer-dto.ts
35
+ models/billing-address-class.ts
34
36
  models/billing-address-dto.ts
35
37
  models/billing-profile-dto.ts
36
38
  models/billing-profile-limited-response-dto.ts
@@ -45,6 +47,8 @@ models/create-bank-account-request-dto.ts
45
47
  models/create-bank-account-response-class.ts
46
48
  models/create-bank-order-request-dto.ts
47
49
  models/create-bank-order-response-class.ts
50
+ models/create-billing-address-request-dto.ts
51
+ models/create-billing-address-response-class.ts
48
52
  models/create-credit-allocation-request-dto.ts
49
53
  models/create-credit-allocation-response-class.ts
50
54
  models/create-payment-method-response-class.ts
@@ -72,6 +76,7 @@ models/generate-invoice-match-suggestions-response-class.ts
72
76
  models/get-bank-account-response-class.ts
73
77
  models/get-bank-order-response-class.ts
74
78
  models/get-bank-transactions-response-class.ts
79
+ models/get-billing-address-response-class.ts
75
80
  models/get-credit-allocation-response-class.ts
76
81
  models/get-exceeding-credit-response-class.ts
77
82
  models/get-payment-method-response-class.ts
@@ -99,6 +104,7 @@ models/link-bank-transactions-response-class.ts
99
104
  models/list-bank-accounts-response-class.ts
100
105
  models/list-bank-orders-response-class.ts
101
106
  models/list-bank-transactions-response-class.ts
107
+ models/list-billing-addresses-response-class.ts
102
108
  models/list-credit-allocations-response-class.ts
103
109
  models/list-exceeding-credits-response-class.ts
104
110
  models/list-payment-methods-response-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/payment-sdk-node@1.22.1-beta.54 --save
20
+ npm install @emilgroup/payment-sdk-node@1.22.1-beta.55 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk-node@1.22.1-beta.54
24
+ yarn add @emilgroup/payment-sdk-node@1.22.1-beta.55
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -0,0 +1,575 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil Payment Service
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateBillingAddressRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateBillingAddressResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetBillingAddressResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListBillingAddressesResponseClass } from '../models';
31
+ // URLSearchParams not necessarily used
32
+ // @ts-ignore
33
+ import { URL, URLSearchParams } from 'url';
34
+ const FormData = require('form-data');
35
+ /**
36
+ * BillingAddressesApi - axios parameter creator
37
+ * @export
38
+ */
39
+ export const BillingAddressesApiAxiosParamCreator = function (configuration?: Configuration) {
40
+ return {
41
+ /**
42
+ * This will create a new billing address for a specified account or partner **Required Permissions** \"payment-management.payments.create\"
43
+ * @summary Create the Billing Address
44
+ * @param {CreateBillingAddressRequestDto} createBillingAddressRequestDto
45
+ * @param {string} [authorization] Bearer Token
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ createBillingAddress: async (createBillingAddressRequestDto: CreateBillingAddressRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
+ // verify required parameter 'createBillingAddressRequestDto' is not null or undefined
51
+ assertParamExists('createBillingAddress', 'createBillingAddressRequestDto', createBillingAddressRequestDto)
52
+ const localVarPath = `/paymentservice/v1/billing-addresses`;
53
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
55
+ let baseOptions;
56
+ let baseAccessToken;
57
+ if (configuration) {
58
+ baseOptions = configuration.baseOptions;
59
+ baseAccessToken = configuration.accessToken;
60
+ }
61
+
62
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
63
+ const localVarHeaderParameter = {} as any;
64
+ const localVarQueryParameter = {} as any;
65
+
66
+ // authentication bearer required
67
+ // http bearer authentication required
68
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
+
70
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
72
+ }
73
+
74
+
75
+
76
+ localVarHeaderParameter['Content-Type'] = 'application/json';
77
+
78
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
79
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
80
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
81
+ localVarRequestOptions.data = serializeDataIfNeeded(createBillingAddressRequestDto, localVarRequestOptions, configuration)
82
+
83
+ return {
84
+ url: toPathString(localVarUrlObj),
85
+ options: localVarRequestOptions,
86
+ };
87
+ },
88
+ /**
89
+ * Deletes a billing address by code **Required Permissions** \"payment-management.payments.delete\"
90
+ * @summary Delete the Billing Address
91
+ * @param {string} code Unique identifier for the object.
92
+ * @param {string} [authorization] Bearer Token
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ deleteBillingAddress: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
+ // verify required parameter 'code' is not null or undefined
98
+ assertParamExists('deleteBillingAddress', 'code', code)
99
+ const localVarPath = `/paymentservice/v1/billing-addresses/{code}`
100
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
101
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
102
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
103
+ let baseOptions;
104
+ let baseAccessToken;
105
+ if (configuration) {
106
+ baseOptions = configuration.baseOptions;
107
+ baseAccessToken = configuration.accessToken;
108
+ }
109
+
110
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
111
+ const localVarHeaderParameter = {} as any;
112
+ const localVarQueryParameter = {} as any;
113
+
114
+ // authentication bearer required
115
+ // http bearer authentication required
116
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
117
+
118
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
119
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
120
+ }
121
+
122
+
123
+
124
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
125
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
126
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
127
+
128
+ return {
129
+ url: toPathString(localVarUrlObj),
130
+ options: localVarRequestOptions,
131
+ };
132
+ },
133
+ /**
134
+ * 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\"
135
+ * @summary Retrieve the Billing Address
136
+ * @param {string} code
137
+ * @param {string} [authorization] Bearer Token
138
+ * @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;
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ */
142
+ getBillingAddress: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
143
+ // verify required parameter 'code' is not null or undefined
144
+ assertParamExists('getBillingAddress', 'code', code)
145
+ const localVarPath = `/paymentservice/v1/billing-addresses/{code}`
146
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
147
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
148
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
149
+ let baseOptions;
150
+ let baseAccessToken;
151
+ if (configuration) {
152
+ baseOptions = configuration.baseOptions;
153
+ baseAccessToken = configuration.accessToken;
154
+ }
155
+
156
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
157
+ const localVarHeaderParameter = {} as any;
158
+ const localVarQueryParameter = {} as any;
159
+
160
+ // authentication bearer required
161
+ // http bearer authentication required
162
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
163
+
164
+ if (expand !== undefined) {
165
+ localVarQueryParameter['expand'] = expand;
166
+ }
167
+
168
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
169
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
170
+ }
171
+
172
+
173
+
174
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
175
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
176
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
177
+
178
+ return {
179
+ url: toPathString(localVarUrlObj),
180
+ options: localVarRequestOptions,
181
+ };
182
+ },
183
+ /**
184
+ * 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\"
185
+ * @summary List Billing Addresses
186
+ * @param {string} [authorization] Bearer Token
187
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
188
+ * @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.
189
+ * @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;
190
+ * @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;
191
+ * @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;
192
+ * @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;
193
+ * @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;
194
+ * @param {*} [options] Override http request option.
195
+ * @throws {RequiredError}
196
+ */
197
+ listBillingAddresses: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
198
+ const localVarPath = `/paymentservice/v1/billing-addresses`;
199
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
200
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
201
+ let baseOptions;
202
+ let baseAccessToken;
203
+ if (configuration) {
204
+ baseOptions = configuration.baseOptions;
205
+ baseAccessToken = configuration.accessToken;
206
+ }
207
+
208
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
209
+ const localVarHeaderParameter = {} as any;
210
+ const localVarQueryParameter = {} as any;
211
+
212
+ // authentication bearer required
213
+ // http bearer authentication required
214
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
215
+
216
+ if (pageSize !== undefined) {
217
+ localVarQueryParameter['pageSize'] = pageSize;
218
+ }
219
+
220
+ if (pageToken !== undefined) {
221
+ localVarQueryParameter['pageToken'] = pageToken;
222
+ }
223
+
224
+ if (filter !== undefined) {
225
+ localVarQueryParameter['filter'] = filter;
226
+ }
227
+
228
+ if (search !== undefined) {
229
+ localVarQueryParameter['search'] = search;
230
+ }
231
+
232
+ if (order !== undefined) {
233
+ localVarQueryParameter['order'] = order;
234
+ }
235
+
236
+ if (expand !== undefined) {
237
+ localVarQueryParameter['expand'] = expand;
238
+ }
239
+
240
+ if (filters !== undefined) {
241
+ localVarQueryParameter['filters'] = filters;
242
+ }
243
+
244
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
245
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
246
+ }
247
+
248
+
249
+
250
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
251
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
252
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
253
+
254
+ return {
255
+ url: toPathString(localVarUrlObj),
256
+ options: localVarRequestOptions,
257
+ };
258
+ },
259
+ }
260
+ };
261
+
262
+ /**
263
+ * BillingAddressesApi - functional programming interface
264
+ * @export
265
+ */
266
+ export const BillingAddressesApiFp = function(configuration?: Configuration) {
267
+ const localVarAxiosParamCreator = BillingAddressesApiAxiosParamCreator(configuration)
268
+ return {
269
+ /**
270
+ * This will create a new billing address for a specified account or partner **Required Permissions** \"payment-management.payments.create\"
271
+ * @summary Create the Billing Address
272
+ * @param {CreateBillingAddressRequestDto} createBillingAddressRequestDto
273
+ * @param {string} [authorization] Bearer Token
274
+ * @param {*} [options] Override http request option.
275
+ * @throws {RequiredError}
276
+ */
277
+ async createBillingAddress(createBillingAddressRequestDto: CreateBillingAddressRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBillingAddressResponseClass>> {
278
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createBillingAddress(createBillingAddressRequestDto, authorization, options);
279
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
280
+ },
281
+ /**
282
+ * Deletes a billing address by code **Required Permissions** \"payment-management.payments.delete\"
283
+ * @summary Delete the Billing Address
284
+ * @param {string} code Unique identifier for the object.
285
+ * @param {string} [authorization] Bearer Token
286
+ * @param {*} [options] Override http request option.
287
+ * @throws {RequiredError}
288
+ */
289
+ async deleteBillingAddress(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
290
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBillingAddress(code, authorization, options);
291
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
292
+ },
293
+ /**
294
+ * 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\"
295
+ * @summary Retrieve the Billing Address
296
+ * @param {string} code
297
+ * @param {string} [authorization] Bearer Token
298
+ * @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;
299
+ * @param {*} [options] Override http request option.
300
+ * @throws {RequiredError}
301
+ */
302
+ async getBillingAddress(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBillingAddressResponseClass>> {
303
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBillingAddress(code, authorization, expand, options);
304
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
305
+ },
306
+ /**
307
+ * 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\"
308
+ * @summary List Billing Addresses
309
+ * @param {string} [authorization] Bearer Token
310
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
311
+ * @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.
312
+ * @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;
313
+ * @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;
314
+ * @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;
315
+ * @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;
316
+ * @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;
317
+ * @param {*} [options] Override http request option.
318
+ * @throws {RequiredError}
319
+ */
320
+ async 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>> {
321
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listBillingAddresses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
322
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
323
+ },
324
+ }
325
+ };
326
+
327
+ /**
328
+ * BillingAddressesApi - factory interface
329
+ * @export
330
+ */
331
+ export const BillingAddressesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
332
+ const localVarFp = BillingAddressesApiFp(configuration)
333
+ return {
334
+ /**
335
+ * This will create a new billing address for a specified account or partner **Required Permissions** \"payment-management.payments.create\"
336
+ * @summary Create the Billing Address
337
+ * @param {CreateBillingAddressRequestDto} createBillingAddressRequestDto
338
+ * @param {string} [authorization] Bearer Token
339
+ * @param {*} [options] Override http request option.
340
+ * @throws {RequiredError}
341
+ */
342
+ createBillingAddress(createBillingAddressRequestDto: CreateBillingAddressRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBillingAddressResponseClass> {
343
+ return localVarFp.createBillingAddress(createBillingAddressRequestDto, authorization, options).then((request) => request(axios, basePath));
344
+ },
345
+ /**
346
+ * Deletes a billing address by code **Required Permissions** \"payment-management.payments.delete\"
347
+ * @summary Delete the Billing Address
348
+ * @param {string} code Unique identifier for the object.
349
+ * @param {string} [authorization] Bearer Token
350
+ * @param {*} [options] Override http request option.
351
+ * @throws {RequiredError}
352
+ */
353
+ deleteBillingAddress(code: string, authorization?: string, options?: any): AxiosPromise<object> {
354
+ return localVarFp.deleteBillingAddress(code, authorization, options).then((request) => request(axios, basePath));
355
+ },
356
+ /**
357
+ * 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\"
358
+ * @summary Retrieve the Billing Address
359
+ * @param {string} code
360
+ * @param {string} [authorization] Bearer Token
361
+ * @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;
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ */
365
+ getBillingAddress(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetBillingAddressResponseClass> {
366
+ return localVarFp.getBillingAddress(code, authorization, expand, options).then((request) => request(axios, basePath));
367
+ },
368
+ /**
369
+ * 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\"
370
+ * @summary List Billing Addresses
371
+ * @param {string} [authorization] Bearer Token
372
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
373
+ * @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.
374
+ * @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;
375
+ * @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;
376
+ * @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;
377
+ * @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;
378
+ * @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;
379
+ * @param {*} [options] Override http request option.
380
+ * @throws {RequiredError}
381
+ */
382
+ listBillingAddresses(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBillingAddressesResponseClass> {
383
+ return localVarFp.listBillingAddresses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
384
+ },
385
+ };
386
+ };
387
+
388
+ /**
389
+ * Request parameters for createBillingAddress operation in BillingAddressesApi.
390
+ * @export
391
+ * @interface BillingAddressesApiCreateBillingAddressRequest
392
+ */
393
+ export interface BillingAddressesApiCreateBillingAddressRequest {
394
+ /**
395
+ *
396
+ * @type {CreateBillingAddressRequestDto}
397
+ * @memberof BillingAddressesApiCreateBillingAddress
398
+ */
399
+ readonly createBillingAddressRequestDto: CreateBillingAddressRequestDto
400
+
401
+ /**
402
+ * Bearer Token
403
+ * @type {string}
404
+ * @memberof BillingAddressesApiCreateBillingAddress
405
+ */
406
+ readonly authorization?: string
407
+ }
408
+
409
+ /**
410
+ * Request parameters for deleteBillingAddress operation in BillingAddressesApi.
411
+ * @export
412
+ * @interface BillingAddressesApiDeleteBillingAddressRequest
413
+ */
414
+ export interface BillingAddressesApiDeleteBillingAddressRequest {
415
+ /**
416
+ * Unique identifier for the object.
417
+ * @type {string}
418
+ * @memberof BillingAddressesApiDeleteBillingAddress
419
+ */
420
+ readonly code: string
421
+
422
+ /**
423
+ * Bearer Token
424
+ * @type {string}
425
+ * @memberof BillingAddressesApiDeleteBillingAddress
426
+ */
427
+ readonly authorization?: string
428
+ }
429
+
430
+ /**
431
+ * Request parameters for getBillingAddress operation in BillingAddressesApi.
432
+ * @export
433
+ * @interface BillingAddressesApiGetBillingAddressRequest
434
+ */
435
+ export interface BillingAddressesApiGetBillingAddressRequest {
436
+ /**
437
+ *
438
+ * @type {string}
439
+ * @memberof BillingAddressesApiGetBillingAddress
440
+ */
441
+ readonly code: string
442
+
443
+ /**
444
+ * Bearer Token
445
+ * @type {string}
446
+ * @memberof BillingAddressesApiGetBillingAddress
447
+ */
448
+ readonly authorization?: string
449
+
450
+ /**
451
+ * 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;
452
+ * @type {string}
453
+ * @memberof BillingAddressesApiGetBillingAddress
454
+ */
455
+ readonly expand?: string
456
+ }
457
+
458
+ /**
459
+ * Request parameters for listBillingAddresses operation in BillingAddressesApi.
460
+ * @export
461
+ * @interface BillingAddressesApiListBillingAddressesRequest
462
+ */
463
+ export interface BillingAddressesApiListBillingAddressesRequest {
464
+ /**
465
+ * Bearer Token
466
+ * @type {string}
467
+ * @memberof BillingAddressesApiListBillingAddresses
468
+ */
469
+ readonly authorization?: string
470
+
471
+ /**
472
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
473
+ * @type {number}
474
+ * @memberof BillingAddressesApiListBillingAddresses
475
+ */
476
+ readonly pageSize?: number
477
+
478
+ /**
479
+ * 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.
480
+ * @type {string}
481
+ * @memberof BillingAddressesApiListBillingAddresses
482
+ */
483
+ readonly pageToken?: string
484
+
485
+ /**
486
+ * 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;
487
+ * @type {string}
488
+ * @memberof BillingAddressesApiListBillingAddresses
489
+ */
490
+ readonly filter?: string
491
+
492
+ /**
493
+ * 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;
494
+ * @type {string}
495
+ * @memberof BillingAddressesApiListBillingAddresses
496
+ */
497
+ readonly search?: string
498
+
499
+ /**
500
+ * 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;
501
+ * @type {string}
502
+ * @memberof BillingAddressesApiListBillingAddresses
503
+ */
504
+ readonly order?: string
505
+
506
+ /**
507
+ * 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;
508
+ * @type {string}
509
+ * @memberof BillingAddressesApiListBillingAddresses
510
+ */
511
+ readonly expand?: string
512
+
513
+ /**
514
+ * 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;
515
+ * @type {string}
516
+ * @memberof BillingAddressesApiListBillingAddresses
517
+ */
518
+ readonly filters?: string
519
+ }
520
+
521
+ /**
522
+ * BillingAddressesApi - object-oriented interface
523
+ * @export
524
+ * @class BillingAddressesApi
525
+ * @extends {BaseAPI}
526
+ */
527
+ export class BillingAddressesApi extends BaseAPI {
528
+ /**
529
+ * This will create a new billing address for a specified account or partner **Required Permissions** \"payment-management.payments.create\"
530
+ * @summary Create the Billing Address
531
+ * @param {BillingAddressesApiCreateBillingAddressRequest} requestParameters Request parameters.
532
+ * @param {*} [options] Override http request option.
533
+ * @throws {RequiredError}
534
+ * @memberof BillingAddressesApi
535
+ */
536
+ public createBillingAddress(requestParameters: BillingAddressesApiCreateBillingAddressRequest, options?: AxiosRequestConfig) {
537
+ return BillingAddressesApiFp(this.configuration).createBillingAddress(requestParameters.createBillingAddressRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
538
+ }
539
+
540
+ /**
541
+ * Deletes a billing address by code **Required Permissions** \"payment-management.payments.delete\"
542
+ * @summary Delete the Billing Address
543
+ * @param {BillingAddressesApiDeleteBillingAddressRequest} requestParameters Request parameters.
544
+ * @param {*} [options] Override http request option.
545
+ * @throws {RequiredError}
546
+ * @memberof BillingAddressesApi
547
+ */
548
+ public deleteBillingAddress(requestParameters: BillingAddressesApiDeleteBillingAddressRequest, options?: AxiosRequestConfig) {
549
+ return BillingAddressesApiFp(this.configuration).deleteBillingAddress(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
550
+ }
551
+
552
+ /**
553
+ * 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\"
554
+ * @summary Retrieve the Billing Address
555
+ * @param {BillingAddressesApiGetBillingAddressRequest} requestParameters Request parameters.
556
+ * @param {*} [options] Override http request option.
557
+ * @throws {RequiredError}
558
+ * @memberof BillingAddressesApi
559
+ */
560
+ public getBillingAddress(requestParameters: BillingAddressesApiGetBillingAddressRequest, options?: AxiosRequestConfig) {
561
+ return BillingAddressesApiFp(this.configuration).getBillingAddress(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
562
+ }
563
+
564
+ /**
565
+ * 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\"
566
+ * @summary List Billing Addresses
567
+ * @param {BillingAddressesApiListBillingAddressesRequest} requestParameters Request parameters.
568
+ * @param {*} [options] Override http request option.
569
+ * @throws {RequiredError}
570
+ * @memberof BillingAddressesApi
571
+ */
572
+ public listBillingAddresses(requestParameters: BillingAddressesApiListBillingAddressesRequest = {}, options?: AxiosRequestConfig) {
573
+ return BillingAddressesApiFp(this.configuration).listBillingAddresses(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
574
+ }
575
+ }
package/api.ts CHANGED
@@ -27,6 +27,7 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
27
27
  import { BankAccountsApi } from './api';
28
28
  import { BankOrdersApi } from './api';
29
29
  import { BankTransactionApi } from './api';
30
+ import { BillingAddressesApi } from './api';
30
31
  import { CreditAllocationApi } from './api';
31
32
  import { ExceedingCreditsApi } from './api';
32
33
  import { HealthCheckApi } from './api';
@@ -43,6 +44,7 @@ import { WebhooksApi } from './api';
43
44
  export * from './api/bank-accounts-api';
44
45
  export * from './api/bank-orders-api';
45
46
  export * from './api/bank-transaction-api';
47
+ export * from './api/billing-addresses-api';
46
48
  export * from './api/credit-allocation-api';
47
49
  export * from './api/exceeding-credits-api';
48
50
  export * from './api/health-check-api';