yellowgrid-api-ts 3.2.140-dev.0 → 3.2.142-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
@@ -63,6 +63,7 @@ Class | Method | HTTP request | Description
63
63
  *AccountsApi* | [**getGetAccounts**](docs/AccountsApi.md#getgetaccounts) | **GET** /accounts | Get Accounts
64
64
  *AccountsApi* | [**getGetClientCredentials**](docs/AccountsApi.md#getgetclientcredentials) | **GET** /accounts/me/contacts/credentials | Get user\'s client credentials
65
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 |
66
67
  *AccountsApi* | [**getVerifyEmailAddress**](docs/AccountsApi.md#getverifyemailaddress) | **GET** /accounts/contacts/verify | Verify account email address
67
68
  *AccountsApi* | [**patchSetPortalAccess**](docs/AccountsApi.md#patchsetportalaccess) | **PATCH** /admin/accounts/{id}/portal/access/{state} |
68
69
  *AccountsApi* | [**patchSetPrizePromo**](docs/AccountsApi.md#patchsetprizepromo) | **PATCH** /admin/accounts/{id}/prizes/{state} |
package/api.ts CHANGED
@@ -8707,6 +8707,39 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8707
8707
  options: localVarRequestOptions,
8708
8708
  };
8709
8709
  },
8710
+ /**
8711
+ * Get Account Finance
8712
+ * @param {string} id Account Xero ID
8713
+ * @param {*} [options] Override http request option.
8714
+ * @throws {RequiredError}
8715
+ */
8716
+ getGetFinanceSettings: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8717
+ // verify required parameter 'id' is not null or undefined
8718
+ assertParamExists('getGetFinanceSettings', 'id', id)
8719
+ const localVarPath = `/admin/accounts/{id}/finance`
8720
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8721
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8722
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8723
+ let baseOptions;
8724
+ if (configuration) {
8725
+ baseOptions = configuration.baseOptions;
8726
+ }
8727
+
8728
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8729
+ const localVarHeaderParameter = {} as any;
8730
+ const localVarQueryParameter = {} as any;
8731
+
8732
+ localVarHeaderParameter['Accept'] = 'application/json';
8733
+
8734
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8735
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8736
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8737
+
8738
+ return {
8739
+ url: toPathString(localVarUrlObj),
8740
+ options: localVarRequestOptions,
8741
+ };
8742
+ },
8710
8743
  /**
8711
8744
  * Verify account email address
8712
8745
  * @summary Verify account email address
@@ -9751,6 +9784,18 @@ export const AccountsApiFp = function(configuration?: Configuration) {
9751
9784
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetCustomerKeys']?.[localVarOperationServerIndex]?.url;
9752
9785
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9753
9786
  },
9787
+ /**
9788
+ * Get Account Finance
9789
+ * @param {string} id Account Xero ID
9790
+ * @param {*} [options] Override http request option.
9791
+ * @throws {RequiredError}
9792
+ */
9793
+ async getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
9794
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetFinanceSettings(id, options);
9795
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9796
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetFinanceSettings']?.[localVarOperationServerIndex]?.url;
9797
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9798
+ },
9754
9799
  /**
9755
9800
  * Verify account email address
9756
9801
  * @summary Verify account email address
@@ -10205,6 +10250,15 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
10205
10250
  getGetCustomerKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxKeySummaryDTO>> {
10206
10251
  return localVarFp.getGetCustomerKeys(options).then((request) => request(axios, basePath));
10207
10252
  },
10253
+ /**
10254
+ * Get Account Finance
10255
+ * @param {string} id Account Xero ID
10256
+ * @param {*} [options] Override http request option.
10257
+ * @throws {RequiredError}
10258
+ */
10259
+ getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
10260
+ return localVarFp.getGetFinanceSettings(id, options).then((request) => request(axios, basePath));
10261
+ },
10208
10262
  /**
10209
10263
  * Verify account email address
10210
10264
  * @summary Verify account email address
@@ -10594,6 +10648,16 @@ export class AccountsApi extends BaseAPI {
10594
10648
  return AccountsApiFp(this.configuration).getGetCustomerKeys(options).then((request) => request(this.axios, this.basePath));
10595
10649
  }
10596
10650
 
10651
+ /**
10652
+ * Get Account Finance
10653
+ * @param {string} id Account Xero ID
10654
+ * @param {*} [options] Override http request option.
10655
+ * @throws {RequiredError}
10656
+ */
10657
+ public getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig) {
10658
+ return AccountsApiFp(this.configuration).getGetFinanceSettings(id, options).then((request) => request(this.axios, this.basePath));
10659
+ }
10660
+
10597
10661
  /**
10598
10662
  * Verify account email address
10599
10663
  * @summary Verify account email address
package/dist/api.d.ts CHANGED
@@ -8281,6 +8281,13 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
8281
8281
  * @throws {RequiredError}
8282
8282
  */
8283
8283
  getGetCustomerKeys: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8284
+ /**
8285
+ * Get Account Finance
8286
+ * @param {string} id Account Xero ID
8287
+ * @param {*} [options] Override http request option.
8288
+ * @throws {RequiredError}
8289
+ */
8290
+ getGetFinanceSettings: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8284
8291
  /**
8285
8292
  * Verify account email address
8286
8293
  * @summary Verify account email address
@@ -8582,6 +8589,13 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
8582
8589
  * @throws {RequiredError}
8583
8590
  */
8584
8591
  getGetCustomerKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TcxKeySummaryDTO>>>;
8592
+ /**
8593
+ * Get Account Finance
8594
+ * @param {string} id Account Xero ID
8595
+ * @param {*} [options] Override http request option.
8596
+ * @throws {RequiredError}
8597
+ */
8598
+ getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>>;
8585
8599
  /**
8586
8600
  * Verify account email address
8587
8601
  * @summary Verify account email address
@@ -8883,6 +8897,13 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
8883
8897
  * @throws {RequiredError}
8884
8898
  */
8885
8899
  getGetCustomerKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxKeySummaryDTO>>;
8900
+ /**
8901
+ * Get Account Finance
8902
+ * @param {string} id Account Xero ID
8903
+ * @param {*} [options] Override http request option.
8904
+ * @throws {RequiredError}
8905
+ */
8906
+ getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO>;
8886
8907
  /**
8887
8908
  * Verify account email address
8888
8909
  * @summary Verify account email address
@@ -9184,6 +9205,13 @@ export declare class AccountsApi extends BaseAPI {
9184
9205
  * @throws {RequiredError}
9185
9206
  */
9186
9207
  getGetCustomerKeys(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TcxKeySummaryDTO[], any, {}>>;
9208
+ /**
9209
+ * Get Account Finance
9210
+ * @param {string} id Account Xero ID
9211
+ * @param {*} [options] Override http request option.
9212
+ * @throws {RequiredError}
9213
+ */
9214
+ getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountFinanceDTO, any, {}>>;
9187
9215
  /**
9188
9216
  * Verify account email address
9189
9217
  * @summary Verify account email address
package/dist/api.js CHANGED
@@ -890,6 +890,43 @@ var AccountsApiAxiosParamCreator = function (configuration) {
890
890
  });
891
891
  });
892
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
+ },
893
930
  /**
894
931
  * Verify account email address
895
932
  * @summary Verify account email address
@@ -2148,6 +2185,28 @@ var AccountsApiFp = function (configuration) {
2148
2185
  });
2149
2186
  });
2150
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
+ },
2151
2210
  /**
2152
2211
  * Verify account email address
2153
2212
  * @summary Verify account email address
@@ -2852,6 +2911,15 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
2852
2911
  getGetCustomerKeys: function (options) {
2853
2912
  return localVarFp.getGetCustomerKeys(options).then(function (request) { return request(axios, basePath); });
2854
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
+ },
2855
2923
  /**
2856
2924
  * Verify account email address
2857
2925
  * @summary Verify account email address
@@ -3245,6 +3313,16 @@ var AccountsApi = /** @class */ (function (_super) {
3245
3313
  var _this = this;
3246
3314
  return (0, exports.AccountsApiFp)(this.configuration).getGetCustomerKeys(options).then(function (request) { return request(_this.axios, _this.basePath); });
3247
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
+ };
3248
3326
  /**
3249
3327
  * Verify account email address
3250
3328
  * @summary Verify account email address
@@ -16,6 +16,7 @@ All URIs are relative to *https://localhost*
16
16
  |[**getGetAccounts**](#getgetaccounts) | **GET** /accounts | Get Accounts|
17
17
  |[**getGetClientCredentials**](#getgetclientcredentials) | **GET** /accounts/me/contacts/credentials | Get user\&#39;s client credentials|
18
18
  |[**getGetCustomerKeys**](#getgetcustomerkeys) | **GET** /accounts/me/tcx/keys | Get 3CX Keys|
19
+ |[**getGetFinanceSettings**](#getgetfinancesettings) | **GET** /admin/accounts/{id}/finance | |
19
20
  |[**getVerifyEmailAddress**](#getverifyemailaddress) | **GET** /accounts/contacts/verify | Verify account email address|
20
21
  |[**patchSetPortalAccess**](#patchsetportalaccess) | **PATCH** /admin/accounts/{id}/portal/access/{state} | |
21
22
  |[**patchSetPrizePromo**](#patchsetprizepromo) | **PATCH** /admin/accounts/{id}/prizes/{state} | |
@@ -681,6 +682,60 @@ No authorization required
681
682
 
682
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)
683
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
+
684
739
  # **getVerifyEmailAddress**
685
740
  > getVerifyEmailAddress()
686
741
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.140-dev.0",
3
+ "version": "3.2.142-dev.0",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {