yellowgrid-api-ts 3.2.109-dev.0 → 3.2.112-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.
@@ -15,6 +15,7 @@ docs/AccountRequestModel.md
15
15
  docs/AccountSummaryDTO.md
16
16
  docs/AccountsApi.md
17
17
  docs/AccountsResponseModel.md
18
+ docs/AddressDTO.md
18
19
  docs/AddressModel.md
19
20
  docs/AddressRequestModel.md
20
21
  docs/AdminNumberPortDTO.md
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
@@ -260,7 +260,7 @@ export interface AccountPageDetailsDTO {
260
260
  */
261
261
  'companyName'?: string;
262
262
  'billingAddress'?: AddressModel;
263
- 'defaultShippingAddress'?: AddressModel;
263
+ 'shippingAddress'?: AddressModel;
264
264
  /**
265
265
  * Addresses
266
266
  */
@@ -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 {AddressModel} [addressModel] Updated Billing Address
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, addressModel?: AddressModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
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(addressModel, localVarRequestOptions, configuration)
8768
+ localVarRequestOptions.data = serializeDataIfNeeded(addressDTO, localVarRequestOptions, configuration)
8736
8769
 
8737
8770
  return {
8738
8771
  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 {AddressModel} [addressModel] Updated Billing Address
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, addressModel?: AddressModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
9107
- const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateBillingAddress(id, addressModel, options);
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);
@@ -9375,12 +9408,12 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
9375
9408
  /**
9376
9409
  * Update Account Billing Address
9377
9410
  * @param {string} id Xero ID
9378
- * @param {AddressModel} [addressModel] Updated Billing Address
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, addressModel?: AddressModel, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9383
- return localVarFp.putUpdateBillingAddress(id, addressModel, options).then((request) => request(axios, basePath));
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
@@ -9667,12 +9700,12 @@ export class AccountsApi extends BaseAPI {
9667
9700
  /**
9668
9701
  * Update Account Billing Address
9669
9702
  * @param {string} id Xero ID
9670
- * @param {AddressModel} [addressModel] Updated Billing Address
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, addressModel?: AddressModel, options?: RawAxiosRequestConfig) {
9675
- return AccountsApiFp(this.configuration).putUpdateBillingAddress(id, addressModel, options).then((request) => request(this.axios, this.basePath));
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
  /**
package/dist/api.d.ts CHANGED
@@ -250,7 +250,7 @@ export interface AccountPageDetailsDTO {
250
250
  */
251
251
  'companyName'?: string;
252
252
  'billingAddress'?: AddressModel;
253
- 'defaultShippingAddress'?: AddressModel;
253
+ 'shippingAddress'?: AddressModel;
254
254
  /**
255
255
  * Addresses
256
256
  */
@@ -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,11 +7998,11 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
7965
7998
  /**
7966
7999
  * Update Account Billing Address
7967
8000
  * @param {string} id Xero ID
7968
- * @param {AddressModel} [addressModel] Updated Billing Address
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, addressModel?: AddressModel, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
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
@@ -8179,11 +8212,11 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
8179
8212
  /**
8180
8213
  * Update Account Billing Address
8181
8214
  * @param {string} id Xero ID
8182
- * @param {AddressModel} [addressModel] Updated Billing Address
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, addressModel?: AddressModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
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
@@ -8393,11 +8426,11 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
8393
8426
  /**
8394
8427
  * Update Account Billing Address
8395
8428
  * @param {string} id Xero ID
8396
- * @param {AddressModel} [addressModel] Updated Billing Address
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, addressModel?: AddressModel, options?: RawAxiosRequestConfig): AxiosPromise<void>;
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
@@ -8607,11 +8640,11 @@ export declare class AccountsApi extends BaseAPI {
8607
8640
  /**
8608
8641
  * Update Account Billing Address
8609
8642
  * @param {string} id Xero ID
8610
- * @param {AddressModel} [addressModel] Updated Billing Address
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, addressModel?: AddressModel, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
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
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 {AddressModel} [addressModel] Updated Billing Address
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, addressModel_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, addressModel_1], args_1, true), void 0, function (id, addressModel, options) {
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)(addressModel, localVarRequestOptions, configuration);
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,
@@ -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 {AddressModel} [addressModel] Updated Billing Address
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, addressModel, options) {
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, addressModel, options)];
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;
@@ -2276,12 +2276,12 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
2276
2276
  /**
2277
2277
  * Update Account Billing Address
2278
2278
  * @param {string} id Xero ID
2279
- * @param {AddressModel} [addressModel] Updated Billing Address
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, addressModel, options) {
2284
- return localVarFp.putUpdateBillingAddress(id, addressModel, options).then(function (request) { return request(axios, basePath); });
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
@@ -2572,13 +2572,13 @@ var AccountsApi = /** @class */ (function (_super) {
2572
2572
  /**
2573
2573
  * Update Account Billing Address
2574
2574
  * @param {string} id Xero ID
2575
- * @param {AddressModel} [addressModel] Updated Billing Address
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, addressModel, options) {
2579
+ AccountsApi.prototype.putUpdateBillingAddress = function (id, addressDTO, options) {
2580
2580
  var _this = this;
2581
- return (0, exports.AccountsApiFp)(this.configuration).putUpdateBillingAddress(id, addressModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
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
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
9
9
  **xeroId** | **string** | Xero ID | [optional] [default to undefined]
10
10
  **companyName** | **string** | Company | [optional] [default to undefined]
11
11
  **billingAddress** | [**AddressModel**](AddressModel.md) | | [optional] [default to undefined]
12
- **defaultShippingAddress** | [**AddressModel**](AddressModel.md) | | [optional] [default to undefined]
12
+ **shippingAddress** | [**AddressModel**](AddressModel.md) | | [optional] [default to undefined]
13
13
  **previousShippingAddreses** | [**Array&lt;AddressModel&gt;**](AddressModel.md) | Addresses | [optional] [default to undefined]
14
14
  **portalAccess** | **boolean** | Portal Access | [optional] [default to undefined]
15
15
  **cname** | **string** | CNAME | [optional] [default to undefined]
@@ -24,7 +24,7 @@ const instance: AccountPageDetailsDTO = {
24
24
  xeroId,
25
25
  companyName,
26
26
  billingAddress,
27
- defaultShippingAddress,
27
+ shippingAddress,
28
28
  previousShippingAddreses,
29
29
  portalAccess,
30
30
  cname,
@@ -1351,18 +1351,18 @@ Update Account Billing Address
1351
1351
  import {
1352
1352
  AccountsApi,
1353
1353
  Configuration,
1354
- AddressModel
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 addressModel: AddressModel; //Updated Billing Address (optional)
1361
+ let addressDTO: AddressDTO; //Updated Billing Address (optional)
1362
1362
 
1363
1363
  const { status, data } = await apiInstance.putUpdateBillingAddress(
1364
1364
  id,
1365
- addressModel
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
- | **addressModel** | **AddressModel**| Updated Billing Address | |
1373
+ | **addressDTO** | **AddressDTO**| Updated Billing Address | |
1374
1374
  | **id** | [**string**] | Xero ID | defaults to undefined|
1375
1375
 
1376
1376
 
@@ -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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.109-dev.0",
3
+ "version": "3.2.112-dev.0",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {