yellowgrid-api-ts 3.2.111-dev.0 → 3.2.113-dev.0
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 +1 -0
- package/README.md +1 -0
- package/api.ts +57 -24
- package/dist/api.d.ts +49 -16
- package/dist/api.js +26 -26
- package/docs/AccountsApi.md +8 -8
- package/docs/AddressDTO.md +33 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -287,6 +287,7 @@ Class | Method | HTTP request | Description
|
|
|
287
287
|
- [AccountRequestModel](docs/AccountRequestModel.md)
|
|
288
288
|
- [AccountSummaryDTO](docs/AccountSummaryDTO.md)
|
|
289
289
|
- [AccountsResponseModel](docs/AccountsResponseModel.md)
|
|
290
|
+
- [AddressDTO](docs/AddressDTO.md)
|
|
290
291
|
- [AddressModel](docs/AddressModel.md)
|
|
291
292
|
- [AddressRequestModel](docs/AddressRequestModel.md)
|
|
292
293
|
- [AdminNumberPortDTO](docs/AdminNumberPortDTO.md)
|
package/api.ts
CHANGED
|
@@ -389,6 +389,39 @@ export interface AccountsResponseModel {
|
|
|
389
389
|
*/
|
|
390
390
|
'totalResults'?: number;
|
|
391
391
|
}
|
|
392
|
+
/**
|
|
393
|
+
* Address
|
|
394
|
+
*/
|
|
395
|
+
export interface AddressDTO {
|
|
396
|
+
/**
|
|
397
|
+
* Company
|
|
398
|
+
*/
|
|
399
|
+
'company'?: string;
|
|
400
|
+
/**
|
|
401
|
+
* Address Line 1
|
|
402
|
+
*/
|
|
403
|
+
'addressLine1'?: string;
|
|
404
|
+
/**
|
|
405
|
+
* Address Line 2
|
|
406
|
+
*/
|
|
407
|
+
'addressLine2'?: string;
|
|
408
|
+
/**
|
|
409
|
+
* City
|
|
410
|
+
*/
|
|
411
|
+
'city'?: string;
|
|
412
|
+
/**
|
|
413
|
+
* Region
|
|
414
|
+
*/
|
|
415
|
+
'region'?: string;
|
|
416
|
+
/**
|
|
417
|
+
* Postal Code
|
|
418
|
+
*/
|
|
419
|
+
'postalCode'?: string;
|
|
420
|
+
/**
|
|
421
|
+
* Country
|
|
422
|
+
*/
|
|
423
|
+
'iso'?: string;
|
|
424
|
+
}
|
|
392
425
|
/**
|
|
393
426
|
* Order Address
|
|
394
427
|
*/
|
|
@@ -8707,11 +8740,11 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8707
8740
|
/**
|
|
8708
8741
|
* Update Account Billing Address
|
|
8709
8742
|
* @param {string} id Xero ID
|
|
8710
|
-
* @param {
|
|
8743
|
+
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
8711
8744
|
* @param {*} [options] Override http request option.
|
|
8712
8745
|
* @throws {RequiredError}
|
|
8713
8746
|
*/
|
|
8714
|
-
putUpdateBillingAddress: async (id: string,
|
|
8747
|
+
putUpdateBillingAddress: async (id: string, addressDTO?: AddressDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8715
8748
|
// verify required parameter 'id' is not null or undefined
|
|
8716
8749
|
assertParamExists('putUpdateBillingAddress', 'id', id)
|
|
8717
8750
|
const localVarPath = `/admin/accounts/{id}/billing/address`
|
|
@@ -8732,7 +8765,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8732
8765
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8733
8766
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8734
8767
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8735
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
8768
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addressDTO, localVarRequestOptions, configuration)
|
|
8736
8769
|
|
|
8737
8770
|
return {
|
|
8738
8771
|
url: toPathString(localVarUrlObj),
|
|
@@ -8742,11 +8775,11 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8742
8775
|
/**
|
|
8743
8776
|
* Update Account Shipping Address
|
|
8744
8777
|
* @param {string} id Xero ID
|
|
8745
|
-
* @param {
|
|
8778
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
8746
8779
|
* @param {*} [options] Override http request option.
|
|
8747
8780
|
* @throws {RequiredError}
|
|
8748
8781
|
*/
|
|
8749
|
-
putUpdateShippingAddress: async (id: string,
|
|
8782
|
+
putUpdateShippingAddress: async (id: string, addressDTO?: AddressDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8750
8783
|
// verify required parameter 'id' is not null or undefined
|
|
8751
8784
|
assertParamExists('putUpdateShippingAddress', 'id', id)
|
|
8752
8785
|
const localVarPath = `/admin/accounts/{id}/shipping/address`
|
|
@@ -8767,7 +8800,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8767
8800
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8768
8801
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8769
8802
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8770
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
8803
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addressDTO, localVarRequestOptions, configuration)
|
|
8771
8804
|
|
|
8772
8805
|
return {
|
|
8773
8806
|
url: toPathString(localVarUrlObj),
|
|
@@ -9099,12 +9132,12 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9099
9132
|
/**
|
|
9100
9133
|
* Update Account Billing Address
|
|
9101
9134
|
* @param {string} id Xero ID
|
|
9102
|
-
* @param {
|
|
9135
|
+
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
9103
9136
|
* @param {*} [options] Override http request option.
|
|
9104
9137
|
* @throws {RequiredError}
|
|
9105
9138
|
*/
|
|
9106
|
-
async putUpdateBillingAddress(id: string,
|
|
9107
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateBillingAddress(id,
|
|
9139
|
+
async putUpdateBillingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
9140
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateBillingAddress(id, addressDTO, options);
|
|
9108
9141
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9109
9142
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.putUpdateBillingAddress']?.[localVarOperationServerIndex]?.url;
|
|
9110
9143
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9112,12 +9145,12 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9112
9145
|
/**
|
|
9113
9146
|
* Update Account Shipping Address
|
|
9114
9147
|
* @param {string} id Xero ID
|
|
9115
|
-
* @param {
|
|
9148
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
9116
9149
|
* @param {*} [options] Override http request option.
|
|
9117
9150
|
* @throws {RequiredError}
|
|
9118
9151
|
*/
|
|
9119
|
-
async putUpdateShippingAddress(id: string,
|
|
9120
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateShippingAddress(id,
|
|
9152
|
+
async putUpdateShippingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
9153
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateShippingAddress(id, addressDTO, options);
|
|
9121
9154
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9122
9155
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.putUpdateShippingAddress']?.[localVarOperationServerIndex]?.url;
|
|
9123
9156
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9375,22 +9408,22 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9375
9408
|
/**
|
|
9376
9409
|
* Update Account Billing Address
|
|
9377
9410
|
* @param {string} id Xero ID
|
|
9378
|
-
* @param {
|
|
9411
|
+
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
9379
9412
|
* @param {*} [options] Override http request option.
|
|
9380
9413
|
* @throws {RequiredError}
|
|
9381
9414
|
*/
|
|
9382
|
-
putUpdateBillingAddress(id: string,
|
|
9383
|
-
return localVarFp.putUpdateBillingAddress(id,
|
|
9415
|
+
putUpdateBillingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
9416
|
+
return localVarFp.putUpdateBillingAddress(id, addressDTO, options).then((request) => request(axios, basePath));
|
|
9384
9417
|
},
|
|
9385
9418
|
/**
|
|
9386
9419
|
* Update Account Shipping Address
|
|
9387
9420
|
* @param {string} id Xero ID
|
|
9388
|
-
* @param {
|
|
9421
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
9389
9422
|
* @param {*} [options] Override http request option.
|
|
9390
9423
|
* @throws {RequiredError}
|
|
9391
9424
|
*/
|
|
9392
|
-
putUpdateShippingAddress(id: string,
|
|
9393
|
-
return localVarFp.putUpdateShippingAddress(id,
|
|
9425
|
+
putUpdateShippingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
9426
|
+
return localVarFp.putUpdateShippingAddress(id, addressDTO, options).then((request) => request(axios, basePath));
|
|
9394
9427
|
},
|
|
9395
9428
|
};
|
|
9396
9429
|
};
|
|
@@ -9667,23 +9700,23 @@ export class AccountsApi extends BaseAPI {
|
|
|
9667
9700
|
/**
|
|
9668
9701
|
* Update Account Billing Address
|
|
9669
9702
|
* @param {string} id Xero ID
|
|
9670
|
-
* @param {
|
|
9703
|
+
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
9671
9704
|
* @param {*} [options] Override http request option.
|
|
9672
9705
|
* @throws {RequiredError}
|
|
9673
9706
|
*/
|
|
9674
|
-
public putUpdateBillingAddress(id: string,
|
|
9675
|
-
return AccountsApiFp(this.configuration).putUpdateBillingAddress(id,
|
|
9707
|
+
public putUpdateBillingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig) {
|
|
9708
|
+
return AccountsApiFp(this.configuration).putUpdateBillingAddress(id, addressDTO, options).then((request) => request(this.axios, this.basePath));
|
|
9676
9709
|
}
|
|
9677
9710
|
|
|
9678
9711
|
/**
|
|
9679
9712
|
* Update Account Shipping Address
|
|
9680
9713
|
* @param {string} id Xero ID
|
|
9681
|
-
* @param {
|
|
9714
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
9682
9715
|
* @param {*} [options] Override http request option.
|
|
9683
9716
|
* @throws {RequiredError}
|
|
9684
9717
|
*/
|
|
9685
|
-
public putUpdateShippingAddress(id: string,
|
|
9686
|
-
return AccountsApiFp(this.configuration).putUpdateShippingAddress(id,
|
|
9718
|
+
public putUpdateShippingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig) {
|
|
9719
|
+
return AccountsApiFp(this.configuration).putUpdateShippingAddress(id, addressDTO, options).then((request) => request(this.axios, this.basePath));
|
|
9687
9720
|
}
|
|
9688
9721
|
}
|
|
9689
9722
|
|
package/dist/api.d.ts
CHANGED
|
@@ -379,6 +379,39 @@ export interface AccountsResponseModel {
|
|
|
379
379
|
*/
|
|
380
380
|
'totalResults'?: number;
|
|
381
381
|
}
|
|
382
|
+
/**
|
|
383
|
+
* Address
|
|
384
|
+
*/
|
|
385
|
+
export interface AddressDTO {
|
|
386
|
+
/**
|
|
387
|
+
* Company
|
|
388
|
+
*/
|
|
389
|
+
'company'?: string;
|
|
390
|
+
/**
|
|
391
|
+
* Address Line 1
|
|
392
|
+
*/
|
|
393
|
+
'addressLine1'?: string;
|
|
394
|
+
/**
|
|
395
|
+
* Address Line 2
|
|
396
|
+
*/
|
|
397
|
+
'addressLine2'?: string;
|
|
398
|
+
/**
|
|
399
|
+
* City
|
|
400
|
+
*/
|
|
401
|
+
'city'?: string;
|
|
402
|
+
/**
|
|
403
|
+
* Region
|
|
404
|
+
*/
|
|
405
|
+
'region'?: string;
|
|
406
|
+
/**
|
|
407
|
+
* Postal Code
|
|
408
|
+
*/
|
|
409
|
+
'postalCode'?: string;
|
|
410
|
+
/**
|
|
411
|
+
* Country
|
|
412
|
+
*/
|
|
413
|
+
'iso'?: string;
|
|
414
|
+
}
|
|
382
415
|
/**
|
|
383
416
|
* Order Address
|
|
384
417
|
*/
|
|
@@ -7965,19 +7998,19 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
7965
7998
|
/**
|
|
7966
7999
|
* Update Account Billing Address
|
|
7967
8000
|
* @param {string} id Xero ID
|
|
7968
|
-
* @param {
|
|
8001
|
+
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
7969
8002
|
* @param {*} [options] Override http request option.
|
|
7970
8003
|
* @throws {RequiredError}
|
|
7971
8004
|
*/
|
|
7972
|
-
putUpdateBillingAddress: (id: string,
|
|
8005
|
+
putUpdateBillingAddress: (id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7973
8006
|
/**
|
|
7974
8007
|
* Update Account Shipping Address
|
|
7975
8008
|
* @param {string} id Xero ID
|
|
7976
|
-
* @param {
|
|
8009
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
7977
8010
|
* @param {*} [options] Override http request option.
|
|
7978
8011
|
* @throws {RequiredError}
|
|
7979
8012
|
*/
|
|
7980
|
-
putUpdateShippingAddress: (id: string,
|
|
8013
|
+
putUpdateShippingAddress: (id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7981
8014
|
};
|
|
7982
8015
|
/**
|
|
7983
8016
|
* AccountsApi - functional programming interface
|
|
@@ -8179,19 +8212,19 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
8179
8212
|
/**
|
|
8180
8213
|
* Update Account Billing Address
|
|
8181
8214
|
* @param {string} id Xero ID
|
|
8182
|
-
* @param {
|
|
8215
|
+
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
8183
8216
|
* @param {*} [options] Override http request option.
|
|
8184
8217
|
* @throws {RequiredError}
|
|
8185
8218
|
*/
|
|
8186
|
-
putUpdateBillingAddress(id: string,
|
|
8219
|
+
putUpdateBillingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
8187
8220
|
/**
|
|
8188
8221
|
* Update Account Shipping Address
|
|
8189
8222
|
* @param {string} id Xero ID
|
|
8190
|
-
* @param {
|
|
8223
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
8191
8224
|
* @param {*} [options] Override http request option.
|
|
8192
8225
|
* @throws {RequiredError}
|
|
8193
8226
|
*/
|
|
8194
|
-
putUpdateShippingAddress(id: string,
|
|
8227
|
+
putUpdateShippingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
8195
8228
|
};
|
|
8196
8229
|
/**
|
|
8197
8230
|
* AccountsApi - factory interface
|
|
@@ -8393,19 +8426,19 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
8393
8426
|
/**
|
|
8394
8427
|
* Update Account Billing Address
|
|
8395
8428
|
* @param {string} id Xero ID
|
|
8396
|
-
* @param {
|
|
8429
|
+
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
8397
8430
|
* @param {*} [options] Override http request option.
|
|
8398
8431
|
* @throws {RequiredError}
|
|
8399
8432
|
*/
|
|
8400
|
-
putUpdateBillingAddress(id: string,
|
|
8433
|
+
putUpdateBillingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
8401
8434
|
/**
|
|
8402
8435
|
* Update Account Shipping Address
|
|
8403
8436
|
* @param {string} id Xero ID
|
|
8404
|
-
* @param {
|
|
8437
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
8405
8438
|
* @param {*} [options] Override http request option.
|
|
8406
8439
|
* @throws {RequiredError}
|
|
8407
8440
|
*/
|
|
8408
|
-
putUpdateShippingAddress(id: string,
|
|
8441
|
+
putUpdateShippingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
8409
8442
|
};
|
|
8410
8443
|
/**
|
|
8411
8444
|
* AccountsApi - object-oriented interface
|
|
@@ -8607,19 +8640,19 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
8607
8640
|
/**
|
|
8608
8641
|
* Update Account Billing Address
|
|
8609
8642
|
* @param {string} id Xero ID
|
|
8610
|
-
* @param {
|
|
8643
|
+
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
8611
8644
|
* @param {*} [options] Override http request option.
|
|
8612
8645
|
* @throws {RequiredError}
|
|
8613
8646
|
*/
|
|
8614
|
-
putUpdateBillingAddress(id: string,
|
|
8647
|
+
putUpdateBillingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
8615
8648
|
/**
|
|
8616
8649
|
* Update Account Shipping Address
|
|
8617
8650
|
* @param {string} id Xero ID
|
|
8618
|
-
* @param {
|
|
8651
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
8619
8652
|
* @param {*} [options] Override http request option.
|
|
8620
8653
|
* @throws {RequiredError}
|
|
8621
8654
|
*/
|
|
8622
|
-
putUpdateShippingAddress(id: string,
|
|
8655
|
+
putUpdateShippingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
8623
8656
|
}
|
|
8624
8657
|
export declare const PatchSetPortalAccessStateEnum: {
|
|
8625
8658
|
readonly Enable: "enable";
|
package/dist/api.js
CHANGED
|
@@ -1340,16 +1340,16 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1340
1340
|
/**
|
|
1341
1341
|
* Update Account Billing Address
|
|
1342
1342
|
* @param {string} id Xero ID
|
|
1343
|
-
* @param {
|
|
1343
|
+
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
1344
1344
|
* @param {*} [options] Override http request option.
|
|
1345
1345
|
* @throws {RequiredError}
|
|
1346
1346
|
*/
|
|
1347
|
-
putUpdateBillingAddress: function (id_1,
|
|
1347
|
+
putUpdateBillingAddress: function (id_1, addressDTO_1) {
|
|
1348
1348
|
var args_1 = [];
|
|
1349
1349
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1350
1350
|
args_1[_i - 2] = arguments[_i];
|
|
1351
1351
|
}
|
|
1352
|
-
return __awaiter(_this, __spreadArray([id_1,
|
|
1352
|
+
return __awaiter(_this, __spreadArray([id_1, addressDTO_1], args_1, true), void 0, function (id, addressDTO, options) {
|
|
1353
1353
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1354
1354
|
if (options === void 0) { options = {}; }
|
|
1355
1355
|
return __generator(this, function (_a) {
|
|
@@ -1368,7 +1368,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1368
1368
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1369
1369
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1370
1370
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1371
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1371
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addressDTO, localVarRequestOptions, configuration);
|
|
1372
1372
|
return [2 /*return*/, {
|
|
1373
1373
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1374
1374
|
options: localVarRequestOptions,
|
|
@@ -1379,16 +1379,16 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1379
1379
|
/**
|
|
1380
1380
|
* Update Account Shipping Address
|
|
1381
1381
|
* @param {string} id Xero ID
|
|
1382
|
-
* @param {
|
|
1382
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
1383
1383
|
* @param {*} [options] Override http request option.
|
|
1384
1384
|
* @throws {RequiredError}
|
|
1385
1385
|
*/
|
|
1386
|
-
putUpdateShippingAddress: function (id_1,
|
|
1386
|
+
putUpdateShippingAddress: function (id_1, addressDTO_1) {
|
|
1387
1387
|
var args_1 = [];
|
|
1388
1388
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1389
1389
|
args_1[_i - 2] = arguments[_i];
|
|
1390
1390
|
}
|
|
1391
|
-
return __awaiter(_this, __spreadArray([id_1,
|
|
1391
|
+
return __awaiter(_this, __spreadArray([id_1, addressDTO_1], args_1, true), void 0, function (id, addressDTO, options) {
|
|
1392
1392
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1393
1393
|
if (options === void 0) { options = {}; }
|
|
1394
1394
|
return __generator(this, function (_a) {
|
|
@@ -1407,7 +1407,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1407
1407
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1408
1408
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1409
1409
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1410
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1410
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addressDTO, localVarRequestOptions, configuration);
|
|
1411
1411
|
return [2 /*return*/, {
|
|
1412
1412
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1413
1413
|
options: localVarRequestOptions,
|
|
@@ -1980,17 +1980,17 @@ var AccountsApiFp = function (configuration) {
|
|
|
1980
1980
|
/**
|
|
1981
1981
|
* Update Account Billing Address
|
|
1982
1982
|
* @param {string} id Xero ID
|
|
1983
|
-
* @param {
|
|
1983
|
+
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
1984
1984
|
* @param {*} [options] Override http request option.
|
|
1985
1985
|
* @throws {RequiredError}
|
|
1986
1986
|
*/
|
|
1987
|
-
putUpdateBillingAddress: function (id,
|
|
1987
|
+
putUpdateBillingAddress: function (id, addressDTO, options) {
|
|
1988
1988
|
return __awaiter(this, void 0, void 0, function () {
|
|
1989
1989
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1990
1990
|
var _a, _b, _c;
|
|
1991
1991
|
return __generator(this, function (_d) {
|
|
1992
1992
|
switch (_d.label) {
|
|
1993
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateBillingAddress(id,
|
|
1993
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateBillingAddress(id, addressDTO, options)];
|
|
1994
1994
|
case 1:
|
|
1995
1995
|
localVarAxiosArgs = _d.sent();
|
|
1996
1996
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -2003,17 +2003,17 @@ var AccountsApiFp = function (configuration) {
|
|
|
2003
2003
|
/**
|
|
2004
2004
|
* Update Account Shipping Address
|
|
2005
2005
|
* @param {string} id Xero ID
|
|
2006
|
-
* @param {
|
|
2006
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
2007
2007
|
* @param {*} [options] Override http request option.
|
|
2008
2008
|
* @throws {RequiredError}
|
|
2009
2009
|
*/
|
|
2010
|
-
putUpdateShippingAddress: function (id,
|
|
2010
|
+
putUpdateShippingAddress: function (id, addressDTO, options) {
|
|
2011
2011
|
return __awaiter(this, void 0, void 0, function () {
|
|
2012
2012
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2013
2013
|
var _a, _b, _c;
|
|
2014
2014
|
return __generator(this, function (_d) {
|
|
2015
2015
|
switch (_d.label) {
|
|
2016
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateShippingAddress(id,
|
|
2016
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateShippingAddress(id, addressDTO, options)];
|
|
2017
2017
|
case 1:
|
|
2018
2018
|
localVarAxiosArgs = _d.sent();
|
|
2019
2019
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -2276,22 +2276,22 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
2276
2276
|
/**
|
|
2277
2277
|
* Update Account Billing Address
|
|
2278
2278
|
* @param {string} id Xero ID
|
|
2279
|
-
* @param {
|
|
2279
|
+
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
2280
2280
|
* @param {*} [options] Override http request option.
|
|
2281
2281
|
* @throws {RequiredError}
|
|
2282
2282
|
*/
|
|
2283
|
-
putUpdateBillingAddress: function (id,
|
|
2284
|
-
return localVarFp.putUpdateBillingAddress(id,
|
|
2283
|
+
putUpdateBillingAddress: function (id, addressDTO, options) {
|
|
2284
|
+
return localVarFp.putUpdateBillingAddress(id, addressDTO, options).then(function (request) { return request(axios, basePath); });
|
|
2285
2285
|
},
|
|
2286
2286
|
/**
|
|
2287
2287
|
* Update Account Shipping Address
|
|
2288
2288
|
* @param {string} id Xero ID
|
|
2289
|
-
* @param {
|
|
2289
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
2290
2290
|
* @param {*} [options] Override http request option.
|
|
2291
2291
|
* @throws {RequiredError}
|
|
2292
2292
|
*/
|
|
2293
|
-
putUpdateShippingAddress: function (id,
|
|
2294
|
-
return localVarFp.putUpdateShippingAddress(id,
|
|
2293
|
+
putUpdateShippingAddress: function (id, addressDTO, options) {
|
|
2294
|
+
return localVarFp.putUpdateShippingAddress(id, addressDTO, options).then(function (request) { return request(axios, basePath); });
|
|
2295
2295
|
},
|
|
2296
2296
|
};
|
|
2297
2297
|
};
|
|
@@ -2572,24 +2572,24 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2572
2572
|
/**
|
|
2573
2573
|
* Update Account Billing Address
|
|
2574
2574
|
* @param {string} id Xero ID
|
|
2575
|
-
* @param {
|
|
2575
|
+
* @param {AddressDTO} [addressDTO] Updated Billing Address
|
|
2576
2576
|
* @param {*} [options] Override http request option.
|
|
2577
2577
|
* @throws {RequiredError}
|
|
2578
2578
|
*/
|
|
2579
|
-
AccountsApi.prototype.putUpdateBillingAddress = function (id,
|
|
2579
|
+
AccountsApi.prototype.putUpdateBillingAddress = function (id, addressDTO, options) {
|
|
2580
2580
|
var _this = this;
|
|
2581
|
-
return (0, exports.AccountsApiFp)(this.configuration).putUpdateBillingAddress(id,
|
|
2581
|
+
return (0, exports.AccountsApiFp)(this.configuration).putUpdateBillingAddress(id, addressDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2582
2582
|
};
|
|
2583
2583
|
/**
|
|
2584
2584
|
* Update Account Shipping Address
|
|
2585
2585
|
* @param {string} id Xero ID
|
|
2586
|
-
* @param {
|
|
2586
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
2587
2587
|
* @param {*} [options] Override http request option.
|
|
2588
2588
|
* @throws {RequiredError}
|
|
2589
2589
|
*/
|
|
2590
|
-
AccountsApi.prototype.putUpdateShippingAddress = function (id,
|
|
2590
|
+
AccountsApi.prototype.putUpdateShippingAddress = function (id, addressDTO, options) {
|
|
2591
2591
|
var _this = this;
|
|
2592
|
-
return (0, exports.AccountsApiFp)(this.configuration).putUpdateShippingAddress(id,
|
|
2592
|
+
return (0, exports.AccountsApiFp)(this.configuration).putUpdateShippingAddress(id, addressDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2593
2593
|
};
|
|
2594
2594
|
return AccountsApi;
|
|
2595
2595
|
}(base_1.BaseAPI));
|
package/docs/AccountsApi.md
CHANGED
|
@@ -1351,18 +1351,18 @@ Update Account Billing Address
|
|
|
1351
1351
|
import {
|
|
1352
1352
|
AccountsApi,
|
|
1353
1353
|
Configuration,
|
|
1354
|
-
|
|
1354
|
+
AddressDTO
|
|
1355
1355
|
} from 'yellowgrid-api-ts';
|
|
1356
1356
|
|
|
1357
1357
|
const configuration = new Configuration();
|
|
1358
1358
|
const apiInstance = new AccountsApi(configuration);
|
|
1359
1359
|
|
|
1360
1360
|
let id: string; //Xero ID (default to undefined)
|
|
1361
|
-
let
|
|
1361
|
+
let addressDTO: AddressDTO; //Updated Billing Address (optional)
|
|
1362
1362
|
|
|
1363
1363
|
const { status, data } = await apiInstance.putUpdateBillingAddress(
|
|
1364
1364
|
id,
|
|
1365
|
-
|
|
1365
|
+
addressDTO
|
|
1366
1366
|
);
|
|
1367
1367
|
```
|
|
1368
1368
|
|
|
@@ -1370,7 +1370,7 @@ const { status, data } = await apiInstance.putUpdateBillingAddress(
|
|
|
1370
1370
|
|
|
1371
1371
|
|Name | Type | Description | Notes|
|
|
1372
1372
|
|------------- | ------------- | ------------- | -------------|
|
|
1373
|
-
| **
|
|
1373
|
+
| **addressDTO** | **AddressDTO**| Updated Billing Address | |
|
|
1374
1374
|
| **id** | [**string**] | Xero ID | defaults to undefined|
|
|
1375
1375
|
|
|
1376
1376
|
|
|
@@ -1409,18 +1409,18 @@ Update Account Shipping Address
|
|
|
1409
1409
|
import {
|
|
1410
1410
|
AccountsApi,
|
|
1411
1411
|
Configuration,
|
|
1412
|
-
|
|
1412
|
+
AddressDTO
|
|
1413
1413
|
} from 'yellowgrid-api-ts';
|
|
1414
1414
|
|
|
1415
1415
|
const configuration = new Configuration();
|
|
1416
1416
|
const apiInstance = new AccountsApi(configuration);
|
|
1417
1417
|
|
|
1418
1418
|
let id: string; //Xero ID (default to undefined)
|
|
1419
|
-
let
|
|
1419
|
+
let addressDTO: AddressDTO; //Updated Shipping Address (optional)
|
|
1420
1420
|
|
|
1421
1421
|
const { status, data } = await apiInstance.putUpdateShippingAddress(
|
|
1422
1422
|
id,
|
|
1423
|
-
|
|
1423
|
+
addressDTO
|
|
1424
1424
|
);
|
|
1425
1425
|
```
|
|
1426
1426
|
|
|
@@ -1428,7 +1428,7 @@ const { status, data } = await apiInstance.putUpdateShippingAddress(
|
|
|
1428
1428
|
|
|
1429
1429
|
|Name | Type | Description | Notes|
|
|
1430
1430
|
|------------- | ------------- | ------------- | -------------|
|
|
1431
|
-
| **
|
|
1431
|
+
| **addressDTO** | **AddressDTO**| Updated Shipping Address | |
|
|
1432
1432
|
| **id** | [**string**] | Xero ID | defaults to undefined|
|
|
1433
1433
|
|
|
1434
1434
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# AddressDTO
|
|
2
|
+
|
|
3
|
+
Address
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**company** | **string** | Company | [optional] [default to undefined]
|
|
10
|
+
**addressLine1** | **string** | Address Line 1 | [optional] [default to undefined]
|
|
11
|
+
**addressLine2** | **string** | Address Line 2 | [optional] [default to undefined]
|
|
12
|
+
**city** | **string** | City | [optional] [default to undefined]
|
|
13
|
+
**region** | **string** | Region | [optional] [default to undefined]
|
|
14
|
+
**postalCode** | **string** | Postal Code | [optional] [default to undefined]
|
|
15
|
+
**iso** | **string** | Country | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { AddressDTO } from 'yellowgrid-api-ts';
|
|
21
|
+
|
|
22
|
+
const instance: AddressDTO = {
|
|
23
|
+
company,
|
|
24
|
+
addressLine1,
|
|
25
|
+
addressLine2,
|
|
26
|
+
city,
|
|
27
|
+
region,
|
|
28
|
+
postalCode,
|
|
29
|
+
iso,
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|