yellowgrid-api-ts 3.2.134-dev.0 → 3.2.136-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
@@ -51,6 +51,7 @@ All URIs are relative to *https://localhost*
51
51
 
52
52
  Class | Method | HTTP request | Description
53
53
  ------------ | ------------- | ------------- | -------------
54
+ *AccountsApi* | [**deleteAdminUpdateAccountContact**](docs/AccountsApi.md#deleteadminupdateaccountcontact) | **DELETE** /admin/accounts/{id}/contacts/{contact_id} |
54
55
  *AccountsApi* | [**deleteDeleteClientCredentials**](docs/AccountsApi.md#deletedeleteclientcredentials) | **DELETE** /accounts/me/contacts/credentials/{id} | Delete client credentials
55
56
  *AccountsApi* | [**deleteUpdateAccountContact**](docs/AccountsApi.md#deleteupdateaccountcontact) | **DELETE** /accounts/me/contacts/{email} | Delete Account Contact
56
57
  *AccountsApi* | [**getGetAccount**](docs/AccountsApi.md#getgetaccount) | **GET** /accounts/me | Get Account
@@ -69,6 +70,7 @@ Class | Method | HTTP request | Description
69
70
  *AccountsApi* | [**patchUpdateAccountContactPassword**](docs/AccountsApi.md#patchupdateaccountcontactpassword) | **PATCH** /accounts/contacts/password | Update Account Password
70
71
  *AccountsApi* | [**patchUpdateAccountPhone**](docs/AccountsApi.md#patchupdateaccountphone) | **PATCH** /admin/accounts/{id}/phone |
71
72
  *AccountsApi* | [**patchUpdateAccountVatNumber**](docs/AccountsApi.md#patchupdateaccountvatnumber) | **PATCH** /admin/accounts/{id}/vatNumber |
73
+ *AccountsApi* | [**postAdminCreateAccountContact**](docs/AccountsApi.md#postadmincreateaccountcontact) | **POST** /admin/accounts/{id}/contacts/ |
72
74
  *AccountsApi* | [**postGetAccountContacts**](docs/AccountsApi.md#postgetaccountcontacts) | **POST** /accounts/me/contacts | Add Account Contact
73
75
  *AccountsApi* | [**postGetAccounts**](docs/AccountsApi.md#postgetaccounts) | **POST** /accounts | Create a new customer account
74
76
  *AccountsApi* | [**postGetAdminAccount**](docs/AccountsApi.md#postgetadminaccount) | **POST** /admin/me | Get Admin Account
@@ -77,6 +79,7 @@ Class | Method | HTTP request | Description
77
79
  *AccountsApi* | [**postSendPasswordReset**](docs/AccountsApi.md#postsendpasswordreset) | **POST** /accounts/contacts/password/reset | Send password reset email
78
80
  *AccountsApi* | [**postSendWelcomeEmail**](docs/AccountsApi.md#postsendwelcomeemail) | **POST** /admin/accounts/{id}/email/welcome |
79
81
  *AccountsApi* | [**postSubmitResellerApplication**](docs/AccountsApi.md#postsubmitresellerapplication) | **POST** /accounts/reseller | Submit reseller application
82
+ *AccountsApi* | [**putAdminUpdateAccountContact**](docs/AccountsApi.md#putadminupdateaccountcontact) | **PUT** /admin/accounts/{id}/contacts/{contact_id} |
80
83
  *AccountsApi* | [**putUpdateAccountContact**](docs/AccountsApi.md#putupdateaccountcontact) | **PUT** /accounts/me/contacts/{email} | Update Account Contact
81
84
  *AccountsApi* | [**putUpdateBillingAddress**](docs/AccountsApi.md#putupdatebillingaddress) | **PUT** /admin/accounts/{id}/billing/address |
82
85
  *AccountsApi* | [**putUpdateShippingAddress**](docs/AccountsApi.md#putupdateshippingaddress) | **PUT** /admin/accounts/{id}/shipping/address |
package/api.ts CHANGED
@@ -8215,6 +8215,42 @@ export interface XeroLogEntity {
8215
8215
  */
8216
8216
  export const AccountsApiAxiosParamCreator = function (configuration?: Configuration) {
8217
8217
  return {
8218
+ /**
8219
+ * Delete Account Contact
8220
+ * @param {string} id Account Xero ID
8221
+ * @param {number} contactId Contact ID
8222
+ * @param {*} [options] Override http request option.
8223
+ * @throws {RequiredError}
8224
+ */
8225
+ deleteAdminUpdateAccountContact: async (id: string, contactId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8226
+ // verify required parameter 'id' is not null or undefined
8227
+ assertParamExists('deleteAdminUpdateAccountContact', 'id', id)
8228
+ // verify required parameter 'contactId' is not null or undefined
8229
+ assertParamExists('deleteAdminUpdateAccountContact', 'contactId', contactId)
8230
+ const localVarPath = `/admin/accounts/{id}/contacts/{contact_id}`
8231
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
8232
+ .replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId)));
8233
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8234
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8235
+ let baseOptions;
8236
+ if (configuration) {
8237
+ baseOptions = configuration.baseOptions;
8238
+ }
8239
+
8240
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
8241
+ const localVarHeaderParameter = {} as any;
8242
+ const localVarQueryParameter = {} as any;
8243
+
8244
+
8245
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8246
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8247
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8248
+
8249
+ return {
8250
+ url: toPathString(localVarUrlObj),
8251
+ options: localVarRequestOptions,
8252
+ };
8253
+ },
8218
8254
  /**
8219
8255
  * Delete client credentials
8220
8256
  * @summary Delete client credentials
@@ -8841,6 +8877,41 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8841
8877
  options: localVarRequestOptions,
8842
8878
  };
8843
8879
  },
8880
+ /**
8881
+ * Create Account Contact
8882
+ * @param {string} id Account Xero ID
8883
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
8884
+ * @param {*} [options] Override http request option.
8885
+ * @throws {RequiredError}
8886
+ */
8887
+ postAdminCreateAccountContact: async (id: string, accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8888
+ // verify required parameter 'id' is not null or undefined
8889
+ assertParamExists('postAdminCreateAccountContact', 'id', id)
8890
+ const localVarPath = `/admin/accounts/{id}/contacts/`
8891
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8892
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8893
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8894
+ let baseOptions;
8895
+ if (configuration) {
8896
+ baseOptions = configuration.baseOptions;
8897
+ }
8898
+
8899
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8900
+ const localVarHeaderParameter = {} as any;
8901
+ const localVarQueryParameter = {} as any;
8902
+
8903
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8904
+
8905
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8906
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8907
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8908
+ localVarRequestOptions.data = serializeDataIfNeeded(accountContactRequestModel, localVarRequestOptions, configuration)
8909
+
8910
+ return {
8911
+ url: toPathString(localVarUrlObj),
8912
+ options: localVarRequestOptions,
8913
+ };
8914
+ },
8844
8915
  /**
8845
8916
  * Add Account Contacts
8846
8917
  * @summary Add Account Contact
@@ -9117,6 +9188,45 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
9117
9188
  options: localVarRequestOptions,
9118
9189
  };
9119
9190
  },
9191
+ /**
9192
+ * Update Account Contact
9193
+ * @param {string} id Account Xero ID
9194
+ * @param {number} contactId Contact ID
9195
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
9196
+ * @param {*} [options] Override http request option.
9197
+ * @throws {RequiredError}
9198
+ */
9199
+ putAdminUpdateAccountContact: async (id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9200
+ // verify required parameter 'id' is not null or undefined
9201
+ assertParamExists('putAdminUpdateAccountContact', 'id', id)
9202
+ // verify required parameter 'contactId' is not null or undefined
9203
+ assertParamExists('putAdminUpdateAccountContact', 'contactId', contactId)
9204
+ const localVarPath = `/admin/accounts/{id}/contacts/{contact_id}`
9205
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
9206
+ .replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId)));
9207
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9208
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9209
+ let baseOptions;
9210
+ if (configuration) {
9211
+ baseOptions = configuration.baseOptions;
9212
+ }
9213
+
9214
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
9215
+ const localVarHeaderParameter = {} as any;
9216
+ const localVarQueryParameter = {} as any;
9217
+
9218
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9219
+
9220
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9221
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9222
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9223
+ localVarRequestOptions.data = serializeDataIfNeeded(accountContactRequestModel, localVarRequestOptions, configuration)
9224
+
9225
+ return {
9226
+ url: toPathString(localVarUrlObj),
9227
+ options: localVarRequestOptions,
9228
+ };
9229
+ },
9120
9230
  /**
9121
9231
  * Update Account Contacts
9122
9232
  * @summary Update Account Contact
@@ -9232,6 +9342,19 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
9232
9342
  export const AccountsApiFp = function(configuration?: Configuration) {
9233
9343
  const localVarAxiosParamCreator = AccountsApiAxiosParamCreator(configuration)
9234
9344
  return {
9345
+ /**
9346
+ * Delete Account Contact
9347
+ * @param {string} id Account Xero ID
9348
+ * @param {number} contactId Contact ID
9349
+ * @param {*} [options] Override http request option.
9350
+ * @throws {RequiredError}
9351
+ */
9352
+ async deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
9353
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAdminUpdateAccountContact(id, contactId, options);
9354
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9355
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteAdminUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
9356
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9357
+ },
9235
9358
  /**
9236
9359
  * Delete client credentials
9237
9360
  * @summary Delete client credentials
@@ -9465,6 +9588,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
9465
9588
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountVatNumber']?.[localVarOperationServerIndex]?.url;
9466
9589
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9467
9590
  },
9591
+ /**
9592
+ * Create Account Contact
9593
+ * @param {string} id Account Xero ID
9594
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
9595
+ * @param {*} [options] Override http request option.
9596
+ * @throws {RequiredError}
9597
+ */
9598
+ async postAdminCreateAccountContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
9599
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postAdminCreateAccountContact(id, accountContactRequestModel, options);
9600
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9601
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.postAdminCreateAccountContact']?.[localVarOperationServerIndex]?.url;
9602
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9603
+ },
9468
9604
  /**
9469
9605
  * Add Account Contacts
9470
9606
  * @summary Add Account Contact
@@ -9570,6 +9706,20 @@ export const AccountsApiFp = function(configuration?: Configuration) {
9570
9706
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.postSubmitResellerApplication']?.[localVarOperationServerIndex]?.url;
9571
9707
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9572
9708
  },
9709
+ /**
9710
+ * Update Account Contact
9711
+ * @param {string} id Account Xero ID
9712
+ * @param {number} contactId Contact ID
9713
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
9714
+ * @param {*} [options] Override http request option.
9715
+ * @throws {RequiredError}
9716
+ */
9717
+ async putAdminUpdateAccountContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
9718
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options);
9719
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9720
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.putAdminUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
9721
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9722
+ },
9573
9723
  /**
9574
9724
  * Update Account Contacts
9575
9725
  * @summary Update Account Contact
@@ -9619,6 +9769,16 @@ export const AccountsApiFp = function(configuration?: Configuration) {
9619
9769
  export const AccountsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
9620
9770
  const localVarFp = AccountsApiFp(configuration)
9621
9771
  return {
9772
+ /**
9773
+ * Delete Account Contact
9774
+ * @param {string} id Account Xero ID
9775
+ * @param {number} contactId Contact ID
9776
+ * @param {*} [options] Override http request option.
9777
+ * @throws {RequiredError}
9778
+ */
9779
+ deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9780
+ return localVarFp.deleteAdminUpdateAccountContact(id, contactId, options).then((request) => request(axios, basePath));
9781
+ },
9622
9782
  /**
9623
9783
  * Delete client credentials
9624
9784
  * @summary Delete client credentials
@@ -9798,6 +9958,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
9798
9958
  patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9799
9959
  return localVarFp.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then((request) => request(axios, basePath));
9800
9960
  },
9961
+ /**
9962
+ * Create Account Contact
9963
+ * @param {string} id Account Xero ID
9964
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
9965
+ * @param {*} [options] Override http request option.
9966
+ * @throws {RequiredError}
9967
+ */
9968
+ postAdminCreateAccountContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9969
+ return localVarFp.postAdminCreateAccountContact(id, accountContactRequestModel, options).then((request) => request(axios, basePath));
9970
+ },
9801
9971
  /**
9802
9972
  * Add Account Contacts
9803
9973
  * @summary Add Account Contact
@@ -9879,6 +10049,17 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
9879
10049
  postSubmitResellerApplication(creditRequired?: number, companyNumber?: string, vatNumber?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9880
10050
  return localVarFp.postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then((request) => request(axios, basePath));
9881
10051
  },
10052
+ /**
10053
+ * Update Account Contact
10054
+ * @param {string} id Account Xero ID
10055
+ * @param {number} contactId Contact ID
10056
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
10057
+ * @param {*} [options] Override http request option.
10058
+ * @throws {RequiredError}
10059
+ */
10060
+ putAdminUpdateAccountContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<void> {
10061
+ return localVarFp.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then((request) => request(axios, basePath));
10062
+ },
9882
10063
  /**
9883
10064
  * Update Account Contacts
9884
10065
  * @summary Update Account Contact
@@ -9917,6 +10098,17 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
9917
10098
  * AccountsApi - object-oriented interface
9918
10099
  */
9919
10100
  export class AccountsApi extends BaseAPI {
10101
+ /**
10102
+ * Delete Account Contact
10103
+ * @param {string} id Account Xero ID
10104
+ * @param {number} contactId Contact ID
10105
+ * @param {*} [options] Override http request option.
10106
+ * @throws {RequiredError}
10107
+ */
10108
+ public deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig) {
10109
+ return AccountsApiFp(this.configuration).deleteAdminUpdateAccountContact(id, contactId, options).then((request) => request(this.axios, this.basePath));
10110
+ }
10111
+
9920
10112
  /**
9921
10113
  * Delete client credentials
9922
10114
  * @summary Delete client credentials
@@ -10114,6 +10306,17 @@ export class AccountsApi extends BaseAPI {
10114
10306
  return AccountsApiFp(this.configuration).patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then((request) => request(this.axios, this.basePath));
10115
10307
  }
10116
10308
 
10309
+ /**
10310
+ * Create Account Contact
10311
+ * @param {string} id Account Xero ID
10312
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
10313
+ * @param {*} [options] Override http request option.
10314
+ * @throws {RequiredError}
10315
+ */
10316
+ public postAdminCreateAccountContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig) {
10317
+ return AccountsApiFp(this.configuration).postAdminCreateAccountContact(id, accountContactRequestModel, options).then((request) => request(this.axios, this.basePath));
10318
+ }
10319
+
10117
10320
  /**
10118
10321
  * Add Account Contacts
10119
10322
  * @summary Add Account Contact
@@ -10203,6 +10406,18 @@ export class AccountsApi extends BaseAPI {
10203
10406
  return AccountsApiFp(this.configuration).postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then((request) => request(this.axios, this.basePath));
10204
10407
  }
10205
10408
 
10409
+ /**
10410
+ * Update Account Contact
10411
+ * @param {string} id Account Xero ID
10412
+ * @param {number} contactId Contact ID
10413
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
10414
+ * @param {*} [options] Override http request option.
10415
+ * @throws {RequiredError}
10416
+ */
10417
+ public putAdminUpdateAccountContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig) {
10418
+ return AccountsApiFp(this.configuration).putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then((request) => request(this.axios, this.basePath));
10419
+ }
10420
+
10206
10421
  /**
10207
10422
  * Update Account Contacts
10208
10423
  * @summary Update Account Contact
package/dist/api.d.ts CHANGED
@@ -8110,6 +8110,14 @@ export interface XeroLogEntity {
8110
8110
  * AccountsApi - axios parameter creator
8111
8111
  */
8112
8112
  export declare const AccountsApiAxiosParamCreator: (configuration?: Configuration) => {
8113
+ /**
8114
+ * Delete Account Contact
8115
+ * @param {string} id Account Xero ID
8116
+ * @param {number} contactId Contact ID
8117
+ * @param {*} [options] Override http request option.
8118
+ * @throws {RequiredError}
8119
+ */
8120
+ deleteAdminUpdateAccountContact: (id: string, contactId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8113
8121
  /**
8114
8122
  * Delete client credentials
8115
8123
  * @summary Delete client credentials
@@ -8253,6 +8261,14 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
8253
8261
  * @throws {RequiredError}
8254
8262
  */
8255
8263
  patchUpdateAccountVatNumber: (id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8264
+ /**
8265
+ * Create Account Contact
8266
+ * @param {string} id Account Xero ID
8267
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
8268
+ * @param {*} [options] Override http request option.
8269
+ * @throws {RequiredError}
8270
+ */
8271
+ postAdminCreateAccountContact: (id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8256
8272
  /**
8257
8273
  * Add Account Contacts
8258
8274
  * @summary Add Account Contact
@@ -8318,6 +8334,15 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
8318
8334
  * @throws {RequiredError}
8319
8335
  */
8320
8336
  postSubmitResellerApplication: (creditRequired?: number, companyNumber?: string, vatNumber?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8337
+ /**
8338
+ * Update Account Contact
8339
+ * @param {string} id Account Xero ID
8340
+ * @param {number} contactId Contact ID
8341
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
8342
+ * @param {*} [options] Override http request option.
8343
+ * @throws {RequiredError}
8344
+ */
8345
+ putAdminUpdateAccountContact: (id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8321
8346
  /**
8322
8347
  * Update Account Contacts
8323
8348
  * @summary Update Account Contact
@@ -8348,6 +8373,14 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
8348
8373
  * AccountsApi - functional programming interface
8349
8374
  */
8350
8375
  export declare const AccountsApiFp: (configuration?: Configuration) => {
8376
+ /**
8377
+ * Delete Account Contact
8378
+ * @param {string} id Account Xero ID
8379
+ * @param {number} contactId Contact ID
8380
+ * @param {*} [options] Override http request option.
8381
+ * @throws {RequiredError}
8382
+ */
8383
+ deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
8351
8384
  /**
8352
8385
  * Delete client credentials
8353
8386
  * @summary Delete client credentials
@@ -8491,6 +8524,14 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
8491
8524
  * @throws {RequiredError}
8492
8525
  */
8493
8526
  patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
8527
+ /**
8528
+ * Create Account Contact
8529
+ * @param {string} id Account Xero ID
8530
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
8531
+ * @param {*} [options] Override http request option.
8532
+ * @throws {RequiredError}
8533
+ */
8534
+ postAdminCreateAccountContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
8494
8535
  /**
8495
8536
  * Add Account Contacts
8496
8537
  * @summary Add Account Contact
@@ -8556,6 +8597,15 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
8556
8597
  * @throws {RequiredError}
8557
8598
  */
8558
8599
  postSubmitResellerApplication(creditRequired?: number, companyNumber?: string, vatNumber?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
8600
+ /**
8601
+ * Update Account Contact
8602
+ * @param {string} id Account Xero ID
8603
+ * @param {number} contactId Contact ID
8604
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
8605
+ * @param {*} [options] Override http request option.
8606
+ * @throws {RequiredError}
8607
+ */
8608
+ putAdminUpdateAccountContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
8559
8609
  /**
8560
8610
  * Update Account Contacts
8561
8611
  * @summary Update Account Contact
@@ -8586,6 +8636,14 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
8586
8636
  * AccountsApi - factory interface
8587
8637
  */
8588
8638
  export declare const AccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
8639
+ /**
8640
+ * Delete Account Contact
8641
+ * @param {string} id Account Xero ID
8642
+ * @param {number} contactId Contact ID
8643
+ * @param {*} [options] Override http request option.
8644
+ * @throws {RequiredError}
8645
+ */
8646
+ deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
8589
8647
  /**
8590
8648
  * Delete client credentials
8591
8649
  * @summary Delete client credentials
@@ -8729,6 +8787,14 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
8729
8787
  * @throws {RequiredError}
8730
8788
  */
8731
8789
  patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
8790
+ /**
8791
+ * Create Account Contact
8792
+ * @param {string} id Account Xero ID
8793
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
8794
+ * @param {*} [options] Override http request option.
8795
+ * @throws {RequiredError}
8796
+ */
8797
+ postAdminCreateAccountContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<void>;
8732
8798
  /**
8733
8799
  * Add Account Contacts
8734
8800
  * @summary Add Account Contact
@@ -8794,6 +8860,15 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
8794
8860
  * @throws {RequiredError}
8795
8861
  */
8796
8862
  postSubmitResellerApplication(creditRequired?: number, companyNumber?: string, vatNumber?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
8863
+ /**
8864
+ * Update Account Contact
8865
+ * @param {string} id Account Xero ID
8866
+ * @param {number} contactId Contact ID
8867
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
8868
+ * @param {*} [options] Override http request option.
8869
+ * @throws {RequiredError}
8870
+ */
8871
+ putAdminUpdateAccountContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<void>;
8797
8872
  /**
8798
8873
  * Update Account Contacts
8799
8874
  * @summary Update Account Contact
@@ -8824,6 +8899,14 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
8824
8899
  * AccountsApi - object-oriented interface
8825
8900
  */
8826
8901
  export declare class AccountsApi extends BaseAPI {
8902
+ /**
8903
+ * Delete Account Contact
8904
+ * @param {string} id Account Xero ID
8905
+ * @param {number} contactId Contact ID
8906
+ * @param {*} [options] Override http request option.
8907
+ * @throws {RequiredError}
8908
+ */
8909
+ deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
8827
8910
  /**
8828
8911
  * Delete client credentials
8829
8912
  * @summary Delete client credentials
@@ -8967,6 +9050,14 @@ export declare class AccountsApi extends BaseAPI {
8967
9050
  * @throws {RequiredError}
8968
9051
  */
8969
9052
  patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
9053
+ /**
9054
+ * Create Account Contact
9055
+ * @param {string} id Account Xero ID
9056
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
9057
+ * @param {*} [options] Override http request option.
9058
+ * @throws {RequiredError}
9059
+ */
9060
+ postAdminCreateAccountContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
8970
9061
  /**
8971
9062
  * Add Account Contacts
8972
9063
  * @summary Add Account Contact
@@ -9032,6 +9123,15 @@ export declare class AccountsApi extends BaseAPI {
9032
9123
  * @throws {RequiredError}
9033
9124
  */
9034
9125
  postSubmitResellerApplication(creditRequired?: number, companyNumber?: string, vatNumber?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
9126
+ /**
9127
+ * Update Account Contact
9128
+ * @param {string} id Account Xero ID
9129
+ * @param {number} contactId Contact ID
9130
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
9131
+ * @param {*} [options] Override http request option.
9132
+ * @throws {RequiredError}
9133
+ */
9134
+ putAdminUpdateAccountContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
9035
9135
  /**
9036
9136
  * Update Account Contacts
9037
9137
  * @summary Update Account Contact
package/dist/api.js CHANGED
@@ -429,6 +429,46 @@ exports.UpgradeRequestModelSchoolTypeEnum = {
429
429
  var AccountsApiAxiosParamCreator = function (configuration) {
430
430
  var _this = this;
431
431
  return {
432
+ /**
433
+ * Delete Account Contact
434
+ * @param {string} id Account Xero ID
435
+ * @param {number} contactId Contact ID
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ */
439
+ deleteAdminUpdateAccountContact: function (id_1, contactId_1) {
440
+ var args_1 = [];
441
+ for (var _i = 2; _i < arguments.length; _i++) {
442
+ args_1[_i - 2] = arguments[_i];
443
+ }
444
+ return __awaiter(_this, __spreadArray([id_1, contactId_1], args_1, true), void 0, function (id, contactId, options) {
445
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
446
+ if (options === void 0) { options = {}; }
447
+ return __generator(this, function (_a) {
448
+ // verify required parameter 'id' is not null or undefined
449
+ (0, common_1.assertParamExists)('deleteAdminUpdateAccountContact', 'id', id);
450
+ // verify required parameter 'contactId' is not null or undefined
451
+ (0, common_1.assertParamExists)('deleteAdminUpdateAccountContact', 'contactId', contactId);
452
+ localVarPath = "/admin/accounts/{id}/contacts/{contact_id}"
453
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
454
+ .replace("{".concat("contact_id", "}"), encodeURIComponent(String(contactId)));
455
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
456
+ if (configuration) {
457
+ baseOptions = configuration.baseOptions;
458
+ }
459
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
460
+ localVarHeaderParameter = {};
461
+ localVarQueryParameter = {};
462
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
463
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
464
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
465
+ return [2 /*return*/, {
466
+ url: (0, common_1.toPathString)(localVarUrlObj),
467
+ options: localVarRequestOptions,
468
+ }];
469
+ });
470
+ });
471
+ },
432
472
  /**
433
473
  * Delete client credentials
434
474
  * @summary Delete client credentials
@@ -1120,6 +1160,45 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1120
1160
  });
1121
1161
  });
1122
1162
  },
1163
+ /**
1164
+ * Create Account Contact
1165
+ * @param {string} id Account Xero ID
1166
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
1167
+ * @param {*} [options] Override http request option.
1168
+ * @throws {RequiredError}
1169
+ */
1170
+ postAdminCreateAccountContact: function (id_1, accountContactRequestModel_1) {
1171
+ var args_1 = [];
1172
+ for (var _i = 2; _i < arguments.length; _i++) {
1173
+ args_1[_i - 2] = arguments[_i];
1174
+ }
1175
+ return __awaiter(_this, __spreadArray([id_1, accountContactRequestModel_1], args_1, true), void 0, function (id, accountContactRequestModel, options) {
1176
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1177
+ if (options === void 0) { options = {}; }
1178
+ return __generator(this, function (_a) {
1179
+ // verify required parameter 'id' is not null or undefined
1180
+ (0, common_1.assertParamExists)('postAdminCreateAccountContact', 'id', id);
1181
+ localVarPath = "/admin/accounts/{id}/contacts/"
1182
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1183
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1184
+ if (configuration) {
1185
+ baseOptions = configuration.baseOptions;
1186
+ }
1187
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1188
+ localVarHeaderParameter = {};
1189
+ localVarQueryParameter = {};
1190
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1191
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1192
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1193
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1194
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountContactRequestModel, localVarRequestOptions, configuration);
1195
+ return [2 /*return*/, {
1196
+ url: (0, common_1.toPathString)(localVarUrlObj),
1197
+ options: localVarRequestOptions,
1198
+ }];
1199
+ });
1200
+ });
1201
+ },
1123
1202
  /**
1124
1203
  * Add Account Contacts
1125
1204
  * @summary Add Account Contact
@@ -1424,6 +1503,49 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1424
1503
  });
1425
1504
  });
1426
1505
  },
1506
+ /**
1507
+ * Update Account Contact
1508
+ * @param {string} id Account Xero ID
1509
+ * @param {number} contactId Contact ID
1510
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
1511
+ * @param {*} [options] Override http request option.
1512
+ * @throws {RequiredError}
1513
+ */
1514
+ putAdminUpdateAccountContact: function (id_1, contactId_1, accountContactRequestModel_1) {
1515
+ var args_1 = [];
1516
+ for (var _i = 3; _i < arguments.length; _i++) {
1517
+ args_1[_i - 3] = arguments[_i];
1518
+ }
1519
+ return __awaiter(_this, __spreadArray([id_1, contactId_1, accountContactRequestModel_1], args_1, true), void 0, function (id, contactId, accountContactRequestModel, options) {
1520
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1521
+ if (options === void 0) { options = {}; }
1522
+ return __generator(this, function (_a) {
1523
+ // verify required parameter 'id' is not null or undefined
1524
+ (0, common_1.assertParamExists)('putAdminUpdateAccountContact', 'id', id);
1525
+ // verify required parameter 'contactId' is not null or undefined
1526
+ (0, common_1.assertParamExists)('putAdminUpdateAccountContact', 'contactId', contactId);
1527
+ localVarPath = "/admin/accounts/{id}/contacts/{contact_id}"
1528
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
1529
+ .replace("{".concat("contact_id", "}"), encodeURIComponent(String(contactId)));
1530
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1531
+ if (configuration) {
1532
+ baseOptions = configuration.baseOptions;
1533
+ }
1534
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
1535
+ localVarHeaderParameter = {};
1536
+ localVarQueryParameter = {};
1537
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1538
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1539
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1540
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1541
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountContactRequestModel, localVarRequestOptions, configuration);
1542
+ return [2 /*return*/, {
1543
+ url: (0, common_1.toPathString)(localVarUrlObj),
1544
+ options: localVarRequestOptions,
1545
+ }];
1546
+ });
1547
+ });
1548
+ },
1427
1549
  /**
1428
1550
  * Update Account Contacts
1429
1551
  * @summary Update Account Contact
@@ -1551,6 +1673,29 @@ exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator;
1551
1673
  var AccountsApiFp = function (configuration) {
1552
1674
  var localVarAxiosParamCreator = (0, exports.AccountsApiAxiosParamCreator)(configuration);
1553
1675
  return {
1676
+ /**
1677
+ * Delete Account Contact
1678
+ * @param {string} id Account Xero ID
1679
+ * @param {number} contactId Contact ID
1680
+ * @param {*} [options] Override http request option.
1681
+ * @throws {RequiredError}
1682
+ */
1683
+ deleteAdminUpdateAccountContact: function (id, contactId, options) {
1684
+ return __awaiter(this, void 0, void 0, function () {
1685
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1686
+ var _a, _b, _c;
1687
+ return __generator(this, function (_d) {
1688
+ switch (_d.label) {
1689
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAdminUpdateAccountContact(id, contactId, options)];
1690
+ case 1:
1691
+ localVarAxiosArgs = _d.sent();
1692
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1693
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteAdminUpdateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1694
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1695
+ }
1696
+ });
1697
+ });
1698
+ },
1554
1699
  /**
1555
1700
  * Delete client credentials
1556
1701
  * @summary Delete client credentials
@@ -1964,6 +2109,29 @@ var AccountsApiFp = function (configuration) {
1964
2109
  });
1965
2110
  });
1966
2111
  },
2112
+ /**
2113
+ * Create Account Contact
2114
+ * @param {string} id Account Xero ID
2115
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
2116
+ * @param {*} [options] Override http request option.
2117
+ * @throws {RequiredError}
2118
+ */
2119
+ postAdminCreateAccountContact: function (id, accountContactRequestModel, options) {
2120
+ return __awaiter(this, void 0, void 0, function () {
2121
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2122
+ var _a, _b, _c;
2123
+ return __generator(this, function (_d) {
2124
+ switch (_d.label) {
2125
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAdminCreateAccountContact(id, accountContactRequestModel, options)];
2126
+ case 1:
2127
+ localVarAxiosArgs = _d.sent();
2128
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2129
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postAdminCreateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2130
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2131
+ }
2132
+ });
2133
+ });
2134
+ },
1967
2135
  /**
1968
2136
  * Add Account Contacts
1969
2137
  * @summary Add Account Contact
@@ -2149,6 +2317,30 @@ var AccountsApiFp = function (configuration) {
2149
2317
  });
2150
2318
  });
2151
2319
  },
2320
+ /**
2321
+ * Update Account Contact
2322
+ * @param {string} id Account Xero ID
2323
+ * @param {number} contactId Contact ID
2324
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
2325
+ * @param {*} [options] Override http request option.
2326
+ * @throws {RequiredError}
2327
+ */
2328
+ putAdminUpdateAccountContact: function (id, contactId, accountContactRequestModel, options) {
2329
+ return __awaiter(this, void 0, void 0, function () {
2330
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2331
+ var _a, _b, _c;
2332
+ return __generator(this, function (_d) {
2333
+ switch (_d.label) {
2334
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options)];
2335
+ case 1:
2336
+ localVarAxiosArgs = _d.sent();
2337
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2338
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.putAdminUpdateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2339
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2340
+ }
2341
+ });
2342
+ });
2343
+ },
2152
2344
  /**
2153
2345
  * Update Account Contacts
2154
2346
  * @summary Update Account Contact
@@ -2228,6 +2420,16 @@ exports.AccountsApiFp = AccountsApiFp;
2228
2420
  var AccountsApiFactory = function (configuration, basePath, axios) {
2229
2421
  var localVarFp = (0, exports.AccountsApiFp)(configuration);
2230
2422
  return {
2423
+ /**
2424
+ * Delete Account Contact
2425
+ * @param {string} id Account Xero ID
2426
+ * @param {number} contactId Contact ID
2427
+ * @param {*} [options] Override http request option.
2428
+ * @throws {RequiredError}
2429
+ */
2430
+ deleteAdminUpdateAccountContact: function (id, contactId, options) {
2431
+ return localVarFp.deleteAdminUpdateAccountContact(id, contactId, options).then(function (request) { return request(axios, basePath); });
2432
+ },
2231
2433
  /**
2232
2434
  * Delete client credentials
2233
2435
  * @summary Delete client credentials
@@ -2407,6 +2609,16 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
2407
2609
  patchUpdateAccountVatNumber: function (id, patchUpdateAccountVatNumberRequest, options) {
2408
2610
  return localVarFp.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then(function (request) { return request(axios, basePath); });
2409
2611
  },
2612
+ /**
2613
+ * Create Account Contact
2614
+ * @param {string} id Account Xero ID
2615
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
2616
+ * @param {*} [options] Override http request option.
2617
+ * @throws {RequiredError}
2618
+ */
2619
+ postAdminCreateAccountContact: function (id, accountContactRequestModel, options) {
2620
+ return localVarFp.postAdminCreateAccountContact(id, accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
2621
+ },
2410
2622
  /**
2411
2623
  * Add Account Contacts
2412
2624
  * @summary Add Account Contact
@@ -2488,6 +2700,17 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
2488
2700
  postSubmitResellerApplication: function (creditRequired, companyNumber, vatNumber, options) {
2489
2701
  return localVarFp.postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then(function (request) { return request(axios, basePath); });
2490
2702
  },
2703
+ /**
2704
+ * Update Account Contact
2705
+ * @param {string} id Account Xero ID
2706
+ * @param {number} contactId Contact ID
2707
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
2708
+ * @param {*} [options] Override http request option.
2709
+ * @throws {RequiredError}
2710
+ */
2711
+ putAdminUpdateAccountContact: function (id, contactId, accountContactRequestModel, options) {
2712
+ return localVarFp.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
2713
+ },
2491
2714
  /**
2492
2715
  * Update Account Contacts
2493
2716
  * @summary Update Account Contact
@@ -2530,6 +2753,17 @@ var AccountsApi = /** @class */ (function (_super) {
2530
2753
  function AccountsApi() {
2531
2754
  return _super !== null && _super.apply(this, arguments) || this;
2532
2755
  }
2756
+ /**
2757
+ * Delete Account Contact
2758
+ * @param {string} id Account Xero ID
2759
+ * @param {number} contactId Contact ID
2760
+ * @param {*} [options] Override http request option.
2761
+ * @throws {RequiredError}
2762
+ */
2763
+ AccountsApi.prototype.deleteAdminUpdateAccountContact = function (id, contactId, options) {
2764
+ var _this = this;
2765
+ return (0, exports.AccountsApiFp)(this.configuration).deleteAdminUpdateAccountContact(id, contactId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2766
+ };
2533
2767
  /**
2534
2768
  * Delete client credentials
2535
2769
  * @summary Delete client credentials
@@ -2727,6 +2961,17 @@ var AccountsApi = /** @class */ (function (_super) {
2727
2961
  var _this = this;
2728
2962
  return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
2729
2963
  };
2964
+ /**
2965
+ * Create Account Contact
2966
+ * @param {string} id Account Xero ID
2967
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
2968
+ * @param {*} [options] Override http request option.
2969
+ * @throws {RequiredError}
2970
+ */
2971
+ AccountsApi.prototype.postAdminCreateAccountContact = function (id, accountContactRequestModel, options) {
2972
+ var _this = this;
2973
+ return (0, exports.AccountsApiFp)(this.configuration).postAdminCreateAccountContact(id, accountContactRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
2974
+ };
2730
2975
  /**
2731
2976
  * Add Account Contacts
2732
2977
  * @summary Add Account Contact
@@ -2816,6 +3061,18 @@ var AccountsApi = /** @class */ (function (_super) {
2816
3061
  var _this = this;
2817
3062
  return (0, exports.AccountsApiFp)(this.configuration).postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then(function (request) { return request(_this.axios, _this.basePath); });
2818
3063
  };
3064
+ /**
3065
+ * Update Account Contact
3066
+ * @param {string} id Account Xero ID
3067
+ * @param {number} contactId Contact ID
3068
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
3069
+ * @param {*} [options] Override http request option.
3070
+ * @throws {RequiredError}
3071
+ */
3072
+ AccountsApi.prototype.putAdminUpdateAccountContact = function (id, contactId, accountContactRequestModel, options) {
3073
+ var _this = this;
3074
+ return (0, exports.AccountsApiFp)(this.configuration).putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
3075
+ };
2819
3076
  /**
2820
3077
  * Update Account Contacts
2821
3078
  * @summary Update Account Contact
@@ -9,5 +9,10 @@ export declare const ServiceEnum: {
9
9
  readonly value: 1;
10
10
  readonly publicValue: "SIP Trunks";
11
11
  };
12
+ readonly CUSTOMER_PORTAL: {
13
+ readonly name: "CUSTOMER_PORTAL";
14
+ readonly value: 2;
15
+ readonly publicValue: "Customer Portal";
16
+ };
12
17
  };
13
18
  export type ServiceEnum = typeof ServiceEnum;
@@ -11,5 +11,10 @@ exports.ServiceEnum = {
11
11
  "name": "SIP_TRUNKS",
12
12
  "value": 1,
13
13
  "publicValue": "SIP Trunks"
14
+ },
15
+ "CUSTOMER_PORTAL": {
16
+ "name": "CUSTOMER_PORTAL",
17
+ "value": 2,
18
+ "publicValue": "Customer Portal"
14
19
  }
15
20
  };
@@ -4,6 +4,7 @@ All URIs are relative to *https://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**deleteAdminUpdateAccountContact**](#deleteadminupdateaccountcontact) | **DELETE** /admin/accounts/{id}/contacts/{contact_id} | |
7
8
  |[**deleteDeleteClientCredentials**](#deletedeleteclientcredentials) | **DELETE** /accounts/me/contacts/credentials/{id} | Delete client credentials|
8
9
  |[**deleteUpdateAccountContact**](#deleteupdateaccountcontact) | **DELETE** /accounts/me/contacts/{email} | Delete Account Contact|
9
10
  |[**getGetAccount**](#getgetaccount) | **GET** /accounts/me | Get Account|
@@ -22,6 +23,7 @@ All URIs are relative to *https://localhost*
22
23
  |[**patchUpdateAccountContactPassword**](#patchupdateaccountcontactpassword) | **PATCH** /accounts/contacts/password | Update Account Password|
23
24
  |[**patchUpdateAccountPhone**](#patchupdateaccountphone) | **PATCH** /admin/accounts/{id}/phone | |
24
25
  |[**patchUpdateAccountVatNumber**](#patchupdateaccountvatnumber) | **PATCH** /admin/accounts/{id}/vatNumber | |
26
+ |[**postAdminCreateAccountContact**](#postadmincreateaccountcontact) | **POST** /admin/accounts/{id}/contacts/ | |
25
27
  |[**postGetAccountContacts**](#postgetaccountcontacts) | **POST** /accounts/me/contacts | Add Account Contact|
26
28
  |[**postGetAccounts**](#postgetaccounts) | **POST** /accounts | Create a new customer account|
27
29
  |[**postGetAdminAccount**](#postgetadminaccount) | **POST** /admin/me | Get Admin Account|
@@ -30,10 +32,68 @@ All URIs are relative to *https://localhost*
30
32
  |[**postSendPasswordReset**](#postsendpasswordreset) | **POST** /accounts/contacts/password/reset | Send password reset email|
31
33
  |[**postSendWelcomeEmail**](#postsendwelcomeemail) | **POST** /admin/accounts/{id}/email/welcome | |
32
34
  |[**postSubmitResellerApplication**](#postsubmitresellerapplication) | **POST** /accounts/reseller | Submit reseller application|
35
+ |[**putAdminUpdateAccountContact**](#putadminupdateaccountcontact) | **PUT** /admin/accounts/{id}/contacts/{contact_id} | |
33
36
  |[**putUpdateAccountContact**](#putupdateaccountcontact) | **PUT** /accounts/me/contacts/{email} | Update Account Contact|
34
37
  |[**putUpdateBillingAddress**](#putupdatebillingaddress) | **PUT** /admin/accounts/{id}/billing/address | |
35
38
  |[**putUpdateShippingAddress**](#putupdateshippingaddress) | **PUT** /admin/accounts/{id}/shipping/address | |
36
39
 
40
+ # **deleteAdminUpdateAccountContact**
41
+ > deleteAdminUpdateAccountContact()
42
+
43
+ Delete Account Contact
44
+
45
+ ### Example
46
+
47
+ ```typescript
48
+ import {
49
+ AccountsApi,
50
+ Configuration
51
+ } from 'yellowgrid-api-ts';
52
+
53
+ const configuration = new Configuration();
54
+ const apiInstance = new AccountsApi(configuration);
55
+
56
+ let id: string; //Account Xero ID (default to undefined)
57
+ let contactId: number; //Contact ID (default to undefined)
58
+
59
+ const { status, data } = await apiInstance.deleteAdminUpdateAccountContact(
60
+ id,
61
+ contactId
62
+ );
63
+ ```
64
+
65
+ ### Parameters
66
+
67
+ |Name | Type | Description | Notes|
68
+ |------------- | ------------- | ------------- | -------------|
69
+ | **id** | [**string**] | Account Xero ID | defaults to undefined|
70
+ | **contactId** | [**number**] | Contact ID | defaults to undefined|
71
+
72
+
73
+ ### Return type
74
+
75
+ void (empty response body)
76
+
77
+ ### Authorization
78
+
79
+ No authorization required
80
+
81
+ ### HTTP request headers
82
+
83
+ - **Content-Type**: Not defined
84
+ - **Accept**: Not defined
85
+
86
+
87
+ ### HTTP response details
88
+ | Status code | Description | Response headers |
89
+ |-------------|-------------|------------------|
90
+ |**204** | No Response | - |
91
+ |**400** | Bad Request | - |
92
+ |**401** | Unauthorised | - |
93
+ |**403** | Access Denied | - |
94
+
95
+ [[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)
96
+
37
97
  # **deleteDeleteClientCredentials**
38
98
  > deleteDeleteClientCredentials()
39
99
 
@@ -1021,6 +1081,64 @@ No authorization required
1021
1081
 
1022
1082
  [[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)
1023
1083
 
1084
+ # **postAdminCreateAccountContact**
1085
+ > postAdminCreateAccountContact()
1086
+
1087
+ Create Account Contact
1088
+
1089
+ ### Example
1090
+
1091
+ ```typescript
1092
+ import {
1093
+ AccountsApi,
1094
+ Configuration,
1095
+ AccountContactRequestModel
1096
+ } from 'yellowgrid-api-ts';
1097
+
1098
+ const configuration = new Configuration();
1099
+ const apiInstance = new AccountsApi(configuration);
1100
+
1101
+ let id: string; //Account Xero ID (default to undefined)
1102
+ let accountContactRequestModel: AccountContactRequestModel; //Create Account Contact Request (optional)
1103
+
1104
+ const { status, data } = await apiInstance.postAdminCreateAccountContact(
1105
+ id,
1106
+ accountContactRequestModel
1107
+ );
1108
+ ```
1109
+
1110
+ ### Parameters
1111
+
1112
+ |Name | Type | Description | Notes|
1113
+ |------------- | ------------- | ------------- | -------------|
1114
+ | **accountContactRequestModel** | **AccountContactRequestModel**| Create Account Contact Request | |
1115
+ | **id** | [**string**] | Account Xero ID | defaults to undefined|
1116
+
1117
+
1118
+ ### Return type
1119
+
1120
+ void (empty response body)
1121
+
1122
+ ### Authorization
1123
+
1124
+ No authorization required
1125
+
1126
+ ### HTTP request headers
1127
+
1128
+ - **Content-Type**: application/json
1129
+ - **Accept**: Not defined
1130
+
1131
+
1132
+ ### HTTP response details
1133
+ | Status code | Description | Response headers |
1134
+ |-------------|-------------|------------------|
1135
+ |**201** | No Response | - |
1136
+ |**400** | Bad Request | - |
1137
+ |**401** | Unauthorised | - |
1138
+ |**403** | Access Denied | - |
1139
+
1140
+ [[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)
1141
+
1024
1142
  # **postGetAccountContacts**
1025
1143
  > postGetAccountContacts()
1026
1144
 
@@ -1459,6 +1577,67 @@ No authorization required
1459
1577
 
1460
1578
  [[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)
1461
1579
 
1580
+ # **putAdminUpdateAccountContact**
1581
+ > putAdminUpdateAccountContact()
1582
+
1583
+ Update Account Contact
1584
+
1585
+ ### Example
1586
+
1587
+ ```typescript
1588
+ import {
1589
+ AccountsApi,
1590
+ Configuration,
1591
+ AccountContactRequestModel
1592
+ } from 'yellowgrid-api-ts';
1593
+
1594
+ const configuration = new Configuration();
1595
+ const apiInstance = new AccountsApi(configuration);
1596
+
1597
+ let id: string; //Account Xero ID (default to undefined)
1598
+ let contactId: number; //Contact ID (default to undefined)
1599
+ let accountContactRequestModel: AccountContactRequestModel; //Update Account Contact Request (optional)
1600
+
1601
+ const { status, data } = await apiInstance.putAdminUpdateAccountContact(
1602
+ id,
1603
+ contactId,
1604
+ accountContactRequestModel
1605
+ );
1606
+ ```
1607
+
1608
+ ### Parameters
1609
+
1610
+ |Name | Type | Description | Notes|
1611
+ |------------- | ------------- | ------------- | -------------|
1612
+ | **accountContactRequestModel** | **AccountContactRequestModel**| Update Account Contact Request | |
1613
+ | **id** | [**string**] | Account Xero ID | defaults to undefined|
1614
+ | **contactId** | [**number**] | Contact ID | defaults to undefined|
1615
+
1616
+
1617
+ ### Return type
1618
+
1619
+ void (empty response body)
1620
+
1621
+ ### Authorization
1622
+
1623
+ No authorization required
1624
+
1625
+ ### HTTP request headers
1626
+
1627
+ - **Content-Type**: application/json
1628
+ - **Accept**: Not defined
1629
+
1630
+
1631
+ ### HTTP response details
1632
+ | Status code | Description | Response headers |
1633
+ |-------------|-------------|------------------|
1634
+ |**204** | No Response | - |
1635
+ |**400** | Bad Request | - |
1636
+ |**401** | Unauthorised | - |
1637
+ |**403** | Access Denied | - |
1638
+
1639
+ [[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)
1640
+
1462
1641
  # **putUpdateAccountContact**
1463
1642
  > putUpdateAccountContact()
1464
1643
 
@@ -8,6 +8,11 @@ export const ServiceEnum = {
8
8
  "name": "SIP_TRUNKS",
9
9
  "value": 1,
10
10
  "publicValue": "SIP Trunks"
11
+ },
12
+ "CUSTOMER_PORTAL": {
13
+ "name": "CUSTOMER_PORTAL",
14
+ "value": 2,
15
+ "publicValue": "Customer Portal"
11
16
  }
12
17
  } as const;
13
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.134-dev.0",
3
+ "version": "3.2.136-dev.0",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {