yellowgrid-api-ts 3.2.174-dev.0 → 3.2.176-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 +192 -0
- package/dist/api.d.ts +104 -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/ProspectDTO.md +4 -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
|
/**
|
|
@@ -4928,6 +4936,14 @@ export interface ProspectDTO {
|
|
|
4928
4936
|
* Order Count
|
|
4929
4937
|
*/
|
|
4930
4938
|
'orderCount'?: number;
|
|
4939
|
+
/**
|
|
4940
|
+
* 3CX Order Count
|
|
4941
|
+
*/
|
|
4942
|
+
'tcxOrderCount'?: number;
|
|
4943
|
+
/**
|
|
4944
|
+
* Branded Video Count
|
|
4945
|
+
*/
|
|
4946
|
+
'videoCount'?: number;
|
|
4931
4947
|
}
|
|
4932
4948
|
|
|
4933
4949
|
export const ProspectDTOStatusEnum = {
|
|
@@ -5048,6 +5064,12 @@ export interface PutAllocateItemsRequestItemsInner {
|
|
|
5048
5064
|
*/
|
|
5049
5065
|
'quantity'?: number;
|
|
5050
5066
|
}
|
|
5067
|
+
export interface PutTransferConnectionRequest {
|
|
5068
|
+
/**
|
|
5069
|
+
* Customer ID
|
|
5070
|
+
*/
|
|
5071
|
+
'customerId'?: number;
|
|
5072
|
+
}
|
|
5051
5073
|
/**
|
|
5052
5074
|
* Azure Recordings Backup
|
|
5053
5075
|
*/
|
|
@@ -5383,6 +5405,7 @@ export const ShipmentDTOCourierEnum = {
|
|
|
5383
5405
|
Dpd: 'DPD',
|
|
5384
5406
|
ChorltonPallet: 'Chorlton Pallet',
|
|
5385
5407
|
Pops: 'POPS',
|
|
5408
|
+
Interparcel: 'Interparcel',
|
|
5386
5409
|
} as const;
|
|
5387
5410
|
|
|
5388
5411
|
export type ShipmentDTOCourierEnum = typeof ShipmentDTOCourierEnum[keyof typeof ShipmentDTOCourierEnum];
|
|
@@ -5590,6 +5613,7 @@ export const ShipmentRequestDTOCourierEnum = {
|
|
|
5590
5613
|
Dpd: 'DPD',
|
|
5591
5614
|
ChorltonPallet: 'Chorlton Pallet',
|
|
5592
5615
|
Pops: 'POPS',
|
|
5616
|
+
Interparcel: 'Interparcel',
|
|
5593
5617
|
} as const;
|
|
5594
5618
|
|
|
5595
5619
|
export type ShipmentRequestDTOCourierEnum = typeof ShipmentRequestDTOCourierEnum[keyof typeof ShipmentRequestDTOCourierEnum];
|
|
@@ -5687,6 +5711,7 @@ export const ShippingRequestDTOCourierEnum = {
|
|
|
5687
5711
|
Dpd: 'DPD',
|
|
5688
5712
|
ChorltonPallet: 'Chorlton Pallet',
|
|
5689
5713
|
Pops: 'POPS',
|
|
5714
|
+
Interparcel: 'Interparcel',
|
|
5690
5715
|
} as const;
|
|
5691
5716
|
|
|
5692
5717
|
export type ShippingRequestDTOCourierEnum = typeof ShippingRequestDTOCourierEnum[keyof typeof ShippingRequestDTOCourierEnum];
|
|
@@ -5716,6 +5741,7 @@ export const ShippingServiceDTOCourierEnum = {
|
|
|
5716
5741
|
Dpd: 'DPD',
|
|
5717
5742
|
ChorltonPallet: 'Chorlton Pallet',
|
|
5718
5743
|
Pops: 'POPS',
|
|
5744
|
+
Interparcel: 'Interparcel',
|
|
5719
5745
|
} as const;
|
|
5720
5746
|
|
|
5721
5747
|
export type ShippingServiceDTOCourierEnum = typeof ShippingServiceDTOCourierEnum[keyof typeof ShippingServiceDTOCourierEnum];
|
|
@@ -5754,6 +5780,7 @@ export const ShippingServiceModelCourierEnum = {
|
|
|
5754
5780
|
Dpd: 'DPD',
|
|
5755
5781
|
ChorltonPallet: 'Chorlton Pallet',
|
|
5756
5782
|
Pops: 'POPS',
|
|
5783
|
+
Interparcel: 'Interparcel',
|
|
5757
5784
|
} as const;
|
|
5758
5785
|
|
|
5759
5786
|
export type ShippingServiceModelCourierEnum = typeof ShippingServiceModelCourierEnum[keyof typeof ShippingServiceModelCourierEnum];
|
|
@@ -9193,6 +9220,43 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9193
9220
|
const localVarQueryParameter = {} as any;
|
|
9194
9221
|
|
|
9195
9222
|
|
|
9223
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9224
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9225
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9226
|
+
|
|
9227
|
+
return {
|
|
9228
|
+
url: toPathString(localVarUrlObj),
|
|
9229
|
+
options: localVarRequestOptions,
|
|
9230
|
+
};
|
|
9231
|
+
},
|
|
9232
|
+
/**
|
|
9233
|
+
* Set Account On Hold
|
|
9234
|
+
* @param {string} id Xero ID
|
|
9235
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
9236
|
+
* @param {*} [options] Override http request option.
|
|
9237
|
+
* @throws {RequiredError}
|
|
9238
|
+
*/
|
|
9239
|
+
patchSetOnHold: async (id: string, state: PatchSetOnHoldStateEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9240
|
+
// verify required parameter 'id' is not null or undefined
|
|
9241
|
+
assertParamExists('patchSetOnHold', 'id', id)
|
|
9242
|
+
// verify required parameter 'state' is not null or undefined
|
|
9243
|
+
assertParamExists('patchSetOnHold', 'state', state)
|
|
9244
|
+
const localVarPath = `/admin/accounts/{id}/onHold/{state}`
|
|
9245
|
+
.replace('{id}', encodeURIComponent(String(id)))
|
|
9246
|
+
.replace('{state}', encodeURIComponent(String(state)));
|
|
9247
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9248
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9249
|
+
let baseOptions;
|
|
9250
|
+
if (configuration) {
|
|
9251
|
+
baseOptions = configuration.baseOptions;
|
|
9252
|
+
}
|
|
9253
|
+
|
|
9254
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
9255
|
+
const localVarHeaderParameter = {} as any;
|
|
9256
|
+
const localVarQueryParameter = {} as any;
|
|
9257
|
+
|
|
9258
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
9259
|
+
|
|
9196
9260
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9197
9261
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9198
9262
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -10355,6 +10419,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
10355
10419
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchSetAccountStatus']?.[localVarOperationServerIndex]?.url;
|
|
10356
10420
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10357
10421
|
},
|
|
10422
|
+
/**
|
|
10423
|
+
* Set Account On Hold
|
|
10424
|
+
* @param {string} id Xero ID
|
|
10425
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
10426
|
+
* @param {*} [options] Override http request option.
|
|
10427
|
+
* @throws {RequiredError}
|
|
10428
|
+
*/
|
|
10429
|
+
async patchSetOnHold(id: string, state: PatchSetOnHoldStateEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
|
|
10430
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchSetOnHold(id, state, options);
|
|
10431
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10432
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchSetOnHold']?.[localVarOperationServerIndex]?.url;
|
|
10433
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10434
|
+
},
|
|
10358
10435
|
/**
|
|
10359
10436
|
* Set Account Portal Access
|
|
10360
10437
|
* @param {string} id Xero ID
|
|
@@ -10877,6 +10954,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
10877
10954
|
patchSetAccountStatus(id: string, state: PatchSetAccountStatusStateEnum, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
10878
10955
|
return localVarFp.patchSetAccountStatus(id, state, options).then((request) => request(axios, basePath));
|
|
10879
10956
|
},
|
|
10957
|
+
/**
|
|
10958
|
+
* Set Account On Hold
|
|
10959
|
+
* @param {string} id Xero ID
|
|
10960
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
10961
|
+
* @param {*} [options] Override http request option.
|
|
10962
|
+
* @throws {RequiredError}
|
|
10963
|
+
*/
|
|
10964
|
+
patchSetOnHold(id: string, state: PatchSetOnHoldStateEnum, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
|
|
10965
|
+
return localVarFp.patchSetOnHold(id, state, options).then((request) => request(axios, basePath));
|
|
10966
|
+
},
|
|
10880
10967
|
/**
|
|
10881
10968
|
* Set Account Portal Access
|
|
10882
10969
|
* @param {string} id Xero ID
|
|
@@ -11337,6 +11424,17 @@ export class AccountsApi extends BaseAPI {
|
|
|
11337
11424
|
return AccountsApiFp(this.configuration).patchSetAccountStatus(id, state, options).then((request) => request(this.axios, this.basePath));
|
|
11338
11425
|
}
|
|
11339
11426
|
|
|
11427
|
+
/**
|
|
11428
|
+
* Set Account On Hold
|
|
11429
|
+
* @param {string} id Xero ID
|
|
11430
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
11431
|
+
* @param {*} [options] Override http request option.
|
|
11432
|
+
* @throws {RequiredError}
|
|
11433
|
+
*/
|
|
11434
|
+
public patchSetOnHold(id: string, state: PatchSetOnHoldStateEnum, options?: RawAxiosRequestConfig) {
|
|
11435
|
+
return AccountsApiFp(this.configuration).patchSetOnHold(id, state, options).then((request) => request(this.axios, this.basePath));
|
|
11436
|
+
}
|
|
11437
|
+
|
|
11340
11438
|
/**
|
|
11341
11439
|
* Set Account Portal Access
|
|
11342
11440
|
* @param {string} id Xero ID
|
|
@@ -11632,6 +11730,11 @@ export const PatchSetAccountStatusStateEnum = {
|
|
|
11632
11730
|
Disable: 'disable',
|
|
11633
11731
|
} as const;
|
|
11634
11732
|
export type PatchSetAccountStatusStateEnum = typeof PatchSetAccountStatusStateEnum[keyof typeof PatchSetAccountStatusStateEnum];
|
|
11733
|
+
export const PatchSetOnHoldStateEnum = {
|
|
11734
|
+
Enable: 'enable',
|
|
11735
|
+
Disable: 'disable',
|
|
11736
|
+
} as const;
|
|
11737
|
+
export type PatchSetOnHoldStateEnum = typeof PatchSetOnHoldStateEnum[keyof typeof PatchSetOnHoldStateEnum];
|
|
11635
11738
|
export const PatchSetPortalAccessStateEnum = {
|
|
11636
11739
|
Enable: 'enable',
|
|
11637
11740
|
Disable: 'disable',
|
|
@@ -11674,6 +11777,55 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
11674
11777
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11675
11778
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11676
11779
|
|
|
11780
|
+
return {
|
|
11781
|
+
url: toPathString(localVarUrlObj),
|
|
11782
|
+
options: localVarRequestOptions,
|
|
11783
|
+
};
|
|
11784
|
+
},
|
|
11785
|
+
/**
|
|
11786
|
+
* Transfer Billing Connection
|
|
11787
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
11788
|
+
* @param {number} [id] Connection ID
|
|
11789
|
+
* @param {string} [cli] CLI
|
|
11790
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
11791
|
+
* @param {*} [options] Override http request option.
|
|
11792
|
+
* @throws {RequiredError}
|
|
11793
|
+
*/
|
|
11794
|
+
putTransferConnection: async (putTransferConnectionRequest: PutTransferConnectionRequest, id?: number, cli?: string, skipDDis?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11795
|
+
// verify required parameter 'putTransferConnectionRequest' is not null or undefined
|
|
11796
|
+
assertParamExists('putTransferConnection', 'putTransferConnectionRequest', putTransferConnectionRequest)
|
|
11797
|
+
const localVarPath = `/billing/admin/connections`;
|
|
11798
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11799
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11800
|
+
let baseOptions;
|
|
11801
|
+
if (configuration) {
|
|
11802
|
+
baseOptions = configuration.baseOptions;
|
|
11803
|
+
}
|
|
11804
|
+
|
|
11805
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
11806
|
+
const localVarHeaderParameter = {} as any;
|
|
11807
|
+
const localVarQueryParameter = {} as any;
|
|
11808
|
+
|
|
11809
|
+
if (id !== undefined) {
|
|
11810
|
+
localVarQueryParameter['id'] = id;
|
|
11811
|
+
}
|
|
11812
|
+
|
|
11813
|
+
if (cli !== undefined) {
|
|
11814
|
+
localVarQueryParameter['cli'] = cli;
|
|
11815
|
+
}
|
|
11816
|
+
|
|
11817
|
+
if (skipDDis !== undefined) {
|
|
11818
|
+
localVarQueryParameter['skipDDis'] = skipDDis;
|
|
11819
|
+
}
|
|
11820
|
+
|
|
11821
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11822
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
11823
|
+
|
|
11824
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11825
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11826
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11827
|
+
localVarRequestOptions.data = serializeDataIfNeeded(putTransferConnectionRequest, localVarRequestOptions, configuration)
|
|
11828
|
+
|
|
11677
11829
|
return {
|
|
11678
11830
|
url: toPathString(localVarUrlObj),
|
|
11679
11831
|
options: localVarRequestOptions,
|
|
@@ -11700,6 +11852,21 @@ export const BillingApiFp = function(configuration?: Configuration) {
|
|
|
11700
11852
|
const localVarOperationServerBasePath = operationServerMap['BillingApi.getGetAllCustomer']?.[localVarOperationServerIndex]?.url;
|
|
11701
11853
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11702
11854
|
},
|
|
11855
|
+
/**
|
|
11856
|
+
* Transfer Billing Connection
|
|
11857
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
11858
|
+
* @param {number} [id] Connection ID
|
|
11859
|
+
* @param {string} [cli] CLI
|
|
11860
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
11861
|
+
* @param {*} [options] Override http request option.
|
|
11862
|
+
* @throws {RequiredError}
|
|
11863
|
+
*/
|
|
11864
|
+
async putTransferConnection(putTransferConnectionRequest: PutTransferConnectionRequest, id?: number, cli?: string, skipDDis?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
11865
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putTransferConnection(putTransferConnectionRequest, id, cli, skipDDis, options);
|
|
11866
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11867
|
+
const localVarOperationServerBasePath = operationServerMap['BillingApi.putTransferConnection']?.[localVarOperationServerIndex]?.url;
|
|
11868
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11869
|
+
},
|
|
11703
11870
|
}
|
|
11704
11871
|
};
|
|
11705
11872
|
|
|
@@ -11718,6 +11885,18 @@ export const BillingApiFactory = function (configuration?: Configuration, basePa
|
|
|
11718
11885
|
getGetAllCustomer(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: { [key: string]: string; }; }> {
|
|
11719
11886
|
return localVarFp.getGetAllCustomer(options).then((request) => request(axios, basePath));
|
|
11720
11887
|
},
|
|
11888
|
+
/**
|
|
11889
|
+
* Transfer Billing Connection
|
|
11890
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
11891
|
+
* @param {number} [id] Connection ID
|
|
11892
|
+
* @param {string} [cli] CLI
|
|
11893
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
11894
|
+
* @param {*} [options] Override http request option.
|
|
11895
|
+
* @throws {RequiredError}
|
|
11896
|
+
*/
|
|
11897
|
+
putTransferConnection(putTransferConnectionRequest: PutTransferConnectionRequest, id?: number, cli?: string, skipDDis?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
11898
|
+
return localVarFp.putTransferConnection(putTransferConnectionRequest, id, cli, skipDDis, options).then((request) => request(axios, basePath));
|
|
11899
|
+
},
|
|
11721
11900
|
};
|
|
11722
11901
|
};
|
|
11723
11902
|
|
|
@@ -11734,6 +11913,19 @@ export class BillingApi extends BaseAPI {
|
|
|
11734
11913
|
public getGetAllCustomer(options?: RawAxiosRequestConfig) {
|
|
11735
11914
|
return BillingApiFp(this.configuration).getGetAllCustomer(options).then((request) => request(this.axios, this.basePath));
|
|
11736
11915
|
}
|
|
11916
|
+
|
|
11917
|
+
/**
|
|
11918
|
+
* Transfer Billing Connection
|
|
11919
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
11920
|
+
* @param {number} [id] Connection ID
|
|
11921
|
+
* @param {string} [cli] CLI
|
|
11922
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
11923
|
+
* @param {*} [options] Override http request option.
|
|
11924
|
+
* @throws {RequiredError}
|
|
11925
|
+
*/
|
|
11926
|
+
public putTransferConnection(putTransferConnectionRequest: PutTransferConnectionRequest, id?: number, cli?: string, skipDDis?: boolean, options?: RawAxiosRequestConfig) {
|
|
11927
|
+
return BillingApiFp(this.configuration).putTransferConnection(putTransferConnectionRequest, id, cli, skipDDis, options).then((request) => request(this.axios, this.basePath));
|
|
11928
|
+
}
|
|
11737
11929
|
}
|
|
11738
11930
|
|
|
11739
11931
|
|
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
|
/**
|
|
@@ -4874,6 +4882,14 @@ export interface ProspectDTO {
|
|
|
4874
4882
|
* Order Count
|
|
4875
4883
|
*/
|
|
4876
4884
|
'orderCount'?: number;
|
|
4885
|
+
/**
|
|
4886
|
+
* 3CX Order Count
|
|
4887
|
+
*/
|
|
4888
|
+
'tcxOrderCount'?: number;
|
|
4889
|
+
/**
|
|
4890
|
+
* Branded Video Count
|
|
4891
|
+
*/
|
|
4892
|
+
'videoCount'?: number;
|
|
4877
4893
|
}
|
|
4878
4894
|
export declare const ProspectDTOStatusEnum: {
|
|
4879
4895
|
readonly NoCallBackSet: "No Call Back Set";
|
|
@@ -4991,6 +5007,12 @@ export interface PutAllocateItemsRequestItemsInner {
|
|
|
4991
5007
|
*/
|
|
4992
5008
|
'quantity'?: number;
|
|
4993
5009
|
}
|
|
5010
|
+
export interface PutTransferConnectionRequest {
|
|
5011
|
+
/**
|
|
5012
|
+
* Customer ID
|
|
5013
|
+
*/
|
|
5014
|
+
'customerId'?: number;
|
|
5015
|
+
}
|
|
4994
5016
|
/**
|
|
4995
5017
|
* Azure Recordings Backup
|
|
4996
5018
|
*/
|
|
@@ -5319,6 +5341,7 @@ export declare const ShipmentDTOCourierEnum: {
|
|
|
5319
5341
|
readonly Dpd: "DPD";
|
|
5320
5342
|
readonly ChorltonPallet: "Chorlton Pallet";
|
|
5321
5343
|
readonly Pops: "POPS";
|
|
5344
|
+
readonly Interparcel: "Interparcel";
|
|
5322
5345
|
};
|
|
5323
5346
|
export type ShipmentDTOCourierEnum = typeof ShipmentDTOCourierEnum[keyof typeof ShipmentDTOCourierEnum];
|
|
5324
5347
|
/**
|
|
@@ -5523,6 +5546,7 @@ export declare const ShipmentRequestDTOCourierEnum: {
|
|
|
5523
5546
|
readonly Dpd: "DPD";
|
|
5524
5547
|
readonly ChorltonPallet: "Chorlton Pallet";
|
|
5525
5548
|
readonly Pops: "POPS";
|
|
5549
|
+
readonly Interparcel: "Interparcel";
|
|
5526
5550
|
};
|
|
5527
5551
|
export type ShipmentRequestDTOCourierEnum = typeof ShipmentRequestDTOCourierEnum[keyof typeof ShipmentRequestDTOCourierEnum];
|
|
5528
5552
|
/**
|
|
@@ -5617,6 +5641,7 @@ export declare const ShippingRequestDTOCourierEnum: {
|
|
|
5617
5641
|
readonly Dpd: "DPD";
|
|
5618
5642
|
readonly ChorltonPallet: "Chorlton Pallet";
|
|
5619
5643
|
readonly Pops: "POPS";
|
|
5644
|
+
readonly Interparcel: "Interparcel";
|
|
5620
5645
|
};
|
|
5621
5646
|
export type ShippingRequestDTOCourierEnum = typeof ShippingRequestDTOCourierEnum[keyof typeof ShippingRequestDTOCourierEnum];
|
|
5622
5647
|
export declare const ShippingRequestDTOPrinterEnum: {
|
|
@@ -5642,6 +5667,7 @@ export declare const ShippingServiceDTOCourierEnum: {
|
|
|
5642
5667
|
readonly Dpd: "DPD";
|
|
5643
5668
|
readonly ChorltonPallet: "Chorlton Pallet";
|
|
5644
5669
|
readonly Pops: "POPS";
|
|
5670
|
+
readonly Interparcel: "Interparcel";
|
|
5645
5671
|
};
|
|
5646
5672
|
export type ShippingServiceDTOCourierEnum = typeof ShippingServiceDTOCourierEnum[keyof typeof ShippingServiceDTOCourierEnum];
|
|
5647
5673
|
/**
|
|
@@ -5677,6 +5703,7 @@ export declare const ShippingServiceModelCourierEnum: {
|
|
|
5677
5703
|
readonly Dpd: "DPD";
|
|
5678
5704
|
readonly ChorltonPallet: "Chorlton Pallet";
|
|
5679
5705
|
readonly Pops: "POPS";
|
|
5706
|
+
readonly Interparcel: "Interparcel";
|
|
5680
5707
|
};
|
|
5681
5708
|
export type ShippingServiceModelCourierEnum = typeof ShippingServiceModelCourierEnum[keyof typeof ShippingServiceModelCourierEnum];
|
|
5682
5709
|
export interface ShippingServicesModel {
|
|
@@ -8615,6 +8642,14 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
8615
8642
|
* @throws {RequiredError}
|
|
8616
8643
|
*/
|
|
8617
8644
|
patchSetAccountStatus: (id: string, state: PatchSetAccountStatusStateEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8645
|
+
/**
|
|
8646
|
+
* Set Account On Hold
|
|
8647
|
+
* @param {string} id Xero ID
|
|
8648
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
8649
|
+
* @param {*} [options] Override http request option.
|
|
8650
|
+
* @throws {RequiredError}
|
|
8651
|
+
*/
|
|
8652
|
+
patchSetOnHold: (id: string, state: PatchSetOnHoldStateEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8618
8653
|
/**
|
|
8619
8654
|
* Set Account Portal Access
|
|
8620
8655
|
* @param {string} id Xero ID
|
|
@@ -8967,6 +9002,14 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
8967
9002
|
* @throws {RequiredError}
|
|
8968
9003
|
*/
|
|
8969
9004
|
patchSetAccountStatus(id: string, state: PatchSetAccountStatusStateEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
9005
|
+
/**
|
|
9006
|
+
* Set Account On Hold
|
|
9007
|
+
* @param {string} id Xero ID
|
|
9008
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
9009
|
+
* @param {*} [options] Override http request option.
|
|
9010
|
+
* @throws {RequiredError}
|
|
9011
|
+
*/
|
|
9012
|
+
patchSetOnHold(id: string, state: PatchSetOnHoldStateEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>>;
|
|
8970
9013
|
/**
|
|
8971
9014
|
* Set Account Portal Access
|
|
8972
9015
|
* @param {string} id Xero ID
|
|
@@ -9319,6 +9362,14 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
9319
9362
|
* @throws {RequiredError}
|
|
9320
9363
|
*/
|
|
9321
9364
|
patchSetAccountStatus(id: string, state: PatchSetAccountStatusStateEnum, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
9365
|
+
/**
|
|
9366
|
+
* Set Account On Hold
|
|
9367
|
+
* @param {string} id Xero ID
|
|
9368
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
9369
|
+
* @param {*} [options] Override http request option.
|
|
9370
|
+
* @throws {RequiredError}
|
|
9371
|
+
*/
|
|
9372
|
+
patchSetOnHold(id: string, state: PatchSetOnHoldStateEnum, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO>;
|
|
9322
9373
|
/**
|
|
9323
9374
|
* Set Account Portal Access
|
|
9324
9375
|
* @param {string} id Xero ID
|
|
@@ -9671,6 +9722,14 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
9671
9722
|
* @throws {RequiredError}
|
|
9672
9723
|
*/
|
|
9673
9724
|
patchSetAccountStatus(id: string, state: PatchSetAccountStatusStateEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
9725
|
+
/**
|
|
9726
|
+
* Set Account On Hold
|
|
9727
|
+
* @param {string} id Xero ID
|
|
9728
|
+
* @param {PatchSetOnHoldStateEnum} state On Hold State
|
|
9729
|
+
* @param {*} [options] Override http request option.
|
|
9730
|
+
* @throws {RequiredError}
|
|
9731
|
+
*/
|
|
9732
|
+
patchSetOnHold(id: string, state: PatchSetOnHoldStateEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountFinanceDTO, any, {}>>;
|
|
9674
9733
|
/**
|
|
9675
9734
|
* Set Account Portal Access
|
|
9676
9735
|
* @param {string} id Xero ID
|
|
@@ -9888,6 +9947,11 @@ export declare const PatchSetAccountStatusStateEnum: {
|
|
|
9888
9947
|
readonly Disable: "disable";
|
|
9889
9948
|
};
|
|
9890
9949
|
export type PatchSetAccountStatusStateEnum = typeof PatchSetAccountStatusStateEnum[keyof typeof PatchSetAccountStatusStateEnum];
|
|
9950
|
+
export declare const PatchSetOnHoldStateEnum: {
|
|
9951
|
+
readonly Enable: "enable";
|
|
9952
|
+
readonly Disable: "disable";
|
|
9953
|
+
};
|
|
9954
|
+
export type PatchSetOnHoldStateEnum = typeof PatchSetOnHoldStateEnum[keyof typeof PatchSetOnHoldStateEnum];
|
|
9891
9955
|
export declare const PatchSetPortalAccessStateEnum: {
|
|
9892
9956
|
readonly Enable: "enable";
|
|
9893
9957
|
readonly Disable: "disable";
|
|
@@ -9909,6 +9973,16 @@ export declare const BillingApiAxiosParamCreator: (configuration?: Configuration
|
|
|
9909
9973
|
* @throws {RequiredError}
|
|
9910
9974
|
*/
|
|
9911
9975
|
getGetAllCustomer: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9976
|
+
/**
|
|
9977
|
+
* Transfer Billing Connection
|
|
9978
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
9979
|
+
* @param {number} [id] Connection ID
|
|
9980
|
+
* @param {string} [cli] CLI
|
|
9981
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
9982
|
+
* @param {*} [options] Override http request option.
|
|
9983
|
+
* @throws {RequiredError}
|
|
9984
|
+
*/
|
|
9985
|
+
putTransferConnection: (putTransferConnectionRequest: PutTransferConnectionRequest, id?: number, cli?: string, skipDDis?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9912
9986
|
};
|
|
9913
9987
|
/**
|
|
9914
9988
|
* BillingApi - functional programming interface
|
|
@@ -9925,6 +9999,16 @@ export declare const BillingApiFp: (configuration?: Configuration) => {
|
|
|
9925
9999
|
[key: string]: string;
|
|
9926
10000
|
};
|
|
9927
10001
|
}>>;
|
|
10002
|
+
/**
|
|
10003
|
+
* Transfer Billing Connection
|
|
10004
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
10005
|
+
* @param {number} [id] Connection ID
|
|
10006
|
+
* @param {string} [cli] CLI
|
|
10007
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
10008
|
+
* @param {*} [options] Override http request option.
|
|
10009
|
+
* @throws {RequiredError}
|
|
10010
|
+
*/
|
|
10011
|
+
putTransferConnection(putTransferConnectionRequest: PutTransferConnectionRequest, id?: number, cli?: string, skipDDis?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
9928
10012
|
};
|
|
9929
10013
|
/**
|
|
9930
10014
|
* BillingApi - factory interface
|
|
@@ -9941,6 +10025,16 @@ export declare const BillingApiFactory: (configuration?: Configuration, basePath
|
|
|
9941
10025
|
[key: string]: string;
|
|
9942
10026
|
};
|
|
9943
10027
|
}>;
|
|
10028
|
+
/**
|
|
10029
|
+
* Transfer Billing Connection
|
|
10030
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
10031
|
+
* @param {number} [id] Connection ID
|
|
10032
|
+
* @param {string} [cli] CLI
|
|
10033
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
10034
|
+
* @param {*} [options] Override http request option.
|
|
10035
|
+
* @throws {RequiredError}
|
|
10036
|
+
*/
|
|
10037
|
+
putTransferConnection(putTransferConnectionRequest: PutTransferConnectionRequest, id?: number, cli?: string, skipDDis?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
9944
10038
|
};
|
|
9945
10039
|
/**
|
|
9946
10040
|
* BillingApi - object-oriented interface
|
|
@@ -9957,6 +10051,16 @@ export declare class BillingApi extends BaseAPI {
|
|
|
9957
10051
|
[key: string]: string;
|
|
9958
10052
|
};
|
|
9959
10053
|
}, any, {}>>;
|
|
10054
|
+
/**
|
|
10055
|
+
* Transfer Billing Connection
|
|
10056
|
+
* @param {PutTransferConnectionRequest} putTransferConnectionRequest Transfer Request
|
|
10057
|
+
* @param {number} [id] Connection ID
|
|
10058
|
+
* @param {string} [cli] CLI
|
|
10059
|
+
* @param {boolean} [skipDDis] Skip DDIs
|
|
10060
|
+
* @param {*} [options] Override http request option.
|
|
10061
|
+
* @throws {RequiredError}
|
|
10062
|
+
*/
|
|
10063
|
+
putTransferConnection(putTransferConnectionRequest: PutTransferConnectionRequest, id?: number, cli?: string, skipDDis?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
9960
10064
|
}
|
|
9961
10065
|
/**
|
|
9962
10066
|
* 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
|
|
package/docs/ProspectDTO.md
CHANGED
|
@@ -14,6 +14,8 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**removed** | **boolean** | Removed From Prospects | [optional] [default to undefined]
|
|
15
15
|
**status** | **string** | Status | [optional] [default to undefined]
|
|
16
16
|
**orderCount** | **number** | Order Count | [optional] [default to undefined]
|
|
17
|
+
**tcxOrderCount** | **number** | 3CX Order Count | [optional] [default to undefined]
|
|
18
|
+
**videoCount** | **number** | Branded Video Count | [optional] [default to undefined]
|
|
17
19
|
|
|
18
20
|
## Example
|
|
19
21
|
|
|
@@ -29,6 +31,8 @@ const instance: ProspectDTO = {
|
|
|
29
31
|
removed,
|
|
30
32
|
status,
|
|
31
33
|
orderCount,
|
|
34
|
+
tcxOrderCount,
|
|
35
|
+
videoCount,
|
|
32
36
|
};
|
|
33
37
|
```
|
|
34
38
|
|
|
@@ -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)
|