@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.js
CHANGED
|
@@ -3847,6 +3847,105 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3847
3847
|
options: localVarRequestOptions,
|
|
3848
3848
|
};
|
|
3849
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
|
+
},
|
|
3850
3949
|
/**
|
|
3851
3950
|
*
|
|
3852
3951
|
* @param {string} id
|
|
@@ -3875,6 +3974,102 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3875
3974
|
options: localVarRequestOptions,
|
|
3876
3975
|
};
|
|
3877
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
|
+
},
|
|
3878
4073
|
/**
|
|
3879
4074
|
*
|
|
3880
4075
|
* @param {string} id
|
|
@@ -4043,6 +4238,34 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4043
4238
|
options: localVarRequestOptions,
|
|
4044
4239
|
};
|
|
4045
4240
|
},
|
|
4241
|
+
/**
|
|
4242
|
+
*
|
|
4243
|
+
* @param {string} id
|
|
4244
|
+
* @param {*} [options] Override http request option.
|
|
4245
|
+
* @throws {RequiredError}
|
|
4246
|
+
*/
|
|
4247
|
+
getCompanyAvailablePaymentGateways: async (id, options = {}) => {
|
|
4248
|
+
// verify required parameter 'id' is not null or undefined
|
|
4249
|
+
(0, common_1.assertParamExists)('getCompanyAvailablePaymentGateways', 'id', id);
|
|
4250
|
+
const localVarPath = `/api/companies/{id}/payment-gateways/available`
|
|
4251
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4252
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4253
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4254
|
+
let baseOptions;
|
|
4255
|
+
if (configuration) {
|
|
4256
|
+
baseOptions = configuration.baseOptions;
|
|
4257
|
+
}
|
|
4258
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4259
|
+
const localVarHeaderParameter = {};
|
|
4260
|
+
const localVarQueryParameter = {};
|
|
4261
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4262
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4263
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4264
|
+
return {
|
|
4265
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4266
|
+
options: localVarRequestOptions,
|
|
4267
|
+
};
|
|
4268
|
+
},
|
|
4046
4269
|
/**
|
|
4047
4270
|
*
|
|
4048
4271
|
* @param {string} domain
|
|
@@ -4455,6 +4678,38 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4455
4678
|
options: localVarRequestOptions,
|
|
4456
4679
|
};
|
|
4457
4680
|
},
|
|
4681
|
+
/**
|
|
4682
|
+
*
|
|
4683
|
+
* @param {string} companyId
|
|
4684
|
+
* @param {string} id
|
|
4685
|
+
* @param {*} [options] Override http request option.
|
|
4686
|
+
* @throws {RequiredError}
|
|
4687
|
+
*/
|
|
4688
|
+
setCompanyPaymentGatewaysPrimary: async (companyId, id, options = {}) => {
|
|
4689
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4690
|
+
(0, common_1.assertParamExists)('setCompanyPaymentGatewaysPrimary', 'companyId', companyId);
|
|
4691
|
+
// verify required parameter 'id' is not null or undefined
|
|
4692
|
+
(0, common_1.assertParamExists)('setCompanyPaymentGatewaysPrimary', 'id', id);
|
|
4693
|
+
const localVarPath = `/api/companies/{companyId}/payment-gateways/{id}/set-primary`
|
|
4694
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)))
|
|
4695
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4696
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4697
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4698
|
+
let baseOptions;
|
|
4699
|
+
if (configuration) {
|
|
4700
|
+
baseOptions = configuration.baseOptions;
|
|
4701
|
+
}
|
|
4702
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
4703
|
+
const localVarHeaderParameter = {};
|
|
4704
|
+
const localVarQueryParameter = {};
|
|
4705
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4706
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4707
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4708
|
+
return {
|
|
4709
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4710
|
+
options: localVarRequestOptions,
|
|
4711
|
+
};
|
|
4712
|
+
},
|
|
4458
4713
|
/**
|
|
4459
4714
|
*
|
|
4460
4715
|
* @param {string} id
|
|
@@ -4622,17 +4877,21 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4622
4877
|
},
|
|
4623
4878
|
/**
|
|
4624
4879
|
*
|
|
4880
|
+
* @param {string} companyId
|
|
4625
4881
|
* @param {string} id
|
|
4626
4882
|
* @param {ICompanyUpdatePaymentGatewaysRequest} iCompanyUpdatePaymentGatewaysRequest
|
|
4627
4883
|
* @param {*} [options] Override http request option.
|
|
4628
4884
|
* @throws {RequiredError}
|
|
4629
4885
|
*/
|
|
4630
|
-
updateCompanyPaymentGateways: async (id, iCompanyUpdatePaymentGatewaysRequest, options = {}) => {
|
|
4886
|
+
updateCompanyPaymentGateways: async (companyId, id, iCompanyUpdatePaymentGatewaysRequest, options = {}) => {
|
|
4887
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4888
|
+
(0, common_1.assertParamExists)('updateCompanyPaymentGateways', 'companyId', companyId);
|
|
4631
4889
|
// verify required parameter 'id' is not null or undefined
|
|
4632
4890
|
(0, common_1.assertParamExists)('updateCompanyPaymentGateways', 'id', id);
|
|
4633
4891
|
// verify required parameter 'iCompanyUpdatePaymentGatewaysRequest' is not null or undefined
|
|
4634
4892
|
(0, common_1.assertParamExists)('updateCompanyPaymentGateways', 'iCompanyUpdatePaymentGatewaysRequest', iCompanyUpdatePaymentGatewaysRequest);
|
|
4635
|
-
const localVarPath = `/api/companies/{
|
|
4893
|
+
const localVarPath = `/api/companies/{companyId}/payment-gateways/{id}`
|
|
4894
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)))
|
|
4636
4895
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4637
4896
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4638
4897
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4655,17 +4914,21 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4655
4914
|
},
|
|
4656
4915
|
/**
|
|
4657
4916
|
*
|
|
4917
|
+
* @param {string} companyId
|
|
4658
4918
|
* @param {string} id
|
|
4659
4919
|
* @param {ICompanyUpdateShippingProvidersRequest} iCompanyUpdateShippingProvidersRequest
|
|
4660
4920
|
* @param {*} [options] Override http request option.
|
|
4661
4921
|
* @throws {RequiredError}
|
|
4662
4922
|
*/
|
|
4663
|
-
updateCompanyShippingProviders: async (id, iCompanyUpdateShippingProvidersRequest, options = {}) => {
|
|
4923
|
+
updateCompanyShippingProviders: async (companyId, id, iCompanyUpdateShippingProvidersRequest, options = {}) => {
|
|
4924
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4925
|
+
(0, common_1.assertParamExists)('updateCompanyShippingProviders', 'companyId', companyId);
|
|
4664
4926
|
// verify required parameter 'id' is not null or undefined
|
|
4665
4927
|
(0, common_1.assertParamExists)('updateCompanyShippingProviders', 'id', id);
|
|
4666
4928
|
// verify required parameter 'iCompanyUpdateShippingProvidersRequest' is not null or undefined
|
|
4667
4929
|
(0, common_1.assertParamExists)('updateCompanyShippingProviders', 'iCompanyUpdateShippingProvidersRequest', iCompanyUpdateShippingProvidersRequest);
|
|
4668
|
-
const localVarPath = `/api/companies/{
|
|
4930
|
+
const localVarPath = `/api/companies/{companyId}/shipping-providers/{id}`
|
|
4931
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)))
|
|
4669
4932
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4670
4933
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4671
4934
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4686,6 +4949,43 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4686
4949
|
options: localVarRequestOptions,
|
|
4687
4950
|
};
|
|
4688
4951
|
},
|
|
4952
|
+
/**
|
|
4953
|
+
*
|
|
4954
|
+
* @param {string} companyId
|
|
4955
|
+
* @param {string} id
|
|
4956
|
+
* @param {ICompanyUpdateWarehousesRequest} iCompanyUpdateWarehousesRequest
|
|
4957
|
+
* @param {*} [options] Override http request option.
|
|
4958
|
+
* @throws {RequiredError}
|
|
4959
|
+
*/
|
|
4960
|
+
updateCompanyWarehouses: async (companyId, id, iCompanyUpdateWarehousesRequest, options = {}) => {
|
|
4961
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4962
|
+
(0, common_1.assertParamExists)('updateCompanyWarehouses', 'companyId', companyId);
|
|
4963
|
+
// verify required parameter 'id' is not null or undefined
|
|
4964
|
+
(0, common_1.assertParamExists)('updateCompanyWarehouses', 'id', id);
|
|
4965
|
+
// verify required parameter 'iCompanyUpdateWarehousesRequest' is not null or undefined
|
|
4966
|
+
(0, common_1.assertParamExists)('updateCompanyWarehouses', 'iCompanyUpdateWarehousesRequest', iCompanyUpdateWarehousesRequest);
|
|
4967
|
+
const localVarPath = `/api/companies/{companyId}/warehouses/{id}`
|
|
4968
|
+
.replace(`{${"companyId"}}`, encodeURIComponent(String(companyId)))
|
|
4969
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4970
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4971
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4972
|
+
let baseOptions;
|
|
4973
|
+
if (configuration) {
|
|
4974
|
+
baseOptions = configuration.baseOptions;
|
|
4975
|
+
}
|
|
4976
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
4977
|
+
const localVarHeaderParameter = {};
|
|
4978
|
+
const localVarQueryParameter = {};
|
|
4979
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4980
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4981
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4982
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4983
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iCompanyUpdateWarehousesRequest, localVarRequestOptions, configuration);
|
|
4984
|
+
return {
|
|
4985
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4986
|
+
options: localVarRequestOptions,
|
|
4987
|
+
};
|
|
4988
|
+
},
|
|
4689
4989
|
/**
|
|
4690
4990
|
*
|
|
4691
4991
|
* @param {string} id
|
|
@@ -4828,6 +5128,45 @@ const CompanyApiFp = function (configuration) {
|
|
|
4828
5128
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.createCompanyPayment']?.[localVarOperationServerIndex]?.url;
|
|
4829
5129
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4830
5130
|
},
|
|
5131
|
+
/**
|
|
5132
|
+
*
|
|
5133
|
+
* @param {string} id
|
|
5134
|
+
* @param {ICompanyCreatePaymentGatewaysRequest} iCompanyCreatePaymentGatewaysRequest
|
|
5135
|
+
* @param {*} [options] Override http request option.
|
|
5136
|
+
* @throws {RequiredError}
|
|
5137
|
+
*/
|
|
5138
|
+
async createCompanyPaymentGateways(id, iCompanyCreatePaymentGatewaysRequest, options) {
|
|
5139
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanyPaymentGateways(id, iCompanyCreatePaymentGatewaysRequest, options);
|
|
5140
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5141
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.createCompanyPaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
5142
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5143
|
+
},
|
|
5144
|
+
/**
|
|
5145
|
+
*
|
|
5146
|
+
* @param {string} id
|
|
5147
|
+
* @param {ICompanyCreateShippingProvidersRequest} iCompanyCreateShippingProvidersRequest
|
|
5148
|
+
* @param {*} [options] Override http request option.
|
|
5149
|
+
* @throws {RequiredError}
|
|
5150
|
+
*/
|
|
5151
|
+
async createCompanyShippingProviders(id, iCompanyCreateShippingProvidersRequest, options) {
|
|
5152
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanyShippingProviders(id, iCompanyCreateShippingProvidersRequest, options);
|
|
5153
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5154
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.createCompanyShippingProviders']?.[localVarOperationServerIndex]?.url;
|
|
5155
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5156
|
+
},
|
|
5157
|
+
/**
|
|
5158
|
+
*
|
|
5159
|
+
* @param {string} id
|
|
5160
|
+
* @param {ICompanyCreateWarehousesRequest} iCompanyCreateWarehousesRequest
|
|
5161
|
+
* @param {*} [options] Override http request option.
|
|
5162
|
+
* @throws {RequiredError}
|
|
5163
|
+
*/
|
|
5164
|
+
async createCompanyWarehouses(id, iCompanyCreateWarehousesRequest, options) {
|
|
5165
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanyWarehouses(id, iCompanyCreateWarehousesRequest, options);
|
|
5166
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5167
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.createCompanyWarehouses']?.[localVarOperationServerIndex]?.url;
|
|
5168
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5169
|
+
},
|
|
4831
5170
|
/**
|
|
4832
5171
|
*
|
|
4833
5172
|
* @param {string} id
|
|
@@ -4840,6 +5179,45 @@ const CompanyApiFp = function (configuration) {
|
|
|
4840
5179
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.deleteCompany']?.[localVarOperationServerIndex]?.url;
|
|
4841
5180
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4842
5181
|
},
|
|
5182
|
+
/**
|
|
5183
|
+
*
|
|
5184
|
+
* @param {string} companyId
|
|
5185
|
+
* @param {string} id
|
|
5186
|
+
* @param {*} [options] Override http request option.
|
|
5187
|
+
* @throws {RequiredError}
|
|
5188
|
+
*/
|
|
5189
|
+
async deleteCompanyPaymentGateways(companyId, id, options) {
|
|
5190
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCompanyPaymentGateways(companyId, id, options);
|
|
5191
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5192
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.deleteCompanyPaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
5193
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5194
|
+
},
|
|
5195
|
+
/**
|
|
5196
|
+
*
|
|
5197
|
+
* @param {string} companyId
|
|
5198
|
+
* @param {string} id
|
|
5199
|
+
* @param {*} [options] Override http request option.
|
|
5200
|
+
* @throws {RequiredError}
|
|
5201
|
+
*/
|
|
5202
|
+
async deleteCompanyShippingProviders(companyId, id, options) {
|
|
5203
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCompanyShippingProviders(companyId, id, options);
|
|
5204
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5205
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.deleteCompanyShippingProviders']?.[localVarOperationServerIndex]?.url;
|
|
5206
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5207
|
+
},
|
|
5208
|
+
/**
|
|
5209
|
+
*
|
|
5210
|
+
* @param {string} companyId
|
|
5211
|
+
* @param {string} id
|
|
5212
|
+
* @param {*} [options] Override http request option.
|
|
5213
|
+
* @throws {RequiredError}
|
|
5214
|
+
*/
|
|
5215
|
+
async deleteCompanyWarehouses(companyId, id, options) {
|
|
5216
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCompanyWarehouses(companyId, id, options);
|
|
5217
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5218
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.deleteCompanyWarehouses']?.[localVarOperationServerIndex]?.url;
|
|
5219
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5220
|
+
},
|
|
4843
5221
|
/**
|
|
4844
5222
|
*
|
|
4845
5223
|
* @param {string} id
|
|
@@ -4901,6 +5279,18 @@ const CompanyApiFp = function (configuration) {
|
|
|
4901
5279
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanies']?.[localVarOperationServerIndex]?.url;
|
|
4902
5280
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4903
5281
|
},
|
|
5282
|
+
/**
|
|
5283
|
+
*
|
|
5284
|
+
* @param {string} id
|
|
5285
|
+
* @param {*} [options] Override http request option.
|
|
5286
|
+
* @throws {RequiredError}
|
|
5287
|
+
*/
|
|
5288
|
+
async getCompanyAvailablePaymentGateways(id, options) {
|
|
5289
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyAvailablePaymentGateways(id, options);
|
|
5290
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5291
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyAvailablePaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
5292
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5293
|
+
},
|
|
4904
5294
|
/**
|
|
4905
5295
|
*
|
|
4906
5296
|
* @param {string} domain
|
|
@@ -5062,6 +5452,19 @@ const CompanyApiFp = function (configuration) {
|
|
|
5062
5452
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyVersions']?.[localVarOperationServerIndex]?.url;
|
|
5063
5453
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5064
5454
|
},
|
|
5455
|
+
/**
|
|
5456
|
+
*
|
|
5457
|
+
* @param {string} companyId
|
|
5458
|
+
* @param {string} id
|
|
5459
|
+
* @param {*} [options] Override http request option.
|
|
5460
|
+
* @throws {RequiredError}
|
|
5461
|
+
*/
|
|
5462
|
+
async setCompanyPaymentGatewaysPrimary(companyId, id, options) {
|
|
5463
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setCompanyPaymentGatewaysPrimary(companyId, id, options);
|
|
5464
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5465
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.setCompanyPaymentGatewaysPrimary']?.[localVarOperationServerIndex]?.url;
|
|
5466
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5467
|
+
},
|
|
5065
5468
|
/**
|
|
5066
5469
|
*
|
|
5067
5470
|
* @param {string} id
|
|
@@ -5129,30 +5532,46 @@ const CompanyApiFp = function (configuration) {
|
|
|
5129
5532
|
},
|
|
5130
5533
|
/**
|
|
5131
5534
|
*
|
|
5535
|
+
* @param {string} companyId
|
|
5132
5536
|
* @param {string} id
|
|
5133
5537
|
* @param {ICompanyUpdatePaymentGatewaysRequest} iCompanyUpdatePaymentGatewaysRequest
|
|
5134
5538
|
* @param {*} [options] Override http request option.
|
|
5135
5539
|
* @throws {RequiredError}
|
|
5136
5540
|
*/
|
|
5137
|
-
async updateCompanyPaymentGateways(id, iCompanyUpdatePaymentGatewaysRequest, options) {
|
|
5138
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompanyPaymentGateways(id, iCompanyUpdatePaymentGatewaysRequest, options);
|
|
5541
|
+
async updateCompanyPaymentGateways(companyId, id, iCompanyUpdatePaymentGatewaysRequest, options) {
|
|
5542
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompanyPaymentGateways(companyId, id, iCompanyUpdatePaymentGatewaysRequest, options);
|
|
5139
5543
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5140
5544
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.updateCompanyPaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
5141
5545
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5142
5546
|
},
|
|
5143
5547
|
/**
|
|
5144
5548
|
*
|
|
5549
|
+
* @param {string} companyId
|
|
5145
5550
|
* @param {string} id
|
|
5146
5551
|
* @param {ICompanyUpdateShippingProvidersRequest} iCompanyUpdateShippingProvidersRequest
|
|
5147
5552
|
* @param {*} [options] Override http request option.
|
|
5148
5553
|
* @throws {RequiredError}
|
|
5149
5554
|
*/
|
|
5150
|
-
async updateCompanyShippingProviders(id, iCompanyUpdateShippingProvidersRequest, options) {
|
|
5151
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompanyShippingProviders(id, iCompanyUpdateShippingProvidersRequest, options);
|
|
5555
|
+
async updateCompanyShippingProviders(companyId, id, iCompanyUpdateShippingProvidersRequest, options) {
|
|
5556
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompanyShippingProviders(companyId, id, iCompanyUpdateShippingProvidersRequest, options);
|
|
5152
5557
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5153
5558
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.updateCompanyShippingProviders']?.[localVarOperationServerIndex]?.url;
|
|
5154
5559
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5155
5560
|
},
|
|
5561
|
+
/**
|
|
5562
|
+
*
|
|
5563
|
+
* @param {string} companyId
|
|
5564
|
+
* @param {string} id
|
|
5565
|
+
* @param {ICompanyUpdateWarehousesRequest} iCompanyUpdateWarehousesRequest
|
|
5566
|
+
* @param {*} [options] Override http request option.
|
|
5567
|
+
* @throws {RequiredError}
|
|
5568
|
+
*/
|
|
5569
|
+
async updateCompanyWarehouses(companyId, id, iCompanyUpdateWarehousesRequest, options) {
|
|
5570
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCompanyWarehouses(companyId, id, iCompanyUpdateWarehousesRequest, options);
|
|
5571
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5572
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.updateCompanyWarehouses']?.[localVarOperationServerIndex]?.url;
|
|
5573
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5574
|
+
},
|
|
5156
5575
|
/**
|
|
5157
5576
|
*
|
|
5158
5577
|
* @param {string} id
|
|
@@ -5235,6 +5654,33 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5235
5654
|
createCompanyPayment(requestParameters, options) {
|
|
5236
5655
|
return localVarFp.createCompanyPayment(requestParameters.id, requestParameters.iPaymentPostRequest, options).then((request) => request(axios, basePath));
|
|
5237
5656
|
},
|
|
5657
|
+
/**
|
|
5658
|
+
*
|
|
5659
|
+
* @param {CompanyApiCreateCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
5660
|
+
* @param {*} [options] Override http request option.
|
|
5661
|
+
* @throws {RequiredError}
|
|
5662
|
+
*/
|
|
5663
|
+
createCompanyPaymentGateways(requestParameters, options) {
|
|
5664
|
+
return localVarFp.createCompanyPaymentGateways(requestParameters.id, requestParameters.iCompanyCreatePaymentGatewaysRequest, options).then((request) => request(axios, basePath));
|
|
5665
|
+
},
|
|
5666
|
+
/**
|
|
5667
|
+
*
|
|
5668
|
+
* @param {CompanyApiCreateCompanyShippingProvidersRequest} requestParameters Request parameters.
|
|
5669
|
+
* @param {*} [options] Override http request option.
|
|
5670
|
+
* @throws {RequiredError}
|
|
5671
|
+
*/
|
|
5672
|
+
createCompanyShippingProviders(requestParameters, options) {
|
|
5673
|
+
return localVarFp.createCompanyShippingProviders(requestParameters.id, requestParameters.iCompanyCreateShippingProvidersRequest, options).then((request) => request(axios, basePath));
|
|
5674
|
+
},
|
|
5675
|
+
/**
|
|
5676
|
+
*
|
|
5677
|
+
* @param {CompanyApiCreateCompanyWarehousesRequest} requestParameters Request parameters.
|
|
5678
|
+
* @param {*} [options] Override http request option.
|
|
5679
|
+
* @throws {RequiredError}
|
|
5680
|
+
*/
|
|
5681
|
+
createCompanyWarehouses(requestParameters, options) {
|
|
5682
|
+
return localVarFp.createCompanyWarehouses(requestParameters.id, requestParameters.iCompanyCreateWarehousesRequest, options).then((request) => request(axios, basePath));
|
|
5683
|
+
},
|
|
5238
5684
|
/**
|
|
5239
5685
|
*
|
|
5240
5686
|
* @param {CompanyApiDeleteCompanyRequest} requestParameters Request parameters.
|
|
@@ -5244,6 +5690,33 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5244
5690
|
deleteCompany(requestParameters, options) {
|
|
5245
5691
|
return localVarFp.deleteCompany(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5246
5692
|
},
|
|
5693
|
+
/**
|
|
5694
|
+
*
|
|
5695
|
+
* @param {CompanyApiDeleteCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
5696
|
+
* @param {*} [options] Override http request option.
|
|
5697
|
+
* @throws {RequiredError}
|
|
5698
|
+
*/
|
|
5699
|
+
deleteCompanyPaymentGateways(requestParameters, options) {
|
|
5700
|
+
return localVarFp.deleteCompanyPaymentGateways(requestParameters.companyId, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5701
|
+
},
|
|
5702
|
+
/**
|
|
5703
|
+
*
|
|
5704
|
+
* @param {CompanyApiDeleteCompanyShippingProvidersRequest} requestParameters Request parameters.
|
|
5705
|
+
* @param {*} [options] Override http request option.
|
|
5706
|
+
* @throws {RequiredError}
|
|
5707
|
+
*/
|
|
5708
|
+
deleteCompanyShippingProviders(requestParameters, options) {
|
|
5709
|
+
return localVarFp.deleteCompanyShippingProviders(requestParameters.companyId, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5710
|
+
},
|
|
5711
|
+
/**
|
|
5712
|
+
*
|
|
5713
|
+
* @param {CompanyApiDeleteCompanyWarehousesRequest} requestParameters Request parameters.
|
|
5714
|
+
* @param {*} [options] Override http request option.
|
|
5715
|
+
* @throws {RequiredError}
|
|
5716
|
+
*/
|
|
5717
|
+
deleteCompanyWarehouses(requestParameters, options) {
|
|
5718
|
+
return localVarFp.deleteCompanyWarehouses(requestParameters.companyId, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5719
|
+
},
|
|
5247
5720
|
/**
|
|
5248
5721
|
*
|
|
5249
5722
|
* @param {CompanyApiDeleteDomainRequest} requestParameters Request parameters.
|
|
@@ -5280,6 +5753,15 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5280
5753
|
getCompanies(requestParameters = {}, options) {
|
|
5281
5754
|
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));
|
|
5282
5755
|
},
|
|
5756
|
+
/**
|
|
5757
|
+
*
|
|
5758
|
+
* @param {CompanyApiGetCompanyAvailablePaymentGatewaysRequest} requestParameters Request parameters.
|
|
5759
|
+
* @param {*} [options] Override http request option.
|
|
5760
|
+
* @throws {RequiredError}
|
|
5761
|
+
*/
|
|
5762
|
+
getCompanyAvailablePaymentGateways(requestParameters, options) {
|
|
5763
|
+
return localVarFp.getCompanyAvailablePaymentGateways(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5764
|
+
},
|
|
5283
5765
|
/**
|
|
5284
5766
|
*
|
|
5285
5767
|
* @param {CompanyApiGetCompanyByDomainNameRequest} requestParameters Request parameters.
|
|
@@ -5388,6 +5870,15 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5388
5870
|
getCompanyVersions(requestParameters, options) {
|
|
5389
5871
|
return localVarFp.getCompanyVersions(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5390
5872
|
},
|
|
5873
|
+
/**
|
|
5874
|
+
*
|
|
5875
|
+
* @param {CompanyApiSetCompanyPaymentGatewaysPrimaryRequest} requestParameters Request parameters.
|
|
5876
|
+
* @param {*} [options] Override http request option.
|
|
5877
|
+
* @throws {RequiredError}
|
|
5878
|
+
*/
|
|
5879
|
+
setCompanyPaymentGatewaysPrimary(requestParameters, options) {
|
|
5880
|
+
return localVarFp.setCompanyPaymentGatewaysPrimary(requestParameters.companyId, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5881
|
+
},
|
|
5391
5882
|
/**
|
|
5392
5883
|
*
|
|
5393
5884
|
* @param {CompanyApiSetCompanySenderEmailRequest} requestParameters Request parameters.
|
|
@@ -5440,7 +5931,7 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5440
5931
|
* @throws {RequiredError}
|
|
5441
5932
|
*/
|
|
5442
5933
|
updateCompanyPaymentGateways(requestParameters, options) {
|
|
5443
|
-
return localVarFp.updateCompanyPaymentGateways(requestParameters.id, requestParameters.iCompanyUpdatePaymentGatewaysRequest, options).then((request) => request(axios, basePath));
|
|
5934
|
+
return localVarFp.updateCompanyPaymentGateways(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdatePaymentGatewaysRequest, options).then((request) => request(axios, basePath));
|
|
5444
5935
|
},
|
|
5445
5936
|
/**
|
|
5446
5937
|
*
|
|
@@ -5449,7 +5940,16 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5449
5940
|
* @throws {RequiredError}
|
|
5450
5941
|
*/
|
|
5451
5942
|
updateCompanyShippingProviders(requestParameters, options) {
|
|
5452
|
-
return localVarFp.updateCompanyShippingProviders(requestParameters.id, requestParameters.iCompanyUpdateShippingProvidersRequest, options).then((request) => request(axios, basePath));
|
|
5943
|
+
return localVarFp.updateCompanyShippingProviders(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdateShippingProvidersRequest, options).then((request) => request(axios, basePath));
|
|
5944
|
+
},
|
|
5945
|
+
/**
|
|
5946
|
+
*
|
|
5947
|
+
* @param {CompanyApiUpdateCompanyWarehousesRequest} requestParameters Request parameters.
|
|
5948
|
+
* @param {*} [options] Override http request option.
|
|
5949
|
+
* @throws {RequiredError}
|
|
5950
|
+
*/
|
|
5951
|
+
updateCompanyWarehouses(requestParameters, options) {
|
|
5952
|
+
return localVarFp.updateCompanyWarehouses(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdateWarehousesRequest, options).then((request) => request(axios, basePath));
|
|
5453
5953
|
},
|
|
5454
5954
|
/**
|
|
5455
5955
|
*
|
|
@@ -5529,6 +6029,36 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
5529
6029
|
createCompanyPayment(requestParameters, options) {
|
|
5530
6030
|
return (0, exports.CompanyApiFp)(this.configuration).createCompanyPayment(requestParameters.id, requestParameters.iPaymentPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5531
6031
|
}
|
|
6032
|
+
/**
|
|
6033
|
+
*
|
|
6034
|
+
* @param {CompanyApiCreateCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
6035
|
+
* @param {*} [options] Override http request option.
|
|
6036
|
+
* @throws {RequiredError}
|
|
6037
|
+
* @memberof CompanyApi
|
|
6038
|
+
*/
|
|
6039
|
+
createCompanyPaymentGateways(requestParameters, options) {
|
|
6040
|
+
return (0, exports.CompanyApiFp)(this.configuration).createCompanyPaymentGateways(requestParameters.id, requestParameters.iCompanyCreatePaymentGatewaysRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6041
|
+
}
|
|
6042
|
+
/**
|
|
6043
|
+
*
|
|
6044
|
+
* @param {CompanyApiCreateCompanyShippingProvidersRequest} requestParameters Request parameters.
|
|
6045
|
+
* @param {*} [options] Override http request option.
|
|
6046
|
+
* @throws {RequiredError}
|
|
6047
|
+
* @memberof CompanyApi
|
|
6048
|
+
*/
|
|
6049
|
+
createCompanyShippingProviders(requestParameters, options) {
|
|
6050
|
+
return (0, exports.CompanyApiFp)(this.configuration).createCompanyShippingProviders(requestParameters.id, requestParameters.iCompanyCreateShippingProvidersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6051
|
+
}
|
|
6052
|
+
/**
|
|
6053
|
+
*
|
|
6054
|
+
* @param {CompanyApiCreateCompanyWarehousesRequest} requestParameters Request parameters.
|
|
6055
|
+
* @param {*} [options] Override http request option.
|
|
6056
|
+
* @throws {RequiredError}
|
|
6057
|
+
* @memberof CompanyApi
|
|
6058
|
+
*/
|
|
6059
|
+
createCompanyWarehouses(requestParameters, options) {
|
|
6060
|
+
return (0, exports.CompanyApiFp)(this.configuration).createCompanyWarehouses(requestParameters.id, requestParameters.iCompanyCreateWarehousesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6061
|
+
}
|
|
5532
6062
|
/**
|
|
5533
6063
|
*
|
|
5534
6064
|
* @param {CompanyApiDeleteCompanyRequest} requestParameters Request parameters.
|
|
@@ -5539,6 +6069,36 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
5539
6069
|
deleteCompany(requestParameters, options) {
|
|
5540
6070
|
return (0, exports.CompanyApiFp)(this.configuration).deleteCompany(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5541
6071
|
}
|
|
6072
|
+
/**
|
|
6073
|
+
*
|
|
6074
|
+
* @param {CompanyApiDeleteCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
6075
|
+
* @param {*} [options] Override http request option.
|
|
6076
|
+
* @throws {RequiredError}
|
|
6077
|
+
* @memberof CompanyApi
|
|
6078
|
+
*/
|
|
6079
|
+
deleteCompanyPaymentGateways(requestParameters, options) {
|
|
6080
|
+
return (0, exports.CompanyApiFp)(this.configuration).deleteCompanyPaymentGateways(requestParameters.companyId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6081
|
+
}
|
|
6082
|
+
/**
|
|
6083
|
+
*
|
|
6084
|
+
* @param {CompanyApiDeleteCompanyShippingProvidersRequest} requestParameters Request parameters.
|
|
6085
|
+
* @param {*} [options] Override http request option.
|
|
6086
|
+
* @throws {RequiredError}
|
|
6087
|
+
* @memberof CompanyApi
|
|
6088
|
+
*/
|
|
6089
|
+
deleteCompanyShippingProviders(requestParameters, options) {
|
|
6090
|
+
return (0, exports.CompanyApiFp)(this.configuration).deleteCompanyShippingProviders(requestParameters.companyId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6091
|
+
}
|
|
6092
|
+
/**
|
|
6093
|
+
*
|
|
6094
|
+
* @param {CompanyApiDeleteCompanyWarehousesRequest} requestParameters Request parameters.
|
|
6095
|
+
* @param {*} [options] Override http request option.
|
|
6096
|
+
* @throws {RequiredError}
|
|
6097
|
+
* @memberof CompanyApi
|
|
6098
|
+
*/
|
|
6099
|
+
deleteCompanyWarehouses(requestParameters, options) {
|
|
6100
|
+
return (0, exports.CompanyApiFp)(this.configuration).deleteCompanyWarehouses(requestParameters.companyId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6101
|
+
}
|
|
5542
6102
|
/**
|
|
5543
6103
|
*
|
|
5544
6104
|
* @param {CompanyApiDeleteDomainRequest} requestParameters Request parameters.
|
|
@@ -5579,6 +6139,16 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
5579
6139
|
getCompanies(requestParameters = {}, options) {
|
|
5580
6140
|
return (0, exports.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));
|
|
5581
6141
|
}
|
|
6142
|
+
/**
|
|
6143
|
+
*
|
|
6144
|
+
* @param {CompanyApiGetCompanyAvailablePaymentGatewaysRequest} requestParameters Request parameters.
|
|
6145
|
+
* @param {*} [options] Override http request option.
|
|
6146
|
+
* @throws {RequiredError}
|
|
6147
|
+
* @memberof CompanyApi
|
|
6148
|
+
*/
|
|
6149
|
+
getCompanyAvailablePaymentGateways(requestParameters, options) {
|
|
6150
|
+
return (0, exports.CompanyApiFp)(this.configuration).getCompanyAvailablePaymentGateways(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6151
|
+
}
|
|
5582
6152
|
/**
|
|
5583
6153
|
*
|
|
5584
6154
|
* @param {CompanyApiGetCompanyByDomainNameRequest} requestParameters Request parameters.
|
|
@@ -5699,6 +6269,16 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
5699
6269
|
getCompanyVersions(requestParameters, options) {
|
|
5700
6270
|
return (0, exports.CompanyApiFp)(this.configuration).getCompanyVersions(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5701
6271
|
}
|
|
6272
|
+
/**
|
|
6273
|
+
*
|
|
6274
|
+
* @param {CompanyApiSetCompanyPaymentGatewaysPrimaryRequest} requestParameters Request parameters.
|
|
6275
|
+
* @param {*} [options] Override http request option.
|
|
6276
|
+
* @throws {RequiredError}
|
|
6277
|
+
* @memberof CompanyApi
|
|
6278
|
+
*/
|
|
6279
|
+
setCompanyPaymentGatewaysPrimary(requestParameters, options) {
|
|
6280
|
+
return (0, exports.CompanyApiFp)(this.configuration).setCompanyPaymentGatewaysPrimary(requestParameters.companyId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6281
|
+
}
|
|
5702
6282
|
/**
|
|
5703
6283
|
*
|
|
5704
6284
|
* @param {CompanyApiSetCompanySenderEmailRequest} requestParameters Request parameters.
|
|
@@ -5757,7 +6337,7 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
5757
6337
|
* @memberof CompanyApi
|
|
5758
6338
|
*/
|
|
5759
6339
|
updateCompanyPaymentGateways(requestParameters, options) {
|
|
5760
|
-
return (0, exports.CompanyApiFp)(this.configuration).updateCompanyPaymentGateways(requestParameters.id, requestParameters.iCompanyUpdatePaymentGatewaysRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6340
|
+
return (0, exports.CompanyApiFp)(this.configuration).updateCompanyPaymentGateways(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdatePaymentGatewaysRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5761
6341
|
}
|
|
5762
6342
|
/**
|
|
5763
6343
|
*
|
|
@@ -5767,7 +6347,17 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
5767
6347
|
* @memberof CompanyApi
|
|
5768
6348
|
*/
|
|
5769
6349
|
updateCompanyShippingProviders(requestParameters, options) {
|
|
5770
|
-
return (0, exports.CompanyApiFp)(this.configuration).updateCompanyShippingProviders(requestParameters.id, requestParameters.iCompanyUpdateShippingProvidersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6350
|
+
return (0, exports.CompanyApiFp)(this.configuration).updateCompanyShippingProviders(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdateShippingProvidersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6351
|
+
}
|
|
6352
|
+
/**
|
|
6353
|
+
*
|
|
6354
|
+
* @param {CompanyApiUpdateCompanyWarehousesRequest} requestParameters Request parameters.
|
|
6355
|
+
* @param {*} [options] Override http request option.
|
|
6356
|
+
* @throws {RequiredError}
|
|
6357
|
+
* @memberof CompanyApi
|
|
6358
|
+
*/
|
|
6359
|
+
updateCompanyWarehouses(requestParameters, options) {
|
|
6360
|
+
return (0, exports.CompanyApiFp)(this.configuration).updateCompanyWarehouses(requestParameters.companyId, requestParameters.id, requestParameters.iCompanyUpdateWarehousesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5771
6361
|
}
|
|
5772
6362
|
/**
|
|
5773
6363
|
*
|