yellowgrid-api-ts 3.2.138-dev.0 → 3.2.140-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/dist/api.d.ts CHANGED
@@ -237,6 +237,40 @@ export interface AccountDetailedSummaryDTO {
237
237
  */
238
238
  'balance'?: number | null;
239
239
  }
240
+ /**
241
+ * Account Finance DTO
242
+ */
243
+ export interface AccountFinanceDTO {
244
+ /**
245
+ * Account ID
246
+ */
247
+ 'id'?: number;
248
+ /**
249
+ * Account Xero ID
250
+ */
251
+ 'xeroId'?: string;
252
+ /**
253
+ * Credit Limit
254
+ */
255
+ 'creditLimit'?: number;
256
+ /**
257
+ * Balance Used
258
+ */
259
+ 'balance'?: number;
260
+ /**
261
+ * Overdue Amount
262
+ */
263
+ 'overdue'?: number;
264
+ 'priceList'?: CustomerPriceListEnum;
265
+ /**
266
+ * SIP Trunk Channel Cost
267
+ */
268
+ 'sipChannelCost'?: number;
269
+ /**
270
+ * Xero Contact URL
271
+ */
272
+ 'xeroUrl'?: string;
273
+ }
240
274
  /**
241
275
  * Account Page Details
242
276
  */
@@ -1831,6 +1865,10 @@ export interface CustomerItemRequestDTO {
1831
1865
  * 3CX Hosting
1832
1866
  */
1833
1867
  'hosting'?: boolean | null;
1868
+ /**
1869
+ * 3CX Renewal Years (Upgrade only)
1870
+ */
1871
+ 'renewalYears'?: number | null;
1834
1872
  /**
1835
1873
  * Date Time
1836
1874
  */
@@ -1964,6 +2002,10 @@ export interface DetailedItemRequestDTO {
1964
2002
  * 3CX Hosting
1965
2003
  */
1966
2004
  'hosting'?: boolean | null;
2005
+ /**
2006
+ * 3CX Renewal Years (Upgrade only)
2007
+ */
2008
+ 'renewalYears'?: number | null;
1967
2009
  /**
1968
2010
  * Date Time
1969
2011
  */
@@ -2902,6 +2944,10 @@ export interface ItemDTO {
2902
2944
  * 3CX Hosting
2903
2945
  */
2904
2946
  'hosting'?: boolean | null;
2947
+ /**
2948
+ * 3CX Renewal Years (Upgrade only)
2949
+ */
2950
+ 'renewalYears'?: number | null;
2905
2951
  /**
2906
2952
  * Promo Item
2907
2953
  */
@@ -3727,6 +3773,10 @@ export interface OrderItemDTO {
3727
3773
  * 3CX Hosting
3728
3774
  */
3729
3775
  'hosting'?: boolean | null;
3776
+ /**
3777
+ * 3CX Renewal Years (Upgrade only)
3778
+ */
3779
+ 'renewalYears'?: number | null;
3730
3780
  /**
3731
3781
  * Promo Item
3732
3782
  */
@@ -4131,6 +4181,34 @@ export interface PatchUpdateAccountVatNumberRequest {
4131
4181
  */
4132
4182
  'vatNumber'?: string;
4133
4183
  }
4184
+ export interface PatchUpdateCreditLimitRequest {
4185
+ /**
4186
+ * Credit Limit
4187
+ */
4188
+ 'creditLimit'?: number;
4189
+ }
4190
+ export interface PatchUpdatePriceListRequest {
4191
+ /**
4192
+ * Price List
4193
+ */
4194
+ 'priceList'?: PatchUpdatePriceListRequestPriceListEnum;
4195
+ }
4196
+ export declare const PatchUpdatePriceListRequestPriceListEnum: {
4197
+ readonly Rrp: "RRP";
4198
+ readonly Trade: "Trade";
4199
+ readonly Wholesale: "Wholesale";
4200
+ readonly Itsp: "ITSP";
4201
+ readonly SubDisti: "Sub Disti";
4202
+ readonly Distributor: "Distributor";
4203
+ readonly HotelDisti: "Hotel Disti";
4204
+ };
4205
+ export type PatchUpdatePriceListRequestPriceListEnum = typeof PatchUpdatePriceListRequestPriceListEnum[keyof typeof PatchUpdatePriceListRequestPriceListEnum];
4206
+ export interface PatchUpdateSipChannelCostRequest {
4207
+ /**
4208
+ * SIP Channel Cost
4209
+ */
4210
+ 'channelCost'?: number;
4211
+ }
4134
4212
  /**
4135
4213
  * Customer Account
4136
4214
  */
@@ -8118,6 +8196,13 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
8118
8196
  * @throws {RequiredError}
8119
8197
  */
8120
8198
  deleteAdminUpdateAccountContact: (id: string, contactId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8199
+ /**
8200
+ * Delete Account
8201
+ * @param {string} id Account Xero ID
8202
+ * @param {*} [options] Override http request option.
8203
+ * @throws {RequiredError}
8204
+ */
8205
+ deleteArchiveAccount: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8121
8206
  /**
8122
8207
  * Delete client credentials
8123
8208
  * @summary Delete client credentials
@@ -8140,7 +8225,7 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
8140
8225
  * @param {*} [options] Override http request option.
8141
8226
  * @throws {RequiredError}
8142
8227
  */
8143
- getAdminGetAccountContacts: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8228
+ getAdminCreateAccountContact: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8144
8229
  /**
8145
8230
  * Get Account
8146
8231
  * @summary Get Account
@@ -8268,6 +8353,30 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
8268
8353
  * @throws {RequiredError}
8269
8354
  */
8270
8355
  patchUpdateAccountVatNumber: (id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8356
+ /**
8357
+ * Set Account Credit Limit
8358
+ * @param {string} id Xero ID
8359
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
8360
+ * @param {*} [options] Override http request option.
8361
+ * @throws {RequiredError}
8362
+ */
8363
+ patchUpdateCreditLimit: (id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8364
+ /**
8365
+ * Set Account Price List
8366
+ * @param {string} id Xero ID
8367
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
8368
+ * @param {*} [options] Override http request option.
8369
+ * @throws {RequiredError}
8370
+ */
8371
+ patchUpdatePriceList: (id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8372
+ /**
8373
+ * Set Account SIP Channel Cost
8374
+ * @param {string} id Xero ID
8375
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
8376
+ * @param {*} [options] Override http request option.
8377
+ * @throws {RequiredError}
8378
+ */
8379
+ patchUpdateSipChannelCost: (id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8271
8380
  /**
8272
8381
  * Create Account Contact
8273
8382
  * @param {string} id Account Xero ID
@@ -8388,6 +8497,13 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
8388
8497
  * @throws {RequiredError}
8389
8498
  */
8390
8499
  deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
8500
+ /**
8501
+ * Delete Account
8502
+ * @param {string} id Account Xero ID
8503
+ * @param {*} [options] Override http request option.
8504
+ * @throws {RequiredError}
8505
+ */
8506
+ deleteArchiveAccount(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
8391
8507
  /**
8392
8508
  * Delete client credentials
8393
8509
  * @summary Delete client credentials
@@ -8410,7 +8526,7 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
8410
8526
  * @param {*} [options] Override http request option.
8411
8527
  * @throws {RequiredError}
8412
8528
  */
8413
- getAdminGetAccountContacts(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountContactModel>>>;
8529
+ getAdminCreateAccountContact(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountContactModel>>>;
8414
8530
  /**
8415
8531
  * Get Account
8416
8532
  * @summary Get Account
@@ -8538,6 +8654,30 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
8538
8654
  * @throws {RequiredError}
8539
8655
  */
8540
8656
  patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
8657
+ /**
8658
+ * Set Account Credit Limit
8659
+ * @param {string} id Xero ID
8660
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
8661
+ * @param {*} [options] Override http request option.
8662
+ * @throws {RequiredError}
8663
+ */
8664
+ patchUpdateCreditLimit(id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>>;
8665
+ /**
8666
+ * Set Account Price List
8667
+ * @param {string} id Xero ID
8668
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
8669
+ * @param {*} [options] Override http request option.
8670
+ * @throws {RequiredError}
8671
+ */
8672
+ patchUpdatePriceList(id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>>;
8673
+ /**
8674
+ * Set Account SIP Channel Cost
8675
+ * @param {string} id Xero ID
8676
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
8677
+ * @param {*} [options] Override http request option.
8678
+ * @throws {RequiredError}
8679
+ */
8680
+ patchUpdateSipChannelCost(id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>>;
8541
8681
  /**
8542
8682
  * Create Account Contact
8543
8683
  * @param {string} id Account Xero ID
@@ -8658,6 +8798,13 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
8658
8798
  * @throws {RequiredError}
8659
8799
  */
8660
8800
  deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
8801
+ /**
8802
+ * Delete Account
8803
+ * @param {string} id Account Xero ID
8804
+ * @param {*} [options] Override http request option.
8805
+ * @throws {RequiredError}
8806
+ */
8807
+ deleteArchiveAccount(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
8661
8808
  /**
8662
8809
  * Delete client credentials
8663
8810
  * @summary Delete client credentials
@@ -8680,7 +8827,7 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
8680
8827
  * @param {*} [options] Override http request option.
8681
8828
  * @throws {RequiredError}
8682
8829
  */
8683
- getAdminGetAccountContacts(id: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountContactModel>>;
8830
+ getAdminCreateAccountContact(id: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountContactModel>>;
8684
8831
  /**
8685
8832
  * Get Account
8686
8833
  * @summary Get Account
@@ -8808,6 +8955,30 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
8808
8955
  * @throws {RequiredError}
8809
8956
  */
8810
8957
  patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
8958
+ /**
8959
+ * Set Account Credit Limit
8960
+ * @param {string} id Xero ID
8961
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
8962
+ * @param {*} [options] Override http request option.
8963
+ * @throws {RequiredError}
8964
+ */
8965
+ patchUpdateCreditLimit(id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO>;
8966
+ /**
8967
+ * Set Account Price List
8968
+ * @param {string} id Xero ID
8969
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
8970
+ * @param {*} [options] Override http request option.
8971
+ * @throws {RequiredError}
8972
+ */
8973
+ patchUpdatePriceList(id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO>;
8974
+ /**
8975
+ * Set Account SIP Channel Cost
8976
+ * @param {string} id Xero ID
8977
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
8978
+ * @param {*} [options] Override http request option.
8979
+ * @throws {RequiredError}
8980
+ */
8981
+ patchUpdateSipChannelCost(id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO>;
8811
8982
  /**
8812
8983
  * Create Account Contact
8813
8984
  * @param {string} id Account Xero ID
@@ -8928,6 +9099,13 @@ export declare class AccountsApi extends BaseAPI {
8928
9099
  * @throws {RequiredError}
8929
9100
  */
8930
9101
  deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
9102
+ /**
9103
+ * Delete Account
9104
+ * @param {string} id Account Xero ID
9105
+ * @param {*} [options] Override http request option.
9106
+ * @throws {RequiredError}
9107
+ */
9108
+ deleteArchiveAccount(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
8931
9109
  /**
8932
9110
  * Delete client credentials
8933
9111
  * @summary Delete client credentials
@@ -8950,7 +9128,7 @@ export declare class AccountsApi extends BaseAPI {
8950
9128
  * @param {*} [options] Override http request option.
8951
9129
  * @throws {RequiredError}
8952
9130
  */
8953
- getAdminGetAccountContacts(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountContactModel[], any, {}>>;
9131
+ getAdminCreateAccountContact(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountContactModel[], any, {}>>;
8954
9132
  /**
8955
9133
  * Get Account
8956
9134
  * @summary Get Account
@@ -9078,6 +9256,30 @@ export declare class AccountsApi extends BaseAPI {
9078
9256
  * @throws {RequiredError}
9079
9257
  */
9080
9258
  patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
9259
+ /**
9260
+ * Set Account Credit Limit
9261
+ * @param {string} id Xero ID
9262
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
9263
+ * @param {*} [options] Override http request option.
9264
+ * @throws {RequiredError}
9265
+ */
9266
+ patchUpdateCreditLimit(id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountFinanceDTO, any, {}>>;
9267
+ /**
9268
+ * Set Account Price List
9269
+ * @param {string} id Xero ID
9270
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
9271
+ * @param {*} [options] Override http request option.
9272
+ * @throws {RequiredError}
9273
+ */
9274
+ patchUpdatePriceList(id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountFinanceDTO, any, {}>>;
9275
+ /**
9276
+ * Set Account SIP Channel Cost
9277
+ * @param {string} id Xero ID
9278
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
9279
+ * @param {*} [options] Override http request option.
9280
+ * @throws {RequiredError}
9281
+ */
9282
+ patchUpdateSipChannelCost(id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountFinanceDTO, any, {}>>;
9081
9283
  /**
9082
9284
  * Create Account Contact
9083
9285
  * @param {string} id Account Xero ID