yellowgrid-api-ts 3.2.307 → 3.2.309

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
@@ -96,6 +96,7 @@ Class | Method | HTTP request | Description
96
96
  *AccountsApi* | [**postSendEmailVerificationEmail**](docs/AccountsApi.md#postsendemailverificationemail) | **POST** /accounts/contacts/verify/{email} | Send email verification email
97
97
  *AccountsApi* | [**postSendPasswordReset**](docs/AccountsApi.md#postsendpasswordreset) | **POST** /accounts/contacts/password/reset | Send password reset email
98
98
  *AccountsApi* | [**postSendWelcomeEmail**](docs/AccountsApi.md#postsendwelcomeemail) | **POST** /admin/accounts/{id}/email/welcome |
99
+ *AccountsApi* | [**postSendXeroDocument**](docs/AccountsApi.md#postsendxerodocument) | **POST** /admin/finance/documents/send | Send Xero Document
99
100
  *AccountsApi* | [**postSubmitResellerApplication**](docs/AccountsApi.md#postsubmitresellerapplication) | **POST** /accounts/reseller | Submit reseller application
100
101
  *AccountsApi* | [**putAdminUpdateAccountContact**](docs/AccountsApi.md#putadminupdateaccountcontact) | **PUT** /admin/accounts/{id}/contacts/{contact_id} |
101
102
  *AccountsApi* | [**putUpdateAccountContact**](docs/AccountsApi.md#putupdateaccountcontact) | **PUT** /accounts/me/contacts/{email} | Update Account Contact
package/api.ts CHANGED
@@ -12952,6 +12952,42 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12952
12952
  options: localVarRequestOptions,
12953
12953
  };
12954
12954
  },
12955
+ /**
12956
+ * Send Xero Document
12957
+ * @summary Send Xero Document
12958
+ * @param {string} reference Reference
12959
+ * @param {*} [options] Override http request option.
12960
+ * @throws {RequiredError}
12961
+ */
12962
+ postSendXeroDocument: async (reference: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12963
+ // verify required parameter 'reference' is not null or undefined
12964
+ assertParamExists('postSendXeroDocument', 'reference', reference)
12965
+ const localVarPath = `/admin/finance/documents/send`;
12966
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12967
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12968
+ let baseOptions;
12969
+ if (configuration) {
12970
+ baseOptions = configuration.baseOptions;
12971
+ }
12972
+
12973
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12974
+ const localVarHeaderParameter = {} as any;
12975
+ const localVarQueryParameter = {} as any;
12976
+
12977
+ if (reference !== undefined) {
12978
+ localVarQueryParameter['reference'] = reference;
12979
+ }
12980
+
12981
+
12982
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12983
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12984
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12985
+
12986
+ return {
12987
+ url: toPathString(localVarUrlObj),
12988
+ options: localVarRequestOptions,
12989
+ };
12990
+ },
12955
12991
  /**
12956
12992
  * Submit reseller application
12957
12993
  * @summary Submit reseller application
@@ -13721,6 +13757,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
13721
13757
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.postSendWelcomeEmail']?.[localVarOperationServerIndex]?.url;
13722
13758
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13723
13759
  },
13760
+ /**
13761
+ * Send Xero Document
13762
+ * @summary Send Xero Document
13763
+ * @param {string} reference Reference
13764
+ * @param {*} [options] Override http request option.
13765
+ * @throws {RequiredError}
13766
+ */
13767
+ async postSendXeroDocument(reference: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
13768
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSendXeroDocument(reference, options);
13769
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13770
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.postSendXeroDocument']?.[localVarOperationServerIndex]?.url;
13771
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13772
+ },
13724
13773
  /**
13725
13774
  * Submit reseller application
13726
13775
  * @summary Submit reseller application
@@ -14235,6 +14284,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
14235
14284
  postSendWelcomeEmail(id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
14236
14285
  return localVarFp.postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options).then((request) => request(axios, basePath));
14237
14286
  },
14287
+ /**
14288
+ * Send Xero Document
14289
+ * @summary Send Xero Document
14290
+ * @param {string} reference Reference
14291
+ * @param {*} [options] Override http request option.
14292
+ * @throws {RequiredError}
14293
+ */
14294
+ postSendXeroDocument(reference: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
14295
+ return localVarFp.postSendXeroDocument(reference, options).then((request) => request(axios, basePath));
14296
+ },
14238
14297
  /**
14239
14298
  * Submit reseller application
14240
14299
  * @summary Submit reseller application
@@ -14777,6 +14836,17 @@ export class AccountsApi extends BaseAPI {
14777
14836
  return AccountsApiFp(this.configuration).postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options).then((request) => request(this.axios, this.basePath));
14778
14837
  }
14779
14838
 
14839
+ /**
14840
+ * Send Xero Document
14841
+ * @summary Send Xero Document
14842
+ * @param {string} reference Reference
14843
+ * @param {*} [options] Override http request option.
14844
+ * @throws {RequiredError}
14845
+ */
14846
+ public postSendXeroDocument(reference: string, options?: RawAxiosRequestConfig) {
14847
+ return AccountsApiFp(this.configuration).postSendXeroDocument(reference, options).then((request) => request(this.axios, this.basePath));
14848
+ }
14849
+
14780
14850
  /**
14781
14851
  * Submit reseller application
14782
14852
  * @summary Submit reseller application
package/dist/api.d.ts CHANGED
@@ -11562,6 +11562,14 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
11562
11562
  * @throws {RequiredError}
11563
11563
  */
11564
11564
  postSendWelcomeEmail: (id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11565
+ /**
11566
+ * Send Xero Document
11567
+ * @summary Send Xero Document
11568
+ * @param {string} reference Reference
11569
+ * @param {*} [options] Override http request option.
11570
+ * @throws {RequiredError}
11571
+ */
11572
+ postSendXeroDocument: (reference: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11565
11573
  /**
11566
11574
  * Submit reseller application
11567
11575
  * @summary Submit reseller application
@@ -11957,6 +11965,14 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
11957
11965
  * @throws {RequiredError}
11958
11966
  */
11959
11967
  postSendWelcomeEmail(id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
11968
+ /**
11969
+ * Send Xero Document
11970
+ * @summary Send Xero Document
11971
+ * @param {string} reference Reference
11972
+ * @param {*} [options] Override http request option.
11973
+ * @throws {RequiredError}
11974
+ */
11975
+ postSendXeroDocument(reference: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
11960
11976
  /**
11961
11977
  * Submit reseller application
11962
11978
  * @summary Submit reseller application
@@ -12352,6 +12368,14 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
12352
12368
  * @throws {RequiredError}
12353
12369
  */
12354
12370
  postSendWelcomeEmail(id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
12371
+ /**
12372
+ * Send Xero Document
12373
+ * @summary Send Xero Document
12374
+ * @param {string} reference Reference
12375
+ * @param {*} [options] Override http request option.
12376
+ * @throws {RequiredError}
12377
+ */
12378
+ postSendXeroDocument(reference: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
12355
12379
  /**
12356
12380
  * Submit reseller application
12357
12381
  * @summary Submit reseller application
@@ -12747,6 +12771,14 @@ export declare class AccountsApi extends BaseAPI {
12747
12771
  * @throws {RequiredError}
12748
12772
  */
12749
12773
  postSendWelcomeEmail(id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
12774
+ /**
12775
+ * Send Xero Document
12776
+ * @summary Send Xero Document
12777
+ * @param {string} reference Reference
12778
+ * @param {*} [options] Override http request option.
12779
+ * @throws {RequiredError}
12780
+ */
12781
+ postSendXeroDocument(reference: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
12750
12782
  /**
12751
12783
  * Submit reseller application
12752
12784
  * @summary Submit reseller application
package/dist/api.js CHANGED
@@ -2469,6 +2469,45 @@ var AccountsApiAxiosParamCreator = function (configuration) {
2469
2469
  });
2470
2470
  });
2471
2471
  },
2472
+ /**
2473
+ * Send Xero Document
2474
+ * @summary Send Xero Document
2475
+ * @param {string} reference Reference
2476
+ * @param {*} [options] Override http request option.
2477
+ * @throws {RequiredError}
2478
+ */
2479
+ postSendXeroDocument: function (reference_1) {
2480
+ var args_1 = [];
2481
+ for (var _i = 1; _i < arguments.length; _i++) {
2482
+ args_1[_i - 1] = arguments[_i];
2483
+ }
2484
+ return __awaiter(_this, __spreadArray([reference_1], args_1, true), void 0, function (reference, options) {
2485
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2486
+ if (options === void 0) { options = {}; }
2487
+ return __generator(this, function (_a) {
2488
+ // verify required parameter 'reference' is not null or undefined
2489
+ (0, common_1.assertParamExists)('postSendXeroDocument', 'reference', reference);
2490
+ localVarPath = "/admin/finance/documents/send";
2491
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2492
+ if (configuration) {
2493
+ baseOptions = configuration.baseOptions;
2494
+ }
2495
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2496
+ localVarHeaderParameter = {};
2497
+ localVarQueryParameter = {};
2498
+ if (reference !== undefined) {
2499
+ localVarQueryParameter['reference'] = reference;
2500
+ }
2501
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2502
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2503
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2504
+ return [2 /*return*/, {
2505
+ url: (0, common_1.toPathString)(localVarUrlObj),
2506
+ options: localVarRequestOptions,
2507
+ }];
2508
+ });
2509
+ });
2510
+ },
2472
2511
  /**
2473
2512
  * Submit reseller application
2474
2513
  * @summary Submit reseller application
@@ -3705,6 +3744,29 @@ var AccountsApiFp = function (configuration) {
3705
3744
  });
3706
3745
  });
3707
3746
  },
3747
+ /**
3748
+ * Send Xero Document
3749
+ * @summary Send Xero Document
3750
+ * @param {string} reference Reference
3751
+ * @param {*} [options] Override http request option.
3752
+ * @throws {RequiredError}
3753
+ */
3754
+ postSendXeroDocument: function (reference, options) {
3755
+ return __awaiter(this, void 0, void 0, function () {
3756
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3757
+ var _a, _b, _c;
3758
+ return __generator(this, function (_d) {
3759
+ switch (_d.label) {
3760
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSendXeroDocument(reference, options)];
3761
+ case 1:
3762
+ localVarAxiosArgs = _d.sent();
3763
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3764
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postSendXeroDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3765
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3766
+ }
3767
+ });
3768
+ });
3769
+ },
3708
3770
  /**
3709
3771
  * Submit reseller application
3710
3772
  * @summary Submit reseller application
@@ -4269,6 +4331,16 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
4269
4331
  postSendWelcomeEmail: function (id, postSendWelcomeEmailRequest, options) {
4270
4332
  return localVarFp.postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options).then(function (request) { return request(axios, basePath); });
4271
4333
  },
4334
+ /**
4335
+ * Send Xero Document
4336
+ * @summary Send Xero Document
4337
+ * @param {string} reference Reference
4338
+ * @param {*} [options] Override http request option.
4339
+ * @throws {RequiredError}
4340
+ */
4341
+ postSendXeroDocument: function (reference, options) {
4342
+ return localVarFp.postSendXeroDocument(reference, options).then(function (request) { return request(axios, basePath); });
4343
+ },
4272
4344
  /**
4273
4345
  * Submit reseller application
4274
4346
  * @summary Submit reseller application
@@ -4815,6 +4887,17 @@ var AccountsApi = /** @class */ (function (_super) {
4815
4887
  var _this = this;
4816
4888
  return (0, exports.AccountsApiFp)(this.configuration).postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
4817
4889
  };
4890
+ /**
4891
+ * Send Xero Document
4892
+ * @summary Send Xero Document
4893
+ * @param {string} reference Reference
4894
+ * @param {*} [options] Override http request option.
4895
+ * @throws {RequiredError}
4896
+ */
4897
+ AccountsApi.prototype.postSendXeroDocument = function (reference, options) {
4898
+ var _this = this;
4899
+ return (0, exports.AccountsApiFp)(this.configuration).postSendXeroDocument(reference, options).then(function (request) { return request(_this.axios, _this.basePath); });
4900
+ };
4818
4901
  /**
4819
4902
  * Submit reseller application
4820
4903
  * @summary Submit reseller application
@@ -49,6 +49,7 @@ All URIs are relative to *https://bitbucket.org*
49
49
  |[**postSendEmailVerificationEmail**](#postsendemailverificationemail) | **POST** /accounts/contacts/verify/{email} | Send email verification email|
50
50
  |[**postSendPasswordReset**](#postsendpasswordreset) | **POST** /accounts/contacts/password/reset | Send password reset email|
51
51
  |[**postSendWelcomeEmail**](#postsendwelcomeemail) | **POST** /admin/accounts/{id}/email/welcome | |
52
+ |[**postSendXeroDocument**](#postsendxerodocument) | **POST** /admin/finance/documents/send | Send Xero Document|
52
53
  |[**postSubmitResellerApplication**](#postsubmitresellerapplication) | **POST** /accounts/reseller | Submit reseller application|
53
54
  |[**putAdminUpdateAccountContact**](#putadminupdateaccountcontact) | **PUT** /admin/accounts/{id}/contacts/{contact_id} | |
54
55
  |[**putUpdateAccountContact**](#putupdateaccountcontact) | **PUT** /accounts/me/contacts/{email} | Update Account Contact|
@@ -2509,6 +2510,60 @@ No authorization required
2509
2510
 
2510
2511
  [[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)
2511
2512
 
2513
+ # **postSendXeroDocument**
2514
+ > postSendXeroDocument()
2515
+
2516
+ Send Xero Document
2517
+
2518
+ ### Example
2519
+
2520
+ ```typescript
2521
+ import {
2522
+ AccountsApi,
2523
+ Configuration
2524
+ } from 'yellowgrid-api-ts';
2525
+
2526
+ const configuration = new Configuration();
2527
+ const apiInstance = new AccountsApi(configuration);
2528
+
2529
+ let reference: string; //Reference (default to undefined)
2530
+
2531
+ const { status, data } = await apiInstance.postSendXeroDocument(
2532
+ reference
2533
+ );
2534
+ ```
2535
+
2536
+ ### Parameters
2537
+
2538
+ |Name | Type | Description | Notes|
2539
+ |------------- | ------------- | ------------- | -------------|
2540
+ | **reference** | [**string**] | Reference | defaults to undefined|
2541
+
2542
+
2543
+ ### Return type
2544
+
2545
+ void (empty response body)
2546
+
2547
+ ### Authorization
2548
+
2549
+ No authorization required
2550
+
2551
+ ### HTTP request headers
2552
+
2553
+ - **Content-Type**: Not defined
2554
+ - **Accept**: Not defined
2555
+
2556
+
2557
+ ### HTTP response details
2558
+ | Status code | Description | Response headers |
2559
+ |-------------|-------------|------------------|
2560
+ |**204** | No Response | - |
2561
+ |**400** | Bad Request | - |
2562
+ |**401** | Unauthorised | - |
2563
+ |**403** | Access Denied | - |
2564
+
2565
+ [[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)
2566
+
2512
2567
  # **postSubmitResellerApplication**
2513
2568
  > postSubmitResellerApplication()
2514
2569
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.307",
3
+ "version": "3.2.309",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {