yellowgrid-api-ts 3.2.174-dev.0 → 3.2.175-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/.openapi-generator/FILES +1 -0
- package/README.md +3 -0
- package/api.ts +184 -0
- package/dist/api.d.ts +96 -0
- package/dist/api.js +198 -4
- package/docs/AccountFinanceDTO.md +2 -0
- package/docs/AccountsApi.md +58 -0
- package/docs/BillingApi.md +65 -0
- package/docs/PartnerDTO.md +2 -0
- package/docs/PutTransferConnectionRequest.md +20 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -171,6 +171,7 @@ docs/ProvisioningModel.md
|
|
|
171
171
|
docs/ProvisioningRequestEntity.md
|
|
172
172
|
docs/PutAllocateItemsRequest.md
|
|
173
173
|
docs/PutAllocateItemsRequestItemsInner.md
|
|
174
|
+
docs/PutTransferConnectionRequest.md
|
|
174
175
|
docs/RecordingBackupAzureModel.md
|
|
175
176
|
docs/RecordingsBackupInfoDTO.md
|
|
176
177
|
docs/RemoteStorageDTO.md
|
package/README.md
CHANGED
|
@@ -69,6 +69,7 @@ Class | Method | HTTP request | Description
|
|
|
69
69
|
*AccountsApi* | [**getGetTcxPartnerDetails**](docs/AccountsApi.md#getgettcxpartnerdetails) | **GET** /admin/accounts/{id}/tcx/partner |
|
|
70
70
|
*AccountsApi* | [**getVerifyEmailAddress**](docs/AccountsApi.md#getverifyemailaddress) | **GET** /accounts/contacts/verify | Verify account email address
|
|
71
71
|
*AccountsApi* | [**patchSetAccountStatus**](docs/AccountsApi.md#patchsetaccountstatus) | **PATCH** /admin/accounts/{id}/status/{state} |
|
|
72
|
+
*AccountsApi* | [**patchSetOnHold**](docs/AccountsApi.md#patchsetonhold) | **PATCH** /admin/accounts/{id}/onHold/{state} |
|
|
72
73
|
*AccountsApi* | [**patchSetPortalAccess**](docs/AccountsApi.md#patchsetportalaccess) | **PATCH** /admin/accounts/{id}/portal/access/{state} |
|
|
73
74
|
*AccountsApi* | [**patchSetPrizePromo**](docs/AccountsApi.md#patchsetprizepromo) | **PATCH** /admin/accounts/{id}/prizes/{state} |
|
|
74
75
|
*AccountsApi* | [**patchSetTcxWizardCname**](docs/AccountsApi.md#patchsettcxwizardcname) | **PATCH** /accounts/me/cname |
|
|
@@ -96,6 +97,7 @@ Class | Method | HTTP request | Description
|
|
|
96
97
|
*AccountsApi* | [**putUpdateBillingAddress**](docs/AccountsApi.md#putupdatebillingaddress) | **PUT** /admin/accounts/{id}/billing/address |
|
|
97
98
|
*AccountsApi* | [**putUpdateShippingAddress**](docs/AccountsApi.md#putupdateshippingaddress) | **PUT** /admin/accounts/{id}/shipping/address |
|
|
98
99
|
*BillingApi* | [**getGetAllCustomer**](docs/BillingApi.md#getgetallcustomer) | **GET** /billing/admin/customerList | Get Billing Customers
|
|
100
|
+
*BillingApi* | [**putTransferConnection**](docs/BillingApi.md#puttransferconnection) | **PUT** /billing/admin/connections |
|
|
99
101
|
*CRMApi* | [**getGetCrmActivities**](docs/CRMApi.md#getgetcrmactivities) | **GET** /admin/crm/{id}/activities |
|
|
100
102
|
*CRMApi* | [**getSearchByPhone**](docs/CRMApi.md#getsearchbyphone) | **GET** /crm/contact/search |
|
|
101
103
|
*CRMApi* | [**postCreateCrmNote**](docs/CRMApi.md#postcreatecrmnote) | **POST** /admin/crm/{id}/activities/note |
|
|
@@ -464,6 +466,7 @@ Class | Method | HTTP request | Description
|
|
|
464
466
|
- [ProvisioningRequestEntity](docs/ProvisioningRequestEntity.md)
|
|
465
467
|
- [PutAllocateItemsRequest](docs/PutAllocateItemsRequest.md)
|
|
466
468
|
- [PutAllocateItemsRequestItemsInner](docs/PutAllocateItemsRequestItemsInner.md)
|
|
469
|
+
- [PutTransferConnectionRequest](docs/PutTransferConnectionRequest.md)
|
|
467
470
|
- [RecordingBackupAzureModel](docs/RecordingBackupAzureModel.md)
|
|
468
471
|
- [RecordingsBackupInfoDTO](docs/RecordingsBackupInfoDTO.md)
|
|
469
472
|
- [RemoteStorageDTO](docs/RemoteStorageDTO.md)
|
package/api.ts
CHANGED
|
@@ -289,6 +289,10 @@ export interface AccountFinanceDTO {
|
|
|
289
289
|
* Overdue Amount
|
|
290
290
|
*/
|
|
291
291
|
'overdue'?: number;
|
|
292
|
+
/**
|
|
293
|
+
* On Hold
|
|
294
|
+
*/
|
|
295
|
+
'onHold'?: boolean;
|
|
292
296
|
'priceList'?: CustomerPriceListEnum;
|
|
293
297
|
/**
|
|
294
298
|
* SIP Trunk Channel Cost
|
|
@@ -4347,6 +4351,10 @@ export interface PartnerDTO {
|
|
|
4347
4351
|
* 3CX Installation URL
|
|
4348
4352
|
*/
|
|
4349
4353
|
'installationUrl'?: string;
|
|
4354
|
+
/**
|
|
4355
|
+
* Aligned
|
|
4356
|
+
*/
|
|
4357
|
+
'aligned'?: boolean;
|
|
4350
4358
|
}
|
|
4351
4359
|
export interface PatchUpdateAccountCnameRequest {
|
|
4352
4360
|
/**
|
|
@@ -5048,6 +5056,12 @@ export interface PutAllocateItemsRequestItemsInner {
|
|
|
5048
5056
|
*/
|
|
5049
5057
|
'quantity'?: number;
|
|
5050
5058
|
}
|
|
5059
|
+
export interface PutTransferConnectionRequest {
|
|
5060
|
+
/**
|
|
5061
|
+
* Customer ID
|
|
5062
|
+
*/
|
|
5063
|
+
'customerId'?: number;
|
|
5064
|
+
}
|
|
5051
5065
|
/**
|
|
5052
5066
|
* Azure Recordings Backup
|
|
5053
5067
|
*/
|
|
@@ -5383,6 +5397,7 @@ export const ShipmentDTOCourierEnum = {
|
|
|
5383
5397
|
Dpd: 'DPD',
|
|
5384
5398
|
ChorltonPallet: 'Chorlton Pallet',
|
|
5385
5399
|
Pops: 'POPS',
|
|
5400
|
+
Interparcel: 'Interparcel',
|
|
5386
5401
|
} as const;
|
|
5387
5402
|
|
|
5388
5403
|
export type ShipmentDTOCourierEnum = typeof ShipmentDTOCourierEnum[keyof typeof ShipmentDTOCourierEnum];
|
|
@@ -5590,6 +5605,7 @@ export const ShipmentRequestDTOCourierEnum = {
|
|
|
5590
5605
|
Dpd: 'DPD',
|
|
5591
5606
|
ChorltonPallet: 'Chorlton Pallet',
|
|
5592
5607
|
Pops: 'POPS',
|
|
5608
|
+
Interparcel: 'Interparcel',
|
|
5593
5609
|
} as const;
|
|
5594
5610
|
|
|
5595
5611
|
export type ShipmentRequestDTOCourierEnum = typeof ShipmentRequestDTOCourierEnum[keyof typeof ShipmentRequestDTOCourierEnum];
|
|
@@ -5687,6 +5703,7 @@ export const ShippingRequestDTOCourierEnum = {
|
|
|
5687
5703
|
Dpd: 'DPD',
|
|
5688
5704
|
ChorltonPallet: 'Chorlton Pallet',
|
|
5689
5705
|
Pops: 'POPS',
|
|
5706
|
+
Interparcel: 'Interparcel',
|
|
5690
5707
|
} as const;
|
|
5691
5708
|
|
|
5692
5709
|
export type ShippingRequestDTOCourierEnum = typeof ShippingRequestDTOCourierEnum[keyof typeof ShippingRequestDTOCourierEnum];
|
|
@@ -5716,6 +5733,7 @@ export const ShippingServiceDTOCourierEnum = {
|
|
|
5716
5733
|
Dpd: 'DPD',
|
|
5717
5734
|
ChorltonPallet: 'Chorlton Pallet',
|
|
5718
5735
|
Pops: 'POPS',
|
|
5736
|
+
Interparcel: 'Interparcel',
|
|
5719
5737
|
} as const;
|
|
5720
5738
|
|
|
5721
5739
|
export type ShippingServiceDTOCourierEnum = typeof ShippingServiceDTOCourierEnum[keyof typeof ShippingServiceDTOCourierEnum];
|
|
@@ -5754,6 +5772,7 @@ export const ShippingServiceModelCourierEnum = {
|
|
|
5754
5772
|
Dpd: 'DPD',
|
|
5755
5773
|
ChorltonPallet: 'Chorlton Pallet',
|
|
5756
5774
|
Pops: 'POPS',
|
|
5775
|
+
Interparcel: 'Interparcel',
|
|
5757
5776
|
} as const;
|
|
5758
5777
|
|
|
5759
5778
|
export type ShippingServiceModelCourierEnum = typeof ShippingServiceModelCourierEnum[keyof typeof ShippingServiceModelCourierEnum];
|
|
@@ -9193,6 +9212,43 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9193
9212
|
const localVarQueryParameter = {} as any;
|
|
9194
9213
|
|
|
9195
9214
|
|
|
9215
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9216
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9217
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9218
|
+
|
|
9219
|
+
return {
|
|
9220
|
+
url: toPathString(localVarUrlObj),
|
|
9221
|
+
options: localVarRequestOptions,
|
|
9222
|
+
};
|
|
9223
|
+
},
|
|
9224
|
+
/**
|
|
9225
|
+
* Set Account On Hold
|
|
9226
|
+
* @param {string} id Xero ID
|
|
9227
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
9228
|
+
* @param {*} [options] Override http request option.
|
|
9229
|
+
* @throws {RequiredError}
|
|
9230
|
+
*/
|
|
9231
|
+
patchSetOnHold: async (id: string, state: PatchSetOnHoldStateEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9232
|
+
// verify required parameter 'id' is not null or undefined
|
|
9233
|
+
assertParamExists('patchSetOnHold', 'id', id)
|
|
9234
|
+
// verify required parameter 'state' is not null or undefined
|
|
9235
|
+
assertParamExists('patchSetOnHold', 'state', state)
|
|
9236
|
+
const localVarPath = `/admin/accounts/{id}/onHold/{state}`
|
|
9237
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
9238
|
+
.replace('{state}', encodeURIComponent(String(state)));
|
|
9239
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9240
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9241
|
+
let baseOptions;
|
|
9242
|
+
if (configuration) {
|
|
9243
|
+
baseOptions = configuration.baseOptions;
|
|
9244
|
+
}
|
|
9245
|
+
|
|
9246
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
9247
|
+
const localVarHeaderParameter = {} as any;
|
|
9248
|
+
const localVarQueryParameter = {} as any;
|
|
9249
|
+
|
|
9250
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
9251
|
+
|
|
9196
9252
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9197
9253
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9198
9254
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -10355,6 +10411,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
10355
10411
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchSetAccountStatus']?.[localVarOperationServerIndex]?.url;
|
|
10356
10412
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10357
10413
|
},
|
|
10414
|
+
/**
|
|
10415
|
+
* Set Account On Hold
|
|
10416
|
+
* @param {string} id Xero ID
|
|
10417
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
10418
|
+
* @param {*} [options] Override http request option.
|
|
10419
|
+
* @throws {RequiredError}
|
|
10420
|
+
*/
|
|
10421
|
+
async patchSetOnHold(id: string, state: PatchSetOnHoldStateEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
|
|
10422
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchSetOnHold(id, state, options);
|
|
10423
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10424
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchSetOnHold']?.[localVarOperationServerIndex]?.url;
|
|
10425
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10426
|
+
},
|
|
10358
10427
|
/**
|
|
10359
10428
|
* Set Account Portal Access
|
|
10360
10429
|
* @param {string} id Xero ID
|
|
@@ -10877,6 +10946,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
10877
10946
|
patchSetAccountStatus(id: string, state: PatchSetAccountStatusStateEnum, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
10878
10947
|
return localVarFp.patchSetAccountStatus(id, state, options).then((request) => request(axios, basePath));
|
|
10879
10948
|
},
|
|
10949
|
+
/**
|
|
10950
|
+
* Set Account On Hold
|
|
10951
|
+
* @param {string} id Xero ID
|
|
10952
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
10953
|
+
* @param {*} [options] Override http request option.
|
|
10954
|
+
* @throws {RequiredError}
|
|
10955
|
+
*/
|
|
10956
|
+
patchSetOnHold(id: string, state: PatchSetOnHoldStateEnum, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
|
|
10957
|
+
return localVarFp.patchSetOnHold(id, state, options).then((request) => request(axios, basePath));
|
|
10958
|
+
},
|
|
10880
10959
|
/**
|
|
10881
10960
|
* Set Account Portal Access
|
|
10882
10961
|
* @param {string} id Xero ID
|
|
@@ -11337,6 +11416,17 @@ export class AccountsApi extends BaseAPI {
|
|
|
11337
11416
|
return AccountsApiFp(this.configuration).patchSetAccountStatus(id, state, options).then((request) => request(this.axios, this.basePath));
|
|
11338
11417
|
}
|
|
11339
11418
|
|
|
11419
|
+
/**
|
|
11420
|
+
* Set Account On Hold
|
|
11421
|
+
* @param {string} id Xero ID
|
|
11422
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
11423
|
+
* @param {*} [options] Override http request option.
|
|
11424
|
+
* @throws {RequiredError}
|
|
11425
|
+
*/
|
|
11426
|
+
public patchSetOnHold(id: string, state: PatchSetOnHoldStateEnum, options?: RawAxiosRequestConfig) {
|
|
11427
|
+
return AccountsApiFp(this.configuration).patchSetOnHold(id, state, options).then((request) => request(this.axios, this.basePath));
|
|
11428
|
+
}
|
|
11429
|
+
|
|
11340
11430
|
/**
|
|
11341
11431
|
* Set Account Portal Access
|
|
11342
11432
|
* @param {string} id Xero ID
|
|
@@ -11632,6 +11722,11 @@ export const PatchSetAccountStatusStateEnum = {
|
|
|
11632
11722
|
Disable: 'disable',
|
|
11633
11723
|
} as const;
|
|
11634
11724
|
export type PatchSetAccountStatusStateEnum = typeof PatchSetAccountStatusStateEnum[keyof typeof PatchSetAccountStatusStateEnum];
|
|
11725
|
+
export const PatchSetOnHoldStateEnum = {
|
|
11726
|
+
Enable: 'enable',
|
|
11727
|
+
Disable: 'disable',
|
|
11728
|
+
} as const;
|
|
11729
|
+
export type PatchSetOnHoldStateEnum = typeof PatchSetOnHoldStateEnum[keyof typeof PatchSetOnHoldStateEnum];
|
|
11635
11730
|
export const PatchSetPortalAccessStateEnum = {
|
|
11636
11731
|
Enable: 'enable',
|
|
11637
11732
|
Disable: 'disable',
|
|
@@ -11674,6 +11769,55 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
11674
11769
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11675
11770
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11676
11771
|
|
|
11772
|
+
return {
|
|
11773
|
+
url: toPathString(localVarUrlObj),
|
|
11774
|
+
options: localVarRequestOptions,
|
|
11775
|
+
};
|
|
11776
|
+
},
|
|
11777
|
+
/**
|
|
11778
|
+
* Transfer Billing Connection
|
|
11779
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
11780
|
+
* @param {number} [id] Connection ID
|
|
11781
|
+
* @param {string} [cli] CLI
|
|
11782
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
11783
|
+
* @param {*} [options] Override http request option.
|
|
11784
|
+
* @throws {RequiredError}
|
|
11785
|
+
*/
|
|
11786
|
+
putTransferConnection: async (putTransferConnectionRequest: PutTransferConnectionRequest, id?: number, cli?: string, skipDDis?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11787
|
+
// verify required parameter 'putTransferConnectionRequest' is not null or undefined
|
|
11788
|
+
assertParamExists('putTransferConnection', 'putTransferConnectionRequest', putTransferConnectionRequest)
|
|
11789
|
+
const localVarPath = `/billing/admin/connections`;
|
|
11790
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11791
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11792
|
+
let baseOptions;
|
|
11793
|
+
if (configuration) {
|
|
11794
|
+
baseOptions = configuration.baseOptions;
|
|
11795
|
+
}
|
|
11796
|
+
|
|
11797
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
11798
|
+
const localVarHeaderParameter = {} as any;
|
|
11799
|
+
const localVarQueryParameter = {} as any;
|
|
11800
|
+
|
|
11801
|
+
if (id !== undefined) {
|
|
11802
|
+
localVarQueryParameter['id'] = id;
|
|
11803
|
+
}
|
|
11804
|
+
|
|
11805
|
+
if (cli !== undefined) {
|
|
11806
|
+
localVarQueryParameter['cli'] = cli;
|
|
11807
|
+
}
|
|
11808
|
+
|
|
11809
|
+
if (skipDDis !== undefined) {
|
|
11810
|
+
localVarQueryParameter['skipDDis'] = skipDDis;
|
|
11811
|
+
}
|
|
11812
|
+
|
|
11813
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11814
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
11815
|
+
|
|
11816
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11817
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11818
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11819
|
+
localVarRequestOptions.data = serializeDataIfNeeded(putTransferConnectionRequest, localVarRequestOptions, configuration)
|
|
11820
|
+
|
|
11677
11821
|
return {
|
|
11678
11822
|
url: toPathString(localVarUrlObj),
|
|
11679
11823
|
options: localVarRequestOptions,
|
|
@@ -11700,6 +11844,21 @@ export const BillingApiFp = function(configuration?: Configuration) {
|
|
|
11700
11844
|
const localVarOperationServerBasePath = operationServerMap['BillingApi.getGetAllCustomer']?.[localVarOperationServerIndex]?.url;
|
|
11701
11845
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11702
11846
|
},
|
|
11847
|
+
/**
|
|
11848
|
+
* Transfer Billing Connection
|
|
11849
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
11850
|
+
* @param {number} [id] Connection ID
|
|
11851
|
+
* @param {string} [cli] CLI
|
|
11852
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
11853
|
+
* @param {*} [options] Override http request option.
|
|
11854
|
+
* @throws {RequiredError}
|
|
11855
|
+
*/
|
|
11856
|
+
async putTransferConnection(putTransferConnectionRequest: PutTransferConnectionRequest, id?: number, cli?: string, skipDDis?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
11857
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putTransferConnection(putTransferConnectionRequest, id, cli, skipDDis, options);
|
|
11858
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11859
|
+
const localVarOperationServerBasePath = operationServerMap['BillingApi.putTransferConnection']?.[localVarOperationServerIndex]?.url;
|
|
11860
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11861
|
+
},
|
|
11703
11862
|
}
|
|
11704
11863
|
};
|
|
11705
11864
|
|
|
@@ -11718,6 +11877,18 @@ export const BillingApiFactory = function (configuration?: Configuration, basePa
|
|
|
11718
11877
|
getGetAllCustomer(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: { [key: string]: string; }; }> {
|
|
11719
11878
|
return localVarFp.getGetAllCustomer(options).then((request) => request(axios, basePath));
|
|
11720
11879
|
},
|
|
11880
|
+
/**
|
|
11881
|
+
* Transfer Billing Connection
|
|
11882
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
11883
|
+
* @param {number} [id] Connection ID
|
|
11884
|
+
* @param {string} [cli] CLI
|
|
11885
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
11886
|
+
* @param {*} [options] Override http request option.
|
|
11887
|
+
* @throws {RequiredError}
|
|
11888
|
+
*/
|
|
11889
|
+
putTransferConnection(putTransferConnectionRequest: PutTransferConnectionRequest, id?: number, cli?: string, skipDDis?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
11890
|
+
return localVarFp.putTransferConnection(putTransferConnectionRequest, id, cli, skipDDis, options).then((request) => request(axios, basePath));
|
|
11891
|
+
},
|
|
11721
11892
|
};
|
|
11722
11893
|
};
|
|
11723
11894
|
|
|
@@ -11734,6 +11905,19 @@ export class BillingApi extends BaseAPI {
|
|
|
11734
11905
|
public getGetAllCustomer(options?: RawAxiosRequestConfig) {
|
|
11735
11906
|
return BillingApiFp(this.configuration).getGetAllCustomer(options).then((request) => request(this.axios, this.basePath));
|
|
11736
11907
|
}
|
|
11908
|
+
|
|
11909
|
+
/**
|
|
11910
|
+
* Transfer Billing Connection
|
|
11911
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
11912
|
+
* @param {number} [id] Connection ID
|
|
11913
|
+
* @param {string} [cli] CLI
|
|
11914
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
11915
|
+
* @param {*} [options] Override http request option.
|
|
11916
|
+
* @throws {RequiredError}
|
|
11917
|
+
*/
|
|
11918
|
+
public putTransferConnection(putTransferConnectionRequest: PutTransferConnectionRequest, id?: number, cli?: string, skipDDis?: boolean, options?: RawAxiosRequestConfig) {
|
|
11919
|
+
return BillingApiFp(this.configuration).putTransferConnection(putTransferConnectionRequest, id, cli, skipDDis, options).then((request) => request(this.axios, this.basePath));
|
|
11920
|
+
}
|
|
11737
11921
|
}
|
|
11738
11922
|
|
|
11739
11923
|
|
package/dist/api.d.ts
CHANGED
|
@@ -279,6 +279,10 @@ export interface AccountFinanceDTO {
|
|
|
279
279
|
* Overdue Amount
|
|
280
280
|
*/
|
|
281
281
|
'overdue'?: number;
|
|
282
|
+
/**
|
|
283
|
+
* On Hold
|
|
284
|
+
*/
|
|
285
|
+
'onHold'?: boolean;
|
|
282
286
|
'priceList'?: CustomerPriceListEnum;
|
|
283
287
|
/**
|
|
284
288
|
* SIP Trunk Channel Cost
|
|
@@ -4299,6 +4303,10 @@ export interface PartnerDTO {
|
|
|
4299
4303
|
* 3CX Installation URL
|
|
4300
4304
|
*/
|
|
4301
4305
|
'installationUrl'?: string;
|
|
4306
|
+
/**
|
|
4307
|
+
* Aligned
|
|
4308
|
+
*/
|
|
4309
|
+
'aligned'?: boolean;
|
|
4302
4310
|
}
|
|
4303
4311
|
export interface PatchUpdateAccountCnameRequest {
|
|
4304
4312
|
/**
|
|
@@ -4991,6 +4999,12 @@ export interface PutAllocateItemsRequestItemsInner {
|
|
|
4991
4999
|
*/
|
|
4992
5000
|
'quantity'?: number;
|
|
4993
5001
|
}
|
|
5002
|
+
export interface PutTransferConnectionRequest {
|
|
5003
|
+
/**
|
|
5004
|
+
* Customer ID
|
|
5005
|
+
*/
|
|
5006
|
+
'customerId'?: number;
|
|
5007
|
+
}
|
|
4994
5008
|
/**
|
|
4995
5009
|
* Azure Recordings Backup
|
|
4996
5010
|
*/
|
|
@@ -5319,6 +5333,7 @@ export declare const ShipmentDTOCourierEnum: {
|
|
|
5319
5333
|
readonly Dpd: "DPD";
|
|
5320
5334
|
readonly ChorltonPallet: "Chorlton Pallet";
|
|
5321
5335
|
readonly Pops: "POPS";
|
|
5336
|
+
readonly Interparcel: "Interparcel";
|
|
5322
5337
|
};
|
|
5323
5338
|
export type ShipmentDTOCourierEnum = typeof ShipmentDTOCourierEnum[keyof typeof ShipmentDTOCourierEnum];
|
|
5324
5339
|
/**
|
|
@@ -5523,6 +5538,7 @@ export declare const ShipmentRequestDTOCourierEnum: {
|
|
|
5523
5538
|
readonly Dpd: "DPD";
|
|
5524
5539
|
readonly ChorltonPallet: "Chorlton Pallet";
|
|
5525
5540
|
readonly Pops: "POPS";
|
|
5541
|
+
readonly Interparcel: "Interparcel";
|
|
5526
5542
|
};
|
|
5527
5543
|
export type ShipmentRequestDTOCourierEnum = typeof ShipmentRequestDTOCourierEnum[keyof typeof ShipmentRequestDTOCourierEnum];
|
|
5528
5544
|
/**
|
|
@@ -5617,6 +5633,7 @@ export declare const ShippingRequestDTOCourierEnum: {
|
|
|
5617
5633
|
readonly Dpd: "DPD";
|
|
5618
5634
|
readonly ChorltonPallet: "Chorlton Pallet";
|
|
5619
5635
|
readonly Pops: "POPS";
|
|
5636
|
+
readonly Interparcel: "Interparcel";
|
|
5620
5637
|
};
|
|
5621
5638
|
export type ShippingRequestDTOCourierEnum = typeof ShippingRequestDTOCourierEnum[keyof typeof ShippingRequestDTOCourierEnum];
|
|
5622
5639
|
export declare const ShippingRequestDTOPrinterEnum: {
|
|
@@ -5642,6 +5659,7 @@ export declare const ShippingServiceDTOCourierEnum: {
|
|
|
5642
5659
|
readonly Dpd: "DPD";
|
|
5643
5660
|
readonly ChorltonPallet: "Chorlton Pallet";
|
|
5644
5661
|
readonly Pops: "POPS";
|
|
5662
|
+
readonly Interparcel: "Interparcel";
|
|
5645
5663
|
};
|
|
5646
5664
|
export type ShippingServiceDTOCourierEnum = typeof ShippingServiceDTOCourierEnum[keyof typeof ShippingServiceDTOCourierEnum];
|
|
5647
5665
|
/**
|
|
@@ -5677,6 +5695,7 @@ export declare const ShippingServiceModelCourierEnum: {
|
|
|
5677
5695
|
readonly Dpd: "DPD";
|
|
5678
5696
|
readonly ChorltonPallet: "Chorlton Pallet";
|
|
5679
5697
|
readonly Pops: "POPS";
|
|
5698
|
+
readonly Interparcel: "Interparcel";
|
|
5680
5699
|
};
|
|
5681
5700
|
export type ShippingServiceModelCourierEnum = typeof ShippingServiceModelCourierEnum[keyof typeof ShippingServiceModelCourierEnum];
|
|
5682
5701
|
export interface ShippingServicesModel {
|
|
@@ -8615,6 +8634,14 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
8615
8634
|
* @throws {RequiredError}
|
|
8616
8635
|
*/
|
|
8617
8636
|
patchSetAccountStatus: (id: string, state: PatchSetAccountStatusStateEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8637
|
+
/**
|
|
8638
|
+
* Set Account On Hold
|
|
8639
|
+
* @param {string} id Xero ID
|
|
8640
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
8641
|
+
* @param {*} [options] Override http request option.
|
|
8642
|
+
* @throws {RequiredError}
|
|
8643
|
+
*/
|
|
8644
|
+
patchSetOnHold: (id: string, state: PatchSetOnHoldStateEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8618
8645
|
/**
|
|
8619
8646
|
* Set Account Portal Access
|
|
8620
8647
|
* @param {string} id Xero ID
|
|
@@ -8967,6 +8994,14 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
8967
8994
|
* @throws {RequiredError}
|
|
8968
8995
|
*/
|
|
8969
8996
|
patchSetAccountStatus(id: string, state: PatchSetAccountStatusStateEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
8997
|
+
/**
|
|
8998
|
+
* Set Account On Hold
|
|
8999
|
+
* @param {string} id Xero ID
|
|
9000
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
9001
|
+
* @param {*} [options] Override http request option.
|
|
9002
|
+
* @throws {RequiredError}
|
|
9003
|
+
*/
|
|
9004
|
+
patchSetOnHold(id: string, state: PatchSetOnHoldStateEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>>;
|
|
8970
9005
|
/**
|
|
8971
9006
|
* Set Account Portal Access
|
|
8972
9007
|
* @param {string} id Xero ID
|
|
@@ -9319,6 +9354,14 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
9319
9354
|
* @throws {RequiredError}
|
|
9320
9355
|
*/
|
|
9321
9356
|
patchSetAccountStatus(id: string, state: PatchSetAccountStatusStateEnum, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
9357
|
+
/**
|
|
9358
|
+
* Set Account On Hold
|
|
9359
|
+
* @param {string} id Xero ID
|
|
9360
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
9361
|
+
* @param {*} [options] Override http request option.
|
|
9362
|
+
* @throws {RequiredError}
|
|
9363
|
+
*/
|
|
9364
|
+
patchSetOnHold(id: string, state: PatchSetOnHoldStateEnum, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO>;
|
|
9322
9365
|
/**
|
|
9323
9366
|
* Set Account Portal Access
|
|
9324
9367
|
* @param {string} id Xero ID
|
|
@@ -9671,6 +9714,14 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
9671
9714
|
* @throws {RequiredError}
|
|
9672
9715
|
*/
|
|
9673
9716
|
patchSetAccountStatus(id: string, state: PatchSetAccountStatusStateEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
9717
|
+
/**
|
|
9718
|
+
* Set Account On Hold
|
|
9719
|
+
* @param {string} id Xero ID
|
|
9720
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
9721
|
+
* @param {*} [options] Override http request option.
|
|
9722
|
+
* @throws {RequiredError}
|
|
9723
|
+
*/
|
|
9724
|
+
patchSetOnHold(id: string, state: PatchSetOnHoldStateEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountFinanceDTO, any, {}>>;
|
|
9674
9725
|
/**
|
|
9675
9726
|
* Set Account Portal Access
|
|
9676
9727
|
* @param {string} id Xero ID
|
|
@@ -9888,6 +9939,11 @@ export declare const PatchSetAccountStatusStateEnum: {
|
|
|
9888
9939
|
readonly Disable: "disable";
|
|
9889
9940
|
};
|
|
9890
9941
|
export type PatchSetAccountStatusStateEnum = typeof PatchSetAccountStatusStateEnum[keyof typeof PatchSetAccountStatusStateEnum];
|
|
9942
|
+
export declare const PatchSetOnHoldStateEnum: {
|
|
9943
|
+
readonly Enable: "enable";
|
|
9944
|
+
readonly Disable: "disable";
|
|
9945
|
+
};
|
|
9946
|
+
export type PatchSetOnHoldStateEnum = typeof PatchSetOnHoldStateEnum[keyof typeof PatchSetOnHoldStateEnum];
|
|
9891
9947
|
export declare const PatchSetPortalAccessStateEnum: {
|
|
9892
9948
|
readonly Enable: "enable";
|
|
9893
9949
|
readonly Disable: "disable";
|
|
@@ -9909,6 +9965,16 @@ export declare const BillingApiAxiosParamCreator: (configuration?: Configuration
|
|
|
9909
9965
|
* @throws {RequiredError}
|
|
9910
9966
|
*/
|
|
9911
9967
|
getGetAllCustomer: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9968
|
+
/**
|
|
9969
|
+
* Transfer Billing Connection
|
|
9970
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
9971
|
+
* @param {number} [id] Connection ID
|
|
9972
|
+
* @param {string} [cli] CLI
|
|
9973
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
9974
|
+
* @param {*} [options] Override http request option.
|
|
9975
|
+
* @throws {RequiredError}
|
|
9976
|
+
*/
|
|
9977
|
+
putTransferConnection: (putTransferConnectionRequest: PutTransferConnectionRequest, id?: number, cli?: string, skipDDis?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9912
9978
|
};
|
|
9913
9979
|
/**
|
|
9914
9980
|
* BillingApi - functional programming interface
|
|
@@ -9925,6 +9991,16 @@ export declare const BillingApiFp: (configuration?: Configuration) => {
|
|
|
9925
9991
|
[key: string]: string;
|
|
9926
9992
|
};
|
|
9927
9993
|
}>>;
|
|
9994
|
+
/**
|
|
9995
|
+
* Transfer Billing Connection
|
|
9996
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
9997
|
+
* @param {number} [id] Connection ID
|
|
9998
|
+
* @param {string} [cli] CLI
|
|
9999
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
10000
|
+
* @param {*} [options] Override http request option.
|
|
10001
|
+
* @throws {RequiredError}
|
|
10002
|
+
*/
|
|
10003
|
+
putTransferConnection(putTransferConnectionRequest: PutTransferConnectionRequest, id?: number, cli?: string, skipDDis?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
9928
10004
|
};
|
|
9929
10005
|
/**
|
|
9930
10006
|
* BillingApi - factory interface
|
|
@@ -9941,6 +10017,16 @@ export declare const BillingApiFactory: (configuration?: Configuration, basePath
|
|
|
9941
10017
|
[key: string]: string;
|
|
9942
10018
|
};
|
|
9943
10019
|
}>;
|
|
10020
|
+
/**
|
|
10021
|
+
* Transfer Billing Connection
|
|
10022
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
10023
|
+
* @param {number} [id] Connection ID
|
|
10024
|
+
* @param {string} [cli] CLI
|
|
10025
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
10026
|
+
* @param {*} [options] Override http request option.
|
|
10027
|
+
* @throws {RequiredError}
|
|
10028
|
+
*/
|
|
10029
|
+
putTransferConnection(putTransferConnectionRequest: PutTransferConnectionRequest, id?: number, cli?: string, skipDDis?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
9944
10030
|
};
|
|
9945
10031
|
/**
|
|
9946
10032
|
* BillingApi - object-oriented interface
|
|
@@ -9957,6 +10043,16 @@ export declare class BillingApi extends BaseAPI {
|
|
|
9957
10043
|
[key: string]: string;
|
|
9958
10044
|
};
|
|
9959
10045
|
}, any, {}>>;
|
|
10046
|
+
/**
|
|
10047
|
+
* Transfer Billing Connection
|
|
10048
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
10049
|
+
* @param {number} [id] Connection ID
|
|
10050
|
+
* @param {string} [cli] CLI
|
|
10051
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
10052
|
+
* @param {*} [options] Override http request option.
|
|
10053
|
+
* @throws {RequiredError}
|
|
10054
|
+
*/
|
|
10055
|
+
putTransferConnection(putTransferConnectionRequest: PutTransferConnectionRequest, id?: number, cli?: string, skipDDis?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
9960
10056
|
}
|
|
9961
10057
|
/**
|
|
9962
10058
|
* CRMApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -84,10 +84,10 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
84
84
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
-
exports.
|
|
88
|
-
exports.
|
|
89
|
-
exports.
|
|
90
|
-
exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = void 0;
|
|
87
|
+
exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.PatchSetPrizePromoStateEnum = exports.PatchSetPortalAccessStateEnum = exports.PatchSetOnHoldStateEnum = exports.PatchSetAccountStatusStateEnum = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SmsAccountRequestDTOTypeEnum = exports.SmsAccountRequestDTOProviderEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.ShippingRequestDTOPrinterEnum = exports.ShippingRequestDTOCourierEnum = exports.ShipmentRequestDTOCourierEnum = exports.ShipmentDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.ProspectDTOStatusEnum = exports.PatchUpdateTcxHostingPriceListRequestPriceListEnum = exports.PatchUpdatePriceListRequestPriceListEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.EventDTOStatusEnum = exports.DivertResponseModelStatusEnum = exports.AuditLogEntityTypeEnum = exports.AuditLogEntityActionEnum = exports.AdminUserModelPermissionsEnum = exports.AdminUserModelRoleEnum = exports.AdminOrderRequestDTOPaymentMethodEnum = void 0;
|
|
88
|
+
exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.NumberPortingApi = exports.NumberPortingApiFactory = exports.NumberPortingApiFp = exports.NumberPortingApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.GetGetCrmActivitiesTypeEnum = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.BillingApi = void 0;
|
|
89
|
+
exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.ProspectsApi = exports.ProspectsApiFactory = exports.ProspectsApiFp = exports.ProspectsApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.PostPrintShippingLabelPrinterEnum = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = void 0;
|
|
90
|
+
exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = void 0;
|
|
91
91
|
var axios_1 = require("axios");
|
|
92
92
|
// Some imports not used depending on template conditions
|
|
93
93
|
// @ts-ignore
|
|
@@ -324,16 +324,19 @@ exports.ShipmentDTOCourierEnum = {
|
|
|
324
324
|
Dpd: 'DPD',
|
|
325
325
|
ChorltonPallet: 'Chorlton Pallet',
|
|
326
326
|
Pops: 'POPS',
|
|
327
|
+
Interparcel: 'Interparcel',
|
|
327
328
|
};
|
|
328
329
|
exports.ShipmentRequestDTOCourierEnum = {
|
|
329
330
|
Dpd: 'DPD',
|
|
330
331
|
ChorltonPallet: 'Chorlton Pallet',
|
|
331
332
|
Pops: 'POPS',
|
|
333
|
+
Interparcel: 'Interparcel',
|
|
332
334
|
};
|
|
333
335
|
exports.ShippingRequestDTOCourierEnum = {
|
|
334
336
|
Dpd: 'DPD',
|
|
335
337
|
ChorltonPallet: 'Chorlton Pallet',
|
|
336
338
|
Pops: 'POPS',
|
|
339
|
+
Interparcel: 'Interparcel',
|
|
337
340
|
};
|
|
338
341
|
exports.ShippingRequestDTOPrinterEnum = {
|
|
339
342
|
NUMBER_1: 1,
|
|
@@ -344,11 +347,13 @@ exports.ShippingServiceDTOCourierEnum = {
|
|
|
344
347
|
Dpd: 'DPD',
|
|
345
348
|
ChorltonPallet: 'Chorlton Pallet',
|
|
346
349
|
Pops: 'POPS',
|
|
350
|
+
Interparcel: 'Interparcel',
|
|
347
351
|
};
|
|
348
352
|
exports.ShippingServiceModelCourierEnum = {
|
|
349
353
|
Dpd: 'DPD',
|
|
350
354
|
ChorltonPallet: 'Chorlton Pallet',
|
|
351
355
|
Pops: 'POPS',
|
|
356
|
+
Interparcel: 'Interparcel',
|
|
352
357
|
};
|
|
353
358
|
exports.SipTrunkChangeResponseModelTypeEnum = {
|
|
354
359
|
NewTrunk: 'New Trunk',
|
|
@@ -1131,6 +1136,47 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1131
1136
|
});
|
|
1132
1137
|
});
|
|
1133
1138
|
},
|
|
1139
|
+
/**
|
|
1140
|
+
* Set Account On Hold
|
|
1141
|
+
* @param {string} id Xero ID
|
|
1142
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
1143
|
+
* @param {*} [options] Override http request option.
|
|
1144
|
+
* @throws {RequiredError}
|
|
1145
|
+
*/
|
|
1146
|
+
patchSetOnHold: function (id_1, state_1) {
|
|
1147
|
+
var args_1 = [];
|
|
1148
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1149
|
+
args_1[_i - 2] = arguments[_i];
|
|
1150
|
+
}
|
|
1151
|
+
return __awaiter(_this, __spreadArray([id_1, state_1], args_1, true), void 0, function (id, state, options) {
|
|
1152
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1153
|
+
if (options === void 0) { options = {}; }
|
|
1154
|
+
return __generator(this, function (_a) {
|
|
1155
|
+
// verify required parameter 'id' is not null or undefined
|
|
1156
|
+
(0, common_1.assertParamExists)('patchSetOnHold', 'id', id);
|
|
1157
|
+
// verify required parameter 'state' is not null or undefined
|
|
1158
|
+
(0, common_1.assertParamExists)('patchSetOnHold', 'state', state);
|
|
1159
|
+
localVarPath = "/admin/accounts/{id}/onHold/{state}"
|
|
1160
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
1161
|
+
.replace('{state}', encodeURIComponent(String(state)));
|
|
1162
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1163
|
+
if (configuration) {
|
|
1164
|
+
baseOptions = configuration.baseOptions;
|
|
1165
|
+
}
|
|
1166
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1167
|
+
localVarHeaderParameter = {};
|
|
1168
|
+
localVarQueryParameter = {};
|
|
1169
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1170
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1171
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1172
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1173
|
+
return [2 /*return*/, {
|
|
1174
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1175
|
+
options: localVarRequestOptions,
|
|
1176
|
+
}];
|
|
1177
|
+
});
|
|
1178
|
+
});
|
|
1179
|
+
},
|
|
1134
1180
|
/**
|
|
1135
1181
|
* Set Account Portal Access
|
|
1136
1182
|
* @param {string} id Xero ID
|
|
@@ -2563,6 +2609,29 @@ var AccountsApiFp = function (configuration) {
|
|
|
2563
2609
|
});
|
|
2564
2610
|
});
|
|
2565
2611
|
},
|
|
2612
|
+
/**
|
|
2613
|
+
* Set Account On Hold
|
|
2614
|
+
* @param {string} id Xero ID
|
|
2615
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
2616
|
+
* @param {*} [options] Override http request option.
|
|
2617
|
+
* @throws {RequiredError}
|
|
2618
|
+
*/
|
|
2619
|
+
patchSetOnHold: function (id, state, options) {
|
|
2620
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2621
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2622
|
+
var _a, _b, _c;
|
|
2623
|
+
return __generator(this, function (_d) {
|
|
2624
|
+
switch (_d.label) {
|
|
2625
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchSetOnHold(id, state, options)];
|
|
2626
|
+
case 1:
|
|
2627
|
+
localVarAxiosArgs = _d.sent();
|
|
2628
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2629
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchSetOnHold']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2630
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2631
|
+
}
|
|
2632
|
+
});
|
|
2633
|
+
});
|
|
2634
|
+
},
|
|
2566
2635
|
/**
|
|
2567
2636
|
* Set Account Portal Access
|
|
2568
2637
|
* @param {string} id Xero ID
|
|
@@ -3345,6 +3414,16 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
3345
3414
|
patchSetAccountStatus: function (id, state, options) {
|
|
3346
3415
|
return localVarFp.patchSetAccountStatus(id, state, options).then(function (request) { return request(axios, basePath); });
|
|
3347
3416
|
},
|
|
3417
|
+
/**
|
|
3418
|
+
* Set Account On Hold
|
|
3419
|
+
* @param {string} id Xero ID
|
|
3420
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
3421
|
+
* @param {*} [options] Override http request option.
|
|
3422
|
+
* @throws {RequiredError}
|
|
3423
|
+
*/
|
|
3424
|
+
patchSetOnHold: function (id, state, options) {
|
|
3425
|
+
return localVarFp.patchSetOnHold(id, state, options).then(function (request) { return request(axios, basePath); });
|
|
3426
|
+
},
|
|
3348
3427
|
/**
|
|
3349
3428
|
* Set Account Portal Access
|
|
3350
3429
|
* @param {string} id Xero ID
|
|
@@ -3809,6 +3888,17 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
3809
3888
|
var _this = this;
|
|
3810
3889
|
return (0, exports.AccountsApiFp)(this.configuration).patchSetAccountStatus(id, state, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3811
3890
|
};
|
|
3891
|
+
/**
|
|
3892
|
+
* Set Account On Hold
|
|
3893
|
+
* @param {string} id Xero ID
|
|
3894
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
3895
|
+
* @param {*} [options] Override http request option.
|
|
3896
|
+
* @throws {RequiredError}
|
|
3897
|
+
*/
|
|
3898
|
+
AccountsApi.prototype.patchSetOnHold = function (id, state, options) {
|
|
3899
|
+
var _this = this;
|
|
3900
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchSetOnHold(id, state, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3901
|
+
};
|
|
3812
3902
|
/**
|
|
3813
3903
|
* Set Account Portal Access
|
|
3814
3904
|
* @param {string} id Xero ID
|
|
@@ -4105,6 +4195,10 @@ exports.PatchSetAccountStatusStateEnum = {
|
|
|
4105
4195
|
Enable: 'enable',
|
|
4106
4196
|
Disable: 'disable',
|
|
4107
4197
|
};
|
|
4198
|
+
exports.PatchSetOnHoldStateEnum = {
|
|
4199
|
+
Enable: 'enable',
|
|
4200
|
+
Disable: 'disable',
|
|
4201
|
+
};
|
|
4108
4202
|
exports.PatchSetPortalAccessStateEnum = {
|
|
4109
4203
|
Enable: 'enable',
|
|
4110
4204
|
Disable: 'disable',
|
|
@@ -4153,6 +4247,56 @@ var BillingApiAxiosParamCreator = function (configuration) {
|
|
|
4153
4247
|
});
|
|
4154
4248
|
});
|
|
4155
4249
|
},
|
|
4250
|
+
/**
|
|
4251
|
+
* Transfer Billing Connection
|
|
4252
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
4253
|
+
* @param {number} [id] Connection ID
|
|
4254
|
+
* @param {string} [cli] CLI
|
|
4255
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
4256
|
+
* @param {*} [options] Override http request option.
|
|
4257
|
+
* @throws {RequiredError}
|
|
4258
|
+
*/
|
|
4259
|
+
putTransferConnection: function (putTransferConnectionRequest_1, id_1, cli_1, skipDDis_1) {
|
|
4260
|
+
var args_1 = [];
|
|
4261
|
+
for (var _i = 4; _i < arguments.length; _i++) {
|
|
4262
|
+
args_1[_i - 4] = arguments[_i];
|
|
4263
|
+
}
|
|
4264
|
+
return __awaiter(_this, __spreadArray([putTransferConnectionRequest_1, id_1, cli_1, skipDDis_1], args_1, true), void 0, function (putTransferConnectionRequest, id, cli, skipDDis, options) {
|
|
4265
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
4266
|
+
if (options === void 0) { options = {}; }
|
|
4267
|
+
return __generator(this, function (_a) {
|
|
4268
|
+
// verify required parameter 'putTransferConnectionRequest' is not null or undefined
|
|
4269
|
+
(0, common_1.assertParamExists)('putTransferConnection', 'putTransferConnectionRequest', putTransferConnectionRequest);
|
|
4270
|
+
localVarPath = "/billing/admin/connections";
|
|
4271
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4272
|
+
if (configuration) {
|
|
4273
|
+
baseOptions = configuration.baseOptions;
|
|
4274
|
+
}
|
|
4275
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
4276
|
+
localVarHeaderParameter = {};
|
|
4277
|
+
localVarQueryParameter = {};
|
|
4278
|
+
if (id !== undefined) {
|
|
4279
|
+
localVarQueryParameter['id'] = id;
|
|
4280
|
+
}
|
|
4281
|
+
if (cli !== undefined) {
|
|
4282
|
+
localVarQueryParameter['cli'] = cli;
|
|
4283
|
+
}
|
|
4284
|
+
if (skipDDis !== undefined) {
|
|
4285
|
+
localVarQueryParameter['skipDDis'] = skipDDis;
|
|
4286
|
+
}
|
|
4287
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4288
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
4289
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4290
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4291
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4292
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(putTransferConnectionRequest, localVarRequestOptions, configuration);
|
|
4293
|
+
return [2 /*return*/, {
|
|
4294
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4295
|
+
options: localVarRequestOptions,
|
|
4296
|
+
}];
|
|
4297
|
+
});
|
|
4298
|
+
});
|
|
4299
|
+
},
|
|
4156
4300
|
};
|
|
4157
4301
|
};
|
|
4158
4302
|
exports.BillingApiAxiosParamCreator = BillingApiAxiosParamCreator;
|
|
@@ -4184,6 +4328,31 @@ var BillingApiFp = function (configuration) {
|
|
|
4184
4328
|
});
|
|
4185
4329
|
});
|
|
4186
4330
|
},
|
|
4331
|
+
/**
|
|
4332
|
+
* Transfer Billing Connection
|
|
4333
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
4334
|
+
* @param {number} [id] Connection ID
|
|
4335
|
+
* @param {string} [cli] CLI
|
|
4336
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
4337
|
+
* @param {*} [options] Override http request option.
|
|
4338
|
+
* @throws {RequiredError}
|
|
4339
|
+
*/
|
|
4340
|
+
putTransferConnection: function (putTransferConnectionRequest, id, cli, skipDDis, options) {
|
|
4341
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4342
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
4343
|
+
var _a, _b, _c;
|
|
4344
|
+
return __generator(this, function (_d) {
|
|
4345
|
+
switch (_d.label) {
|
|
4346
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putTransferConnection(putTransferConnectionRequest, id, cli, skipDDis, options)];
|
|
4347
|
+
case 1:
|
|
4348
|
+
localVarAxiosArgs = _d.sent();
|
|
4349
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4350
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingApi.putTransferConnection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4351
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
4352
|
+
}
|
|
4353
|
+
});
|
|
4354
|
+
});
|
|
4355
|
+
},
|
|
4187
4356
|
};
|
|
4188
4357
|
};
|
|
4189
4358
|
exports.BillingApiFp = BillingApiFp;
|
|
@@ -4202,6 +4371,18 @@ var BillingApiFactory = function (configuration, basePath, axios) {
|
|
|
4202
4371
|
getGetAllCustomer: function (options) {
|
|
4203
4372
|
return localVarFp.getGetAllCustomer(options).then(function (request) { return request(axios, basePath); });
|
|
4204
4373
|
},
|
|
4374
|
+
/**
|
|
4375
|
+
* Transfer Billing Connection
|
|
4376
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
4377
|
+
* @param {number} [id] Connection ID
|
|
4378
|
+
* @param {string} [cli] CLI
|
|
4379
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
4380
|
+
* @param {*} [options] Override http request option.
|
|
4381
|
+
* @throws {RequiredError}
|
|
4382
|
+
*/
|
|
4383
|
+
putTransferConnection: function (putTransferConnectionRequest, id, cli, skipDDis, options) {
|
|
4384
|
+
return localVarFp.putTransferConnection(putTransferConnectionRequest, id, cli, skipDDis, options).then(function (request) { return request(axios, basePath); });
|
|
4385
|
+
},
|
|
4205
4386
|
};
|
|
4206
4387
|
};
|
|
4207
4388
|
exports.BillingApiFactory = BillingApiFactory;
|
|
@@ -4223,6 +4404,19 @@ var BillingApi = /** @class */ (function (_super) {
|
|
|
4223
4404
|
var _this = this;
|
|
4224
4405
|
return (0, exports.BillingApiFp)(this.configuration).getGetAllCustomer(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4225
4406
|
};
|
|
4407
|
+
/**
|
|
4408
|
+
* Transfer Billing Connection
|
|
4409
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
4410
|
+
* @param {number} [id] Connection ID
|
|
4411
|
+
* @param {string} [cli] CLI
|
|
4412
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
4413
|
+
* @param {*} [options] Override http request option.
|
|
4414
|
+
* @throws {RequiredError}
|
|
4415
|
+
*/
|
|
4416
|
+
BillingApi.prototype.putTransferConnection = function (putTransferConnectionRequest, id, cli, skipDDis, options) {
|
|
4417
|
+
var _this = this;
|
|
4418
|
+
return (0, exports.BillingApiFp)(this.configuration).putTransferConnection(putTransferConnectionRequest, id, cli, skipDDis, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4419
|
+
};
|
|
4226
4420
|
return BillingApi;
|
|
4227
4421
|
}(base_1.BaseAPI));
|
|
4228
4422
|
exports.BillingApi = BillingApi;
|
|
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**creditLimit** | **number** | Credit Limit | [optional] [default to undefined]
|
|
13
13
|
**balance** | **number** | Balance Used | [optional] [default to undefined]
|
|
14
14
|
**overdue** | **number** | Overdue Amount | [optional] [default to undefined]
|
|
15
|
+
**onHold** | **boolean** | On Hold | [optional] [default to undefined]
|
|
15
16
|
**priceList** | [**CustomerPriceListEnum**](CustomerPriceListEnum.md) | | [optional] [default to undefined]
|
|
16
17
|
**sipChannelCost** | **number** | SIP Trunk Channel Cost | [optional] [default to undefined]
|
|
17
18
|
**xeroUrl** | **string** | Xero Contact URL | [optional] [default to undefined]
|
|
@@ -28,6 +29,7 @@ const instance: AccountFinanceDTO = {
|
|
|
28
29
|
creditLimit,
|
|
29
30
|
balance,
|
|
30
31
|
overdue,
|
|
32
|
+
onHold,
|
|
31
33
|
priceList,
|
|
32
34
|
sipChannelCost,
|
|
33
35
|
xeroUrl,
|
package/docs/AccountsApi.md
CHANGED
|
@@ -22,6 +22,7 @@ All URIs are relative to *https://localhost*
|
|
|
22
22
|
|[**getGetTcxPartnerDetails**](#getgettcxpartnerdetails) | **GET** /admin/accounts/{id}/tcx/partner | |
|
|
23
23
|
|[**getVerifyEmailAddress**](#getverifyemailaddress) | **GET** /accounts/contacts/verify | Verify account email address|
|
|
24
24
|
|[**patchSetAccountStatus**](#patchsetaccountstatus) | **PATCH** /admin/accounts/{id}/status/{state} | |
|
|
25
|
+
|[**patchSetOnHold**](#patchsetonhold) | **PATCH** /admin/accounts/{id}/onHold/{state} | |
|
|
25
26
|
|[**patchSetPortalAccess**](#patchsetportalaccess) | **PATCH** /admin/accounts/{id}/portal/access/{state} | |
|
|
26
27
|
|[**patchSetPrizePromo**](#patchsetprizepromo) | **PATCH** /admin/accounts/{id}/prizes/{state} | |
|
|
27
28
|
|[**patchSetTcxWizardCname**](#patchsettcxwizardcname) | **PATCH** /accounts/me/cname | |
|
|
@@ -1001,6 +1002,63 @@ No authorization required
|
|
|
1001
1002
|
|
|
1002
1003
|
[[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)
|
|
1003
1004
|
|
|
1005
|
+
# **patchSetOnHold**
|
|
1006
|
+
> AccountFinanceDTO patchSetOnHold()
|
|
1007
|
+
|
|
1008
|
+
Set Account On Hold
|
|
1009
|
+
|
|
1010
|
+
### Example
|
|
1011
|
+
|
|
1012
|
+
```typescript
|
|
1013
|
+
import {
|
|
1014
|
+
AccountsApi,
|
|
1015
|
+
Configuration
|
|
1016
|
+
} from 'yellowgrid-api-ts';
|
|
1017
|
+
|
|
1018
|
+
const configuration = new Configuration();
|
|
1019
|
+
const apiInstance = new AccountsApi(configuration);
|
|
1020
|
+
|
|
1021
|
+
let id: string; //Xero ID (default to undefined)
|
|
1022
|
+
let state: 'enable' | 'disable'; //On Hold State (default to undefined)
|
|
1023
|
+
|
|
1024
|
+
const { status, data } = await apiInstance.patchSetOnHold(
|
|
1025
|
+
id,
|
|
1026
|
+
state
|
|
1027
|
+
);
|
|
1028
|
+
```
|
|
1029
|
+
|
|
1030
|
+
### Parameters
|
|
1031
|
+
|
|
1032
|
+
|Name | Type | Description | Notes|
|
|
1033
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1034
|
+
| **id** | [**string**] | Xero ID | defaults to undefined|
|
|
1035
|
+
| **state** | [**'enable' | 'disable'**]**Array<'enable' | 'disable'>** | On Hold State | defaults to undefined|
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
### Return type
|
|
1039
|
+
|
|
1040
|
+
**AccountFinanceDTO**
|
|
1041
|
+
|
|
1042
|
+
### Authorization
|
|
1043
|
+
|
|
1044
|
+
No authorization required
|
|
1045
|
+
|
|
1046
|
+
### HTTP request headers
|
|
1047
|
+
|
|
1048
|
+
- **Content-Type**: Not defined
|
|
1049
|
+
- **Accept**: application/json
|
|
1050
|
+
|
|
1051
|
+
|
|
1052
|
+
### HTTP response details
|
|
1053
|
+
| Status code | Description | Response headers |
|
|
1054
|
+
|-------------|-------------|------------------|
|
|
1055
|
+
|**200** | Accounts Finance Details | - |
|
|
1056
|
+
|**400** | Bad Request | - |
|
|
1057
|
+
|**401** | Unauthorised | - |
|
|
1058
|
+
|**403** | Access Denied | - |
|
|
1059
|
+
|
|
1060
|
+
[[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)
|
|
1061
|
+
|
|
1004
1062
|
# **patchSetPortalAccess**
|
|
1005
1063
|
> patchSetPortalAccess()
|
|
1006
1064
|
|
package/docs/BillingApi.md
CHANGED
|
@@ -5,6 +5,7 @@ All URIs are relative to *https://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getGetAllCustomer**](#getgetallcustomer) | **GET** /billing/admin/customerList | Get Billing Customers|
|
|
8
|
+
|[**putTransferConnection**](#puttransferconnection) | **PUT** /billing/admin/connections | |
|
|
8
9
|
|
|
9
10
|
# **getGetAllCustomer**
|
|
10
11
|
> { [key: string]: { [key: string]: string; }; } getGetAllCustomer()
|
|
@@ -53,3 +54,67 @@ No authorization required
|
|
|
53
54
|
|
|
54
55
|
[[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)
|
|
55
56
|
|
|
57
|
+
# **putTransferConnection**
|
|
58
|
+
> object putTransferConnection(putTransferConnectionRequest)
|
|
59
|
+
|
|
60
|
+
Transfer Billing Connection
|
|
61
|
+
|
|
62
|
+
### Example
|
|
63
|
+
|
|
64
|
+
```typescript
|
|
65
|
+
import {
|
|
66
|
+
BillingApi,
|
|
67
|
+
Configuration,
|
|
68
|
+
PutTransferConnectionRequest
|
|
69
|
+
} from 'yellowgrid-api-ts';
|
|
70
|
+
|
|
71
|
+
const configuration = new Configuration();
|
|
72
|
+
const apiInstance = new BillingApi(configuration);
|
|
73
|
+
|
|
74
|
+
let putTransferConnectionRequest: PutTransferConnectionRequest; //Transfer Request
|
|
75
|
+
let id: number; //Connection ID (optional) (default to undefined)
|
|
76
|
+
let cli: string; //CLI (optional) (default to undefined)
|
|
77
|
+
let skipDDis: boolean; //Skip DDIs (optional) (default to undefined)
|
|
78
|
+
|
|
79
|
+
const { status, data } = await apiInstance.putTransferConnection(
|
|
80
|
+
putTransferConnectionRequest,
|
|
81
|
+
id,
|
|
82
|
+
cli,
|
|
83
|
+
skipDDis
|
|
84
|
+
);
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Parameters
|
|
88
|
+
|
|
89
|
+
|Name | Type | Description | Notes|
|
|
90
|
+
|------------- | ------------- | ------------- | -------------|
|
|
91
|
+
| **putTransferConnectionRequest** | **PutTransferConnectionRequest**| Transfer Request | |
|
|
92
|
+
| **id** | [**number**] | Connection ID | (optional) defaults to undefined|
|
|
93
|
+
| **cli** | [**string**] | CLI | (optional) defaults to undefined|
|
|
94
|
+
| **skipDDis** | [**boolean**] | Skip DDIs | (optional) defaults to undefined|
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### Return type
|
|
98
|
+
|
|
99
|
+
**object**
|
|
100
|
+
|
|
101
|
+
### Authorization
|
|
102
|
+
|
|
103
|
+
No authorization required
|
|
104
|
+
|
|
105
|
+
### HTTP request headers
|
|
106
|
+
|
|
107
|
+
- **Content-Type**: application/json
|
|
108
|
+
- **Accept**: application/json
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### HTTP response details
|
|
112
|
+
| Status code | Description | Response headers |
|
|
113
|
+
|-------------|-------------|------------------|
|
|
114
|
+
|**200** | Billing Connection | - |
|
|
115
|
+
|**400** | Bad Request | - |
|
|
116
|
+
|**401** | Unauthorised | - |
|
|
117
|
+
|**403** | Access Denied | - |
|
|
118
|
+
|
|
119
|
+
[[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)
|
|
120
|
+
|
package/docs/PartnerDTO.md
CHANGED
|
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
|
|
|
16
16
|
**hostingDisountPercent** | **number** | 3CX Partner Hosting Discount Percent | [optional] [default to undefined]
|
|
17
17
|
**hostingPriceListId** | **number** | 3CX Hosting Price List ID | [optional] [default to undefined]
|
|
18
18
|
**installationUrl** | **string** | 3CX Installation URL | [optional] [default to undefined]
|
|
19
|
+
**aligned** | **boolean** | Aligned | [optional] [default to undefined]
|
|
19
20
|
|
|
20
21
|
## Example
|
|
21
22
|
|
|
@@ -33,6 +34,7 @@ const instance: PartnerDTO = {
|
|
|
33
34
|
hostingDisountPercent,
|
|
34
35
|
hostingPriceListId,
|
|
35
36
|
installationUrl,
|
|
37
|
+
aligned,
|
|
36
38
|
};
|
|
37
39
|
```
|
|
38
40
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# PutTransferConnectionRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**customerId** | **number** | Customer ID | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { PutTransferConnectionRequest } from 'yellowgrid-api-ts';
|
|
14
|
+
|
|
15
|
+
const instance: PutTransferConnectionRequest = {
|
|
16
|
+
customerId,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|