@emilgroup/payment-sdk 1.14.1-beta.7 → 1.14.1-beta.70

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.
Files changed (151) hide show
  1. package/.openapi-generator/FILES +32 -1
  2. package/README.md +2 -2
  3. package/api/bank-orders-api.ts +24 -24
  4. package/api/billing-addresses-api.ts +677 -0
  5. package/api/credit-allocation-api.ts +456 -0
  6. package/api/payout-methods-api.ts +672 -0
  7. package/api/policy-payment-methods-api.ts +118 -0
  8. package/api/tenant-bank-account-api.ts +8 -8
  9. package/api.ts +6 -0
  10. package/base.ts +4 -0
  11. package/dist/api/bank-accounts-api.d.ts +6 -6
  12. package/dist/api/bank-orders-api.d.ts +29 -29
  13. package/dist/api/bank-orders-api.js +18 -18
  14. package/dist/api/bank-transaction-api.d.ts +6 -6
  15. package/dist/api/billing-addresses-api.d.ts +384 -0
  16. package/dist/api/billing-addresses-api.js +636 -0
  17. package/dist/api/credit-allocation-api.d.ts +263 -0
  18. package/dist/api/credit-allocation-api.js +445 -0
  19. package/dist/api/exceeding-credits-api.d.ts +2 -2
  20. package/dist/api/health-check-api.d.ts +1 -1
  21. package/dist/api/payment-methods-api.d.ts +3 -3
  22. package/dist/api/payment-reminders-api.d.ts +4 -4
  23. package/dist/api/payment-setup-api.d.ts +2 -2
  24. package/dist/api/payments-api.d.ts +4 -4
  25. package/dist/api/payout-methods-api.d.ts +382 -0
  26. package/dist/api/payout-methods-api.js +635 -0
  27. package/dist/api/policy-payment-methods-api.d.ts +67 -2
  28. package/dist/api/policy-payment-methods-api.js +99 -0
  29. package/dist/api/refunds-api.d.ts +3 -3
  30. package/dist/api/tenant-bank-account-api.d.ts +13 -13
  31. package/dist/api/tenant-bank-account-api.js +6 -6
  32. package/dist/api/webhooks-api.d.ts +1 -1
  33. package/dist/api.d.ts +3 -0
  34. package/dist/api.js +3 -0
  35. package/dist/base.js +3 -1
  36. package/dist/common.d.ts +1 -1
  37. package/dist/models/activate-policy-payment-method-request-dto.d.ts +24 -0
  38. package/dist/models/activate-policy-payment-method-request-dto.js +15 -0
  39. package/dist/models/bank-order-class.d.ts +9 -9
  40. package/dist/models/bank-order-entity.d.ts +156 -0
  41. package/dist/models/bank-order-entity.js +29 -0
  42. package/dist/models/bank-order-xml-file-entity.d.ts +85 -0
  43. package/dist/models/bank-order-xml-file-entity.js +15 -0
  44. package/dist/models/bank-transaction-entity.d.ts +179 -0
  45. package/dist/models/{financial-account-class.js → bank-transaction-entity.js} +4 -8
  46. package/dist/models/bank-transaction-invoice-entity.d.ts +98 -0
  47. package/dist/models/bank-transaction-invoice-entity.js +15 -0
  48. package/dist/models/billing-address-class.d.ts +108 -0
  49. package/dist/models/billing-address-class.js +15 -0
  50. package/dist/models/billing-address-dto.d.ts +6 -0
  51. package/dist/models/create-bank-order-request-dto.d.ts +6 -5
  52. package/dist/models/create-bank-order-request-dto.js +2 -1
  53. package/dist/models/create-billing-address-request-dto.d.ts +66 -0
  54. package/dist/models/create-billing-address-request-dto.js +15 -0
  55. package/dist/models/create-billing-address-response-class.d.ts +25 -0
  56. package/dist/models/create-billing-address-response-class.js +15 -0
  57. package/dist/models/create-credit-allocation-request-dto.d.ts +54 -0
  58. package/dist/models/create-credit-allocation-request-dto.js +21 -0
  59. package/dist/models/create-credit-allocation-response-class.d.ts +25 -0
  60. package/dist/models/create-credit-allocation-response-class.js +15 -0
  61. package/dist/models/create-payout-method-request-dto.d.ts +60 -0
  62. package/dist/models/create-payout-method-request-dto.js +15 -0
  63. package/dist/models/create-payout-method-response-class.d.ts +25 -0
  64. package/dist/models/create-payout-method-response-class.js +15 -0
  65. package/dist/models/create-tenant-bank-account-request-dto.d.ts +57 -1
  66. package/dist/models/create-tenant-bank-account-request-dto.js +8 -0
  67. package/dist/models/credit-allocation-class.d.ts +115 -0
  68. package/dist/models/credit-allocation-class.js +21 -0
  69. package/dist/models/credit-allocation-entity.d.ts +135 -0
  70. package/dist/models/credit-allocation-entity.js +34 -0
  71. package/dist/models/exceeding-credit-class.d.ts +6 -0
  72. package/dist/models/exceeding-credit-entity.d.ts +148 -0
  73. package/dist/models/exceeding-credit-entity.js +29 -0
  74. package/dist/models/get-billing-address-response-class.d.ts +25 -0
  75. package/dist/models/get-billing-address-response-class.js +15 -0
  76. package/dist/models/get-credit-allocation-response-class.d.ts +25 -0
  77. package/dist/models/get-credit-allocation-response-class.js +15 -0
  78. package/dist/models/get-payout-method-response-class.d.ts +25 -0
  79. package/dist/models/get-payout-method-response-class.js +15 -0
  80. package/dist/models/index.d.ts +29 -1
  81. package/dist/models/index.js +29 -1
  82. package/dist/models/invoice-match-suggestion-entity.d.ts +103 -0
  83. package/dist/models/invoice-match-suggestion-entity.js +15 -0
  84. package/dist/models/list-billing-addresses-response-class.d.ts +43 -0
  85. package/dist/models/list-billing-addresses-response-class.js +15 -0
  86. package/dist/models/list-credit-allocations-response-class.d.ts +43 -0
  87. package/dist/models/list-credit-allocations-response-class.js +15 -0
  88. package/dist/models/list-payout-methods-response-class.d.ts +43 -0
  89. package/dist/models/list-payout-methods-response-class.js +15 -0
  90. package/dist/models/payment-entity.d.ts +133 -0
  91. package/dist/models/payment-entity.js +15 -0
  92. package/dist/models/payout-method-class.d.ts +115 -0
  93. package/dist/models/payout-method-class.js +15 -0
  94. package/dist/models/suggestion-generation-progress-entity.d.ts +86 -0
  95. package/dist/models/suggestion-generation-progress-entity.js +22 -0
  96. package/dist/models/tenant-bank-account-class-without-expand-properties.d.ts +56 -0
  97. package/dist/models/tenant-bank-account-class-without-expand-properties.js +8 -0
  98. package/dist/models/tenant-bank-account-class.d.ts +56 -0
  99. package/dist/models/tenant-bank-account-class.js +8 -0
  100. package/dist/models/tenant-bank-account-entity.d.ts +153 -0
  101. package/dist/models/tenant-bank-account-entity.js +23 -0
  102. package/dist/models/transaction-entity.d.ts +112 -0
  103. package/dist/models/transaction-entity.js +23 -0
  104. package/dist/models/update-bank-order-request-dto.d.ts +5 -5
  105. package/dist/models/update-billing-address-request-dto.d.ts +66 -0
  106. package/dist/models/update-billing-address-request-dto.js +15 -0
  107. package/dist/models/update-billing-address-response-class.d.ts +25 -0
  108. package/dist/models/update-billing-address-response-class.js +15 -0
  109. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +57 -1
  110. package/dist/models/update-tenant-bank-account-rest-request-dto.js +8 -0
  111. package/models/activate-policy-payment-method-request-dto.ts +30 -0
  112. package/models/bank-order-class.ts +9 -9
  113. package/models/bank-order-entity.ts +166 -0
  114. package/models/bank-order-xml-file-entity.ts +91 -0
  115. package/models/bank-transaction-entity.ts +188 -0
  116. package/models/bank-transaction-invoice-entity.ts +104 -0
  117. package/models/billing-address-class.ts +114 -0
  118. package/models/billing-address-dto.ts +6 -0
  119. package/models/create-bank-order-request-dto.ts +7 -6
  120. package/models/create-billing-address-request-dto.ts +72 -0
  121. package/models/create-billing-address-response-class.ts +31 -0
  122. package/models/create-credit-allocation-request-dto.ts +63 -0
  123. package/models/create-credit-allocation-response-class.ts +31 -0
  124. package/models/create-payout-method-request-dto.ts +66 -0
  125. package/models/create-payout-method-response-class.ts +31 -0
  126. package/models/create-tenant-bank-account-request-dto.ts +60 -1
  127. package/models/credit-allocation-class.ts +124 -0
  128. package/models/credit-allocation-entity.ts +145 -0
  129. package/models/exceeding-credit-class.ts +6 -0
  130. package/models/exceeding-credit-entity.ts +157 -0
  131. package/models/get-billing-address-response-class.ts +31 -0
  132. package/models/get-credit-allocation-response-class.ts +31 -0
  133. package/models/get-payout-method-response-class.ts +31 -0
  134. package/models/index.ts +29 -1
  135. package/models/invoice-match-suggestion-entity.ts +109 -0
  136. package/models/list-billing-addresses-response-class.ts +49 -0
  137. package/models/list-credit-allocations-response-class.ts +49 -0
  138. package/models/list-payout-methods-response-class.ts +49 -0
  139. package/models/payment-entity.ts +139 -0
  140. package/models/{financial-account-class.ts → payout-method-class.ts} +48 -47
  141. package/models/suggestion-generation-progress-entity.ts +95 -0
  142. package/models/tenant-bank-account-class-without-expand-properties.ts +59 -0
  143. package/models/tenant-bank-account-class.ts +59 -0
  144. package/models/tenant-bank-account-entity.ts +162 -0
  145. package/models/transaction-entity.ts +121 -0
  146. package/models/update-bank-order-request-dto.ts +5 -5
  147. package/models/update-billing-address-request-dto.ts +72 -0
  148. package/models/update-billing-address-response-class.ts +31 -0
  149. package/models/update-tenant-bank-account-rest-request-dto.ts +60 -1
  150. package/package.json +2 -2
  151. package/dist/models/financial-account-class.d.ts +0 -111
@@ -0,0 +1,677 @@
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
+ // @ts-ignore
32
+ import { UpdateBillingAddressRequestDto } from '../models';
33
+ // @ts-ignore
34
+ import { UpdateBillingAddressResponseClass } from '../models';
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 {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ getBillingAddress: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
142
+ // verify required parameter 'code' is not null or undefined
143
+ assertParamExists('getBillingAddress', 'code', code)
144
+ const localVarPath = `/paymentservice/v1/billing-addresses/{code}`
145
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
148
+ let baseOptions;
149
+ let baseAccessToken;
150
+ if (configuration) {
151
+ baseOptions = configuration.baseOptions;
152
+ baseAccessToken = configuration.accessToken;
153
+ }
154
+
155
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
156
+ const localVarHeaderParameter = {} as any;
157
+ const localVarQueryParameter = {} as any;
158
+
159
+ // authentication bearer required
160
+ // http bearer authentication required
161
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
162
+
163
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
164
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
165
+ }
166
+
167
+
168
+
169
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
170
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
171
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
172
+
173
+ return {
174
+ url: toPathString(localVarUrlObj),
175
+ options: localVarRequestOptions,
176
+ };
177
+ },
178
+ /**
179
+ * 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\"
180
+ * @summary List Billing Addresses
181
+ * @param {string} [authorization] Bearer Token
182
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
183
+ * @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.
184
+ * @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&lt;/i&gt;
185
+ * @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;
186
+ * @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;
187
+ * @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;
188
+ * @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&lt;/i&gt;
189
+ * @param {*} [options] Override http request option.
190
+ * @throws {RequiredError}
191
+ */
192
+ listBillingAddresses: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
193
+ const localVarPath = `/paymentservice/v1/billing-addresses`;
194
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
195
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
196
+ let baseOptions;
197
+ let baseAccessToken;
198
+ if (configuration) {
199
+ baseOptions = configuration.baseOptions;
200
+ baseAccessToken = configuration.accessToken;
201
+ }
202
+
203
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
204
+ const localVarHeaderParameter = {} as any;
205
+ const localVarQueryParameter = {} as any;
206
+
207
+ // authentication bearer required
208
+ // http bearer authentication required
209
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
210
+
211
+ if (pageSize !== undefined) {
212
+ localVarQueryParameter['pageSize'] = pageSize;
213
+ }
214
+
215
+ if (pageToken !== undefined) {
216
+ localVarQueryParameter['pageToken'] = pageToken;
217
+ }
218
+
219
+ if (filter !== undefined) {
220
+ localVarQueryParameter['filter'] = filter;
221
+ }
222
+
223
+ if (search !== undefined) {
224
+ localVarQueryParameter['search'] = search;
225
+ }
226
+
227
+ if (order !== undefined) {
228
+ localVarQueryParameter['order'] = order;
229
+ }
230
+
231
+ if (expand !== undefined) {
232
+ localVarQueryParameter['expand'] = expand;
233
+ }
234
+
235
+ if (filters !== undefined) {
236
+ localVarQueryParameter['filters'] = filters;
237
+ }
238
+
239
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
240
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
241
+ }
242
+
243
+
244
+
245
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
246
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
247
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
248
+
249
+ return {
250
+ url: toPathString(localVarUrlObj),
251
+ options: localVarRequestOptions,
252
+ };
253
+ },
254
+ /**
255
+ * Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
256
+ * @summary Update the Billing Address
257
+ * @param {string} code
258
+ * @param {UpdateBillingAddressRequestDto} updateBillingAddressRequestDto
259
+ * @param {string} [authorization] Bearer Token
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ */
263
+ updateBillingAddress: async (code: string, updateBillingAddressRequestDto: UpdateBillingAddressRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
264
+ // verify required parameter 'code' is not null or undefined
265
+ assertParamExists('updateBillingAddress', 'code', code)
266
+ // verify required parameter 'updateBillingAddressRequestDto' is not null or undefined
267
+ assertParamExists('updateBillingAddress', 'updateBillingAddressRequestDto', updateBillingAddressRequestDto)
268
+ const localVarPath = `/paymentservice/v1/billing-addresses/{code}`
269
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
270
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
271
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
272
+ let baseOptions;
273
+ let baseAccessToken;
274
+ if (configuration) {
275
+ baseOptions = configuration.baseOptions;
276
+ baseAccessToken = configuration.accessToken;
277
+ }
278
+
279
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
280
+ const localVarHeaderParameter = {} as any;
281
+ const localVarQueryParameter = {} as any;
282
+
283
+ // authentication bearer required
284
+ // http bearer authentication required
285
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
286
+
287
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
288
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
289
+ }
290
+
291
+
292
+
293
+ localVarHeaderParameter['Content-Type'] = 'application/json';
294
+
295
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
296
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
297
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
298
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBillingAddressRequestDto, localVarRequestOptions, configuration)
299
+
300
+ return {
301
+ url: toPathString(localVarUrlObj),
302
+ options: localVarRequestOptions,
303
+ };
304
+ },
305
+ }
306
+ };
307
+
308
+ /**
309
+ * BillingAddressesApi - functional programming interface
310
+ * @export
311
+ */
312
+ export const BillingAddressesApiFp = function(configuration?: Configuration) {
313
+ const localVarAxiosParamCreator = BillingAddressesApiAxiosParamCreator(configuration)
314
+ return {
315
+ /**
316
+ * This will create a new billing address for a specified account or partner **Required Permissions** \"payment-management.payments.create\"
317
+ * @summary Create the Billing Address
318
+ * @param {CreateBillingAddressRequestDto} createBillingAddressRequestDto
319
+ * @param {string} [authorization] Bearer Token
320
+ * @param {*} [options] Override http request option.
321
+ * @throws {RequiredError}
322
+ */
323
+ async createBillingAddress(createBillingAddressRequestDto: CreateBillingAddressRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBillingAddressResponseClass>> {
324
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createBillingAddress(createBillingAddressRequestDto, authorization, options);
325
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
326
+ },
327
+ /**
328
+ * Deletes a billing address by code **Required Permissions** \"payment-management.payments.delete\"
329
+ * @summary Delete the Billing Address
330
+ * @param {string} code Unique identifier for the object.
331
+ * @param {string} [authorization] Bearer Token
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ */
335
+ async deleteBillingAddress(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
336
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBillingAddress(code, authorization, options);
337
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
338
+ },
339
+ /**
340
+ * 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\"
341
+ * @summary Retrieve the Billing Address
342
+ * @param {string} code
343
+ * @param {string} [authorization] Bearer Token
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ async getBillingAddress(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBillingAddressResponseClass>> {
348
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBillingAddress(code, authorization, options);
349
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
350
+ },
351
+ /**
352
+ * 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\"
353
+ * @summary List Billing Addresses
354
+ * @param {string} [authorization] Bearer Token
355
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
356
+ * @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.
357
+ * @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&lt;/i&gt;
358
+ * @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;
359
+ * @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;
360
+ * @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;
361
+ * @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&lt;/i&gt;
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ */
365
+ 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>> {
366
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listBillingAddresses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
367
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
368
+ },
369
+ /**
370
+ * Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
371
+ * @summary Update the Billing Address
372
+ * @param {string} code
373
+ * @param {UpdateBillingAddressRequestDto} updateBillingAddressRequestDto
374
+ * @param {string} [authorization] Bearer Token
375
+ * @param {*} [options] Override http request option.
376
+ * @throws {RequiredError}
377
+ */
378
+ async updateBillingAddress(code: string, updateBillingAddressRequestDto: UpdateBillingAddressRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBillingAddressResponseClass>> {
379
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBillingAddress(code, updateBillingAddressRequestDto, authorization, options);
380
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
381
+ },
382
+ }
383
+ };
384
+
385
+ /**
386
+ * BillingAddressesApi - factory interface
387
+ * @export
388
+ */
389
+ export const BillingAddressesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
390
+ const localVarFp = BillingAddressesApiFp(configuration)
391
+ return {
392
+ /**
393
+ * This will create a new billing address for a specified account or partner **Required Permissions** \"payment-management.payments.create\"
394
+ * @summary Create the Billing Address
395
+ * @param {CreateBillingAddressRequestDto} createBillingAddressRequestDto
396
+ * @param {string} [authorization] Bearer Token
397
+ * @param {*} [options] Override http request option.
398
+ * @throws {RequiredError}
399
+ */
400
+ createBillingAddress(createBillingAddressRequestDto: CreateBillingAddressRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBillingAddressResponseClass> {
401
+ return localVarFp.createBillingAddress(createBillingAddressRequestDto, authorization, options).then((request) => request(axios, basePath));
402
+ },
403
+ /**
404
+ * Deletes a billing address by code **Required Permissions** \"payment-management.payments.delete\"
405
+ * @summary Delete the Billing Address
406
+ * @param {string} code Unique identifier for the object.
407
+ * @param {string} [authorization] Bearer Token
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ deleteBillingAddress(code: string, authorization?: string, options?: any): AxiosPromise<object> {
412
+ return localVarFp.deleteBillingAddress(code, authorization, options).then((request) => request(axios, basePath));
413
+ },
414
+ /**
415
+ * 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\"
416
+ * @summary Retrieve the Billing Address
417
+ * @param {string} code
418
+ * @param {string} [authorization] Bearer Token
419
+ * @param {*} [options] Override http request option.
420
+ * @throws {RequiredError}
421
+ */
422
+ getBillingAddress(code: string, authorization?: string, options?: any): AxiosPromise<GetBillingAddressResponseClass> {
423
+ return localVarFp.getBillingAddress(code, authorization, options).then((request) => request(axios, basePath));
424
+ },
425
+ /**
426
+ * 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\"
427
+ * @summary List Billing Addresses
428
+ * @param {string} [authorization] Bearer Token
429
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
430
+ * @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.
431
+ * @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&lt;/i&gt;
432
+ * @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;
433
+ * @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;
434
+ * @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;
435
+ * @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&lt;/i&gt;
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ */
439
+ listBillingAddresses(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBillingAddressesResponseClass> {
440
+ return localVarFp.listBillingAddresses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
441
+ },
442
+ /**
443
+ * Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
444
+ * @summary Update the Billing Address
445
+ * @param {string} code
446
+ * @param {UpdateBillingAddressRequestDto} updateBillingAddressRequestDto
447
+ * @param {string} [authorization] Bearer Token
448
+ * @param {*} [options] Override http request option.
449
+ * @throws {RequiredError}
450
+ */
451
+ updateBillingAddress(code: string, updateBillingAddressRequestDto: UpdateBillingAddressRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateBillingAddressResponseClass> {
452
+ return localVarFp.updateBillingAddress(code, updateBillingAddressRequestDto, authorization, options).then((request) => request(axios, basePath));
453
+ },
454
+ };
455
+ };
456
+
457
+ /**
458
+ * Request parameters for createBillingAddress operation in BillingAddressesApi.
459
+ * @export
460
+ * @interface BillingAddressesApiCreateBillingAddressRequest
461
+ */
462
+ export interface BillingAddressesApiCreateBillingAddressRequest {
463
+ /**
464
+ *
465
+ * @type {CreateBillingAddressRequestDto}
466
+ * @memberof BillingAddressesApiCreateBillingAddress
467
+ */
468
+ readonly createBillingAddressRequestDto: CreateBillingAddressRequestDto
469
+
470
+ /**
471
+ * Bearer Token
472
+ * @type {string}
473
+ * @memberof BillingAddressesApiCreateBillingAddress
474
+ */
475
+ readonly authorization?: string
476
+ }
477
+
478
+ /**
479
+ * Request parameters for deleteBillingAddress operation in BillingAddressesApi.
480
+ * @export
481
+ * @interface BillingAddressesApiDeleteBillingAddressRequest
482
+ */
483
+ export interface BillingAddressesApiDeleteBillingAddressRequest {
484
+ /**
485
+ * Unique identifier for the object.
486
+ * @type {string}
487
+ * @memberof BillingAddressesApiDeleteBillingAddress
488
+ */
489
+ readonly code: string
490
+
491
+ /**
492
+ * Bearer Token
493
+ * @type {string}
494
+ * @memberof BillingAddressesApiDeleteBillingAddress
495
+ */
496
+ readonly authorization?: string
497
+ }
498
+
499
+ /**
500
+ * Request parameters for getBillingAddress operation in BillingAddressesApi.
501
+ * @export
502
+ * @interface BillingAddressesApiGetBillingAddressRequest
503
+ */
504
+ export interface BillingAddressesApiGetBillingAddressRequest {
505
+ /**
506
+ *
507
+ * @type {string}
508
+ * @memberof BillingAddressesApiGetBillingAddress
509
+ */
510
+ readonly code: string
511
+
512
+ /**
513
+ * Bearer Token
514
+ * @type {string}
515
+ * @memberof BillingAddressesApiGetBillingAddress
516
+ */
517
+ readonly authorization?: string
518
+ }
519
+
520
+ /**
521
+ * Request parameters for listBillingAddresses operation in BillingAddressesApi.
522
+ * @export
523
+ * @interface BillingAddressesApiListBillingAddressesRequest
524
+ */
525
+ export interface BillingAddressesApiListBillingAddressesRequest {
526
+ /**
527
+ * Bearer Token
528
+ * @type {string}
529
+ * @memberof BillingAddressesApiListBillingAddresses
530
+ */
531
+ readonly authorization?: string
532
+
533
+ /**
534
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
535
+ * @type {number}
536
+ * @memberof BillingAddressesApiListBillingAddresses
537
+ */
538
+ readonly pageSize?: number
539
+
540
+ /**
541
+ * 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.
542
+ * @type {string}
543
+ * @memberof BillingAddressesApiListBillingAddresses
544
+ */
545
+ readonly pageToken?: string
546
+
547
+ /**
548
+ * 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&lt;/i&gt;
549
+ * @type {string}
550
+ * @memberof BillingAddressesApiListBillingAddresses
551
+ */
552
+ readonly filter?: string
553
+
554
+ /**
555
+ * 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;
556
+ * @type {string}
557
+ * @memberof BillingAddressesApiListBillingAddresses
558
+ */
559
+ readonly search?: string
560
+
561
+ /**
562
+ * 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;
563
+ * @type {string}
564
+ * @memberof BillingAddressesApiListBillingAddresses
565
+ */
566
+ readonly order?: string
567
+
568
+ /**
569
+ * 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;
570
+ * @type {string}
571
+ * @memberof BillingAddressesApiListBillingAddresses
572
+ */
573
+ readonly expand?: string
574
+
575
+ /**
576
+ * 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&lt;/i&gt;
577
+ * @type {string}
578
+ * @memberof BillingAddressesApiListBillingAddresses
579
+ */
580
+ readonly filters?: string
581
+ }
582
+
583
+ /**
584
+ * Request parameters for updateBillingAddress operation in BillingAddressesApi.
585
+ * @export
586
+ * @interface BillingAddressesApiUpdateBillingAddressRequest
587
+ */
588
+ export interface BillingAddressesApiUpdateBillingAddressRequest {
589
+ /**
590
+ *
591
+ * @type {string}
592
+ * @memberof BillingAddressesApiUpdateBillingAddress
593
+ */
594
+ readonly code: string
595
+
596
+ /**
597
+ *
598
+ * @type {UpdateBillingAddressRequestDto}
599
+ * @memberof BillingAddressesApiUpdateBillingAddress
600
+ */
601
+ readonly updateBillingAddressRequestDto: UpdateBillingAddressRequestDto
602
+
603
+ /**
604
+ * Bearer Token
605
+ * @type {string}
606
+ * @memberof BillingAddressesApiUpdateBillingAddress
607
+ */
608
+ readonly authorization?: string
609
+ }
610
+
611
+ /**
612
+ * BillingAddressesApi - object-oriented interface
613
+ * @export
614
+ * @class BillingAddressesApi
615
+ * @extends {BaseAPI}
616
+ */
617
+ export class BillingAddressesApi extends BaseAPI {
618
+ /**
619
+ * This will create a new billing address for a specified account or partner **Required Permissions** \"payment-management.payments.create\"
620
+ * @summary Create the Billing Address
621
+ * @param {BillingAddressesApiCreateBillingAddressRequest} requestParameters Request parameters.
622
+ * @param {*} [options] Override http request option.
623
+ * @throws {RequiredError}
624
+ * @memberof BillingAddressesApi
625
+ */
626
+ public createBillingAddress(requestParameters: BillingAddressesApiCreateBillingAddressRequest, options?: AxiosRequestConfig) {
627
+ return BillingAddressesApiFp(this.configuration).createBillingAddress(requestParameters.createBillingAddressRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
628
+ }
629
+
630
+ /**
631
+ * Deletes a billing address by code **Required Permissions** \"payment-management.payments.delete\"
632
+ * @summary Delete the Billing Address
633
+ * @param {BillingAddressesApiDeleteBillingAddressRequest} requestParameters Request parameters.
634
+ * @param {*} [options] Override http request option.
635
+ * @throws {RequiredError}
636
+ * @memberof BillingAddressesApi
637
+ */
638
+ public deleteBillingAddress(requestParameters: BillingAddressesApiDeleteBillingAddressRequest, options?: AxiosRequestConfig) {
639
+ return BillingAddressesApiFp(this.configuration).deleteBillingAddress(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
640
+ }
641
+
642
+ /**
643
+ * 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\"
644
+ * @summary Retrieve the Billing Address
645
+ * @param {BillingAddressesApiGetBillingAddressRequest} requestParameters Request parameters.
646
+ * @param {*} [options] Override http request option.
647
+ * @throws {RequiredError}
648
+ * @memberof BillingAddressesApi
649
+ */
650
+ public getBillingAddress(requestParameters: BillingAddressesApiGetBillingAddressRequest, options?: AxiosRequestConfig) {
651
+ return BillingAddressesApiFp(this.configuration).getBillingAddress(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
652
+ }
653
+
654
+ /**
655
+ * 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\"
656
+ * @summary List Billing Addresses
657
+ * @param {BillingAddressesApiListBillingAddressesRequest} requestParameters Request parameters.
658
+ * @param {*} [options] Override http request option.
659
+ * @throws {RequiredError}
660
+ * @memberof BillingAddressesApi
661
+ */
662
+ public listBillingAddresses(requestParameters: BillingAddressesApiListBillingAddressesRequest = {}, options?: AxiosRequestConfig) {
663
+ 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));
664
+ }
665
+
666
+ /**
667
+ * Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
668
+ * @summary Update the Billing Address
669
+ * @param {BillingAddressesApiUpdateBillingAddressRequest} requestParameters Request parameters.
670
+ * @param {*} [options] Override http request option.
671
+ * @throws {RequiredError}
672
+ * @memberof BillingAddressesApi
673
+ */
674
+ public updateBillingAddress(requestParameters: BillingAddressesApiUpdateBillingAddressRequest, options?: AxiosRequestConfig) {
675
+ return BillingAddressesApiFp(this.configuration).updateBillingAddress(requestParameters.code, requestParameters.updateBillingAddressRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
676
+ }
677
+ }