yellowgrid-api-ts 3.2.139-dev.0 → 3.2.141-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
@@ -8126,6 +8211,13 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
8126
8211
  * @throws {RequiredError}
8127
8212
  */
8128
8213
  deleteDeleteClientCredentials: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8214
+ /**
8215
+ * Get Account Finance
8216
+ * @param {string} id Account Xero ID
8217
+ * @param {*} [options] Override http request option.
8218
+ * @throws {RequiredError}
8219
+ */
8220
+ deleteGetFinanceSettings: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8129
8221
  /**
8130
8222
  * Delete Account Contacts
8131
8223
  * @summary Delete Account Contact
@@ -8268,6 +8360,30 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
8268
8360
  * @throws {RequiredError}
8269
8361
  */
8270
8362
  patchUpdateAccountVatNumber: (id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8363
+ /**
8364
+ * Set Account Credit Limit
8365
+ * @param {string} id Xero ID
8366
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
8367
+ * @param {*} [options] Override http request option.
8368
+ * @throws {RequiredError}
8369
+ */
8370
+ patchUpdateCreditLimit: (id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8371
+ /**
8372
+ * Set Account Price List
8373
+ * @param {string} id Xero ID
8374
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
8375
+ * @param {*} [options] Override http request option.
8376
+ * @throws {RequiredError}
8377
+ */
8378
+ patchUpdatePriceList: (id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8379
+ /**
8380
+ * Set Account SIP Channel Cost
8381
+ * @param {string} id Xero ID
8382
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
8383
+ * @param {*} [options] Override http request option.
8384
+ * @throws {RequiredError}
8385
+ */
8386
+ patchUpdateSipChannelCost: (id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8271
8387
  /**
8272
8388
  * Create Account Contact
8273
8389
  * @param {string} id Account Xero ID
@@ -8388,6 +8504,13 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
8388
8504
  * @throws {RequiredError}
8389
8505
  */
8390
8506
  deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
8507
+ /**
8508
+ * Delete Account
8509
+ * @param {string} id Account Xero ID
8510
+ * @param {*} [options] Override http request option.
8511
+ * @throws {RequiredError}
8512
+ */
8513
+ deleteArchiveAccount(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
8391
8514
  /**
8392
8515
  * Delete client credentials
8393
8516
  * @summary Delete client credentials
@@ -8396,6 +8519,13 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
8396
8519
  * @throws {RequiredError}
8397
8520
  */
8398
8521
  deleteDeleteClientCredentials(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
8522
+ /**
8523
+ * Get Account Finance
8524
+ * @param {string} id Account Xero ID
8525
+ * @param {*} [options] Override http request option.
8526
+ * @throws {RequiredError}
8527
+ */
8528
+ deleteGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>>;
8399
8529
  /**
8400
8530
  * Delete Account Contacts
8401
8531
  * @summary Delete Account Contact
@@ -8538,6 +8668,30 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
8538
8668
  * @throws {RequiredError}
8539
8669
  */
8540
8670
  patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
8671
+ /**
8672
+ * Set Account Credit Limit
8673
+ * @param {string} id Xero ID
8674
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
8675
+ * @param {*} [options] Override http request option.
8676
+ * @throws {RequiredError}
8677
+ */
8678
+ patchUpdateCreditLimit(id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>>;
8679
+ /**
8680
+ * Set Account Price List
8681
+ * @param {string} id Xero ID
8682
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
8683
+ * @param {*} [options] Override http request option.
8684
+ * @throws {RequiredError}
8685
+ */
8686
+ patchUpdatePriceList(id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>>;
8687
+ /**
8688
+ * Set Account SIP Channel Cost
8689
+ * @param {string} id Xero ID
8690
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
8691
+ * @param {*} [options] Override http request option.
8692
+ * @throws {RequiredError}
8693
+ */
8694
+ patchUpdateSipChannelCost(id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>>;
8541
8695
  /**
8542
8696
  * Create Account Contact
8543
8697
  * @param {string} id Account Xero ID
@@ -8658,6 +8812,13 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
8658
8812
  * @throws {RequiredError}
8659
8813
  */
8660
8814
  deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
8815
+ /**
8816
+ * Delete Account
8817
+ * @param {string} id Account Xero ID
8818
+ * @param {*} [options] Override http request option.
8819
+ * @throws {RequiredError}
8820
+ */
8821
+ deleteArchiveAccount(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
8661
8822
  /**
8662
8823
  * Delete client credentials
8663
8824
  * @summary Delete client credentials
@@ -8666,6 +8827,13 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
8666
8827
  * @throws {RequiredError}
8667
8828
  */
8668
8829
  deleteDeleteClientCredentials(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
8830
+ /**
8831
+ * Get Account Finance
8832
+ * @param {string} id Account Xero ID
8833
+ * @param {*} [options] Override http request option.
8834
+ * @throws {RequiredError}
8835
+ */
8836
+ deleteGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO>;
8669
8837
  /**
8670
8838
  * Delete Account Contacts
8671
8839
  * @summary Delete Account Contact
@@ -8808,6 +8976,30 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
8808
8976
  * @throws {RequiredError}
8809
8977
  */
8810
8978
  patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
8979
+ /**
8980
+ * Set Account Credit Limit
8981
+ * @param {string} id Xero ID
8982
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
8983
+ * @param {*} [options] Override http request option.
8984
+ * @throws {RequiredError}
8985
+ */
8986
+ patchUpdateCreditLimit(id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO>;
8987
+ /**
8988
+ * Set Account Price List
8989
+ * @param {string} id Xero ID
8990
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
8991
+ * @param {*} [options] Override http request option.
8992
+ * @throws {RequiredError}
8993
+ */
8994
+ patchUpdatePriceList(id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO>;
8995
+ /**
8996
+ * Set Account SIP Channel Cost
8997
+ * @param {string} id Xero ID
8998
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
8999
+ * @param {*} [options] Override http request option.
9000
+ * @throws {RequiredError}
9001
+ */
9002
+ patchUpdateSipChannelCost(id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO>;
8811
9003
  /**
8812
9004
  * Create Account Contact
8813
9005
  * @param {string} id Account Xero ID
@@ -8928,6 +9120,13 @@ export declare class AccountsApi extends BaseAPI {
8928
9120
  * @throws {RequiredError}
8929
9121
  */
8930
9122
  deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
9123
+ /**
9124
+ * Delete Account
9125
+ * @param {string} id Account Xero ID
9126
+ * @param {*} [options] Override http request option.
9127
+ * @throws {RequiredError}
9128
+ */
9129
+ deleteArchiveAccount(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
8931
9130
  /**
8932
9131
  * Delete client credentials
8933
9132
  * @summary Delete client credentials
@@ -8936,6 +9135,13 @@ export declare class AccountsApi extends BaseAPI {
8936
9135
  * @throws {RequiredError}
8937
9136
  */
8938
9137
  deleteDeleteClientCredentials(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
9138
+ /**
9139
+ * Get Account Finance
9140
+ * @param {string} id Account Xero ID
9141
+ * @param {*} [options] Override http request option.
9142
+ * @throws {RequiredError}
9143
+ */
9144
+ deleteGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountFinanceDTO, any, {}>>;
8939
9145
  /**
8940
9146
  * Delete Account Contacts
8941
9147
  * @summary Delete Account Contact
@@ -9078,6 +9284,30 @@ export declare class AccountsApi extends BaseAPI {
9078
9284
  * @throws {RequiredError}
9079
9285
  */
9080
9286
  patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
9287
+ /**
9288
+ * Set Account Credit Limit
9289
+ * @param {string} id Xero ID
9290
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
9291
+ * @param {*} [options] Override http request option.
9292
+ * @throws {RequiredError}
9293
+ */
9294
+ patchUpdateCreditLimit(id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountFinanceDTO, any, {}>>;
9295
+ /**
9296
+ * Set Account Price List
9297
+ * @param {string} id Xero ID
9298
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
9299
+ * @param {*} [options] Override http request option.
9300
+ * @throws {RequiredError}
9301
+ */
9302
+ patchUpdatePriceList(id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountFinanceDTO, any, {}>>;
9303
+ /**
9304
+ * Set Account SIP Channel Cost
9305
+ * @param {string} id Xero ID
9306
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
9307
+ * @param {*} [options] Override http request option.
9308
+ * @throws {RequiredError}
9309
+ */
9310
+ patchUpdateSipChannelCost(id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountFinanceDTO, any, {}>>;
9081
9311
  /**
9082
9312
  * Create Account Contact
9083
9313
  * @param {string} id Account Xero ID