@infisale-client/api 1.2.104 → 1.2.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/api.d.ts +997 -60
- package/dist/api/api.js +602 -12
- package/dist/api/api.mjs +602 -12
- package/package.json +2 -2
package/dist/api/api.mjs
CHANGED
|
@@ -3811,6 +3811,105 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3811
3811
|
options: localVarRequestOptions,
|
|
3812
3812
|
};
|
|
3813
3813
|
},
|
|
3814
|
+
/**
|
|
3815
|
+
*
|
|
3816
|
+
* @param {string} id
|
|
3817
|
+
* @param {ICompanyCreatePaymentGatewaysRequest} iCompanyCreatePaymentGatewaysRequest
|
|
3818
|
+
* @param {*} [options] Override http request option.
|
|
3819
|
+
* @throws {RequiredError}
|
|
3820
|
+
*/
|
|
3821
|
+
createCompanyPaymentGateways: async (id, iCompanyCreatePaymentGatewaysRequest, options = {}) => {
|
|
3822
|
+
// verify required parameter 'id' is not null or undefined
|
|
3823
|
+
assertParamExists('createCompanyPaymentGateways', 'id', id);
|
|
3824
|
+
// verify required parameter 'iCompanyCreatePaymentGatewaysRequest' is not null or undefined
|
|
3825
|
+
assertParamExists('createCompanyPaymentGateways', 'iCompanyCreatePaymentGatewaysRequest', iCompanyCreatePaymentGatewaysRequest);
|
|
3826
|
+
const localVarPath = `/api/companies/{id}/payment-gateways`
|
|
3827
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3828
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3829
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3830
|
+
let baseOptions;
|
|
3831
|
+
if (configuration) {
|
|
3832
|
+
baseOptions = configuration.baseOptions;
|
|
3833
|
+
}
|
|
3834
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3835
|
+
const localVarHeaderParameter = {};
|
|
3836
|
+
const localVarQueryParameter = {};
|
|
3837
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3838
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3839
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3840
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3841
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iCompanyCreatePaymentGatewaysRequest, localVarRequestOptions, configuration);
|
|
3842
|
+
return {
|
|
3843
|
+
url: toPathString(localVarUrlObj),
|
|
3844
|
+
options: localVarRequestOptions,
|
|
3845
|
+
};
|
|
3846
|
+
},
|
|
3847
|
+
/**
|
|
3848
|
+
*
|
|
3849
|
+
* @param {string} id
|
|
3850
|
+
* @param {ICompanyCreateShippingProvidersRequest} iCompanyCreateShippingProvidersRequest
|
|
3851
|
+
* @param {*} [options] Override http request option.
|
|
3852
|
+
* @throws {RequiredError}
|
|
3853
|
+
*/
|
|
3854
|
+
createCompanyShippingProviders: async (id, iCompanyCreateShippingProvidersRequest, options = {}) => {
|
|
3855
|
+
// verify required parameter 'id' is not null or undefined
|
|
3856
|
+
assertParamExists('createCompanyShippingProviders', 'id', id);
|
|
3857
|
+
// verify required parameter 'iCompanyCreateShippingProvidersRequest' is not null or undefined
|
|
3858
|
+
assertParamExists('createCompanyShippingProviders', 'iCompanyCreateShippingProvidersRequest', iCompanyCreateShippingProvidersRequest);
|
|
3859
|
+
const localVarPath = `/api/companies/{id}/shipping-providers`
|
|
3860
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3861
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3862
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3863
|
+
let baseOptions;
|
|
3864
|
+
if (configuration) {
|
|
3865
|
+
baseOptions = configuration.baseOptions;
|
|
3866
|
+
}
|
|
3867
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3868
|
+
const localVarHeaderParameter = {};
|
|
3869
|
+
const localVarQueryParameter = {};
|
|
3870
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3871
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3872
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3873
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3874
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iCompanyCreateShippingProvidersRequest, localVarRequestOptions, configuration);
|
|
3875
|
+
return {
|
|
3876
|
+
url: toPathString(localVarUrlObj),
|
|
3877
|
+
options: localVarRequestOptions,
|
|
3878
|
+
};
|
|
3879
|
+
},
|
|
3880
|
+
/**
|
|
3881
|
+
*
|
|
3882
|
+
* @param {string} id
|
|
3883
|
+
* @param {ICompanyCreateWarehousesRequest} iCompanyCreateWarehousesRequest
|
|
3884
|
+
* @param {*} [options] Override http request option.
|
|
3885
|
+
* @throws {RequiredError}
|
|
3886
|
+
*/
|
|
3887
|
+
createCompanyWarehouses: async (id, iCompanyCreateWarehousesRequest, options = {}) => {
|
|
3888
|
+
// verify required parameter 'id' is not null or undefined
|
|
3889
|
+
assertParamExists('createCompanyWarehouses', 'id', id);
|
|
3890
|
+
// verify required parameter 'iCompanyCreateWarehousesRequest' is not null or undefined
|
|
3891
|
+
assertParamExists('createCompanyWarehouses', 'iCompanyCreateWarehousesRequest', iCompanyCreateWarehousesRequest);
|
|
3892
|
+
const localVarPath = `/api/companies/{id}/warehouses`
|
|
3893
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3894
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3895
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3896
|
+
let baseOptions;
|
|
3897
|
+
if (configuration) {
|
|
3898
|
+
baseOptions = configuration.baseOptions;
|
|
3899
|
+
}
|
|
3900
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3901
|
+
const localVarHeaderParameter = {};
|
|
3902
|
+
const localVarQueryParameter = {};
|
|
3903
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3904
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3905
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3906
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3907
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iCompanyCreateWarehousesRequest, localVarRequestOptions, configuration);
|
|
3908
|
+
return {
|
|
3909
|
+
url: toPathString(localVarUrlObj),
|
|
3910
|
+
options: localVarRequestOptions,
|
|
3911
|
+
};
|
|
3912
|
+
},
|
|
3814
3913
|
/**
|
|
3815
3914
|
*
|
|
3816
3915
|
* @param {string} id
|
|
@@ -3839,6 +3938,102 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3839
3938
|
options: localVarRequestOptions,
|
|
3840
3939
|
};
|
|
3841
3940
|
},
|
|
3941
|
+
/**
|
|
3942
|
+
*
|
|
3943
|
+
* @param {string} companyId
|
|
3944
|
+
* @param {string} id
|
|
3945
|
+
* @param {*} [options] Override http request option.
|
|
3946
|
+
* @throws {RequiredError}
|
|
3947
|
+
*/
|
|
3948
|
+
deleteCompanyPaymentGateways: async (companyId, id, options = {}) => {
|
|
3949
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
3950
|
+
assertParamExists('deleteCompanyPaymentGateways', 'companyId', companyId);
|
|
3951
|
+
// verify required parameter 'id' is not null or undefined
|
|
3952
|
+
assertParamExists('deleteCompanyPaymentGateways', 'id', id);
|
|
3953
|
+
const localVarPath = `/api/companies/{companyId}/payment-gateways/{id}`
|
|
3954
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)))
|
|
3955
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3956
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3957
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3958
|
+
let baseOptions;
|
|
3959
|
+
if (configuration) {
|
|
3960
|
+
baseOptions = configuration.baseOptions;
|
|
3961
|
+
}
|
|
3962
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
3963
|
+
const localVarHeaderParameter = {};
|
|
3964
|
+
const localVarQueryParameter = {};
|
|
3965
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3966
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3967
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3968
|
+
return {
|
|
3969
|
+
url: toPathString(localVarUrlObj),
|
|
3970
|
+
options: localVarRequestOptions,
|
|
3971
|
+
};
|
|
3972
|
+
},
|
|
3973
|
+
/**
|
|
3974
|
+
*
|
|
3975
|
+
* @param {string} companyId
|
|
3976
|
+
* @param {string} id
|
|
3977
|
+
* @param {*} [options] Override http request option.
|
|
3978
|
+
* @throws {RequiredError}
|
|
3979
|
+
*/
|
|
3980
|
+
deleteCompanyShippingProviders: async (companyId, id, options = {}) => {
|
|
3981
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
3982
|
+
assertParamExists('deleteCompanyShippingProviders', 'companyId', companyId);
|
|
3983
|
+
// verify required parameter 'id' is not null or undefined
|
|
3984
|
+
assertParamExists('deleteCompanyShippingProviders', 'id', id);
|
|
3985
|
+
const localVarPath = `/api/companies/{companyId}/shipping-providers/{id}`
|
|
3986
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)))
|
|
3987
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3988
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3989
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3990
|
+
let baseOptions;
|
|
3991
|
+
if (configuration) {
|
|
3992
|
+
baseOptions = configuration.baseOptions;
|
|
3993
|
+
}
|
|
3994
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
3995
|
+
const localVarHeaderParameter = {};
|
|
3996
|
+
const localVarQueryParameter = {};
|
|
3997
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3998
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3999
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4000
|
+
return {
|
|
4001
|
+
url: toPathString(localVarUrlObj),
|
|
4002
|
+
options: localVarRequestOptions,
|
|
4003
|
+
};
|
|
4004
|
+
},
|
|
4005
|
+
/**
|
|
4006
|
+
*
|
|
4007
|
+
* @param {string} companyId
|
|
4008
|
+
* @param {string} id
|
|
4009
|
+
* @param {*} [options] Override http request option.
|
|
4010
|
+
* @throws {RequiredError}
|
|
4011
|
+
*/
|
|
4012
|
+
deleteCompanyWarehouses: async (companyId, id, options = {}) => {
|
|
4013
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4014
|
+
assertParamExists('deleteCompanyWarehouses', 'companyId', companyId);
|
|
4015
|
+
// verify required parameter 'id' is not null or undefined
|
|
4016
|
+
assertParamExists('deleteCompanyWarehouses', 'id', id);
|
|
4017
|
+
const localVarPath = `/api/companies/{companyId}/warehouses/{id}`
|
|
4018
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)))
|
|
4019
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4020
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4021
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4022
|
+
let baseOptions;
|
|
4023
|
+
if (configuration) {
|
|
4024
|
+
baseOptions = configuration.baseOptions;
|
|
4025
|
+
}
|
|
4026
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
4027
|
+
const localVarHeaderParameter = {};
|
|
4028
|
+
const localVarQueryParameter = {};
|
|
4029
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4030
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4031
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4032
|
+
return {
|
|
4033
|
+
url: toPathString(localVarUrlObj),
|
|
4034
|
+
options: localVarRequestOptions,
|
|
4035
|
+
};
|
|
4036
|
+
},
|
|
3842
4037
|
/**
|
|
3843
4038
|
*
|
|
3844
4039
|
* @param {string} id
|
|
@@ -4007,6 +4202,34 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4007
4202
|
options: localVarRequestOptions,
|
|
4008
4203
|
};
|
|
4009
4204
|
},
|
|
4205
|
+
/**
|
|
4206
|
+
*
|
|
4207
|
+
* @param {string} id
|
|
4208
|
+
* @param {*} [options] Override http request option.
|
|
4209
|
+
* @throws {RequiredError}
|
|
4210
|
+
*/
|
|
4211
|
+
getCompanyAvailablePaymentGateways: async (id, options = {}) => {
|
|
4212
|
+
// verify required parameter 'id' is not null or undefined
|
|
4213
|
+
assertParamExists('getCompanyAvailablePaymentGateways', 'id', id);
|
|
4214
|
+
const localVarPath = `/api/companies/{id}/payment-gateways/available`
|
|
4215
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4216
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4217
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4218
|
+
let baseOptions;
|
|
4219
|
+
if (configuration) {
|
|
4220
|
+
baseOptions = configuration.baseOptions;
|
|
4221
|
+
}
|
|
4222
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4223
|
+
const localVarHeaderParameter = {};
|
|
4224
|
+
const localVarQueryParameter = {};
|
|
4225
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4226
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4227
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4228
|
+
return {
|
|
4229
|
+
url: toPathString(localVarUrlObj),
|
|
4230
|
+
options: localVarRequestOptions,
|
|
4231
|
+
};
|
|
4232
|
+
},
|
|
4010
4233
|
/**
|
|
4011
4234
|
*
|
|
4012
4235
|
* @param {string} domain
|
|
@@ -4419,6 +4642,38 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4419
4642
|
options: localVarRequestOptions,
|
|
4420
4643
|
};
|
|
4421
4644
|
},
|
|
4645
|
+
/**
|
|
4646
|
+
*
|
|
4647
|
+
* @param {string} companyId
|
|
4648
|
+
* @param {string} id
|
|
4649
|
+
* @param {*} [options] Override http request option.
|
|
4650
|
+
* @throws {RequiredError}
|
|
4651
|
+
*/
|
|
4652
|
+
setCompanyPaymentGatewaysPrimary: async (companyId, id, options = {}) => {
|
|
4653
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4654
|
+
assertParamExists('setCompanyPaymentGatewaysPrimary', 'companyId', companyId);
|
|
4655
|
+
// verify required parameter 'id' is not null or undefined
|
|
4656
|
+
assertParamExists('setCompanyPaymentGatewaysPrimary', 'id', id);
|
|
4657
|
+
const localVarPath = `/api/companies/{companyId}/payment-gateways/{id}/set-primary`
|
|
4658
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)))
|
|
4659
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4660
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4661
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4662
|
+
let baseOptions;
|
|
4663
|
+
if (configuration) {
|
|
4664
|
+
baseOptions = configuration.baseOptions;
|
|
4665
|
+
}
|
|
4666
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
4667
|
+
const localVarHeaderParameter = {};
|
|
4668
|
+
const localVarQueryParameter = {};
|
|
4669
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4670
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4671
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4672
|
+
return {
|
|
4673
|
+
url: toPathString(localVarUrlObj),
|
|
4674
|
+
options: localVarRequestOptions,
|
|
4675
|
+
};
|
|
4676
|
+
},
|
|
4422
4677
|
/**
|
|
4423
4678
|
*
|
|
4424
4679
|
* @param {string} id
|
|
@@ -4586,17 +4841,21 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4586
4841
|
},
|
|
4587
4842
|
/**
|
|
4588
4843
|
*
|
|
4844
|
+
* @param {string} companyId
|
|
4589
4845
|
* @param {string} id
|
|
4590
4846
|
* @param {ICompanyUpdatePaymentGatewaysRequest} iCompanyUpdatePaymentGatewaysRequest
|
|
4591
4847
|
* @param {*} [options] Override http request option.
|
|
4592
4848
|
* @throws {RequiredError}
|
|
4593
4849
|
*/
|
|
4594
|
-
updateCompanyPaymentGateways: async (id, iCompanyUpdatePaymentGatewaysRequest, options = {}) => {
|
|
4850
|
+
updateCompanyPaymentGateways: async (companyId, id, iCompanyUpdatePaymentGatewaysRequest, options = {}) => {
|
|
4851
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4852
|
+
assertParamExists('updateCompanyPaymentGateways', 'companyId', companyId);
|
|
4595
4853
|
// verify required parameter 'id' is not null or undefined
|
|
4596
4854
|
assertParamExists('updateCompanyPaymentGateways', 'id', id);
|
|
4597
4855
|
// verify required parameter 'iCompanyUpdatePaymentGatewaysRequest' is not null or undefined
|
|
4598
4856
|
assertParamExists('updateCompanyPaymentGateways', 'iCompanyUpdatePaymentGatewaysRequest', iCompanyUpdatePaymentGatewaysRequest);
|
|
4599
|
-
const localVarPath = `/api/companies/{
|
|
4857
|
+
const localVarPath = `/api/companies/{companyId}/payment-gateways/{id}`
|
|
4858
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)))
|
|
4600
4859
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4601
4860
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4602
4861
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4619,17 +4878,21 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4619
4878
|
},
|
|
4620
4879
|
/**
|
|
4621
4880
|
*
|
|
4881
|
+
* @param {string} companyId
|
|
4622
4882
|
* @param {string} id
|
|
4623
4883
|
* @param {ICompanyUpdateShippingProvidersRequest} iCompanyUpdateShippingProvidersRequest
|
|
4624
4884
|
* @param {*} [options] Override http request option.
|
|
4625
4885
|
* @throws {RequiredError}
|
|
4626
4886
|
*/
|
|
4627
|
-
updateCompanyShippingProviders: async (id, iCompanyUpdateShippingProvidersRequest, options = {}) => {
|
|
4887
|
+
updateCompanyShippingProviders: async (companyId, id, iCompanyUpdateShippingProvidersRequest, options = {}) => {
|
|
4888
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4889
|
+
assertParamExists('updateCompanyShippingProviders', 'companyId', companyId);
|
|
4628
4890
|
// verify required parameter 'id' is not null or undefined
|
|
4629
4891
|
assertParamExists('updateCompanyShippingProviders', 'id', id);
|
|
4630
4892
|
// verify required parameter 'iCompanyUpdateShippingProvidersRequest' is not null or undefined
|
|
4631
4893
|
assertParamExists('updateCompanyShippingProviders', 'iCompanyUpdateShippingProvidersRequest', iCompanyUpdateShippingProvidersRequest);
|
|
4632
|
-
const localVarPath = `/api/companies/{
|
|
4894
|
+
const localVarPath = `/api/companies/{companyId}/shipping-providers/{id}`
|
|
4895
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)))
|
|
4633
4896
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4634
4897
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4635
4898
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4650,6 +4913,43 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4650
4913
|
options: localVarRequestOptions,
|
|
4651
4914
|
};
|
|
4652
4915
|
},
|
|
4916
|
+
/**
|
|
4917
|
+
*
|
|
4918
|
+
* @param {string} companyId
|
|
4919
|
+
* @param {string} id
|
|
4920
|
+
* @param {ICompanyUpdateWarehousesRequest} iCompanyUpdateWarehousesRequest
|
|
4921
|
+
* @param {*} [options] Override http request option.
|
|
4922
|
+
* @throws {RequiredError}
|
|
4923
|
+
*/
|
|
4924
|
+
updateCompanyWarehouses: async (companyId, id, iCompanyUpdateWarehousesRequest, options = {}) => {
|
|
4925
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4926
|
+
assertParamExists('updateCompanyWarehouses', 'companyId', companyId);
|
|
4927
|
+
// verify required parameter 'id' is not null or undefined
|
|
4928
|
+
assertParamExists('updateCompanyWarehouses', 'id', id);
|
|
4929
|
+
// verify required parameter 'iCompanyUpdateWarehousesRequest' is not null or undefined
|
|
4930
|
+
assertParamExists('updateCompanyWarehouses', 'iCompanyUpdateWarehousesRequest', iCompanyUpdateWarehousesRequest);
|
|
4931
|
+
const localVarPath = `/api/companies/{companyId}/warehouses/{id}`
|
|
4932
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)))
|
|
4933
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4934
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4935
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4936
|
+
let baseOptions;
|
|
4937
|
+
if (configuration) {
|
|
4938
|
+
baseOptions = configuration.baseOptions;
|
|
4939
|
+
}
|
|
4940
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
4941
|
+
const localVarHeaderParameter = {};
|
|
4942
|
+
const localVarQueryParameter = {};
|
|
4943
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4944
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4945
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4946
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4947
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iCompanyUpdateWarehousesRequest, localVarRequestOptions, configuration);
|
|
4948
|
+
return {
|
|
4949
|
+
url: toPathString(localVarUrlObj),
|
|
4950
|
+
options: localVarRequestOptions,
|
|
4951
|
+
};
|
|
4952
|
+
},
|
|
4653
4953
|
/**
|
|
4654
4954
|
*
|
|
4655
4955
|
* @param {string} id
|
|
@@ -4791,6 +5091,45 @@ export const CompanyApiFp = function (configuration) {
|
|
|
4791
5091
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.createCompanyPayment']?.[localVarOperationServerIndex]?.url;
|
|
4792
5092
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4793
5093
|
},
|
|
5094
|
+
/**
|
|
5095
|
+
*
|
|
5096
|
+
* @param {string} id
|
|
5097
|
+
* @param {ICompanyCreatePaymentGatewaysRequest} iCompanyCreatePaymentGatewaysRequest
|
|
5098
|
+
* @param {*} [options] Override http request option.
|
|
5099
|
+
* @throws {RequiredError}
|
|
5100
|
+
*/
|
|
5101
|
+
async createCompanyPaymentGateways(id, iCompanyCreatePaymentGatewaysRequest, options) {
|
|
5102
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanyPaymentGateways(id, iCompanyCreatePaymentGatewaysRequest, options);
|
|
5103
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5104
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.createCompanyPaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
5105
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5106
|
+
},
|
|
5107
|
+
/**
|
|
5108
|
+
*
|
|
5109
|
+
* @param {string} id
|
|
5110
|
+
* @param {ICompanyCreateShippingProvidersRequest} iCompanyCreateShippingProvidersRequest
|
|
5111
|
+
* @param {*} [options] Override http request option.
|
|
5112
|
+
* @throws {RequiredError}
|
|
5113
|
+
*/
|
|
5114
|
+
async createCompanyShippingProviders(id, iCompanyCreateShippingProvidersRequest, options) {
|
|
5115
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanyShippingProviders(id, iCompanyCreateShippingProvidersRequest, options);
|
|
5116
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5117
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.createCompanyShippingProviders']?.[localVarOperationServerIndex]?.url;
|
|
5118
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5119
|
+
},
|
|
5120
|
+
/**
|
|
5121
|
+
*
|
|
5122
|
+
* @param {string} id
|
|
5123
|
+
* @param {ICompanyCreateWarehousesRequest} iCompanyCreateWarehousesRequest
|
|
5124
|
+
* @param {*} [options] Override http request option.
|
|
5125
|
+
* @throws {RequiredError}
|
|
5126
|
+
*/
|
|
5127
|
+
async createCompanyWarehouses(id, iCompanyCreateWarehousesRequest, options) {
|
|
5128
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanyWarehouses(id, iCompanyCreateWarehousesRequest, options);
|
|
5129
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5130
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.createCompanyWarehouses']?.[localVarOperationServerIndex]?.url;
|
|
5131
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5132
|
+
},
|
|
4794
5133
|
/**
|
|
4795
5134
|
*
|
|
4796
5135
|
* @param {string} id
|
|
@@ -4803,6 +5142,45 @@ export const CompanyApiFp = function (configuration) {
|
|
|
4803
5142
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.deleteCompany']?.[localVarOperationServerIndex]?.url;
|
|
4804
5143
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4805
5144
|
},
|
|
5145
|
+
/**
|
|
5146
|
+
*
|
|
5147
|
+
* @param {string} companyId
|
|
5148
|
+
* @param {string} id
|
|
5149
|
+
* @param {*} [options] Override http request option.
|
|
5150
|
+
* @throws {RequiredError}
|
|
5151
|
+
*/
|
|
5152
|
+
async deleteCompanyPaymentGateways(companyId, id, options) {
|
|
5153
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCompanyPaymentGateways(companyId, id, options);
|
|
5154
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5155
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.deleteCompanyPaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
5156
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5157
|
+
},
|
|
5158
|
+
/**
|
|
5159
|
+
*
|
|
5160
|
+
* @param {string} companyId
|
|
5161
|
+
* @param {string} id
|
|
5162
|
+
* @param {*} [options] Override http request option.
|
|
5163
|
+
* @throws {RequiredError}
|
|
5164
|
+
*/
|
|
5165
|
+
async deleteCompanyShippingProviders(companyId, id, options) {
|
|
5166
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCompanyShippingProviders(companyId, id, options);
|
|
5167
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5168
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.deleteCompanyShippingProviders']?.[localVarOperationServerIndex]?.url;
|
|
5169
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5170
|
+
},
|
|
5171
|
+
/**
|
|
5172
|
+
*
|
|
5173
|
+
* @param {string} companyId
|
|
5174
|
+
* @param {string} id
|
|
5175
|
+
* @param {*} [options] Override http request option.
|
|
5176
|
+
* @throws {RequiredError}
|
|
5177
|
+
*/
|
|
5178
|
+
async deleteCompanyWarehouses(companyId, id, options) {
|
|
5179
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCompanyWarehouses(companyId, id, options);
|
|
5180
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5181
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.deleteCompanyWarehouses']?.[localVarOperationServerIndex]?.url;
|
|
5182
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5183
|
+
},
|
|
4806
5184
|
/**
|
|
4807
5185
|
*
|
|
4808
5186
|
* @param {string} id
|
|
@@ -4864,6 +5242,18 @@ export const CompanyApiFp = function (configuration) {
|
|
|
4864
5242
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanies']?.[localVarOperationServerIndex]?.url;
|
|
4865
5243
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4866
5244
|
},
|
|
5245
|
+
/**
|
|
5246
|
+
*
|
|
5247
|
+
* @param {string} id
|
|
5248
|
+
* @param {*} [options] Override http request option.
|
|
5249
|
+
* @throws {RequiredError}
|
|
5250
|
+
*/
|
|
5251
|
+
async getCompanyAvailablePaymentGateways(id, options) {
|
|
5252
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyAvailablePaymentGateways(id, options);
|
|
5253
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5254
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyAvailablePaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
5255
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5256
|
+
},
|
|
4867
5257
|
/**
|
|
4868
5258
|
*
|
|
4869
5259
|
* @param {string} domain
|
|
@@ -5025,6 +5415,19 @@ export const CompanyApiFp = function (configuration) {
|
|
|
5025
5415
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyVersions']?.[localVarOperationServerIndex]?.url;
|
|
5026
5416
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5027
5417
|
},
|
|
5418
|
+
/**
|
|
5419
|
+
*
|
|
5420
|
+
* @param {string} companyId
|
|
5421
|
+
* @param {string} id
|
|
5422
|
+
* @param {*} [options] Override http request option.
|
|
5423
|
+
* @throws {RequiredError}
|
|
5424
|
+
*/
|
|
5425
|
+
async setCompanyPaymentGatewaysPrimary(companyId, id, options) {
|
|
5426
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setCompanyPaymentGatewaysPrimary(companyId, id, options);
|
|
5427
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5428
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.setCompanyPaymentGatewaysPrimary']?.[localVarOperationServerIndex]?.url;
|
|
5429
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5430
|
+
},
|
|
5028
5431
|
/**
|
|
5029
5432
|
*
|
|
5030
5433
|
* @param {string} id
|
|
@@ -5092,30 +5495,46 @@ export const CompanyApiFp = function (configuration) {
|
|
|
5092
5495
|
},
|
|
5093
5496
|
/**
|
|
5094
5497
|
*
|
|
5498
|
+
* @param {string} companyId
|
|
5095
5499
|
* @param {string} id
|
|
5096
5500
|
* @param {ICompanyUpdatePaymentGatewaysRequest} iCompanyUpdatePaymentGatewaysRequest
|
|
5097
5501
|
* @param {*} [options] Override http request option.
|
|
5098
5502
|
* @throws {RequiredError}
|
|
5099
5503
|
*/
|
|
5100
|
-
async updateCompanyPaymentGateways(id, iCompanyUpdatePaymentGatewaysRequest, options) {
|
|
5101
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompanyPaymentGateways(id, iCompanyUpdatePaymentGatewaysRequest, options);
|
|
5504
|
+
async updateCompanyPaymentGateways(companyId, id, iCompanyUpdatePaymentGatewaysRequest, options) {
|
|
5505
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompanyPaymentGateways(companyId, id, iCompanyUpdatePaymentGatewaysRequest, options);
|
|
5102
5506
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5103
5507
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.updateCompanyPaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
5104
5508
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5105
5509
|
},
|
|
5106
5510
|
/**
|
|
5107
5511
|
*
|
|
5512
|
+
* @param {string} companyId
|
|
5108
5513
|
* @param {string} id
|
|
5109
5514
|
* @param {ICompanyUpdateShippingProvidersRequest} iCompanyUpdateShippingProvidersRequest
|
|
5110
5515
|
* @param {*} [options] Override http request option.
|
|
5111
5516
|
* @throws {RequiredError}
|
|
5112
5517
|
*/
|
|
5113
|
-
async updateCompanyShippingProviders(id, iCompanyUpdateShippingProvidersRequest, options) {
|
|
5114
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompanyShippingProviders(id, iCompanyUpdateShippingProvidersRequest, options);
|
|
5518
|
+
async updateCompanyShippingProviders(companyId, id, iCompanyUpdateShippingProvidersRequest, options) {
|
|
5519
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompanyShippingProviders(companyId, id, iCompanyUpdateShippingProvidersRequest, options);
|
|
5115
5520
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5116
5521
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.updateCompanyShippingProviders']?.[localVarOperationServerIndex]?.url;
|
|
5117
5522
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5118
5523
|
},
|
|
5524
|
+
/**
|
|
5525
|
+
*
|
|
5526
|
+
* @param {string} companyId
|
|
5527
|
+
* @param {string} id
|
|
5528
|
+
* @param {ICompanyUpdateWarehousesRequest} iCompanyUpdateWarehousesRequest
|
|
5529
|
+
* @param {*} [options] Override http request option.
|
|
5530
|
+
* @throws {RequiredError}
|
|
5531
|
+
*/
|
|
5532
|
+
async updateCompanyWarehouses(companyId, id, iCompanyUpdateWarehousesRequest, options) {
|
|
5533
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompanyWarehouses(companyId, id, iCompanyUpdateWarehousesRequest, options);
|
|
5534
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5535
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.updateCompanyWarehouses']?.[localVarOperationServerIndex]?.url;
|
|
5536
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5537
|
+
},
|
|
5119
5538
|
/**
|
|
5120
5539
|
*
|
|
5121
5540
|
* @param {string} id
|
|
@@ -5197,6 +5616,33 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5197
5616
|
createCompanyPayment(requestParameters, options) {
|
|
5198
5617
|
return localVarFp.createCompanyPayment(requestParameters.id, requestParameters.iPaymentPostRequest, options).then((request) => request(axios, basePath));
|
|
5199
5618
|
},
|
|
5619
|
+
/**
|
|
5620
|
+
*
|
|
5621
|
+
* @param {CompanyApiCreateCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
5622
|
+
* @param {*} [options] Override http request option.
|
|
5623
|
+
* @throws {RequiredError}
|
|
5624
|
+
*/
|
|
5625
|
+
createCompanyPaymentGateways(requestParameters, options) {
|
|
5626
|
+
return localVarFp.createCompanyPaymentGateways(requestParameters.id, requestParameters.iCompanyCreatePaymentGatewaysRequest, options).then((request) => request(axios, basePath));
|
|
5627
|
+
},
|
|
5628
|
+
/**
|
|
5629
|
+
*
|
|
5630
|
+
* @param {CompanyApiCreateCompanyShippingProvidersRequest} requestParameters Request parameters.
|
|
5631
|
+
* @param {*} [options] Override http request option.
|
|
5632
|
+
* @throws {RequiredError}
|
|
5633
|
+
*/
|
|
5634
|
+
createCompanyShippingProviders(requestParameters, options) {
|
|
5635
|
+
return localVarFp.createCompanyShippingProviders(requestParameters.id, requestParameters.iCompanyCreateShippingProvidersRequest, options).then((request) => request(axios, basePath));
|
|
5636
|
+
},
|
|
5637
|
+
/**
|
|
5638
|
+
*
|
|
5639
|
+
* @param {CompanyApiCreateCompanyWarehousesRequest} requestParameters Request parameters.
|
|
5640
|
+
* @param {*} [options] Override http request option.
|
|
5641
|
+
* @throws {RequiredError}
|
|
5642
|
+
*/
|
|
5643
|
+
createCompanyWarehouses(requestParameters, options) {
|
|
5644
|
+
return localVarFp.createCompanyWarehouses(requestParameters.id, requestParameters.iCompanyCreateWarehousesRequest, options).then((request) => request(axios, basePath));
|
|
5645
|
+
},
|
|
5200
5646
|
/**
|
|
5201
5647
|
*
|
|
5202
5648
|
* @param {CompanyApiDeleteCompanyRequest} requestParameters Request parameters.
|
|
@@ -5206,6 +5652,33 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5206
5652
|
deleteCompany(requestParameters, options) {
|
|
5207
5653
|
return localVarFp.deleteCompany(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5208
5654
|
},
|
|
5655
|
+
/**
|
|
5656
|
+
*
|
|
5657
|
+
* @param {CompanyApiDeleteCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
5658
|
+
* @param {*} [options] Override http request option.
|
|
5659
|
+
* @throws {RequiredError}
|
|
5660
|
+
*/
|
|
5661
|
+
deleteCompanyPaymentGateways(requestParameters, options) {
|
|
5662
|
+
return localVarFp.deleteCompanyPaymentGateways(requestParameters.companyId, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5663
|
+
},
|
|
5664
|
+
/**
|
|
5665
|
+
*
|
|
5666
|
+
* @param {CompanyApiDeleteCompanyShippingProvidersRequest} requestParameters Request parameters.
|
|
5667
|
+
* @param {*} [options] Override http request option.
|
|
5668
|
+
* @throws {RequiredError}
|
|
5669
|
+
*/
|
|
5670
|
+
deleteCompanyShippingProviders(requestParameters, options) {
|
|
5671
|
+
return localVarFp.deleteCompanyShippingProviders(requestParameters.companyId, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5672
|
+
},
|
|
5673
|
+
/**
|
|
5674
|
+
*
|
|
5675
|
+
* @param {CompanyApiDeleteCompanyWarehousesRequest} requestParameters Request parameters.
|
|
5676
|
+
* @param {*} [options] Override http request option.
|
|
5677
|
+
* @throws {RequiredError}
|
|
5678
|
+
*/
|
|
5679
|
+
deleteCompanyWarehouses(requestParameters, options) {
|
|
5680
|
+
return localVarFp.deleteCompanyWarehouses(requestParameters.companyId, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5681
|
+
},
|
|
5209
5682
|
/**
|
|
5210
5683
|
*
|
|
5211
5684
|
* @param {CompanyApiDeleteDomainRequest} requestParameters Request parameters.
|
|
@@ -5242,6 +5715,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5242
5715
|
getCompanies(requestParameters = {}, options) {
|
|
5243
5716
|
return localVarFp.getCompanies(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.owner, requestParameters.type, requestParameters.plan, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
5244
5717
|
},
|
|
5718
|
+
/**
|
|
5719
|
+
*
|
|
5720
|
+
* @param {CompanyApiGetCompanyAvailablePaymentGatewaysRequest} requestParameters Request parameters.
|
|
5721
|
+
* @param {*} [options] Override http request option.
|
|
5722
|
+
* @throws {RequiredError}
|
|
5723
|
+
*/
|
|
5724
|
+
getCompanyAvailablePaymentGateways(requestParameters, options) {
|
|
5725
|
+
return localVarFp.getCompanyAvailablePaymentGateways(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5726
|
+
},
|
|
5245
5727
|
/**
|
|
5246
5728
|
*
|
|
5247
5729
|
* @param {CompanyApiGetCompanyByDomainNameRequest} requestParameters Request parameters.
|
|
@@ -5350,6 +5832,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5350
5832
|
getCompanyVersions(requestParameters, options) {
|
|
5351
5833
|
return localVarFp.getCompanyVersions(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5352
5834
|
},
|
|
5835
|
+
/**
|
|
5836
|
+
*
|
|
5837
|
+
* @param {CompanyApiSetCompanyPaymentGatewaysPrimaryRequest} requestParameters Request parameters.
|
|
5838
|
+
* @param {*} [options] Override http request option.
|
|
5839
|
+
* @throws {RequiredError}
|
|
5840
|
+
*/
|
|
5841
|
+
setCompanyPaymentGatewaysPrimary(requestParameters, options) {
|
|
5842
|
+
return localVarFp.setCompanyPaymentGatewaysPrimary(requestParameters.companyId, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5843
|
+
},
|
|
5353
5844
|
/**
|
|
5354
5845
|
*
|
|
5355
5846
|
* @param {CompanyApiSetCompanySenderEmailRequest} requestParameters Request parameters.
|
|
@@ -5402,7 +5893,7 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5402
5893
|
* @throws {RequiredError}
|
|
5403
5894
|
*/
|
|
5404
5895
|
updateCompanyPaymentGateways(requestParameters, options) {
|
|
5405
|
-
return localVarFp.updateCompanyPaymentGateways(requestParameters.id, requestParameters.iCompanyUpdatePaymentGatewaysRequest, options).then((request) => request(axios, basePath));
|
|
5896
|
+
return localVarFp.updateCompanyPaymentGateways(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdatePaymentGatewaysRequest, options).then((request) => request(axios, basePath));
|
|
5406
5897
|
},
|
|
5407
5898
|
/**
|
|
5408
5899
|
*
|
|
@@ -5411,7 +5902,16 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5411
5902
|
* @throws {RequiredError}
|
|
5412
5903
|
*/
|
|
5413
5904
|
updateCompanyShippingProviders(requestParameters, options) {
|
|
5414
|
-
return localVarFp.updateCompanyShippingProviders(requestParameters.id, requestParameters.iCompanyUpdateShippingProvidersRequest, options).then((request) => request(axios, basePath));
|
|
5905
|
+
return localVarFp.updateCompanyShippingProviders(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdateShippingProvidersRequest, options).then((request) => request(axios, basePath));
|
|
5906
|
+
},
|
|
5907
|
+
/**
|
|
5908
|
+
*
|
|
5909
|
+
* @param {CompanyApiUpdateCompanyWarehousesRequest} requestParameters Request parameters.
|
|
5910
|
+
* @param {*} [options] Override http request option.
|
|
5911
|
+
* @throws {RequiredError}
|
|
5912
|
+
*/
|
|
5913
|
+
updateCompanyWarehouses(requestParameters, options) {
|
|
5914
|
+
return localVarFp.updateCompanyWarehouses(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdateWarehousesRequest, options).then((request) => request(axios, basePath));
|
|
5415
5915
|
},
|
|
5416
5916
|
/**
|
|
5417
5917
|
*
|
|
@@ -5490,6 +5990,36 @@ export class CompanyApi extends BaseAPI {
|
|
|
5490
5990
|
createCompanyPayment(requestParameters, options) {
|
|
5491
5991
|
return CompanyApiFp(this.configuration).createCompanyPayment(requestParameters.id, requestParameters.iPaymentPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5492
5992
|
}
|
|
5993
|
+
/**
|
|
5994
|
+
*
|
|
5995
|
+
* @param {CompanyApiCreateCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
5996
|
+
* @param {*} [options] Override http request option.
|
|
5997
|
+
* @throws {RequiredError}
|
|
5998
|
+
* @memberof CompanyApi
|
|
5999
|
+
*/
|
|
6000
|
+
createCompanyPaymentGateways(requestParameters, options) {
|
|
6001
|
+
return CompanyApiFp(this.configuration).createCompanyPaymentGateways(requestParameters.id, requestParameters.iCompanyCreatePaymentGatewaysRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6002
|
+
}
|
|
6003
|
+
/**
|
|
6004
|
+
*
|
|
6005
|
+
* @param {CompanyApiCreateCompanyShippingProvidersRequest} requestParameters Request parameters.
|
|
6006
|
+
* @param {*} [options] Override http request option.
|
|
6007
|
+
* @throws {RequiredError}
|
|
6008
|
+
* @memberof CompanyApi
|
|
6009
|
+
*/
|
|
6010
|
+
createCompanyShippingProviders(requestParameters, options) {
|
|
6011
|
+
return CompanyApiFp(this.configuration).createCompanyShippingProviders(requestParameters.id, requestParameters.iCompanyCreateShippingProvidersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6012
|
+
}
|
|
6013
|
+
/**
|
|
6014
|
+
*
|
|
6015
|
+
* @param {CompanyApiCreateCompanyWarehousesRequest} requestParameters Request parameters.
|
|
6016
|
+
* @param {*} [options] Override http request option.
|
|
6017
|
+
* @throws {RequiredError}
|
|
6018
|
+
* @memberof CompanyApi
|
|
6019
|
+
*/
|
|
6020
|
+
createCompanyWarehouses(requestParameters, options) {
|
|
6021
|
+
return CompanyApiFp(this.configuration).createCompanyWarehouses(requestParameters.id, requestParameters.iCompanyCreateWarehousesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6022
|
+
}
|
|
5493
6023
|
/**
|
|
5494
6024
|
*
|
|
5495
6025
|
* @param {CompanyApiDeleteCompanyRequest} requestParameters Request parameters.
|
|
@@ -5500,6 +6030,36 @@ export class CompanyApi extends BaseAPI {
|
|
|
5500
6030
|
deleteCompany(requestParameters, options) {
|
|
5501
6031
|
return CompanyApiFp(this.configuration).deleteCompany(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5502
6032
|
}
|
|
6033
|
+
/**
|
|
6034
|
+
*
|
|
6035
|
+
* @param {CompanyApiDeleteCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
6036
|
+
* @param {*} [options] Override http request option.
|
|
6037
|
+
* @throws {RequiredError}
|
|
6038
|
+
* @memberof CompanyApi
|
|
6039
|
+
*/
|
|
6040
|
+
deleteCompanyPaymentGateways(requestParameters, options) {
|
|
6041
|
+
return CompanyApiFp(this.configuration).deleteCompanyPaymentGateways(requestParameters.companyId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6042
|
+
}
|
|
6043
|
+
/**
|
|
6044
|
+
*
|
|
6045
|
+
* @param {CompanyApiDeleteCompanyShippingProvidersRequest} requestParameters Request parameters.
|
|
6046
|
+
* @param {*} [options] Override http request option.
|
|
6047
|
+
* @throws {RequiredError}
|
|
6048
|
+
* @memberof CompanyApi
|
|
6049
|
+
*/
|
|
6050
|
+
deleteCompanyShippingProviders(requestParameters, options) {
|
|
6051
|
+
return CompanyApiFp(this.configuration).deleteCompanyShippingProviders(requestParameters.companyId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6052
|
+
}
|
|
6053
|
+
/**
|
|
6054
|
+
*
|
|
6055
|
+
* @param {CompanyApiDeleteCompanyWarehousesRequest} requestParameters Request parameters.
|
|
6056
|
+
* @param {*} [options] Override http request option.
|
|
6057
|
+
* @throws {RequiredError}
|
|
6058
|
+
* @memberof CompanyApi
|
|
6059
|
+
*/
|
|
6060
|
+
deleteCompanyWarehouses(requestParameters, options) {
|
|
6061
|
+
return CompanyApiFp(this.configuration).deleteCompanyWarehouses(requestParameters.companyId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6062
|
+
}
|
|
5503
6063
|
/**
|
|
5504
6064
|
*
|
|
5505
6065
|
* @param {CompanyApiDeleteDomainRequest} requestParameters Request parameters.
|
|
@@ -5540,6 +6100,16 @@ export class CompanyApi extends BaseAPI {
|
|
|
5540
6100
|
getCompanies(requestParameters = {}, options) {
|
|
5541
6101
|
return CompanyApiFp(this.configuration).getCompanies(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.owner, requestParameters.type, requestParameters.plan, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
5542
6102
|
}
|
|
6103
|
+
/**
|
|
6104
|
+
*
|
|
6105
|
+
* @param {CompanyApiGetCompanyAvailablePaymentGatewaysRequest} requestParameters Request parameters.
|
|
6106
|
+
* @param {*} [options] Override http request option.
|
|
6107
|
+
* @throws {RequiredError}
|
|
6108
|
+
* @memberof CompanyApi
|
|
6109
|
+
*/
|
|
6110
|
+
getCompanyAvailablePaymentGateways(requestParameters, options) {
|
|
6111
|
+
return CompanyApiFp(this.configuration).getCompanyAvailablePaymentGateways(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6112
|
+
}
|
|
5543
6113
|
/**
|
|
5544
6114
|
*
|
|
5545
6115
|
* @param {CompanyApiGetCompanyByDomainNameRequest} requestParameters Request parameters.
|
|
@@ -5660,6 +6230,16 @@ export class CompanyApi extends BaseAPI {
|
|
|
5660
6230
|
getCompanyVersions(requestParameters, options) {
|
|
5661
6231
|
return CompanyApiFp(this.configuration).getCompanyVersions(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5662
6232
|
}
|
|
6233
|
+
/**
|
|
6234
|
+
*
|
|
6235
|
+
* @param {CompanyApiSetCompanyPaymentGatewaysPrimaryRequest} requestParameters Request parameters.
|
|
6236
|
+
* @param {*} [options] Override http request option.
|
|
6237
|
+
* @throws {RequiredError}
|
|
6238
|
+
* @memberof CompanyApi
|
|
6239
|
+
*/
|
|
6240
|
+
setCompanyPaymentGatewaysPrimary(requestParameters, options) {
|
|
6241
|
+
return CompanyApiFp(this.configuration).setCompanyPaymentGatewaysPrimary(requestParameters.companyId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6242
|
+
}
|
|
5663
6243
|
/**
|
|
5664
6244
|
*
|
|
5665
6245
|
* @param {CompanyApiSetCompanySenderEmailRequest} requestParameters Request parameters.
|
|
@@ -5718,7 +6298,7 @@ export class CompanyApi extends BaseAPI {
|
|
|
5718
6298
|
* @memberof CompanyApi
|
|
5719
6299
|
*/
|
|
5720
6300
|
updateCompanyPaymentGateways(requestParameters, options) {
|
|
5721
|
-
return CompanyApiFp(this.configuration).updateCompanyPaymentGateways(requestParameters.id, requestParameters.iCompanyUpdatePaymentGatewaysRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6301
|
+
return CompanyApiFp(this.configuration).updateCompanyPaymentGateways(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdatePaymentGatewaysRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5722
6302
|
}
|
|
5723
6303
|
/**
|
|
5724
6304
|
*
|
|
@@ -5728,7 +6308,17 @@ export class CompanyApi extends BaseAPI {
|
|
|
5728
6308
|
* @memberof CompanyApi
|
|
5729
6309
|
*/
|
|
5730
6310
|
updateCompanyShippingProviders(requestParameters, options) {
|
|
5731
|
-
return CompanyApiFp(this.configuration).updateCompanyShippingProviders(requestParameters.id, requestParameters.iCompanyUpdateShippingProvidersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6311
|
+
return CompanyApiFp(this.configuration).updateCompanyShippingProviders(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdateShippingProvidersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6312
|
+
}
|
|
6313
|
+
/**
|
|
6314
|
+
*
|
|
6315
|
+
* @param {CompanyApiUpdateCompanyWarehousesRequest} requestParameters Request parameters.
|
|
6316
|
+
* @param {*} [options] Override http request option.
|
|
6317
|
+
* @throws {RequiredError}
|
|
6318
|
+
* @memberof CompanyApi
|
|
6319
|
+
*/
|
|
6320
|
+
updateCompanyWarehouses(requestParameters, options) {
|
|
6321
|
+
return CompanyApiFp(this.configuration).updateCompanyWarehouses(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdateWarehousesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5732
6322
|
}
|
|
5733
6323
|
/**
|
|
5734
6324
|
*
|