yellowgrid-api-ts 3.2.141-dev.0 → 3.2.143-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/README.md CHANGED
@@ -54,7 +54,6 @@ Class | Method | HTTP request | Description
54
54
  *AccountsApi* | [**deleteAdminUpdateAccountContact**](docs/AccountsApi.md#deleteadminupdateaccountcontact) | **DELETE** /admin/accounts/{id}/contacts/{contact_id} |
55
55
  *AccountsApi* | [**deleteArchiveAccount**](docs/AccountsApi.md#deletearchiveaccount) | **DELETE** /admin/accounts/{id}/archive |
56
56
  *AccountsApi* | [**deleteDeleteClientCredentials**](docs/AccountsApi.md#deletedeleteclientcredentials) | **DELETE** /accounts/me/contacts/credentials/{id} | Delete client credentials
57
- *AccountsApi* | [**deleteGetFinanceSettings**](docs/AccountsApi.md#deletegetfinancesettings) | **DELETE** /admin/accounts/{id}/finance |
58
57
  *AccountsApi* | [**deleteUpdateAccountContact**](docs/AccountsApi.md#deleteupdateaccountcontact) | **DELETE** /accounts/me/contacts/{email} | Delete Account Contact
59
58
  *AccountsApi* | [**getAdminCreateAccountContact**](docs/AccountsApi.md#getadmincreateaccountcontact) | **GET** /admin/accounts/{id}/contacts |
60
59
  *AccountsApi* | [**getGetAccount**](docs/AccountsApi.md#getgetaccount) | **GET** /accounts/me | Get Account
@@ -64,6 +63,7 @@ Class | Method | HTTP request | Description
64
63
  *AccountsApi* | [**getGetAccounts**](docs/AccountsApi.md#getgetaccounts) | **GET** /accounts | Get Accounts
65
64
  *AccountsApi* | [**getGetClientCredentials**](docs/AccountsApi.md#getgetclientcredentials) | **GET** /accounts/me/contacts/credentials | Get user\'s client credentials
66
65
  *AccountsApi* | [**getGetCustomerKeys**](docs/AccountsApi.md#getgetcustomerkeys) | **GET** /accounts/me/tcx/keys | Get 3CX Keys
66
+ *AccountsApi* | [**getGetFinanceSettings**](docs/AccountsApi.md#getgetfinancesettings) | **GET** /admin/accounts/{id}/finance |
67
67
  *AccountsApi* | [**getVerifyEmailAddress**](docs/AccountsApi.md#getverifyemailaddress) | **GET** /accounts/contacts/verify | Verify account email address
68
68
  *AccountsApi* | [**patchSetPortalAccess**](docs/AccountsApi.md#patchsetportalaccess) | **PATCH** /admin/accounts/{id}/portal/access/{state} |
69
69
  *AccountsApi* | [**patchSetPrizePromo**](docs/AccountsApi.md#patchsetprizepromo) | **PATCH** /admin/accounts/{id}/prizes/{state} |
package/api.ts CHANGED
@@ -259,6 +259,10 @@ export interface AccountFinanceDTO {
259
259
  * Account Xero ID
260
260
  */
261
261
  'xeroId'?: string;
262
+ /**
263
+ * Account Number
264
+ */
265
+ 'accountNumber'?: string;
262
266
  /**
263
267
  * Credit Limit
264
268
  */
@@ -8390,39 +8394,6 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8390
8394
  const localVarQueryParameter = {} as any;
8391
8395
 
8392
8396
 
8393
- setSearchParams(localVarUrlObj, localVarQueryParameter);
8394
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8395
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8396
-
8397
- return {
8398
- url: toPathString(localVarUrlObj),
8399
- options: localVarRequestOptions,
8400
- };
8401
- },
8402
- /**
8403
- * Get Account Finance
8404
- * @param {string} id Account Xero ID
8405
- * @param {*} [options] Override http request option.
8406
- * @throws {RequiredError}
8407
- */
8408
- deleteGetFinanceSettings: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8409
- // verify required parameter 'id' is not null or undefined
8410
- assertParamExists('deleteGetFinanceSettings', 'id', id)
8411
- const localVarPath = `/admin/accounts/{id}/finance`
8412
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8413
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
8414
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8415
- let baseOptions;
8416
- if (configuration) {
8417
- baseOptions = configuration.baseOptions;
8418
- }
8419
-
8420
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
8421
- const localVarHeaderParameter = {} as any;
8422
- const localVarQueryParameter = {} as any;
8423
-
8424
- localVarHeaderParameter['Accept'] = 'application/json';
8425
-
8426
8397
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8427
8398
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8428
8399
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -8740,6 +8711,39 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8740
8711
  options: localVarRequestOptions,
8741
8712
  };
8742
8713
  },
8714
+ /**
8715
+ * Get Account Finance
8716
+ * @param {string} id Account Xero ID
8717
+ * @param {*} [options] Override http request option.
8718
+ * @throws {RequiredError}
8719
+ */
8720
+ getGetFinanceSettings: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8721
+ // verify required parameter 'id' is not null or undefined
8722
+ assertParamExists('getGetFinanceSettings', 'id', id)
8723
+ const localVarPath = `/admin/accounts/{id}/finance`
8724
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8725
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8726
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8727
+ let baseOptions;
8728
+ if (configuration) {
8729
+ baseOptions = configuration.baseOptions;
8730
+ }
8731
+
8732
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8733
+ const localVarHeaderParameter = {} as any;
8734
+ const localVarQueryParameter = {} as any;
8735
+
8736
+ localVarHeaderParameter['Accept'] = 'application/json';
8737
+
8738
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8739
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8740
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8741
+
8742
+ return {
8743
+ url: toPathString(localVarUrlObj),
8744
+ options: localVarRequestOptions,
8745
+ };
8746
+ },
8743
8747
  /**
8744
8748
  * Verify account email address
8745
8749
  * @summary Verify account email address
@@ -9669,18 +9673,6 @@ export const AccountsApiFp = function(configuration?: Configuration) {
9669
9673
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteDeleteClientCredentials']?.[localVarOperationServerIndex]?.url;
9670
9674
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9671
9675
  },
9672
- /**
9673
- * Get Account Finance
9674
- * @param {string} id Account Xero ID
9675
- * @param {*} [options] Override http request option.
9676
- * @throws {RequiredError}
9677
- */
9678
- async deleteGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
9679
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteGetFinanceSettings(id, options);
9680
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9681
- const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteGetFinanceSettings']?.[localVarOperationServerIndex]?.url;
9682
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9683
- },
9684
9676
  /**
9685
9677
  * Delete Account Contacts
9686
9678
  * @summary Delete Account Contact
@@ -9796,6 +9788,18 @@ export const AccountsApiFp = function(configuration?: Configuration) {
9796
9788
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetCustomerKeys']?.[localVarOperationServerIndex]?.url;
9797
9789
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9798
9790
  },
9791
+ /**
9792
+ * Get Account Finance
9793
+ * @param {string} id Account Xero ID
9794
+ * @param {*} [options] Override http request option.
9795
+ * @throws {RequiredError}
9796
+ */
9797
+ async getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
9798
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetFinanceSettings(id, options);
9799
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9800
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetFinanceSettings']?.[localVarOperationServerIndex]?.url;
9801
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9802
+ },
9799
9803
  /**
9800
9804
  * Verify account email address
9801
9805
  * @summary Verify account email address
@@ -10162,15 +10166,6 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
10162
10166
  deleteDeleteClientCredentials(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
10163
10167
  return localVarFp.deleteDeleteClientCredentials(id, options).then((request) => request(axios, basePath));
10164
10168
  },
10165
- /**
10166
- * Get Account Finance
10167
- * @param {string} id Account Xero ID
10168
- * @param {*} [options] Override http request option.
10169
- * @throws {RequiredError}
10170
- */
10171
- deleteGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
10172
- return localVarFp.deleteGetFinanceSettings(id, options).then((request) => request(axios, basePath));
10173
- },
10174
10169
  /**
10175
10170
  * Delete Account Contacts
10176
10171
  * @summary Delete Account Contact
@@ -10259,6 +10254,15 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
10259
10254
  getGetCustomerKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxKeySummaryDTO>> {
10260
10255
  return localVarFp.getGetCustomerKeys(options).then((request) => request(axios, basePath));
10261
10256
  },
10257
+ /**
10258
+ * Get Account Finance
10259
+ * @param {string} id Account Xero ID
10260
+ * @param {*} [options] Override http request option.
10261
+ * @throws {RequiredError}
10262
+ */
10263
+ getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
10264
+ return localVarFp.getGetFinanceSettings(id, options).then((request) => request(axios, basePath));
10265
+ },
10262
10266
  /**
10263
10267
  * Verify account email address
10264
10268
  * @summary Verify account email address
@@ -10551,16 +10555,6 @@ export class AccountsApi extends BaseAPI {
10551
10555
  return AccountsApiFp(this.configuration).deleteDeleteClientCredentials(id, options).then((request) => request(this.axios, this.basePath));
10552
10556
  }
10553
10557
 
10554
- /**
10555
- * Get Account Finance
10556
- * @param {string} id Account Xero ID
10557
- * @param {*} [options] Override http request option.
10558
- * @throws {RequiredError}
10559
- */
10560
- public deleteGetFinanceSettings(id: string, options?: RawAxiosRequestConfig) {
10561
- return AccountsApiFp(this.configuration).deleteGetFinanceSettings(id, options).then((request) => request(this.axios, this.basePath));
10562
- }
10563
-
10564
10558
  /**
10565
10559
  * Delete Account Contacts
10566
10560
  * @summary Delete Account Contact
@@ -10658,6 +10652,16 @@ export class AccountsApi extends BaseAPI {
10658
10652
  return AccountsApiFp(this.configuration).getGetCustomerKeys(options).then((request) => request(this.axios, this.basePath));
10659
10653
  }
10660
10654
 
10655
+ /**
10656
+ * Get Account Finance
10657
+ * @param {string} id Account Xero ID
10658
+ * @param {*} [options] Override http request option.
10659
+ * @throws {RequiredError}
10660
+ */
10661
+ public getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig) {
10662
+ return AccountsApiFp(this.configuration).getGetFinanceSettings(id, options).then((request) => request(this.axios, this.basePath));
10663
+ }
10664
+
10661
10665
  /**
10662
10666
  * Verify account email address
10663
10667
  * @summary Verify account email address
package/dist/api.d.ts CHANGED
@@ -249,6 +249,10 @@ export interface AccountFinanceDTO {
249
249
  * Account Xero ID
250
250
  */
251
251
  'xeroId'?: string;
252
+ /**
253
+ * Account Number
254
+ */
255
+ 'accountNumber'?: string;
252
256
  /**
253
257
  * Credit Limit
254
258
  */
@@ -8211,13 +8215,6 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
8211
8215
  * @throws {RequiredError}
8212
8216
  */
8213
8217
  deleteDeleteClientCredentials: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8214
- /**
8215
- * Get Account Finance
8216
- * @param {string} id Account Xero ID
8217
- * @param {*} [options] Override http request option.
8218
- * @throws {RequiredError}
8219
- */
8220
- deleteGetFinanceSettings: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8221
8218
  /**
8222
8219
  * Delete Account Contacts
8223
8220
  * @summary Delete Account Contact
@@ -8288,6 +8285,13 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
8288
8285
  * @throws {RequiredError}
8289
8286
  */
8290
8287
  getGetCustomerKeys: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8288
+ /**
8289
+ * Get Account Finance
8290
+ * @param {string} id Account Xero ID
8291
+ * @param {*} [options] Override http request option.
8292
+ * @throws {RequiredError}
8293
+ */
8294
+ getGetFinanceSettings: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8291
8295
  /**
8292
8296
  * Verify account email address
8293
8297
  * @summary Verify account email address
@@ -8519,13 +8523,6 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
8519
8523
  * @throws {RequiredError}
8520
8524
  */
8521
8525
  deleteDeleteClientCredentials(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
8522
- /**
8523
- * Get Account Finance
8524
- * @param {string} id Account Xero ID
8525
- * @param {*} [options] Override http request option.
8526
- * @throws {RequiredError}
8527
- */
8528
- deleteGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>>;
8529
8526
  /**
8530
8527
  * Delete Account Contacts
8531
8528
  * @summary Delete Account Contact
@@ -8596,6 +8593,13 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
8596
8593
  * @throws {RequiredError}
8597
8594
  */
8598
8595
  getGetCustomerKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TcxKeySummaryDTO>>>;
8596
+ /**
8597
+ * Get Account Finance
8598
+ * @param {string} id Account Xero ID
8599
+ * @param {*} [options] Override http request option.
8600
+ * @throws {RequiredError}
8601
+ */
8602
+ getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>>;
8599
8603
  /**
8600
8604
  * Verify account email address
8601
8605
  * @summary Verify account email address
@@ -8827,13 +8831,6 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
8827
8831
  * @throws {RequiredError}
8828
8832
  */
8829
8833
  deleteDeleteClientCredentials(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
8830
- /**
8831
- * Get Account Finance
8832
- * @param {string} id Account Xero ID
8833
- * @param {*} [options] Override http request option.
8834
- * @throws {RequiredError}
8835
- */
8836
- deleteGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO>;
8837
8834
  /**
8838
8835
  * Delete Account Contacts
8839
8836
  * @summary Delete Account Contact
@@ -8904,6 +8901,13 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
8904
8901
  * @throws {RequiredError}
8905
8902
  */
8906
8903
  getGetCustomerKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxKeySummaryDTO>>;
8904
+ /**
8905
+ * Get Account Finance
8906
+ * @param {string} id Account Xero ID
8907
+ * @param {*} [options] Override http request option.
8908
+ * @throws {RequiredError}
8909
+ */
8910
+ getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO>;
8907
8911
  /**
8908
8912
  * Verify account email address
8909
8913
  * @summary Verify account email address
@@ -9135,13 +9139,6 @@ export declare class AccountsApi extends BaseAPI {
9135
9139
  * @throws {RequiredError}
9136
9140
  */
9137
9141
  deleteDeleteClientCredentials(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
9138
- /**
9139
- * Get Account Finance
9140
- * @param {string} id Account Xero ID
9141
- * @param {*} [options] Override http request option.
9142
- * @throws {RequiredError}
9143
- */
9144
- deleteGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountFinanceDTO, any, {}>>;
9145
9142
  /**
9146
9143
  * Delete Account Contacts
9147
9144
  * @summary Delete Account Contact
@@ -9212,6 +9209,13 @@ export declare class AccountsApi extends BaseAPI {
9212
9209
  * @throws {RequiredError}
9213
9210
  */
9214
9211
  getGetCustomerKeys(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TcxKeySummaryDTO[], any, {}>>;
9212
+ /**
9213
+ * Get Account Finance
9214
+ * @param {string} id Account Xero ID
9215
+ * @param {*} [options] Override http request option.
9216
+ * @throws {RequiredError}
9217
+ */
9218
+ getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountFinanceDTO, any, {}>>;
9215
9219
  /**
9216
9220
  * Verify account email address
9217
9221
  * @summary Verify account email address
package/dist/api.js CHANGED
@@ -551,43 +551,6 @@ var AccountsApiAxiosParamCreator = function (configuration) {
551
551
  });
552
552
  });
553
553
  },
554
- /**
555
- * Get Account Finance
556
- * @param {string} id Account Xero ID
557
- * @param {*} [options] Override http request option.
558
- * @throws {RequiredError}
559
- */
560
- deleteGetFinanceSettings: function (id_1) {
561
- var args_1 = [];
562
- for (var _i = 1; _i < arguments.length; _i++) {
563
- args_1[_i - 1] = arguments[_i];
564
- }
565
- return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
566
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
567
- if (options === void 0) { options = {}; }
568
- return __generator(this, function (_a) {
569
- // verify required parameter 'id' is not null or undefined
570
- (0, common_1.assertParamExists)('deleteGetFinanceSettings', 'id', id);
571
- localVarPath = "/admin/accounts/{id}/finance"
572
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
573
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
574
- if (configuration) {
575
- baseOptions = configuration.baseOptions;
576
- }
577
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
578
- localVarHeaderParameter = {};
579
- localVarQueryParameter = {};
580
- localVarHeaderParameter['Accept'] = 'application/json';
581
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
582
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
583
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
584
- return [2 /*return*/, {
585
- url: (0, common_1.toPathString)(localVarUrlObj),
586
- options: localVarRequestOptions,
587
- }];
588
- });
589
- });
590
- },
591
554
  /**
592
555
  * Delete Account Contacts
593
556
  * @summary Delete Account Contact
@@ -927,6 +890,43 @@ var AccountsApiAxiosParamCreator = function (configuration) {
927
890
  });
928
891
  });
929
892
  },
893
+ /**
894
+ * Get Account Finance
895
+ * @param {string} id Account Xero ID
896
+ * @param {*} [options] Override http request option.
897
+ * @throws {RequiredError}
898
+ */
899
+ getGetFinanceSettings: function (id_1) {
900
+ var args_1 = [];
901
+ for (var _i = 1; _i < arguments.length; _i++) {
902
+ args_1[_i - 1] = arguments[_i];
903
+ }
904
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
905
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
906
+ if (options === void 0) { options = {}; }
907
+ return __generator(this, function (_a) {
908
+ // verify required parameter 'id' is not null or undefined
909
+ (0, common_1.assertParamExists)('getGetFinanceSettings', 'id', id);
910
+ localVarPath = "/admin/accounts/{id}/finance"
911
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
912
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
913
+ if (configuration) {
914
+ baseOptions = configuration.baseOptions;
915
+ }
916
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
917
+ localVarHeaderParameter = {};
918
+ localVarQueryParameter = {};
919
+ localVarHeaderParameter['Accept'] = 'application/json';
920
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
921
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
922
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
923
+ return [2 /*return*/, {
924
+ url: (0, common_1.toPathString)(localVarUrlObj),
925
+ options: localVarRequestOptions,
926
+ }];
927
+ });
928
+ });
929
+ },
930
930
  /**
931
931
  * Verify account email address
932
932
  * @summary Verify account email address
@@ -1980,28 +1980,6 @@ var AccountsApiFp = function (configuration) {
1980
1980
  });
1981
1981
  });
1982
1982
  },
1983
- /**
1984
- * Get Account Finance
1985
- * @param {string} id Account Xero ID
1986
- * @param {*} [options] Override http request option.
1987
- * @throws {RequiredError}
1988
- */
1989
- deleteGetFinanceSettings: function (id, options) {
1990
- return __awaiter(this, void 0, void 0, function () {
1991
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1992
- var _a, _b, _c;
1993
- return __generator(this, function (_d) {
1994
- switch (_d.label) {
1995
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteGetFinanceSettings(id, options)];
1996
- case 1:
1997
- localVarAxiosArgs = _d.sent();
1998
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1999
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteGetFinanceSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2000
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2001
- }
2002
- });
2003
- });
2004
- },
2005
1983
  /**
2006
1984
  * Delete Account Contacts
2007
1985
  * @summary Delete Account Contact
@@ -2207,6 +2185,28 @@ var AccountsApiFp = function (configuration) {
2207
2185
  });
2208
2186
  });
2209
2187
  },
2188
+ /**
2189
+ * Get Account Finance
2190
+ * @param {string} id Account Xero ID
2191
+ * @param {*} [options] Override http request option.
2192
+ * @throws {RequiredError}
2193
+ */
2194
+ getGetFinanceSettings: function (id, options) {
2195
+ return __awaiter(this, void 0, void 0, function () {
2196
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2197
+ var _a, _b, _c;
2198
+ return __generator(this, function (_d) {
2199
+ switch (_d.label) {
2200
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetFinanceSettings(id, options)];
2201
+ case 1:
2202
+ localVarAxiosArgs = _d.sent();
2203
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2204
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetFinanceSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2205
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2206
+ }
2207
+ });
2208
+ });
2209
+ },
2210
2210
  /**
2211
2211
  * Verify account email address
2212
2212
  * @summary Verify account email address
@@ -2823,15 +2823,6 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
2823
2823
  deleteDeleteClientCredentials: function (id, options) {
2824
2824
  return localVarFp.deleteDeleteClientCredentials(id, options).then(function (request) { return request(axios, basePath); });
2825
2825
  },
2826
- /**
2827
- * Get Account Finance
2828
- * @param {string} id Account Xero ID
2829
- * @param {*} [options] Override http request option.
2830
- * @throws {RequiredError}
2831
- */
2832
- deleteGetFinanceSettings: function (id, options) {
2833
- return localVarFp.deleteGetFinanceSettings(id, options).then(function (request) { return request(axios, basePath); });
2834
- },
2835
2826
  /**
2836
2827
  * Delete Account Contacts
2837
2828
  * @summary Delete Account Contact
@@ -2920,6 +2911,15 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
2920
2911
  getGetCustomerKeys: function (options) {
2921
2912
  return localVarFp.getGetCustomerKeys(options).then(function (request) { return request(axios, basePath); });
2922
2913
  },
2914
+ /**
2915
+ * Get Account Finance
2916
+ * @param {string} id Account Xero ID
2917
+ * @param {*} [options] Override http request option.
2918
+ * @throws {RequiredError}
2919
+ */
2920
+ getGetFinanceSettings: function (id, options) {
2921
+ return localVarFp.getGetFinanceSettings(id, options).then(function (request) { return request(axios, basePath); });
2922
+ },
2923
2923
  /**
2924
2924
  * Verify account email address
2925
2925
  * @summary Verify account email address
@@ -3216,16 +3216,6 @@ var AccountsApi = /** @class */ (function (_super) {
3216
3216
  var _this = this;
3217
3217
  return (0, exports.AccountsApiFp)(this.configuration).deleteDeleteClientCredentials(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
3218
3218
  };
3219
- /**
3220
- * Get Account Finance
3221
- * @param {string} id Account Xero ID
3222
- * @param {*} [options] Override http request option.
3223
- * @throws {RequiredError}
3224
- */
3225
- AccountsApi.prototype.deleteGetFinanceSettings = function (id, options) {
3226
- var _this = this;
3227
- return (0, exports.AccountsApiFp)(this.configuration).deleteGetFinanceSettings(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
3228
- };
3229
3219
  /**
3230
3220
  * Delete Account Contacts
3231
3221
  * @summary Delete Account Contact
@@ -3323,6 +3313,16 @@ var AccountsApi = /** @class */ (function (_super) {
3323
3313
  var _this = this;
3324
3314
  return (0, exports.AccountsApiFp)(this.configuration).getGetCustomerKeys(options).then(function (request) { return request(_this.axios, _this.basePath); });
3325
3315
  };
3316
+ /**
3317
+ * Get Account Finance
3318
+ * @param {string} id Account Xero ID
3319
+ * @param {*} [options] Override http request option.
3320
+ * @throws {RequiredError}
3321
+ */
3322
+ AccountsApi.prototype.getGetFinanceSettings = function (id, options) {
3323
+ var _this = this;
3324
+ return (0, exports.AccountsApiFp)(this.configuration).getGetFinanceSettings(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
3325
+ };
3326
3326
  /**
3327
3327
  * Verify account email address
3328
3328
  * @summary Verify account email address
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
9
  **id** | **number** | Account ID | [optional] [default to undefined]
10
10
  **xeroId** | **string** | Account Xero ID | [optional] [default to undefined]
11
+ **accountNumber** | **string** | Account Number | [optional] [default to undefined]
11
12
  **creditLimit** | **number** | Credit Limit | [optional] [default to undefined]
12
13
  **balance** | **number** | Balance Used | [optional] [default to undefined]
13
14
  **overdue** | **number** | Overdue Amount | [optional] [default to undefined]
@@ -23,6 +24,7 @@ import { AccountFinanceDTO } from 'yellowgrid-api-ts';
23
24
  const instance: AccountFinanceDTO = {
24
25
  id,
25
26
  xeroId,
27
+ accountNumber,
26
28
  creditLimit,
27
29
  balance,
28
30
  overdue,
@@ -7,7 +7,6 @@ All URIs are relative to *https://localhost*
7
7
  |[**deleteAdminUpdateAccountContact**](#deleteadminupdateaccountcontact) | **DELETE** /admin/accounts/{id}/contacts/{contact_id} | |
8
8
  |[**deleteArchiveAccount**](#deletearchiveaccount) | **DELETE** /admin/accounts/{id}/archive | |
9
9
  |[**deleteDeleteClientCredentials**](#deletedeleteclientcredentials) | **DELETE** /accounts/me/contacts/credentials/{id} | Delete client credentials|
10
- |[**deleteGetFinanceSettings**](#deletegetfinancesettings) | **DELETE** /admin/accounts/{id}/finance | |
11
10
  |[**deleteUpdateAccountContact**](#deleteupdateaccountcontact) | **DELETE** /accounts/me/contacts/{email} | Delete Account Contact|
12
11
  |[**getAdminCreateAccountContact**](#getadmincreateaccountcontact) | **GET** /admin/accounts/{id}/contacts | |
13
12
  |[**getGetAccount**](#getgetaccount) | **GET** /accounts/me | Get Account|
@@ -17,6 +16,7 @@ All URIs are relative to *https://localhost*
17
16
  |[**getGetAccounts**](#getgetaccounts) | **GET** /accounts | Get Accounts|
18
17
  |[**getGetClientCredentials**](#getgetclientcredentials) | **GET** /accounts/me/contacts/credentials | Get user\&#39;s client credentials|
19
18
  |[**getGetCustomerKeys**](#getgetcustomerkeys) | **GET** /accounts/me/tcx/keys | Get 3CX Keys|
19
+ |[**getGetFinanceSettings**](#getgetfinancesettings) | **GET** /admin/accounts/{id}/finance | |
20
20
  |[**getVerifyEmailAddress**](#getverifyemailaddress) | **GET** /accounts/contacts/verify | Verify account email address|
21
21
  |[**patchSetPortalAccess**](#patchsetportalaccess) | **PATCH** /admin/accounts/{id}/portal/access/{state} | |
22
22
  |[**patchSetPrizePromo**](#patchsetprizepromo) | **PATCH** /admin/accounts/{id}/prizes/{state} | |
@@ -208,60 +208,6 @@ No authorization required
208
208
 
209
209
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
210
210
 
211
- # **deleteGetFinanceSettings**
212
- > AccountFinanceDTO deleteGetFinanceSettings()
213
-
214
- Get Account Finance
215
-
216
- ### Example
217
-
218
- ```typescript
219
- import {
220
- AccountsApi,
221
- Configuration
222
- } from 'yellowgrid-api-ts';
223
-
224
- const configuration = new Configuration();
225
- const apiInstance = new AccountsApi(configuration);
226
-
227
- let id: string; //Account Xero ID (default to undefined)
228
-
229
- const { status, data } = await apiInstance.deleteGetFinanceSettings(
230
- id
231
- );
232
- ```
233
-
234
- ### Parameters
235
-
236
- |Name | Type | Description | Notes|
237
- |------------- | ------------- | ------------- | -------------|
238
- | **id** | [**string**] | Account Xero ID | defaults to undefined|
239
-
240
-
241
- ### Return type
242
-
243
- **AccountFinanceDTO**
244
-
245
- ### Authorization
246
-
247
- No authorization required
248
-
249
- ### HTTP request headers
250
-
251
- - **Content-Type**: Not defined
252
- - **Accept**: application/json
253
-
254
-
255
- ### HTTP response details
256
- | Status code | Description | Response headers |
257
- |-------------|-------------|------------------|
258
- |**200** | Accounts Finance Details | - |
259
- |**400** | Bad Request | - |
260
- |**401** | Unauthorised | - |
261
- |**403** | Access Denied | - |
262
-
263
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
264
-
265
211
  # **deleteUpdateAccountContact**
266
212
  > deleteUpdateAccountContact()
267
213
 
@@ -736,6 +682,60 @@ No authorization required
736
682
 
737
683
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
738
684
 
685
+ # **getGetFinanceSettings**
686
+ > AccountFinanceDTO getGetFinanceSettings()
687
+
688
+ Get Account Finance
689
+
690
+ ### Example
691
+
692
+ ```typescript
693
+ import {
694
+ AccountsApi,
695
+ Configuration
696
+ } from 'yellowgrid-api-ts';
697
+
698
+ const configuration = new Configuration();
699
+ const apiInstance = new AccountsApi(configuration);
700
+
701
+ let id: string; //Account Xero ID (default to undefined)
702
+
703
+ const { status, data } = await apiInstance.getGetFinanceSettings(
704
+ id
705
+ );
706
+ ```
707
+
708
+ ### Parameters
709
+
710
+ |Name | Type | Description | Notes|
711
+ |------------- | ------------- | ------------- | -------------|
712
+ | **id** | [**string**] | Account Xero ID | defaults to undefined|
713
+
714
+
715
+ ### Return type
716
+
717
+ **AccountFinanceDTO**
718
+
719
+ ### Authorization
720
+
721
+ No authorization required
722
+
723
+ ### HTTP request headers
724
+
725
+ - **Content-Type**: Not defined
726
+ - **Accept**: application/json
727
+
728
+
729
+ ### HTTP response details
730
+ | Status code | Description | Response headers |
731
+ |-------------|-------------|------------------|
732
+ |**200** | Accounts Finance Details | - |
733
+ |**400** | Bad Request | - |
734
+ |**401** | Unauthorised | - |
735
+ |**403** | Access Denied | - |
736
+
737
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
738
+
739
739
  # **getVerifyEmailAddress**
740
740
  > getVerifyEmailAddress()
741
741
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.141-dev.0",
3
+ "version": "3.2.143-dev.0",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {