@infisale-client/api 1.2.103 → 1.2.105
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 +743 -59
- package/dist/api/api.js +545 -13
- package/dist/api/api.mjs +545 -13
- package/package.json +2 -2
package/dist/api/api.js
CHANGED
|
@@ -537,7 +537,8 @@ exports.ICompanyCollectionQueryParamsDateFieldEnum = {
|
|
|
537
537
|
exports.ICompanyDashboardResponsePeriodEnum = {
|
|
538
538
|
DAY: 'day',
|
|
539
539
|
MONTH: 'month',
|
|
540
|
-
WEEK: 'week'
|
|
540
|
+
WEEK: 'week',
|
|
541
|
+
HOUR: 'hour'
|
|
541
542
|
};
|
|
542
543
|
exports.ICompanyUsersCollectionQueryParamsDateFieldEnum = {
|
|
543
544
|
CREATED_AT: 'createdAt',
|
|
@@ -3846,6 +3847,105 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3846
3847
|
options: localVarRequestOptions,
|
|
3847
3848
|
};
|
|
3848
3849
|
},
|
|
3850
|
+
/**
|
|
3851
|
+
*
|
|
3852
|
+
* @param {string} id
|
|
3853
|
+
* @param {ICompanyCreatePaymentGatewaysRequest} iCompanyCreatePaymentGatewaysRequest
|
|
3854
|
+
* @param {*} [options] Override http request option.
|
|
3855
|
+
* @throws {RequiredError}
|
|
3856
|
+
*/
|
|
3857
|
+
createCompanyPaymentGateways: async (id, iCompanyCreatePaymentGatewaysRequest, options = {}) => {
|
|
3858
|
+
// verify required parameter 'id' is not null or undefined
|
|
3859
|
+
(0, common_1.assertParamExists)('createCompanyPaymentGateways', 'id', id);
|
|
3860
|
+
// verify required parameter 'iCompanyCreatePaymentGatewaysRequest' is not null or undefined
|
|
3861
|
+
(0, common_1.assertParamExists)('createCompanyPaymentGateways', 'iCompanyCreatePaymentGatewaysRequest', iCompanyCreatePaymentGatewaysRequest);
|
|
3862
|
+
const localVarPath = `/api/companies/{id}/payment-gateways`
|
|
3863
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3864
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3865
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3866
|
+
let baseOptions;
|
|
3867
|
+
if (configuration) {
|
|
3868
|
+
baseOptions = configuration.baseOptions;
|
|
3869
|
+
}
|
|
3870
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3871
|
+
const localVarHeaderParameter = {};
|
|
3872
|
+
const localVarQueryParameter = {};
|
|
3873
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3874
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3875
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3876
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3877
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iCompanyCreatePaymentGatewaysRequest, localVarRequestOptions, configuration);
|
|
3878
|
+
return {
|
|
3879
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3880
|
+
options: localVarRequestOptions,
|
|
3881
|
+
};
|
|
3882
|
+
},
|
|
3883
|
+
/**
|
|
3884
|
+
*
|
|
3885
|
+
* @param {string} id
|
|
3886
|
+
* @param {ICompanyCreateShippingProvidersRequest} iCompanyCreateShippingProvidersRequest
|
|
3887
|
+
* @param {*} [options] Override http request option.
|
|
3888
|
+
* @throws {RequiredError}
|
|
3889
|
+
*/
|
|
3890
|
+
createCompanyShippingProviders: async (id, iCompanyCreateShippingProvidersRequest, options = {}) => {
|
|
3891
|
+
// verify required parameter 'id' is not null or undefined
|
|
3892
|
+
(0, common_1.assertParamExists)('createCompanyShippingProviders', 'id', id);
|
|
3893
|
+
// verify required parameter 'iCompanyCreateShippingProvidersRequest' is not null or undefined
|
|
3894
|
+
(0, common_1.assertParamExists)('createCompanyShippingProviders', 'iCompanyCreateShippingProvidersRequest', iCompanyCreateShippingProvidersRequest);
|
|
3895
|
+
const localVarPath = `/api/companies/{id}/shipping-providers`
|
|
3896
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3897
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3898
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3899
|
+
let baseOptions;
|
|
3900
|
+
if (configuration) {
|
|
3901
|
+
baseOptions = configuration.baseOptions;
|
|
3902
|
+
}
|
|
3903
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3904
|
+
const localVarHeaderParameter = {};
|
|
3905
|
+
const localVarQueryParameter = {};
|
|
3906
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3907
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3908
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3909
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3910
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iCompanyCreateShippingProvidersRequest, localVarRequestOptions, configuration);
|
|
3911
|
+
return {
|
|
3912
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3913
|
+
options: localVarRequestOptions,
|
|
3914
|
+
};
|
|
3915
|
+
},
|
|
3916
|
+
/**
|
|
3917
|
+
*
|
|
3918
|
+
* @param {string} id
|
|
3919
|
+
* @param {ICompanyCreateWarehousesRequest} iCompanyCreateWarehousesRequest
|
|
3920
|
+
* @param {*} [options] Override http request option.
|
|
3921
|
+
* @throws {RequiredError}
|
|
3922
|
+
*/
|
|
3923
|
+
createCompanyWarehouses: async (id, iCompanyCreateWarehousesRequest, options = {}) => {
|
|
3924
|
+
// verify required parameter 'id' is not null or undefined
|
|
3925
|
+
(0, common_1.assertParamExists)('createCompanyWarehouses', 'id', id);
|
|
3926
|
+
// verify required parameter 'iCompanyCreateWarehousesRequest' is not null or undefined
|
|
3927
|
+
(0, common_1.assertParamExists)('createCompanyWarehouses', 'iCompanyCreateWarehousesRequest', iCompanyCreateWarehousesRequest);
|
|
3928
|
+
const localVarPath = `/api/companies/{id}/warehouses`
|
|
3929
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3930
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3931
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3932
|
+
let baseOptions;
|
|
3933
|
+
if (configuration) {
|
|
3934
|
+
baseOptions = configuration.baseOptions;
|
|
3935
|
+
}
|
|
3936
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3937
|
+
const localVarHeaderParameter = {};
|
|
3938
|
+
const localVarQueryParameter = {};
|
|
3939
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3940
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3941
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3942
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3943
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iCompanyCreateWarehousesRequest, localVarRequestOptions, configuration);
|
|
3944
|
+
return {
|
|
3945
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3946
|
+
options: localVarRequestOptions,
|
|
3947
|
+
};
|
|
3948
|
+
},
|
|
3849
3949
|
/**
|
|
3850
3950
|
*
|
|
3851
3951
|
* @param {string} id
|
|
@@ -3874,6 +3974,102 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3874
3974
|
options: localVarRequestOptions,
|
|
3875
3975
|
};
|
|
3876
3976
|
},
|
|
3977
|
+
/**
|
|
3978
|
+
*
|
|
3979
|
+
* @param {string} companyId
|
|
3980
|
+
* @param {string} id
|
|
3981
|
+
* @param {*} [options] Override http request option.
|
|
3982
|
+
* @throws {RequiredError}
|
|
3983
|
+
*/
|
|
3984
|
+
deleteCompanyPaymentGateways: async (companyId, id, options = {}) => {
|
|
3985
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
3986
|
+
(0, common_1.assertParamExists)('deleteCompanyPaymentGateways', 'companyId', companyId);
|
|
3987
|
+
// verify required parameter 'id' is not null or undefined
|
|
3988
|
+
(0, common_1.assertParamExists)('deleteCompanyPaymentGateways', 'id', id);
|
|
3989
|
+
const localVarPath = `/api/companies/{companyId}/payment-gateways/{id}`
|
|
3990
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)))
|
|
3991
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3992
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3993
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3994
|
+
let baseOptions;
|
|
3995
|
+
if (configuration) {
|
|
3996
|
+
baseOptions = configuration.baseOptions;
|
|
3997
|
+
}
|
|
3998
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
3999
|
+
const localVarHeaderParameter = {};
|
|
4000
|
+
const localVarQueryParameter = {};
|
|
4001
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4002
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4003
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4004
|
+
return {
|
|
4005
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4006
|
+
options: localVarRequestOptions,
|
|
4007
|
+
};
|
|
4008
|
+
},
|
|
4009
|
+
/**
|
|
4010
|
+
*
|
|
4011
|
+
* @param {string} companyId
|
|
4012
|
+
* @param {string} id
|
|
4013
|
+
* @param {*} [options] Override http request option.
|
|
4014
|
+
* @throws {RequiredError}
|
|
4015
|
+
*/
|
|
4016
|
+
deleteCompanyShippingProviders: async (companyId, id, options = {}) => {
|
|
4017
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4018
|
+
(0, common_1.assertParamExists)('deleteCompanyShippingProviders', 'companyId', companyId);
|
|
4019
|
+
// verify required parameter 'id' is not null or undefined
|
|
4020
|
+
(0, common_1.assertParamExists)('deleteCompanyShippingProviders', 'id', id);
|
|
4021
|
+
const localVarPath = `/api/companies/{companyId}/shipping-providers/{id}`
|
|
4022
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)))
|
|
4023
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4024
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4025
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4026
|
+
let baseOptions;
|
|
4027
|
+
if (configuration) {
|
|
4028
|
+
baseOptions = configuration.baseOptions;
|
|
4029
|
+
}
|
|
4030
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
4031
|
+
const localVarHeaderParameter = {};
|
|
4032
|
+
const localVarQueryParameter = {};
|
|
4033
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4034
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4035
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4036
|
+
return {
|
|
4037
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4038
|
+
options: localVarRequestOptions,
|
|
4039
|
+
};
|
|
4040
|
+
},
|
|
4041
|
+
/**
|
|
4042
|
+
*
|
|
4043
|
+
* @param {string} companyId
|
|
4044
|
+
* @param {string} id
|
|
4045
|
+
* @param {*} [options] Override http request option.
|
|
4046
|
+
* @throws {RequiredError}
|
|
4047
|
+
*/
|
|
4048
|
+
deleteCompanyWarehouses: async (companyId, id, options = {}) => {
|
|
4049
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4050
|
+
(0, common_1.assertParamExists)('deleteCompanyWarehouses', 'companyId', companyId);
|
|
4051
|
+
// verify required parameter 'id' is not null or undefined
|
|
4052
|
+
(0, common_1.assertParamExists)('deleteCompanyWarehouses', 'id', id);
|
|
4053
|
+
const localVarPath = `/api/companies/{companyId}/warehouses/{id}`
|
|
4054
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)))
|
|
4055
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4056
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4057
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4058
|
+
let baseOptions;
|
|
4059
|
+
if (configuration) {
|
|
4060
|
+
baseOptions = configuration.baseOptions;
|
|
4061
|
+
}
|
|
4062
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
4063
|
+
const localVarHeaderParameter = {};
|
|
4064
|
+
const localVarQueryParameter = {};
|
|
4065
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4066
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4067
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4068
|
+
return {
|
|
4069
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4070
|
+
options: localVarRequestOptions,
|
|
4071
|
+
};
|
|
4072
|
+
},
|
|
3877
4073
|
/**
|
|
3878
4074
|
*
|
|
3879
4075
|
* @param {string} id
|
|
@@ -4454,6 +4650,38 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4454
4650
|
options: localVarRequestOptions,
|
|
4455
4651
|
};
|
|
4456
4652
|
},
|
|
4653
|
+
/**
|
|
4654
|
+
*
|
|
4655
|
+
* @param {string} companyId
|
|
4656
|
+
* @param {string} id
|
|
4657
|
+
* @param {*} [options] Override http request option.
|
|
4658
|
+
* @throws {RequiredError}
|
|
4659
|
+
*/
|
|
4660
|
+
setCompanyPaymentGatewaysPrimary: async (companyId, id, options = {}) => {
|
|
4661
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4662
|
+
(0, common_1.assertParamExists)('setCompanyPaymentGatewaysPrimary', 'companyId', companyId);
|
|
4663
|
+
// verify required parameter 'id' is not null or undefined
|
|
4664
|
+
(0, common_1.assertParamExists)('setCompanyPaymentGatewaysPrimary', 'id', id);
|
|
4665
|
+
const localVarPath = `/api/companies/{companyId}/payment-gateways/{id}/set-primary`
|
|
4666
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)))
|
|
4667
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4668
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4669
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4670
|
+
let baseOptions;
|
|
4671
|
+
if (configuration) {
|
|
4672
|
+
baseOptions = configuration.baseOptions;
|
|
4673
|
+
}
|
|
4674
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
4675
|
+
const localVarHeaderParameter = {};
|
|
4676
|
+
const localVarQueryParameter = {};
|
|
4677
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4678
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4679
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4680
|
+
return {
|
|
4681
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4682
|
+
options: localVarRequestOptions,
|
|
4683
|
+
};
|
|
4684
|
+
},
|
|
4457
4685
|
/**
|
|
4458
4686
|
*
|
|
4459
4687
|
* @param {string} id
|
|
@@ -4621,17 +4849,21 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4621
4849
|
},
|
|
4622
4850
|
/**
|
|
4623
4851
|
*
|
|
4852
|
+
* @param {string} companyId
|
|
4624
4853
|
* @param {string} id
|
|
4625
4854
|
* @param {ICompanyUpdatePaymentGatewaysRequest} iCompanyUpdatePaymentGatewaysRequest
|
|
4626
4855
|
* @param {*} [options] Override http request option.
|
|
4627
4856
|
* @throws {RequiredError}
|
|
4628
4857
|
*/
|
|
4629
|
-
updateCompanyPaymentGateways: async (id, iCompanyUpdatePaymentGatewaysRequest, options = {}) => {
|
|
4858
|
+
updateCompanyPaymentGateways: async (companyId, id, iCompanyUpdatePaymentGatewaysRequest, options = {}) => {
|
|
4859
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4860
|
+
(0, common_1.assertParamExists)('updateCompanyPaymentGateways', 'companyId', companyId);
|
|
4630
4861
|
// verify required parameter 'id' is not null or undefined
|
|
4631
4862
|
(0, common_1.assertParamExists)('updateCompanyPaymentGateways', 'id', id);
|
|
4632
4863
|
// verify required parameter 'iCompanyUpdatePaymentGatewaysRequest' is not null or undefined
|
|
4633
4864
|
(0, common_1.assertParamExists)('updateCompanyPaymentGateways', 'iCompanyUpdatePaymentGatewaysRequest', iCompanyUpdatePaymentGatewaysRequest);
|
|
4634
|
-
const localVarPath = `/api/companies/{
|
|
4865
|
+
const localVarPath = `/api/companies/{companyId}/payment-gateways/{id}`
|
|
4866
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)))
|
|
4635
4867
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4636
4868
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4637
4869
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4654,17 +4886,21 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4654
4886
|
},
|
|
4655
4887
|
/**
|
|
4656
4888
|
*
|
|
4889
|
+
* @param {string} companyId
|
|
4657
4890
|
* @param {string} id
|
|
4658
4891
|
* @param {ICompanyUpdateShippingProvidersRequest} iCompanyUpdateShippingProvidersRequest
|
|
4659
4892
|
* @param {*} [options] Override http request option.
|
|
4660
4893
|
* @throws {RequiredError}
|
|
4661
4894
|
*/
|
|
4662
|
-
updateCompanyShippingProviders: async (id, iCompanyUpdateShippingProvidersRequest, options = {}) => {
|
|
4895
|
+
updateCompanyShippingProviders: async (companyId, id, iCompanyUpdateShippingProvidersRequest, options = {}) => {
|
|
4896
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4897
|
+
(0, common_1.assertParamExists)('updateCompanyShippingProviders', 'companyId', companyId);
|
|
4663
4898
|
// verify required parameter 'id' is not null or undefined
|
|
4664
4899
|
(0, common_1.assertParamExists)('updateCompanyShippingProviders', 'id', id);
|
|
4665
4900
|
// verify required parameter 'iCompanyUpdateShippingProvidersRequest' is not null or undefined
|
|
4666
4901
|
(0, common_1.assertParamExists)('updateCompanyShippingProviders', 'iCompanyUpdateShippingProvidersRequest', iCompanyUpdateShippingProvidersRequest);
|
|
4667
|
-
const localVarPath = `/api/companies/{
|
|
4902
|
+
const localVarPath = `/api/companies/{companyId}/shipping-providers/{id}`
|
|
4903
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)))
|
|
4668
4904
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4669
4905
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4670
4906
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4685,6 +4921,43 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4685
4921
|
options: localVarRequestOptions,
|
|
4686
4922
|
};
|
|
4687
4923
|
},
|
|
4924
|
+
/**
|
|
4925
|
+
*
|
|
4926
|
+
* @param {string} companyId
|
|
4927
|
+
* @param {string} id
|
|
4928
|
+
* @param {ICompanyUpdateWarehousesRequest} iCompanyUpdateWarehousesRequest
|
|
4929
|
+
* @param {*} [options] Override http request option.
|
|
4930
|
+
* @throws {RequiredError}
|
|
4931
|
+
*/
|
|
4932
|
+
updateCompanyWarehouses: async (companyId, id, iCompanyUpdateWarehousesRequest, options = {}) => {
|
|
4933
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4934
|
+
(0, common_1.assertParamExists)('updateCompanyWarehouses', 'companyId', companyId);
|
|
4935
|
+
// verify required parameter 'id' is not null or undefined
|
|
4936
|
+
(0, common_1.assertParamExists)('updateCompanyWarehouses', 'id', id);
|
|
4937
|
+
// verify required parameter 'iCompanyUpdateWarehousesRequest' is not null or undefined
|
|
4938
|
+
(0, common_1.assertParamExists)('updateCompanyWarehouses', 'iCompanyUpdateWarehousesRequest', iCompanyUpdateWarehousesRequest);
|
|
4939
|
+
const localVarPath = `/api/companies/{companyId}/warehouses/{id}`
|
|
4940
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)))
|
|
4941
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4942
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4943
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4944
|
+
let baseOptions;
|
|
4945
|
+
if (configuration) {
|
|
4946
|
+
baseOptions = configuration.baseOptions;
|
|
4947
|
+
}
|
|
4948
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
4949
|
+
const localVarHeaderParameter = {};
|
|
4950
|
+
const localVarQueryParameter = {};
|
|
4951
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4952
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4953
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4954
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4955
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iCompanyUpdateWarehousesRequest, localVarRequestOptions, configuration);
|
|
4956
|
+
return {
|
|
4957
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4958
|
+
options: localVarRequestOptions,
|
|
4959
|
+
};
|
|
4960
|
+
},
|
|
4688
4961
|
/**
|
|
4689
4962
|
*
|
|
4690
4963
|
* @param {string} id
|
|
@@ -4827,6 +5100,45 @@ const CompanyApiFp = function (configuration) {
|
|
|
4827
5100
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.createCompanyPayment']?.[localVarOperationServerIndex]?.url;
|
|
4828
5101
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4829
5102
|
},
|
|
5103
|
+
/**
|
|
5104
|
+
*
|
|
5105
|
+
* @param {string} id
|
|
5106
|
+
* @param {ICompanyCreatePaymentGatewaysRequest} iCompanyCreatePaymentGatewaysRequest
|
|
5107
|
+
* @param {*} [options] Override http request option.
|
|
5108
|
+
* @throws {RequiredError}
|
|
5109
|
+
*/
|
|
5110
|
+
async createCompanyPaymentGateways(id, iCompanyCreatePaymentGatewaysRequest, options) {
|
|
5111
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanyPaymentGateways(id, iCompanyCreatePaymentGatewaysRequest, options);
|
|
5112
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5113
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.createCompanyPaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
5114
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5115
|
+
},
|
|
5116
|
+
/**
|
|
5117
|
+
*
|
|
5118
|
+
* @param {string} id
|
|
5119
|
+
* @param {ICompanyCreateShippingProvidersRequest} iCompanyCreateShippingProvidersRequest
|
|
5120
|
+
* @param {*} [options] Override http request option.
|
|
5121
|
+
* @throws {RequiredError}
|
|
5122
|
+
*/
|
|
5123
|
+
async createCompanyShippingProviders(id, iCompanyCreateShippingProvidersRequest, options) {
|
|
5124
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanyShippingProviders(id, iCompanyCreateShippingProvidersRequest, options);
|
|
5125
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5126
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.createCompanyShippingProviders']?.[localVarOperationServerIndex]?.url;
|
|
5127
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5128
|
+
},
|
|
5129
|
+
/**
|
|
5130
|
+
*
|
|
5131
|
+
* @param {string} id
|
|
5132
|
+
* @param {ICompanyCreateWarehousesRequest} iCompanyCreateWarehousesRequest
|
|
5133
|
+
* @param {*} [options] Override http request option.
|
|
5134
|
+
* @throws {RequiredError}
|
|
5135
|
+
*/
|
|
5136
|
+
async createCompanyWarehouses(id, iCompanyCreateWarehousesRequest, options) {
|
|
5137
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanyWarehouses(id, iCompanyCreateWarehousesRequest, options);
|
|
5138
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5139
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.createCompanyWarehouses']?.[localVarOperationServerIndex]?.url;
|
|
5140
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5141
|
+
},
|
|
4830
5142
|
/**
|
|
4831
5143
|
*
|
|
4832
5144
|
* @param {string} id
|
|
@@ -4839,6 +5151,45 @@ const CompanyApiFp = function (configuration) {
|
|
|
4839
5151
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.deleteCompany']?.[localVarOperationServerIndex]?.url;
|
|
4840
5152
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4841
5153
|
},
|
|
5154
|
+
/**
|
|
5155
|
+
*
|
|
5156
|
+
* @param {string} companyId
|
|
5157
|
+
* @param {string} id
|
|
5158
|
+
* @param {*} [options] Override http request option.
|
|
5159
|
+
* @throws {RequiredError}
|
|
5160
|
+
*/
|
|
5161
|
+
async deleteCompanyPaymentGateways(companyId, id, options) {
|
|
5162
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCompanyPaymentGateways(companyId, id, options);
|
|
5163
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5164
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.deleteCompanyPaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
5165
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5166
|
+
},
|
|
5167
|
+
/**
|
|
5168
|
+
*
|
|
5169
|
+
* @param {string} companyId
|
|
5170
|
+
* @param {string} id
|
|
5171
|
+
* @param {*} [options] Override http request option.
|
|
5172
|
+
* @throws {RequiredError}
|
|
5173
|
+
*/
|
|
5174
|
+
async deleteCompanyShippingProviders(companyId, id, options) {
|
|
5175
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCompanyShippingProviders(companyId, id, options);
|
|
5176
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5177
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.deleteCompanyShippingProviders']?.[localVarOperationServerIndex]?.url;
|
|
5178
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5179
|
+
},
|
|
5180
|
+
/**
|
|
5181
|
+
*
|
|
5182
|
+
* @param {string} companyId
|
|
5183
|
+
* @param {string} id
|
|
5184
|
+
* @param {*} [options] Override http request option.
|
|
5185
|
+
* @throws {RequiredError}
|
|
5186
|
+
*/
|
|
5187
|
+
async deleteCompanyWarehouses(companyId, id, options) {
|
|
5188
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCompanyWarehouses(companyId, id, options);
|
|
5189
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5190
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.deleteCompanyWarehouses']?.[localVarOperationServerIndex]?.url;
|
|
5191
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5192
|
+
},
|
|
4842
5193
|
/**
|
|
4843
5194
|
*
|
|
4844
5195
|
* @param {string} id
|
|
@@ -5061,6 +5412,19 @@ const CompanyApiFp = function (configuration) {
|
|
|
5061
5412
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyVersions']?.[localVarOperationServerIndex]?.url;
|
|
5062
5413
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5063
5414
|
},
|
|
5415
|
+
/**
|
|
5416
|
+
*
|
|
5417
|
+
* @param {string} companyId
|
|
5418
|
+
* @param {string} id
|
|
5419
|
+
* @param {*} [options] Override http request option.
|
|
5420
|
+
* @throws {RequiredError}
|
|
5421
|
+
*/
|
|
5422
|
+
async setCompanyPaymentGatewaysPrimary(companyId, id, options) {
|
|
5423
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setCompanyPaymentGatewaysPrimary(companyId, id, options);
|
|
5424
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5425
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.setCompanyPaymentGatewaysPrimary']?.[localVarOperationServerIndex]?.url;
|
|
5426
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5427
|
+
},
|
|
5064
5428
|
/**
|
|
5065
5429
|
*
|
|
5066
5430
|
* @param {string} id
|
|
@@ -5128,30 +5492,46 @@ const CompanyApiFp = function (configuration) {
|
|
|
5128
5492
|
},
|
|
5129
5493
|
/**
|
|
5130
5494
|
*
|
|
5495
|
+
* @param {string} companyId
|
|
5131
5496
|
* @param {string} id
|
|
5132
5497
|
* @param {ICompanyUpdatePaymentGatewaysRequest} iCompanyUpdatePaymentGatewaysRequest
|
|
5133
5498
|
* @param {*} [options] Override http request option.
|
|
5134
5499
|
* @throws {RequiredError}
|
|
5135
5500
|
*/
|
|
5136
|
-
async updateCompanyPaymentGateways(id, iCompanyUpdatePaymentGatewaysRequest, options) {
|
|
5137
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompanyPaymentGateways(id, iCompanyUpdatePaymentGatewaysRequest, options);
|
|
5501
|
+
async updateCompanyPaymentGateways(companyId, id, iCompanyUpdatePaymentGatewaysRequest, options) {
|
|
5502
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompanyPaymentGateways(companyId, id, iCompanyUpdatePaymentGatewaysRequest, options);
|
|
5138
5503
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5139
5504
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.updateCompanyPaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
5140
5505
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5141
5506
|
},
|
|
5142
5507
|
/**
|
|
5143
5508
|
*
|
|
5509
|
+
* @param {string} companyId
|
|
5144
5510
|
* @param {string} id
|
|
5145
5511
|
* @param {ICompanyUpdateShippingProvidersRequest} iCompanyUpdateShippingProvidersRequest
|
|
5146
5512
|
* @param {*} [options] Override http request option.
|
|
5147
5513
|
* @throws {RequiredError}
|
|
5148
5514
|
*/
|
|
5149
|
-
async updateCompanyShippingProviders(id, iCompanyUpdateShippingProvidersRequest, options) {
|
|
5150
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompanyShippingProviders(id, iCompanyUpdateShippingProvidersRequest, options);
|
|
5515
|
+
async updateCompanyShippingProviders(companyId, id, iCompanyUpdateShippingProvidersRequest, options) {
|
|
5516
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompanyShippingProviders(companyId, id, iCompanyUpdateShippingProvidersRequest, options);
|
|
5151
5517
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5152
5518
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.updateCompanyShippingProviders']?.[localVarOperationServerIndex]?.url;
|
|
5153
5519
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5154
5520
|
},
|
|
5521
|
+
/**
|
|
5522
|
+
*
|
|
5523
|
+
* @param {string} companyId
|
|
5524
|
+
* @param {string} id
|
|
5525
|
+
* @param {ICompanyUpdateWarehousesRequest} iCompanyUpdateWarehousesRequest
|
|
5526
|
+
* @param {*} [options] Override http request option.
|
|
5527
|
+
* @throws {RequiredError}
|
|
5528
|
+
*/
|
|
5529
|
+
async updateCompanyWarehouses(companyId, id, iCompanyUpdateWarehousesRequest, options) {
|
|
5530
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompanyWarehouses(companyId, id, iCompanyUpdateWarehousesRequest, options);
|
|
5531
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5532
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.updateCompanyWarehouses']?.[localVarOperationServerIndex]?.url;
|
|
5533
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5534
|
+
},
|
|
5155
5535
|
/**
|
|
5156
5536
|
*
|
|
5157
5537
|
* @param {string} id
|
|
@@ -5234,6 +5614,33 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5234
5614
|
createCompanyPayment(requestParameters, options) {
|
|
5235
5615
|
return localVarFp.createCompanyPayment(requestParameters.id, requestParameters.iPaymentPostRequest, options).then((request) => request(axios, basePath));
|
|
5236
5616
|
},
|
|
5617
|
+
/**
|
|
5618
|
+
*
|
|
5619
|
+
* @param {CompanyApiCreateCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
5620
|
+
* @param {*} [options] Override http request option.
|
|
5621
|
+
* @throws {RequiredError}
|
|
5622
|
+
*/
|
|
5623
|
+
createCompanyPaymentGateways(requestParameters, options) {
|
|
5624
|
+
return localVarFp.createCompanyPaymentGateways(requestParameters.id, requestParameters.iCompanyCreatePaymentGatewaysRequest, options).then((request) => request(axios, basePath));
|
|
5625
|
+
},
|
|
5626
|
+
/**
|
|
5627
|
+
*
|
|
5628
|
+
* @param {CompanyApiCreateCompanyShippingProvidersRequest} requestParameters Request parameters.
|
|
5629
|
+
* @param {*} [options] Override http request option.
|
|
5630
|
+
* @throws {RequiredError}
|
|
5631
|
+
*/
|
|
5632
|
+
createCompanyShippingProviders(requestParameters, options) {
|
|
5633
|
+
return localVarFp.createCompanyShippingProviders(requestParameters.id, requestParameters.iCompanyCreateShippingProvidersRequest, options).then((request) => request(axios, basePath));
|
|
5634
|
+
},
|
|
5635
|
+
/**
|
|
5636
|
+
*
|
|
5637
|
+
* @param {CompanyApiCreateCompanyWarehousesRequest} requestParameters Request parameters.
|
|
5638
|
+
* @param {*} [options] Override http request option.
|
|
5639
|
+
* @throws {RequiredError}
|
|
5640
|
+
*/
|
|
5641
|
+
createCompanyWarehouses(requestParameters, options) {
|
|
5642
|
+
return localVarFp.createCompanyWarehouses(requestParameters.id, requestParameters.iCompanyCreateWarehousesRequest, options).then((request) => request(axios, basePath));
|
|
5643
|
+
},
|
|
5237
5644
|
/**
|
|
5238
5645
|
*
|
|
5239
5646
|
* @param {CompanyApiDeleteCompanyRequest} requestParameters Request parameters.
|
|
@@ -5243,6 +5650,33 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5243
5650
|
deleteCompany(requestParameters, options) {
|
|
5244
5651
|
return localVarFp.deleteCompany(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5245
5652
|
},
|
|
5653
|
+
/**
|
|
5654
|
+
*
|
|
5655
|
+
* @param {CompanyApiDeleteCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
5656
|
+
* @param {*} [options] Override http request option.
|
|
5657
|
+
* @throws {RequiredError}
|
|
5658
|
+
*/
|
|
5659
|
+
deleteCompanyPaymentGateways(requestParameters, options) {
|
|
5660
|
+
return localVarFp.deleteCompanyPaymentGateways(requestParameters.companyId, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5661
|
+
},
|
|
5662
|
+
/**
|
|
5663
|
+
*
|
|
5664
|
+
* @param {CompanyApiDeleteCompanyShippingProvidersRequest} requestParameters Request parameters.
|
|
5665
|
+
* @param {*} [options] Override http request option.
|
|
5666
|
+
* @throws {RequiredError}
|
|
5667
|
+
*/
|
|
5668
|
+
deleteCompanyShippingProviders(requestParameters, options) {
|
|
5669
|
+
return localVarFp.deleteCompanyShippingProviders(requestParameters.companyId, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5670
|
+
},
|
|
5671
|
+
/**
|
|
5672
|
+
*
|
|
5673
|
+
* @param {CompanyApiDeleteCompanyWarehousesRequest} requestParameters Request parameters.
|
|
5674
|
+
* @param {*} [options] Override http request option.
|
|
5675
|
+
* @throws {RequiredError}
|
|
5676
|
+
*/
|
|
5677
|
+
deleteCompanyWarehouses(requestParameters, options) {
|
|
5678
|
+
return localVarFp.deleteCompanyWarehouses(requestParameters.companyId, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5679
|
+
},
|
|
5246
5680
|
/**
|
|
5247
5681
|
*
|
|
5248
5682
|
* @param {CompanyApiDeleteDomainRequest} requestParameters Request parameters.
|
|
@@ -5387,6 +5821,15 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5387
5821
|
getCompanyVersions(requestParameters, options) {
|
|
5388
5822
|
return localVarFp.getCompanyVersions(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5389
5823
|
},
|
|
5824
|
+
/**
|
|
5825
|
+
*
|
|
5826
|
+
* @param {CompanyApiSetCompanyPaymentGatewaysPrimaryRequest} requestParameters Request parameters.
|
|
5827
|
+
* @param {*} [options] Override http request option.
|
|
5828
|
+
* @throws {RequiredError}
|
|
5829
|
+
*/
|
|
5830
|
+
setCompanyPaymentGatewaysPrimary(requestParameters, options) {
|
|
5831
|
+
return localVarFp.setCompanyPaymentGatewaysPrimary(requestParameters.companyId, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5832
|
+
},
|
|
5390
5833
|
/**
|
|
5391
5834
|
*
|
|
5392
5835
|
* @param {CompanyApiSetCompanySenderEmailRequest} requestParameters Request parameters.
|
|
@@ -5439,7 +5882,7 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5439
5882
|
* @throws {RequiredError}
|
|
5440
5883
|
*/
|
|
5441
5884
|
updateCompanyPaymentGateways(requestParameters, options) {
|
|
5442
|
-
return localVarFp.updateCompanyPaymentGateways(requestParameters.id, requestParameters.iCompanyUpdatePaymentGatewaysRequest, options).then((request) => request(axios, basePath));
|
|
5885
|
+
return localVarFp.updateCompanyPaymentGateways(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdatePaymentGatewaysRequest, options).then((request) => request(axios, basePath));
|
|
5443
5886
|
},
|
|
5444
5887
|
/**
|
|
5445
5888
|
*
|
|
@@ -5448,7 +5891,16 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5448
5891
|
* @throws {RequiredError}
|
|
5449
5892
|
*/
|
|
5450
5893
|
updateCompanyShippingProviders(requestParameters, options) {
|
|
5451
|
-
return localVarFp.updateCompanyShippingProviders(requestParameters.id, requestParameters.iCompanyUpdateShippingProvidersRequest, options).then((request) => request(axios, basePath));
|
|
5894
|
+
return localVarFp.updateCompanyShippingProviders(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdateShippingProvidersRequest, options).then((request) => request(axios, basePath));
|
|
5895
|
+
},
|
|
5896
|
+
/**
|
|
5897
|
+
*
|
|
5898
|
+
* @param {CompanyApiUpdateCompanyWarehousesRequest} requestParameters Request parameters.
|
|
5899
|
+
* @param {*} [options] Override http request option.
|
|
5900
|
+
* @throws {RequiredError}
|
|
5901
|
+
*/
|
|
5902
|
+
updateCompanyWarehouses(requestParameters, options) {
|
|
5903
|
+
return localVarFp.updateCompanyWarehouses(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdateWarehousesRequest, options).then((request) => request(axios, basePath));
|
|
5452
5904
|
},
|
|
5453
5905
|
/**
|
|
5454
5906
|
*
|
|
@@ -5528,6 +5980,36 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
5528
5980
|
createCompanyPayment(requestParameters, options) {
|
|
5529
5981
|
return (0, exports.CompanyApiFp)(this.configuration).createCompanyPayment(requestParameters.id, requestParameters.iPaymentPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5530
5982
|
}
|
|
5983
|
+
/**
|
|
5984
|
+
*
|
|
5985
|
+
* @param {CompanyApiCreateCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
5986
|
+
* @param {*} [options] Override http request option.
|
|
5987
|
+
* @throws {RequiredError}
|
|
5988
|
+
* @memberof CompanyApi
|
|
5989
|
+
*/
|
|
5990
|
+
createCompanyPaymentGateways(requestParameters, options) {
|
|
5991
|
+
return (0, exports.CompanyApiFp)(this.configuration).createCompanyPaymentGateways(requestParameters.id, requestParameters.iCompanyCreatePaymentGatewaysRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5992
|
+
}
|
|
5993
|
+
/**
|
|
5994
|
+
*
|
|
5995
|
+
* @param {CompanyApiCreateCompanyShippingProvidersRequest} requestParameters Request parameters.
|
|
5996
|
+
* @param {*} [options] Override http request option.
|
|
5997
|
+
* @throws {RequiredError}
|
|
5998
|
+
* @memberof CompanyApi
|
|
5999
|
+
*/
|
|
6000
|
+
createCompanyShippingProviders(requestParameters, options) {
|
|
6001
|
+
return (0, exports.CompanyApiFp)(this.configuration).createCompanyShippingProviders(requestParameters.id, requestParameters.iCompanyCreateShippingProvidersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6002
|
+
}
|
|
6003
|
+
/**
|
|
6004
|
+
*
|
|
6005
|
+
* @param {CompanyApiCreateCompanyWarehousesRequest} requestParameters Request parameters.
|
|
6006
|
+
* @param {*} [options] Override http request option.
|
|
6007
|
+
* @throws {RequiredError}
|
|
6008
|
+
* @memberof CompanyApi
|
|
6009
|
+
*/
|
|
6010
|
+
createCompanyWarehouses(requestParameters, options) {
|
|
6011
|
+
return (0, exports.CompanyApiFp)(this.configuration).createCompanyWarehouses(requestParameters.id, requestParameters.iCompanyCreateWarehousesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6012
|
+
}
|
|
5531
6013
|
/**
|
|
5532
6014
|
*
|
|
5533
6015
|
* @param {CompanyApiDeleteCompanyRequest} requestParameters Request parameters.
|
|
@@ -5538,6 +6020,36 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
5538
6020
|
deleteCompany(requestParameters, options) {
|
|
5539
6021
|
return (0, exports.CompanyApiFp)(this.configuration).deleteCompany(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5540
6022
|
}
|
|
6023
|
+
/**
|
|
6024
|
+
*
|
|
6025
|
+
* @param {CompanyApiDeleteCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
6026
|
+
* @param {*} [options] Override http request option.
|
|
6027
|
+
* @throws {RequiredError}
|
|
6028
|
+
* @memberof CompanyApi
|
|
6029
|
+
*/
|
|
6030
|
+
deleteCompanyPaymentGateways(requestParameters, options) {
|
|
6031
|
+
return (0, exports.CompanyApiFp)(this.configuration).deleteCompanyPaymentGateways(requestParameters.companyId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6032
|
+
}
|
|
6033
|
+
/**
|
|
6034
|
+
*
|
|
6035
|
+
* @param {CompanyApiDeleteCompanyShippingProvidersRequest} requestParameters Request parameters.
|
|
6036
|
+
* @param {*} [options] Override http request option.
|
|
6037
|
+
* @throws {RequiredError}
|
|
6038
|
+
* @memberof CompanyApi
|
|
6039
|
+
*/
|
|
6040
|
+
deleteCompanyShippingProviders(requestParameters, options) {
|
|
6041
|
+
return (0, exports.CompanyApiFp)(this.configuration).deleteCompanyShippingProviders(requestParameters.companyId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6042
|
+
}
|
|
6043
|
+
/**
|
|
6044
|
+
*
|
|
6045
|
+
* @param {CompanyApiDeleteCompanyWarehousesRequest} requestParameters Request parameters.
|
|
6046
|
+
* @param {*} [options] Override http request option.
|
|
6047
|
+
* @throws {RequiredError}
|
|
6048
|
+
* @memberof CompanyApi
|
|
6049
|
+
*/
|
|
6050
|
+
deleteCompanyWarehouses(requestParameters, options) {
|
|
6051
|
+
return (0, exports.CompanyApiFp)(this.configuration).deleteCompanyWarehouses(requestParameters.companyId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6052
|
+
}
|
|
5541
6053
|
/**
|
|
5542
6054
|
*
|
|
5543
6055
|
* @param {CompanyApiDeleteDomainRequest} requestParameters Request parameters.
|
|
@@ -5698,6 +6210,16 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
5698
6210
|
getCompanyVersions(requestParameters, options) {
|
|
5699
6211
|
return (0, exports.CompanyApiFp)(this.configuration).getCompanyVersions(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5700
6212
|
}
|
|
6213
|
+
/**
|
|
6214
|
+
*
|
|
6215
|
+
* @param {CompanyApiSetCompanyPaymentGatewaysPrimaryRequest} requestParameters Request parameters.
|
|
6216
|
+
* @param {*} [options] Override http request option.
|
|
6217
|
+
* @throws {RequiredError}
|
|
6218
|
+
* @memberof CompanyApi
|
|
6219
|
+
*/
|
|
6220
|
+
setCompanyPaymentGatewaysPrimary(requestParameters, options) {
|
|
6221
|
+
return (0, exports.CompanyApiFp)(this.configuration).setCompanyPaymentGatewaysPrimary(requestParameters.companyId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6222
|
+
}
|
|
5701
6223
|
/**
|
|
5702
6224
|
*
|
|
5703
6225
|
* @param {CompanyApiSetCompanySenderEmailRequest} requestParameters Request parameters.
|
|
@@ -5756,7 +6278,7 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
5756
6278
|
* @memberof CompanyApi
|
|
5757
6279
|
*/
|
|
5758
6280
|
updateCompanyPaymentGateways(requestParameters, options) {
|
|
5759
|
-
return (0, exports.CompanyApiFp)(this.configuration).updateCompanyPaymentGateways(requestParameters.id, requestParameters.iCompanyUpdatePaymentGatewaysRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6281
|
+
return (0, exports.CompanyApiFp)(this.configuration).updateCompanyPaymentGateways(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdatePaymentGatewaysRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5760
6282
|
}
|
|
5761
6283
|
/**
|
|
5762
6284
|
*
|
|
@@ -5766,7 +6288,17 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
5766
6288
|
* @memberof CompanyApi
|
|
5767
6289
|
*/
|
|
5768
6290
|
updateCompanyShippingProviders(requestParameters, options) {
|
|
5769
|
-
return (0, exports.CompanyApiFp)(this.configuration).updateCompanyShippingProviders(requestParameters.id, requestParameters.iCompanyUpdateShippingProvidersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6291
|
+
return (0, exports.CompanyApiFp)(this.configuration).updateCompanyShippingProviders(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdateShippingProvidersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6292
|
+
}
|
|
6293
|
+
/**
|
|
6294
|
+
*
|
|
6295
|
+
* @param {CompanyApiUpdateCompanyWarehousesRequest} requestParameters Request parameters.
|
|
6296
|
+
* @param {*} [options] Override http request option.
|
|
6297
|
+
* @throws {RequiredError}
|
|
6298
|
+
* @memberof CompanyApi
|
|
6299
|
+
*/
|
|
6300
|
+
updateCompanyWarehouses(requestParameters, options) {
|
|
6301
|
+
return (0, exports.CompanyApiFp)(this.configuration).updateCompanyWarehouses(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdateWarehousesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5770
6302
|
}
|
|
5771
6303
|
/**
|
|
5772
6304
|
*
|