@emilgroup/payment-sdk-node 1.22.1-beta.55 → 1.22.1-beta.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -0
- package/README.md +2 -2
- package/api/billing-addresses-api.ts +120 -0
- package/dist/api/billing-addresses-api.d.ts +66 -0
- package/dist/api/billing-addresses-api.js +99 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/list-billing-addresses-response-class.d.ts +3 -3
- package/dist/models/update-billing-address-request-dto.d.ts +72 -0
- package/dist/models/update-billing-address-request-dto.js +15 -0
- package/dist/models/update-billing-address-response-class.d.ts +25 -0
- package/dist/models/update-billing-address-response-class.js +15 -0
- package/models/index.ts +2 -0
- package/models/list-billing-addresses-response-class.ts +3 -3
- package/models/update-billing-address-request-dto.ts +78 -0
- package/models/update-billing-address-response-class.ts +31 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -138,6 +138,8 @@ models/update-bank-account-request-dto.ts
|
|
|
138
138
|
models/update-bank-account-response-class.ts
|
|
139
139
|
models/update-bank-order-request-dto.ts
|
|
140
140
|
models/update-bank-order-response-class.ts
|
|
141
|
+
models/update-billing-address-request-dto.ts
|
|
142
|
+
models/update-billing-address-response-class.ts
|
|
141
143
|
models/update-tenant-bank-account-response-class.ts
|
|
142
144
|
models/update-tenant-bank-account-rest-request-dto.ts
|
|
143
145
|
models/validate-pspconfig-request-dto.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.
|
|
20
|
+
npm install @emilgroup/payment-sdk-node@1.22.1-beta.57 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk-node@1.22.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk-node@1.22.1-beta.57
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
|
@@ -28,6 +28,10 @@ import { CreateBillingAddressResponseClass } from '../models';
|
|
|
28
28
|
import { GetBillingAddressResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ListBillingAddressesResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { UpdateBillingAddressRequestDto } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { UpdateBillingAddressResponseClass } from '../models';
|
|
31
35
|
// URLSearchParams not necessarily used
|
|
32
36
|
// @ts-ignore
|
|
33
37
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -251,6 +255,57 @@ export const BillingAddressesApiAxiosParamCreator = function (configuration?: Co
|
|
|
251
255
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
252
256
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
253
257
|
|
|
258
|
+
return {
|
|
259
|
+
url: toPathString(localVarUrlObj),
|
|
260
|
+
options: localVarRequestOptions,
|
|
261
|
+
};
|
|
262
|
+
},
|
|
263
|
+
/**
|
|
264
|
+
* Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
|
|
265
|
+
* @summary Update the Billing Address
|
|
266
|
+
* @param {string} code
|
|
267
|
+
* @param {UpdateBillingAddressRequestDto} updateBillingAddressRequestDto
|
|
268
|
+
* @param {string} [authorization] Bearer Token
|
|
269
|
+
* @param {*} [options] Override http request option.
|
|
270
|
+
* @throws {RequiredError}
|
|
271
|
+
*/
|
|
272
|
+
updateBillingAddress: async (code: string, updateBillingAddressRequestDto: UpdateBillingAddressRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
273
|
+
// verify required parameter 'code' is not null or undefined
|
|
274
|
+
assertParamExists('updateBillingAddress', 'code', code)
|
|
275
|
+
// verify required parameter 'updateBillingAddressRequestDto' is not null or undefined
|
|
276
|
+
assertParamExists('updateBillingAddress', 'updateBillingAddressRequestDto', updateBillingAddressRequestDto)
|
|
277
|
+
const localVarPath = `/paymentservice/v1/billing-addresses/{code}`
|
|
278
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
279
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
280
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
281
|
+
let baseOptions;
|
|
282
|
+
let baseAccessToken;
|
|
283
|
+
if (configuration) {
|
|
284
|
+
baseOptions = configuration.baseOptions;
|
|
285
|
+
baseAccessToken = configuration.accessToken;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
289
|
+
const localVarHeaderParameter = {} as any;
|
|
290
|
+
const localVarQueryParameter = {} as any;
|
|
291
|
+
|
|
292
|
+
// authentication bearer required
|
|
293
|
+
// http bearer authentication required
|
|
294
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
295
|
+
|
|
296
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
297
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
303
|
+
|
|
304
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
305
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
306
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
307
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateBillingAddressRequestDto, localVarRequestOptions, configuration)
|
|
308
|
+
|
|
254
309
|
return {
|
|
255
310
|
url: toPathString(localVarUrlObj),
|
|
256
311
|
options: localVarRequestOptions,
|
|
@@ -321,6 +376,19 @@ export const BillingAddressesApiFp = function(configuration?: Configuration) {
|
|
|
321
376
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBillingAddresses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
322
377
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
323
378
|
},
|
|
379
|
+
/**
|
|
380
|
+
* Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
|
|
381
|
+
* @summary Update the Billing Address
|
|
382
|
+
* @param {string} code
|
|
383
|
+
* @param {UpdateBillingAddressRequestDto} updateBillingAddressRequestDto
|
|
384
|
+
* @param {string} [authorization] Bearer Token
|
|
385
|
+
* @param {*} [options] Override http request option.
|
|
386
|
+
* @throws {RequiredError}
|
|
387
|
+
*/
|
|
388
|
+
async updateBillingAddress(code: string, updateBillingAddressRequestDto: UpdateBillingAddressRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBillingAddressResponseClass>> {
|
|
389
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBillingAddress(code, updateBillingAddressRequestDto, authorization, options);
|
|
390
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
391
|
+
},
|
|
324
392
|
}
|
|
325
393
|
};
|
|
326
394
|
|
|
@@ -382,6 +450,18 @@ export const BillingAddressesApiFactory = function (configuration?: Configuratio
|
|
|
382
450
|
listBillingAddresses(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBillingAddressesResponseClass> {
|
|
383
451
|
return localVarFp.listBillingAddresses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
384
452
|
},
|
|
453
|
+
/**
|
|
454
|
+
* Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
|
|
455
|
+
* @summary Update the Billing Address
|
|
456
|
+
* @param {string} code
|
|
457
|
+
* @param {UpdateBillingAddressRequestDto} updateBillingAddressRequestDto
|
|
458
|
+
* @param {string} [authorization] Bearer Token
|
|
459
|
+
* @param {*} [options] Override http request option.
|
|
460
|
+
* @throws {RequiredError}
|
|
461
|
+
*/
|
|
462
|
+
updateBillingAddress(code: string, updateBillingAddressRequestDto: UpdateBillingAddressRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateBillingAddressResponseClass> {
|
|
463
|
+
return localVarFp.updateBillingAddress(code, updateBillingAddressRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
464
|
+
},
|
|
385
465
|
};
|
|
386
466
|
};
|
|
387
467
|
|
|
@@ -518,6 +598,34 @@ export interface BillingAddressesApiListBillingAddressesRequest {
|
|
|
518
598
|
readonly filters?: string
|
|
519
599
|
}
|
|
520
600
|
|
|
601
|
+
/**
|
|
602
|
+
* Request parameters for updateBillingAddress operation in BillingAddressesApi.
|
|
603
|
+
* @export
|
|
604
|
+
* @interface BillingAddressesApiUpdateBillingAddressRequest
|
|
605
|
+
*/
|
|
606
|
+
export interface BillingAddressesApiUpdateBillingAddressRequest {
|
|
607
|
+
/**
|
|
608
|
+
*
|
|
609
|
+
* @type {string}
|
|
610
|
+
* @memberof BillingAddressesApiUpdateBillingAddress
|
|
611
|
+
*/
|
|
612
|
+
readonly code: string
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
*
|
|
616
|
+
* @type {UpdateBillingAddressRequestDto}
|
|
617
|
+
* @memberof BillingAddressesApiUpdateBillingAddress
|
|
618
|
+
*/
|
|
619
|
+
readonly updateBillingAddressRequestDto: UpdateBillingAddressRequestDto
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Bearer Token
|
|
623
|
+
* @type {string}
|
|
624
|
+
* @memberof BillingAddressesApiUpdateBillingAddress
|
|
625
|
+
*/
|
|
626
|
+
readonly authorization?: string
|
|
627
|
+
}
|
|
628
|
+
|
|
521
629
|
/**
|
|
522
630
|
* BillingAddressesApi - object-oriented interface
|
|
523
631
|
* @export
|
|
@@ -572,4 +680,16 @@ export class BillingAddressesApi extends BaseAPI {
|
|
|
572
680
|
public listBillingAddresses(requestParameters: BillingAddressesApiListBillingAddressesRequest = {}, options?: AxiosRequestConfig) {
|
|
573
681
|
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
682
|
}
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
|
|
686
|
+
* @summary Update the Billing Address
|
|
687
|
+
* @param {BillingAddressesApiUpdateBillingAddressRequest} requestParameters Request parameters.
|
|
688
|
+
* @param {*} [options] Override http request option.
|
|
689
|
+
* @throws {RequiredError}
|
|
690
|
+
* @memberof BillingAddressesApi
|
|
691
|
+
*/
|
|
692
|
+
public updateBillingAddress(requestParameters: BillingAddressesApiUpdateBillingAddressRequest, options?: AxiosRequestConfig) {
|
|
693
|
+
return BillingAddressesApiFp(this.configuration).updateBillingAddress(requestParameters.code, requestParameters.updateBillingAddressRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
694
|
+
}
|
|
575
695
|
}
|
|
@@ -16,6 +16,8 @@ import { CreateBillingAddressRequestDto } from '../models';
|
|
|
16
16
|
import { CreateBillingAddressResponseClass } from '../models';
|
|
17
17
|
import { GetBillingAddressResponseClass } from '../models';
|
|
18
18
|
import { ListBillingAddressesResponseClass } from '../models';
|
|
19
|
+
import { UpdateBillingAddressRequestDto } from '../models';
|
|
20
|
+
import { UpdateBillingAddressResponseClass } from '../models';
|
|
19
21
|
/**
|
|
20
22
|
* BillingAddressesApi - axios parameter creator
|
|
21
23
|
* @export
|
|
@@ -64,6 +66,16 @@ export declare const BillingAddressesApiAxiosParamCreator: (configuration?: Conf
|
|
|
64
66
|
* @throws {RequiredError}
|
|
65
67
|
*/
|
|
66
68
|
listBillingAddresses: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
69
|
+
/**
|
|
70
|
+
* Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
|
|
71
|
+
* @summary Update the Billing Address
|
|
72
|
+
* @param {string} code
|
|
73
|
+
* @param {UpdateBillingAddressRequestDto} updateBillingAddressRequestDto
|
|
74
|
+
* @param {string} [authorization] Bearer Token
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
updateBillingAddress: (code: string, updateBillingAddressRequestDto: UpdateBillingAddressRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
67
79
|
};
|
|
68
80
|
/**
|
|
69
81
|
* BillingAddressesApi - functional programming interface
|
|
@@ -113,6 +125,16 @@ export declare const BillingAddressesApiFp: (configuration?: Configuration) => {
|
|
|
113
125
|
* @throws {RequiredError}
|
|
114
126
|
*/
|
|
115
127
|
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>>;
|
|
128
|
+
/**
|
|
129
|
+
* Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
|
|
130
|
+
* @summary Update the Billing Address
|
|
131
|
+
* @param {string} code
|
|
132
|
+
* @param {UpdateBillingAddressRequestDto} updateBillingAddressRequestDto
|
|
133
|
+
* @param {string} [authorization] Bearer Token
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
*/
|
|
137
|
+
updateBillingAddress(code: string, updateBillingAddressRequestDto: UpdateBillingAddressRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBillingAddressResponseClass>>;
|
|
116
138
|
};
|
|
117
139
|
/**
|
|
118
140
|
* BillingAddressesApi - factory interface
|
|
@@ -162,6 +184,16 @@ export declare const BillingAddressesApiFactory: (configuration?: Configuration,
|
|
|
162
184
|
* @throws {RequiredError}
|
|
163
185
|
*/
|
|
164
186
|
listBillingAddresses(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBillingAddressesResponseClass>;
|
|
187
|
+
/**
|
|
188
|
+
* Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
|
|
189
|
+
* @summary Update the Billing Address
|
|
190
|
+
* @param {string} code
|
|
191
|
+
* @param {UpdateBillingAddressRequestDto} updateBillingAddressRequestDto
|
|
192
|
+
* @param {string} [authorization] Bearer Token
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
updateBillingAddress(code: string, updateBillingAddressRequestDto: UpdateBillingAddressRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateBillingAddressResponseClass>;
|
|
165
197
|
};
|
|
166
198
|
/**
|
|
167
199
|
* Request parameters for createBillingAddress operation in BillingAddressesApi.
|
|
@@ -281,6 +313,31 @@ export interface BillingAddressesApiListBillingAddressesRequest {
|
|
|
281
313
|
*/
|
|
282
314
|
readonly filters?: string;
|
|
283
315
|
}
|
|
316
|
+
/**
|
|
317
|
+
* Request parameters for updateBillingAddress operation in BillingAddressesApi.
|
|
318
|
+
* @export
|
|
319
|
+
* @interface BillingAddressesApiUpdateBillingAddressRequest
|
|
320
|
+
*/
|
|
321
|
+
export interface BillingAddressesApiUpdateBillingAddressRequest {
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
* @type {string}
|
|
325
|
+
* @memberof BillingAddressesApiUpdateBillingAddress
|
|
326
|
+
*/
|
|
327
|
+
readonly code: string;
|
|
328
|
+
/**
|
|
329
|
+
*
|
|
330
|
+
* @type {UpdateBillingAddressRequestDto}
|
|
331
|
+
* @memberof BillingAddressesApiUpdateBillingAddress
|
|
332
|
+
*/
|
|
333
|
+
readonly updateBillingAddressRequestDto: UpdateBillingAddressRequestDto;
|
|
334
|
+
/**
|
|
335
|
+
* Bearer Token
|
|
336
|
+
* @type {string}
|
|
337
|
+
* @memberof BillingAddressesApiUpdateBillingAddress
|
|
338
|
+
*/
|
|
339
|
+
readonly authorization?: string;
|
|
340
|
+
}
|
|
284
341
|
/**
|
|
285
342
|
* BillingAddressesApi - object-oriented interface
|
|
286
343
|
* @export
|
|
@@ -324,4 +381,13 @@ export declare class BillingAddressesApi extends BaseAPI {
|
|
|
324
381
|
* @memberof BillingAddressesApi
|
|
325
382
|
*/
|
|
326
383
|
listBillingAddresses(requestParameters?: BillingAddressesApiListBillingAddressesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBillingAddressesResponseClass, any, {}>>;
|
|
384
|
+
/**
|
|
385
|
+
* Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
|
|
386
|
+
* @summary Update the Billing Address
|
|
387
|
+
* @param {BillingAddressesApiUpdateBillingAddressRequest} requestParameters Request parameters.
|
|
388
|
+
* @param {*} [options] Override http request option.
|
|
389
|
+
* @throws {RequiredError}
|
|
390
|
+
* @memberof BillingAddressesApi
|
|
391
|
+
*/
|
|
392
|
+
updateBillingAddress(requestParameters: BillingAddressesApiUpdateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBillingAddressResponseClass, any, {}>>;
|
|
327
393
|
}
|
|
@@ -317,6 +317,59 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
|
|
|
317
317
|
});
|
|
318
318
|
});
|
|
319
319
|
},
|
|
320
|
+
/**
|
|
321
|
+
* Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
|
|
322
|
+
* @summary Update the Billing Address
|
|
323
|
+
* @param {string} code
|
|
324
|
+
* @param {UpdateBillingAddressRequestDto} updateBillingAddressRequestDto
|
|
325
|
+
* @param {string} [authorization] Bearer Token
|
|
326
|
+
* @param {*} [options] Override http request option.
|
|
327
|
+
* @throws {RequiredError}
|
|
328
|
+
*/
|
|
329
|
+
updateBillingAddress: function (code, updateBillingAddressRequestDto, authorization, options) {
|
|
330
|
+
if (options === void 0) { options = {}; }
|
|
331
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
332
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
333
|
+
return __generator(this, function (_a) {
|
|
334
|
+
switch (_a.label) {
|
|
335
|
+
case 0:
|
|
336
|
+
// verify required parameter 'code' is not null or undefined
|
|
337
|
+
(0, common_1.assertParamExists)('updateBillingAddress', 'code', code);
|
|
338
|
+
// verify required parameter 'updateBillingAddressRequestDto' is not null or undefined
|
|
339
|
+
(0, common_1.assertParamExists)('updateBillingAddress', 'updateBillingAddressRequestDto', updateBillingAddressRequestDto);
|
|
340
|
+
localVarPath = "/paymentservice/v1/billing-addresses/{code}"
|
|
341
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
342
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
343
|
+
if (configuration) {
|
|
344
|
+
baseOptions = configuration.baseOptions;
|
|
345
|
+
baseAccessToken = configuration.accessToken;
|
|
346
|
+
}
|
|
347
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
348
|
+
localVarHeaderParameter = {};
|
|
349
|
+
localVarQueryParameter = {};
|
|
350
|
+
// authentication bearer required
|
|
351
|
+
// http bearer authentication required
|
|
352
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
353
|
+
case 1:
|
|
354
|
+
// authentication bearer required
|
|
355
|
+
// http bearer authentication required
|
|
356
|
+
_a.sent();
|
|
357
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
358
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
359
|
+
}
|
|
360
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
361
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
362
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
363
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
364
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBillingAddressRequestDto, localVarRequestOptions, configuration);
|
|
365
|
+
return [2 /*return*/, {
|
|
366
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
367
|
+
options: localVarRequestOptions,
|
|
368
|
+
}];
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
});
|
|
372
|
+
},
|
|
320
373
|
};
|
|
321
374
|
};
|
|
322
375
|
exports.BillingAddressesApiAxiosParamCreator = BillingAddressesApiAxiosParamCreator;
|
|
@@ -418,6 +471,28 @@ var BillingAddressesApiFp = function (configuration) {
|
|
|
418
471
|
});
|
|
419
472
|
});
|
|
420
473
|
},
|
|
474
|
+
/**
|
|
475
|
+
* Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
|
|
476
|
+
* @summary Update the Billing Address
|
|
477
|
+
* @param {string} code
|
|
478
|
+
* @param {UpdateBillingAddressRequestDto} updateBillingAddressRequestDto
|
|
479
|
+
* @param {string} [authorization] Bearer Token
|
|
480
|
+
* @param {*} [options] Override http request option.
|
|
481
|
+
* @throws {RequiredError}
|
|
482
|
+
*/
|
|
483
|
+
updateBillingAddress: function (code, updateBillingAddressRequestDto, authorization, options) {
|
|
484
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
485
|
+
var localVarAxiosArgs;
|
|
486
|
+
return __generator(this, function (_a) {
|
|
487
|
+
switch (_a.label) {
|
|
488
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBillingAddress(code, updateBillingAddressRequestDto, authorization, options)];
|
|
489
|
+
case 1:
|
|
490
|
+
localVarAxiosArgs = _a.sent();
|
|
491
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
});
|
|
495
|
+
},
|
|
421
496
|
};
|
|
422
497
|
};
|
|
423
498
|
exports.BillingAddressesApiFp = BillingAddressesApiFp;
|
|
@@ -479,6 +554,18 @@ var BillingAddressesApiFactory = function (configuration, basePath, axios) {
|
|
|
479
554
|
listBillingAddresses: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
480
555
|
return localVarFp.listBillingAddresses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
481
556
|
},
|
|
557
|
+
/**
|
|
558
|
+
* Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
|
|
559
|
+
* @summary Update the Billing Address
|
|
560
|
+
* @param {string} code
|
|
561
|
+
* @param {UpdateBillingAddressRequestDto} updateBillingAddressRequestDto
|
|
562
|
+
* @param {string} [authorization] Bearer Token
|
|
563
|
+
* @param {*} [options] Override http request option.
|
|
564
|
+
* @throws {RequiredError}
|
|
565
|
+
*/
|
|
566
|
+
updateBillingAddress: function (code, updateBillingAddressRequestDto, authorization, options) {
|
|
567
|
+
return localVarFp.updateBillingAddress(code, updateBillingAddressRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
568
|
+
},
|
|
482
569
|
};
|
|
483
570
|
};
|
|
484
571
|
exports.BillingAddressesApiFactory = BillingAddressesApiFactory;
|
|
@@ -542,6 +629,18 @@ var BillingAddressesApi = /** @class */ (function (_super) {
|
|
|
542
629
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
543
630
|
return (0, exports.BillingAddressesApiFp)(this.configuration).listBillingAddresses(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
544
631
|
};
|
|
632
|
+
/**
|
|
633
|
+
* Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
|
|
634
|
+
* @summary Update the Billing Address
|
|
635
|
+
* @param {BillingAddressesApiUpdateBillingAddressRequest} requestParameters Request parameters.
|
|
636
|
+
* @param {*} [options] Override http request option.
|
|
637
|
+
* @throws {RequiredError}
|
|
638
|
+
* @memberof BillingAddressesApi
|
|
639
|
+
*/
|
|
640
|
+
BillingAddressesApi.prototype.updateBillingAddress = function (requestParameters, options) {
|
|
641
|
+
var _this = this;
|
|
642
|
+
return (0, exports.BillingAddressesApiFp)(this.configuration).updateBillingAddress(requestParameters.code, requestParameters.updateBillingAddressRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
643
|
+
};
|
|
545
644
|
return BillingAddressesApi;
|
|
546
645
|
}(base_1.BaseAPI));
|
|
547
646
|
exports.BillingAddressesApi = BillingAddressesApi;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -112,6 +112,8 @@ export * from './update-bank-account-request-dto-rest';
|
|
|
112
112
|
export * from './update-bank-account-response-class';
|
|
113
113
|
export * from './update-bank-order-request-dto';
|
|
114
114
|
export * from './update-bank-order-response-class';
|
|
115
|
+
export * from './update-billing-address-request-dto';
|
|
116
|
+
export * from './update-billing-address-response-class';
|
|
115
117
|
export * from './update-tenant-bank-account-response-class';
|
|
116
118
|
export * from './update-tenant-bank-account-rest-request-dto';
|
|
117
119
|
export * from './validate-pspconfig-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -128,6 +128,8 @@ __exportStar(require("./update-bank-account-request-dto-rest"), exports);
|
|
|
128
128
|
__exportStar(require("./update-bank-account-response-class"), exports);
|
|
129
129
|
__exportStar(require("./update-bank-order-request-dto"), exports);
|
|
130
130
|
__exportStar(require("./update-bank-order-response-class"), exports);
|
|
131
|
+
__exportStar(require("./update-billing-address-request-dto"), exports);
|
|
132
|
+
__exportStar(require("./update-billing-address-response-class"), exports);
|
|
131
133
|
__exportStar(require("./update-tenant-bank-account-response-class"), exports);
|
|
132
134
|
__exportStar(require("./update-tenant-bank-account-rest-request-dto"), exports);
|
|
133
135
|
__exportStar(require("./validate-pspconfig-request-dto"), exports);
|
|
@@ -23,19 +23,19 @@ export interface ListBillingAddressesResponseClass {
|
|
|
23
23
|
*/
|
|
24
24
|
'items': Array<BillingAddressClass>;
|
|
25
25
|
/**
|
|
26
|
-
* Next page token
|
|
26
|
+
* Next page token.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof ListBillingAddressesResponseClass
|
|
29
29
|
*/
|
|
30
30
|
'nextPageToken': string;
|
|
31
31
|
/**
|
|
32
|
-
* Items per page
|
|
32
|
+
* Items per page.
|
|
33
33
|
* @type {number}
|
|
34
34
|
* @memberof ListBillingAddressesResponseClass
|
|
35
35
|
*/
|
|
36
36
|
'itemsPerPage': number;
|
|
37
37
|
/**
|
|
38
|
-
* Total items
|
|
38
|
+
* Total amount of items.
|
|
39
39
|
* @type {number}
|
|
40
40
|
* @memberof ListBillingAddressesResponseClass
|
|
41
41
|
*/
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateBillingAddressRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateBillingAddressRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* First name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateBillingAddressRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'firstName': string;
|
|
24
|
+
/**
|
|
25
|
+
* Last name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateBillingAddressRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'lastName': string;
|
|
30
|
+
/**
|
|
31
|
+
* Street name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateBillingAddressRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'street': string;
|
|
36
|
+
/**
|
|
37
|
+
* House number
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdateBillingAddressRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'houseNumber': string;
|
|
42
|
+
/**
|
|
43
|
+
* ZIP code
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpdateBillingAddressRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'zipCode': string;
|
|
48
|
+
/**
|
|
49
|
+
* City
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof UpdateBillingAddressRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'city': string;
|
|
54
|
+
/**
|
|
55
|
+
* Country code
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof UpdateBillingAddressRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'countryCode'?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Unique identifier of the account that this object belongs to.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof UpdateBillingAddressRequestDto
|
|
64
|
+
*/
|
|
65
|
+
'accountCode'?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Unique identifier of the partner that this object belongs to.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof UpdateBillingAddressRequestDto
|
|
70
|
+
*/
|
|
71
|
+
'partnerCode'?: string;
|
|
72
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil Payment Service
|
|
6
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { BillingAddressClass } from './billing-address-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateBillingAddressResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateBillingAddressResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The updated billing address
|
|
21
|
+
* @type {BillingAddressClass}
|
|
22
|
+
* @memberof UpdateBillingAddressResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'billingAddress': BillingAddressClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil Payment Service
|
|
6
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/models/index.ts
CHANGED
|
@@ -112,6 +112,8 @@ export * from './update-bank-account-request-dto-rest';
|
|
|
112
112
|
export * from './update-bank-account-response-class';
|
|
113
113
|
export * from './update-bank-order-request-dto';
|
|
114
114
|
export * from './update-bank-order-response-class';
|
|
115
|
+
export * from './update-billing-address-request-dto';
|
|
116
|
+
export * from './update-billing-address-response-class';
|
|
115
117
|
export * from './update-tenant-bank-account-response-class';
|
|
116
118
|
export * from './update-tenant-bank-account-rest-request-dto';
|
|
117
119
|
export * from './validate-pspconfig-request-dto';
|
|
@@ -28,19 +28,19 @@ export interface ListBillingAddressesResponseClass {
|
|
|
28
28
|
*/
|
|
29
29
|
'items': Array<BillingAddressClass>;
|
|
30
30
|
/**
|
|
31
|
-
* Next page token
|
|
31
|
+
* Next page token.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ListBillingAddressesResponseClass
|
|
34
34
|
*/
|
|
35
35
|
'nextPageToken': string;
|
|
36
36
|
/**
|
|
37
|
-
* Items per page
|
|
37
|
+
* Items per page.
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof ListBillingAddressesResponseClass
|
|
40
40
|
*/
|
|
41
41
|
'itemsPerPage': number;
|
|
42
42
|
/**
|
|
43
|
-
* Total items
|
|
43
|
+
* Total amount of items.
|
|
44
44
|
* @type {number}
|
|
45
45
|
* @memberof ListBillingAddressesResponseClass
|
|
46
46
|
*/
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface UpdateBillingAddressRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateBillingAddressRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* First name
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof UpdateBillingAddressRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'firstName': string;
|
|
29
|
+
/**
|
|
30
|
+
* Last name
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof UpdateBillingAddressRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'lastName': string;
|
|
35
|
+
/**
|
|
36
|
+
* Street name
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof UpdateBillingAddressRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'street': string;
|
|
41
|
+
/**
|
|
42
|
+
* House number
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof UpdateBillingAddressRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'houseNumber': string;
|
|
47
|
+
/**
|
|
48
|
+
* ZIP code
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof UpdateBillingAddressRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'zipCode': string;
|
|
53
|
+
/**
|
|
54
|
+
* City
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof UpdateBillingAddressRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'city': string;
|
|
59
|
+
/**
|
|
60
|
+
* Country code
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof UpdateBillingAddressRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'countryCode'?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Unique identifier of the account that this object belongs to.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof UpdateBillingAddressRequestDto
|
|
69
|
+
*/
|
|
70
|
+
'accountCode'?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Unique identifier of the partner that this object belongs to.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof UpdateBillingAddressRequestDto
|
|
75
|
+
*/
|
|
76
|
+
'partnerCode'?: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { BillingAddressClass } from './billing-address-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface UpdateBillingAddressResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface UpdateBillingAddressResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The updated billing address
|
|
26
|
+
* @type {BillingAddressClass}
|
|
27
|
+
* @memberof UpdateBillingAddressResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'billingAddress': BillingAddressClass;
|
|
30
|
+
}
|
|
31
|
+
|