yellowgrid-api-ts 3.2.112-dev.0 → 3.2.114-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/api.ts +12 -12
- package/dist/api.d.ts +8 -8
- package/dist/api.js +13 -13
- package/docs/AccountsApi.md +4 -4
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -8775,11 +8775,11 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8775
8775
|
/**
|
|
8776
8776
|
* Update Account Shipping Address
|
|
8777
8777
|
* @param {string} id Xero ID
|
|
8778
|
-
* @param {
|
|
8778
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
8779
8779
|
* @param {*} [options] Override http request option.
|
|
8780
8780
|
* @throws {RequiredError}
|
|
8781
8781
|
*/
|
|
8782
|
-
putUpdateShippingAddress: async (id: string,
|
|
8782
|
+
putUpdateShippingAddress: async (id: string, addressDTO?: AddressDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8783
8783
|
// verify required parameter 'id' is not null or undefined
|
|
8784
8784
|
assertParamExists('putUpdateShippingAddress', 'id', id)
|
|
8785
8785
|
const localVarPath = `/admin/accounts/{id}/shipping/address`
|
|
@@ -8800,7 +8800,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8800
8800
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8801
8801
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8802
8802
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8803
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
8803
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addressDTO, localVarRequestOptions, configuration)
|
|
8804
8804
|
|
|
8805
8805
|
return {
|
|
8806
8806
|
url: toPathString(localVarUrlObj),
|
|
@@ -9145,12 +9145,12 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9145
9145
|
/**
|
|
9146
9146
|
* Update Account Shipping Address
|
|
9147
9147
|
* @param {string} id Xero ID
|
|
9148
|
-
* @param {
|
|
9148
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
9149
9149
|
* @param {*} [options] Override http request option.
|
|
9150
9150
|
* @throws {RequiredError}
|
|
9151
9151
|
*/
|
|
9152
|
-
async putUpdateShippingAddress(id: string,
|
|
9153
|
-
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);
|
|
9154
9154
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9155
9155
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.putUpdateShippingAddress']?.[localVarOperationServerIndex]?.url;
|
|
9156
9156
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9418,12 +9418,12 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9418
9418
|
/**
|
|
9419
9419
|
* Update Account Shipping Address
|
|
9420
9420
|
* @param {string} id Xero ID
|
|
9421
|
-
* @param {
|
|
9421
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
9422
9422
|
* @param {*} [options] Override http request option.
|
|
9423
9423
|
* @throws {RequiredError}
|
|
9424
9424
|
*/
|
|
9425
|
-
putUpdateShippingAddress(id: string,
|
|
9426
|
-
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));
|
|
9427
9427
|
},
|
|
9428
9428
|
};
|
|
9429
9429
|
};
|
|
@@ -9711,12 +9711,12 @@ export class AccountsApi extends BaseAPI {
|
|
|
9711
9711
|
/**
|
|
9712
9712
|
* Update Account Shipping Address
|
|
9713
9713
|
* @param {string} id Xero ID
|
|
9714
|
-
* @param {
|
|
9714
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
9715
9715
|
* @param {*} [options] Override http request option.
|
|
9716
9716
|
* @throws {RequiredError}
|
|
9717
9717
|
*/
|
|
9718
|
-
public putUpdateShippingAddress(id: string,
|
|
9719
|
-
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));
|
|
9720
9720
|
}
|
|
9721
9721
|
}
|
|
9722
9722
|
|
package/dist/api.d.ts
CHANGED
|
@@ -8006,11 +8006,11 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
8006
8006
|
/**
|
|
8007
8007
|
* Update Account Shipping Address
|
|
8008
8008
|
* @param {string} id Xero ID
|
|
8009
|
-
* @param {
|
|
8009
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
8010
8010
|
* @param {*} [options] Override http request option.
|
|
8011
8011
|
* @throws {RequiredError}
|
|
8012
8012
|
*/
|
|
8013
|
-
putUpdateShippingAddress: (id: string,
|
|
8013
|
+
putUpdateShippingAddress: (id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8014
8014
|
};
|
|
8015
8015
|
/**
|
|
8016
8016
|
* AccountsApi - functional programming interface
|
|
@@ -8220,11 +8220,11 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
8220
8220
|
/**
|
|
8221
8221
|
* Update Account Shipping Address
|
|
8222
8222
|
* @param {string} id Xero ID
|
|
8223
|
-
* @param {
|
|
8223
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
8224
8224
|
* @param {*} [options] Override http request option.
|
|
8225
8225
|
* @throws {RequiredError}
|
|
8226
8226
|
*/
|
|
8227
|
-
putUpdateShippingAddress(id: string,
|
|
8227
|
+
putUpdateShippingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
8228
8228
|
};
|
|
8229
8229
|
/**
|
|
8230
8230
|
* AccountsApi - factory interface
|
|
@@ -8434,11 +8434,11 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
8434
8434
|
/**
|
|
8435
8435
|
* Update Account Shipping Address
|
|
8436
8436
|
* @param {string} id Xero ID
|
|
8437
|
-
* @param {
|
|
8437
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
8438
8438
|
* @param {*} [options] Override http request option.
|
|
8439
8439
|
* @throws {RequiredError}
|
|
8440
8440
|
*/
|
|
8441
|
-
putUpdateShippingAddress(id: string,
|
|
8441
|
+
putUpdateShippingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
8442
8442
|
};
|
|
8443
8443
|
/**
|
|
8444
8444
|
* AccountsApi - object-oriented interface
|
|
@@ -8648,11 +8648,11 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
8648
8648
|
/**
|
|
8649
8649
|
* Update Account Shipping Address
|
|
8650
8650
|
* @param {string} id Xero ID
|
|
8651
|
-
* @param {
|
|
8651
|
+
* @param {AddressDTO} [addressDTO] Updated Shipping Address
|
|
8652
8652
|
* @param {*} [options] Override http request option.
|
|
8653
8653
|
* @throws {RequiredError}
|
|
8654
8654
|
*/
|
|
8655
|
-
putUpdateShippingAddress(id: string,
|
|
8655
|
+
putUpdateShippingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
8656
8656
|
}
|
|
8657
8657
|
export declare const PatchSetPortalAccessStateEnum: {
|
|
8658
8658
|
readonly Enable: "enable";
|
package/dist/api.js
CHANGED
|
@@ -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,
|
|
@@ -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;
|
|
@@ -2286,12 +2286,12 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
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
|
};
|
|
@@ -2583,13 +2583,13 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
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
|
@@ -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
|
|