@infisale-client/api 1.3.31 → 1.3.32
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 +582 -498
- package/dist/api/api.js +204 -284
- package/dist/api/api.mjs +200 -280
- package/package.json +2 -2
package/dist/api/api.mjs
CHANGED
|
@@ -431,14 +431,15 @@ export const IPageCollectionQueryParamsDateFieldEnum = {
|
|
|
431
431
|
CREATED_AT: 'createdAt',
|
|
432
432
|
UPDATED_AT: 'updatedAt'
|
|
433
433
|
};
|
|
434
|
-
export const IPaymentPostRequestPeriodEnum = {
|
|
435
|
-
MONTHLY: 'monthly',
|
|
436
|
-
YEARLY: 'yearly'
|
|
437
|
-
};
|
|
438
434
|
export const IPlanCollectionQueryParamsDateFieldEnum = {
|
|
439
435
|
CREATED_AT: 'createdAt',
|
|
440
436
|
UPDATED_AT: 'updatedAt'
|
|
441
437
|
};
|
|
438
|
+
export const IPlanCollectionQueryParamsCategoryEnum = {
|
|
439
|
+
ADDON_BANDWIDTH: 'addon-bandwidth',
|
|
440
|
+
B2C: 'b2c',
|
|
441
|
+
CMS: 'cms'
|
|
442
|
+
};
|
|
442
443
|
export const IProductCollectionQueryParamsDateFieldEnum = {
|
|
443
444
|
CREATED_AT: 'createdAt',
|
|
444
445
|
UPDATED_AT: 'updatedAt'
|
|
@@ -450,6 +451,10 @@ export const IProductCollectionQueryParamsSortEnum = {
|
|
|
450
451
|
RATING: 'rating',
|
|
451
452
|
REVIEW_COUNT: 'reviewCount'
|
|
452
453
|
};
|
|
454
|
+
export const ISubscriptionPostRequestPeriodEnum = {
|
|
455
|
+
MONTHLY: 'monthly',
|
|
456
|
+
YEARLY: 'yearly'
|
|
457
|
+
};
|
|
453
458
|
export const IUniqueCollectionQueryParamsDateFieldEnum = {
|
|
454
459
|
CREATED_AT: 'createdAt',
|
|
455
460
|
UPDATED_AT: 'updatedAt'
|
|
@@ -612,30 +617,10 @@ export const PaymentMethodEnum = {
|
|
|
612
617
|
CASH_ON_DELIVERY: 'cash_on_delivery',
|
|
613
618
|
CARD_ON_DELIVERY: 'card_on_delivery'
|
|
614
619
|
};
|
|
615
|
-
/**
|
|
616
|
-
*
|
|
617
|
-
* @export
|
|
618
|
-
* @enum {string}
|
|
619
|
-
*/
|
|
620
|
-
export const PaymentStatusEnum = {
|
|
621
|
-
WAITING_APPROVAL: 'waiting_approval',
|
|
622
|
-
PAID: 'paid',
|
|
623
|
-
FAILED: 'failed'
|
|
624
|
-
};
|
|
625
620
|
export const PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = {
|
|
626
621
|
CREATED_AT: 'createdAt',
|
|
627
622
|
UPDATED_AT: 'updatedAt'
|
|
628
623
|
};
|
|
629
|
-
/**
|
|
630
|
-
*
|
|
631
|
-
* @export
|
|
632
|
-
* @enum {string}
|
|
633
|
-
*/
|
|
634
|
-
export const PlanCurrencyEnum = {
|
|
635
|
-
TRY: 'try',
|
|
636
|
-
EUR: 'eur',
|
|
637
|
-
USD: 'usd'
|
|
638
|
-
};
|
|
639
624
|
/**
|
|
640
625
|
*
|
|
641
626
|
* @export
|
|
@@ -652,12 +637,15 @@ export const PlanStatusEnum = {
|
|
|
652
637
|
* @enum {string}
|
|
653
638
|
*/
|
|
654
639
|
export const PlanTypeEnum = {
|
|
640
|
+
ADDON_BANDWIDTH: 'addon-bandwidth',
|
|
655
641
|
STANDARD_B2C: 'standard-b2c',
|
|
656
642
|
ADVANCED_B2C: 'advanced-b2c',
|
|
657
643
|
PREMIUM_B2C: 'premium-b2c',
|
|
644
|
+
ENTERPRISE_B2C: 'enterprise-b2c',
|
|
658
645
|
STANDARD_CMS: 'standard-cms',
|
|
659
646
|
ADVANCED_CMS: 'advanced-cms',
|
|
660
|
-
PREMIUM_CMS: 'premium-cms'
|
|
647
|
+
PREMIUM_CMS: 'premium-cms',
|
|
648
|
+
ENTERPRISE_CMS: 'enterprise-cms'
|
|
661
649
|
};
|
|
662
650
|
/**
|
|
663
651
|
*
|
|
@@ -686,7 +674,7 @@ export const SitemapTypeEnum = {
|
|
|
686
674
|
PRODUCTS: 'products',
|
|
687
675
|
PAGES: 'pages',
|
|
688
676
|
COLLECTIONS: 'collections',
|
|
689
|
-
|
|
677
|
+
BLOGS: 'blogs',
|
|
690
678
|
UNIQUE_PAGES: 'unique-pages'
|
|
691
679
|
};
|
|
692
680
|
/**
|
|
@@ -698,6 +686,31 @@ export const StoreLocationEnum = {
|
|
|
698
686
|
DE: 'DE',
|
|
699
687
|
TR: 'TR'
|
|
700
688
|
};
|
|
689
|
+
/**
|
|
690
|
+
*
|
|
691
|
+
* @export
|
|
692
|
+
* @enum {string}
|
|
693
|
+
*/
|
|
694
|
+
export const SubscriptionPlanEnum = {
|
|
695
|
+
ADDON_BANDWIDTH: 'addon-bandwidth',
|
|
696
|
+
STANDARD_B2C: 'standard-b2c',
|
|
697
|
+
ADVANCED_B2C: 'advanced-b2c',
|
|
698
|
+
PREMIUM_B2C: 'premium-b2c',
|
|
699
|
+
STANDARD_CMS: 'standard-cms',
|
|
700
|
+
ADVANCED_CMS: 'advanced-cms',
|
|
701
|
+
PREMIUM_CMS: 'premium-cms'
|
|
702
|
+
};
|
|
703
|
+
/**
|
|
704
|
+
*
|
|
705
|
+
* @export
|
|
706
|
+
* @enum {string}
|
|
707
|
+
*/
|
|
708
|
+
export const SubscriptionStatusEnum = {
|
|
709
|
+
ACTIVE: 'active',
|
|
710
|
+
CANCELED: 'canceled',
|
|
711
|
+
EXPIRED: 'expired',
|
|
712
|
+
PENDING: 'pending'
|
|
713
|
+
};
|
|
701
714
|
/**
|
|
702
715
|
*
|
|
703
716
|
* @export
|
|
@@ -3682,16 +3695,16 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3682
3695
|
/**
|
|
3683
3696
|
*
|
|
3684
3697
|
* @param {string} id
|
|
3685
|
-
* @param {
|
|
3698
|
+
* @param {ICompanyCreatePaymentGatewaysRequest} iCompanyCreatePaymentGatewaysRequest
|
|
3686
3699
|
* @param {*} [options] Override http request option.
|
|
3687
3700
|
* @throws {RequiredError}
|
|
3688
3701
|
*/
|
|
3689
|
-
|
|
3702
|
+
createCompanyPaymentGateways: async (id, iCompanyCreatePaymentGatewaysRequest, options = {}) => {
|
|
3690
3703
|
// verify required parameter 'id' is not null or undefined
|
|
3691
|
-
assertParamExists('
|
|
3692
|
-
// verify required parameter '
|
|
3693
|
-
assertParamExists('
|
|
3694
|
-
const localVarPath = `/api/companies/{id}/
|
|
3704
|
+
assertParamExists('createCompanyPaymentGateways', 'id', id);
|
|
3705
|
+
// verify required parameter 'iCompanyCreatePaymentGatewaysRequest' is not null or undefined
|
|
3706
|
+
assertParamExists('createCompanyPaymentGateways', 'iCompanyCreatePaymentGatewaysRequest', iCompanyCreatePaymentGatewaysRequest);
|
|
3707
|
+
const localVarPath = `/api/companies/{id}/payment-gateways`
|
|
3695
3708
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3696
3709
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3697
3710
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3706,7 +3719,7 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3706
3719
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3707
3720
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3708
3721
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3709
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3722
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iCompanyCreatePaymentGatewaysRequest, localVarRequestOptions, configuration);
|
|
3710
3723
|
return {
|
|
3711
3724
|
url: toPathString(localVarUrlObj),
|
|
3712
3725
|
options: localVarRequestOptions,
|
|
@@ -3715,16 +3728,16 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3715
3728
|
/**
|
|
3716
3729
|
*
|
|
3717
3730
|
* @param {string} id
|
|
3718
|
-
* @param {
|
|
3731
|
+
* @param {ICompanyCreateShippingProvidersRequest} iCompanyCreateShippingProvidersRequest
|
|
3719
3732
|
* @param {*} [options] Override http request option.
|
|
3720
3733
|
* @throws {RequiredError}
|
|
3721
3734
|
*/
|
|
3722
|
-
|
|
3735
|
+
createCompanyShippingProviders: async (id, iCompanyCreateShippingProvidersRequest, options = {}) => {
|
|
3723
3736
|
// verify required parameter 'id' is not null or undefined
|
|
3724
|
-
assertParamExists('
|
|
3725
|
-
// verify required parameter '
|
|
3726
|
-
assertParamExists('
|
|
3727
|
-
const localVarPath = `/api/companies/{id}/
|
|
3737
|
+
assertParamExists('createCompanyShippingProviders', 'id', id);
|
|
3738
|
+
// verify required parameter 'iCompanyCreateShippingProvidersRequest' is not null or undefined
|
|
3739
|
+
assertParamExists('createCompanyShippingProviders', 'iCompanyCreateShippingProvidersRequest', iCompanyCreateShippingProvidersRequest);
|
|
3740
|
+
const localVarPath = `/api/companies/{id}/shipping-providers`
|
|
3728
3741
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3729
3742
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3730
3743
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3739,7 +3752,7 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3739
3752
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3740
3753
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3741
3754
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3742
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3755
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iCompanyCreateShippingProvidersRequest, localVarRequestOptions, configuration);
|
|
3743
3756
|
return {
|
|
3744
3757
|
url: toPathString(localVarUrlObj),
|
|
3745
3758
|
options: localVarRequestOptions,
|
|
@@ -3748,16 +3761,16 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3748
3761
|
/**
|
|
3749
3762
|
*
|
|
3750
3763
|
* @param {string} id
|
|
3751
|
-
* @param {
|
|
3764
|
+
* @param {ISubscriptionPostRequest} iSubscriptionPostRequest
|
|
3752
3765
|
* @param {*} [options] Override http request option.
|
|
3753
3766
|
* @throws {RequiredError}
|
|
3754
3767
|
*/
|
|
3755
|
-
|
|
3768
|
+
createCompanySubscription: async (id, iSubscriptionPostRequest, options = {}) => {
|
|
3756
3769
|
// verify required parameter 'id' is not null or undefined
|
|
3757
|
-
assertParamExists('
|
|
3758
|
-
// verify required parameter '
|
|
3759
|
-
assertParamExists('
|
|
3760
|
-
const localVarPath = `/api/companies/{id}/
|
|
3770
|
+
assertParamExists('createCompanySubscription', 'id', id);
|
|
3771
|
+
// verify required parameter 'iSubscriptionPostRequest' is not null or undefined
|
|
3772
|
+
assertParamExists('createCompanySubscription', 'iSubscriptionPostRequest', iSubscriptionPostRequest);
|
|
3773
|
+
const localVarPath = `/api/companies/{id}/subscriptions`
|
|
3761
3774
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3762
3775
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3763
3776
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3772,7 +3785,7 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
3772
3785
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3773
3786
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3774
3787
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3775
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3788
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iSubscriptionPostRequest, localVarRequestOptions, configuration);
|
|
3776
3789
|
return {
|
|
3777
3790
|
url: toPathString(localVarUrlObj),
|
|
3778
3791
|
options: localVarRequestOptions,
|
|
@@ -4295,34 +4308,6 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4295
4308
|
options: localVarRequestOptions,
|
|
4296
4309
|
};
|
|
4297
4310
|
},
|
|
4298
|
-
/**
|
|
4299
|
-
*
|
|
4300
|
-
* @param {string} id
|
|
4301
|
-
* @param {*} [options] Override http request option.
|
|
4302
|
-
* @throws {RequiredError}
|
|
4303
|
-
*/
|
|
4304
|
-
getCompanyMonthlyBandwidth: async (id, options = {}) => {
|
|
4305
|
-
// verify required parameter 'id' is not null or undefined
|
|
4306
|
-
assertParamExists('getCompanyMonthlyBandwidth', 'id', id);
|
|
4307
|
-
const localVarPath = `/api/companies/{id}/monthly-bandwidth`
|
|
4308
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4309
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4310
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4311
|
-
let baseOptions;
|
|
4312
|
-
if (configuration) {
|
|
4313
|
-
baseOptions = configuration.baseOptions;
|
|
4314
|
-
}
|
|
4315
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4316
|
-
const localVarHeaderParameter = {};
|
|
4317
|
-
const localVarQueryParameter = {};
|
|
4318
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4319
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4320
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4321
|
-
return {
|
|
4322
|
-
url: toPathString(localVarUrlObj),
|
|
4323
|
-
options: localVarRequestOptions,
|
|
4324
|
-
};
|
|
4325
|
-
},
|
|
4326
4311
|
/**
|
|
4327
4312
|
*
|
|
4328
4313
|
* @param {string} id
|
|
@@ -4354,18 +4339,14 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4354
4339
|
/**
|
|
4355
4340
|
*
|
|
4356
4341
|
* @param {string} id
|
|
4357
|
-
* @param {string} paymentId
|
|
4358
4342
|
* @param {*} [options] Override http request option.
|
|
4359
4343
|
* @throws {RequiredError}
|
|
4360
4344
|
*/
|
|
4361
|
-
|
|
4345
|
+
getCompanyPaymentGateways: async (id, options = {}) => {
|
|
4362
4346
|
// verify required parameter 'id' is not null or undefined
|
|
4363
|
-
assertParamExists('
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
const localVarPath = `/api/companies/{id}/payments/{paymentId}`
|
|
4367
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4368
|
-
.replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
|
|
4347
|
+
assertParamExists('getCompanyPaymentGateways', 'id', id);
|
|
4348
|
+
const localVarPath = `/api/companies/{id}/payment-gateways`
|
|
4349
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4369
4350
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4370
4351
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4371
4352
|
let baseOptions;
|
|
@@ -4386,13 +4367,14 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4386
4367
|
/**
|
|
4387
4368
|
*
|
|
4388
4369
|
* @param {string} id
|
|
4370
|
+
* @param {ReviewStatusEnum} [status]
|
|
4389
4371
|
* @param {*} [options] Override http request option.
|
|
4390
4372
|
* @throws {RequiredError}
|
|
4391
4373
|
*/
|
|
4392
|
-
|
|
4374
|
+
getCompanyProductReviews: async (id, status, options = {}) => {
|
|
4393
4375
|
// verify required parameter 'id' is not null or undefined
|
|
4394
|
-
assertParamExists('
|
|
4395
|
-
const localVarPath = `/api/companies/{id}/
|
|
4376
|
+
assertParamExists('getCompanyProductReviews', 'id', id);
|
|
4377
|
+
const localVarPath = `/api/companies/{id}/reviews`
|
|
4396
4378
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4397
4379
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4398
4380
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4403,6 +4385,9 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4403
4385
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4404
4386
|
const localVarHeaderParameter = {};
|
|
4405
4387
|
const localVarQueryParameter = {};
|
|
4388
|
+
if (status !== undefined) {
|
|
4389
|
+
localVarQueryParameter['status'] = status;
|
|
4390
|
+
}
|
|
4406
4391
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4407
4392
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4408
4393
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -4414,15 +4399,14 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4414
4399
|
/**
|
|
4415
4400
|
*
|
|
4416
4401
|
* @param {string} id
|
|
4417
|
-
* @param {
|
|
4418
|
-
* @param {number} [page]
|
|
4402
|
+
* @param {ReviewStatusEnum} [status]
|
|
4419
4403
|
* @param {*} [options] Override http request option.
|
|
4420
4404
|
* @throws {RequiredError}
|
|
4421
4405
|
*/
|
|
4422
|
-
|
|
4406
|
+
getCompanyReviewCount: async (id, status, options = {}) => {
|
|
4423
4407
|
// verify required parameter 'id' is not null or undefined
|
|
4424
|
-
assertParamExists('
|
|
4425
|
-
const localVarPath = `/api/companies/{id}/
|
|
4408
|
+
assertParamExists('getCompanyReviewCount', 'id', id);
|
|
4409
|
+
const localVarPath = `/api/companies/{id}/review-count`
|
|
4426
4410
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4427
4411
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4428
4412
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4433,11 +4417,8 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4433
4417
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4434
4418
|
const localVarHeaderParameter = {};
|
|
4435
4419
|
const localVarQueryParameter = {};
|
|
4436
|
-
if (
|
|
4437
|
-
localVarQueryParameter['
|
|
4438
|
-
}
|
|
4439
|
-
if (page !== undefined) {
|
|
4440
|
-
localVarQueryParameter['page'] = page;
|
|
4420
|
+
if (status !== undefined) {
|
|
4421
|
+
localVarQueryParameter['status'] = status;
|
|
4441
4422
|
}
|
|
4442
4423
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4443
4424
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -4450,15 +4431,18 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4450
4431
|
/**
|
|
4451
4432
|
*
|
|
4452
4433
|
* @param {string} id
|
|
4453
|
-
* @param {
|
|
4434
|
+
* @param {string} paymentId
|
|
4454
4435
|
* @param {*} [options] Override http request option.
|
|
4455
4436
|
* @throws {RequiredError}
|
|
4456
4437
|
*/
|
|
4457
|
-
|
|
4438
|
+
getCompanySubscription: async (id, paymentId, options = {}) => {
|
|
4458
4439
|
// verify required parameter 'id' is not null or undefined
|
|
4459
|
-
assertParamExists('
|
|
4460
|
-
|
|
4461
|
-
|
|
4440
|
+
assertParamExists('getCompanySubscription', 'id', id);
|
|
4441
|
+
// verify required parameter 'paymentId' is not null or undefined
|
|
4442
|
+
assertParamExists('getCompanySubscription', 'paymentId', paymentId);
|
|
4443
|
+
const localVarPath = `/api/companies/{id}/subscriptions/{paymentId}`
|
|
4444
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4445
|
+
.replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
|
|
4462
4446
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4463
4447
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4464
4448
|
let baseOptions;
|
|
@@ -4468,9 +4452,6 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4468
4452
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4469
4453
|
const localVarHeaderParameter = {};
|
|
4470
4454
|
const localVarQueryParameter = {};
|
|
4471
|
-
if (status !== undefined) {
|
|
4472
|
-
localVarQueryParameter['status'] = status;
|
|
4473
|
-
}
|
|
4474
4455
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4475
4456
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4476
4457
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -4482,14 +4463,16 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4482
4463
|
/**
|
|
4483
4464
|
*
|
|
4484
4465
|
* @param {string} id
|
|
4485
|
-
* @param {
|
|
4466
|
+
* @param {number} [page]
|
|
4467
|
+
* @param {number} [itemsPerPage]
|
|
4468
|
+
* @param {SubscriptionStatusEnum} [status]
|
|
4486
4469
|
* @param {*} [options] Override http request option.
|
|
4487
4470
|
* @throws {RequiredError}
|
|
4488
4471
|
*/
|
|
4489
|
-
|
|
4472
|
+
getCompanySubscriptions: async (id, page, itemsPerPage, status, options = {}) => {
|
|
4490
4473
|
// verify required parameter 'id' is not null or undefined
|
|
4491
|
-
assertParamExists('
|
|
4492
|
-
const localVarPath = `/api/companies/{id}/
|
|
4474
|
+
assertParamExists('getCompanySubscriptions', 'id', id);
|
|
4475
|
+
const localVarPath = `/api/companies/{id}/subscriptions`
|
|
4493
4476
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4494
4477
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4495
4478
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4500,6 +4483,12 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4500
4483
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4501
4484
|
const localVarHeaderParameter = {};
|
|
4502
4485
|
const localVarQueryParameter = {};
|
|
4486
|
+
if (page !== undefined) {
|
|
4487
|
+
localVarQueryParameter['page'] = page;
|
|
4488
|
+
}
|
|
4489
|
+
if (itemsPerPage !== undefined) {
|
|
4490
|
+
localVarQueryParameter['itemsPerPage'] = itemsPerPage;
|
|
4491
|
+
}
|
|
4503
4492
|
if (status !== undefined) {
|
|
4504
4493
|
localVarQueryParameter['status'] = status;
|
|
4505
4494
|
}
|
|
@@ -5092,40 +5081,40 @@ export const CompanyApiFp = function (configuration) {
|
|
|
5092
5081
|
/**
|
|
5093
5082
|
*
|
|
5094
5083
|
* @param {string} id
|
|
5095
|
-
* @param {
|
|
5084
|
+
* @param {ICompanyCreatePaymentGatewaysRequest} iCompanyCreatePaymentGatewaysRequest
|
|
5096
5085
|
* @param {*} [options] Override http request option.
|
|
5097
5086
|
* @throws {RequiredError}
|
|
5098
5087
|
*/
|
|
5099
|
-
async
|
|
5100
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5088
|
+
async createCompanyPaymentGateways(id, iCompanyCreatePaymentGatewaysRequest, options) {
|
|
5089
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanyPaymentGateways(id, iCompanyCreatePaymentGatewaysRequest, options);
|
|
5101
5090
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5102
|
-
const localVarOperationServerBasePath = operationServerMap['CompanyApi.
|
|
5091
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.createCompanyPaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
5103
5092
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5104
5093
|
},
|
|
5105
5094
|
/**
|
|
5106
5095
|
*
|
|
5107
5096
|
* @param {string} id
|
|
5108
|
-
* @param {
|
|
5097
|
+
* @param {ICompanyCreateShippingProvidersRequest} iCompanyCreateShippingProvidersRequest
|
|
5109
5098
|
* @param {*} [options] Override http request option.
|
|
5110
5099
|
* @throws {RequiredError}
|
|
5111
5100
|
*/
|
|
5112
|
-
async
|
|
5113
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5101
|
+
async createCompanyShippingProviders(id, iCompanyCreateShippingProvidersRequest, options) {
|
|
5102
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanyShippingProviders(id, iCompanyCreateShippingProvidersRequest, options);
|
|
5114
5103
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5115
|
-
const localVarOperationServerBasePath = operationServerMap['CompanyApi.
|
|
5104
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.createCompanyShippingProviders']?.[localVarOperationServerIndex]?.url;
|
|
5116
5105
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5117
5106
|
},
|
|
5118
5107
|
/**
|
|
5119
5108
|
*
|
|
5120
5109
|
* @param {string} id
|
|
5121
|
-
* @param {
|
|
5110
|
+
* @param {ISubscriptionPostRequest} iSubscriptionPostRequest
|
|
5122
5111
|
* @param {*} [options] Override http request option.
|
|
5123
5112
|
* @throws {RequiredError}
|
|
5124
5113
|
*/
|
|
5125
|
-
async
|
|
5126
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5114
|
+
async createCompanySubscription(id, iSubscriptionPostRequest, options) {
|
|
5115
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCompanySubscription(id, iSubscriptionPostRequest, options);
|
|
5127
5116
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5128
|
-
const localVarOperationServerBasePath = operationServerMap['CompanyApi.
|
|
5117
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.createCompanySubscription']?.[localVarOperationServerIndex]?.url;
|
|
5129
5118
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5130
5119
|
},
|
|
5131
5120
|
/**
|
|
@@ -5324,18 +5313,6 @@ export const CompanyApiFp = function (configuration) {
|
|
|
5324
5313
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyDashboard']?.[localVarOperationServerIndex]?.url;
|
|
5325
5314
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5326
5315
|
},
|
|
5327
|
-
/**
|
|
5328
|
-
*
|
|
5329
|
-
* @param {string} id
|
|
5330
|
-
* @param {*} [options] Override http request option.
|
|
5331
|
-
* @throws {RequiredError}
|
|
5332
|
-
*/
|
|
5333
|
-
async getCompanyMonthlyBandwidth(id, options) {
|
|
5334
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyMonthlyBandwidth(id, options);
|
|
5335
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5336
|
-
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyMonthlyBandwidth']?.[localVarOperationServerIndex]?.url;
|
|
5337
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5338
|
-
},
|
|
5339
5316
|
/**
|
|
5340
5317
|
*
|
|
5341
5318
|
* @param {string} id
|
|
@@ -5351,66 +5328,67 @@ export const CompanyApiFp = function (configuration) {
|
|
|
5351
5328
|
/**
|
|
5352
5329
|
*
|
|
5353
5330
|
* @param {string} id
|
|
5354
|
-
* @param {string} paymentId
|
|
5355
5331
|
* @param {*} [options] Override http request option.
|
|
5356
5332
|
* @throws {RequiredError}
|
|
5357
5333
|
*/
|
|
5358
|
-
async
|
|
5359
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5334
|
+
async getCompanyPaymentGateways(id, options) {
|
|
5335
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPaymentGateways(id, options);
|
|
5360
5336
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5361
|
-
const localVarOperationServerBasePath = operationServerMap['CompanyApi.
|
|
5337
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyPaymentGateways']?.[localVarOperationServerIndex]?.url;
|
|
5362
5338
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5363
5339
|
},
|
|
5364
5340
|
/**
|
|
5365
5341
|
*
|
|
5366
5342
|
* @param {string} id
|
|
5343
|
+
* @param {ReviewStatusEnum} [status]
|
|
5367
5344
|
* @param {*} [options] Override http request option.
|
|
5368
5345
|
* @throws {RequiredError}
|
|
5369
5346
|
*/
|
|
5370
|
-
async
|
|
5371
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5347
|
+
async getCompanyProductReviews(id, status, options) {
|
|
5348
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyProductReviews(id, status, options);
|
|
5372
5349
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5373
|
-
const localVarOperationServerBasePath = operationServerMap['CompanyApi.
|
|
5350
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyProductReviews']?.[localVarOperationServerIndex]?.url;
|
|
5374
5351
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5375
5352
|
},
|
|
5376
5353
|
/**
|
|
5377
5354
|
*
|
|
5378
5355
|
* @param {string} id
|
|
5379
|
-
* @param {
|
|
5380
|
-
* @param {number} [page]
|
|
5356
|
+
* @param {ReviewStatusEnum} [status]
|
|
5381
5357
|
* @param {*} [options] Override http request option.
|
|
5382
5358
|
* @throws {RequiredError}
|
|
5383
5359
|
*/
|
|
5384
|
-
async
|
|
5385
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5360
|
+
async getCompanyReviewCount(id, status, options) {
|
|
5361
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyReviewCount(id, status, options);
|
|
5386
5362
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5387
|
-
const localVarOperationServerBasePath = operationServerMap['CompanyApi.
|
|
5363
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyReviewCount']?.[localVarOperationServerIndex]?.url;
|
|
5388
5364
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5389
5365
|
},
|
|
5390
5366
|
/**
|
|
5391
5367
|
*
|
|
5392
5368
|
* @param {string} id
|
|
5393
|
-
* @param {
|
|
5369
|
+
* @param {string} paymentId
|
|
5394
5370
|
* @param {*} [options] Override http request option.
|
|
5395
5371
|
* @throws {RequiredError}
|
|
5396
5372
|
*/
|
|
5397
|
-
async
|
|
5398
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5373
|
+
async getCompanySubscription(id, paymentId, options) {
|
|
5374
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanySubscription(id, paymentId, options);
|
|
5399
5375
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5400
|
-
const localVarOperationServerBasePath = operationServerMap['CompanyApi.
|
|
5376
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanySubscription']?.[localVarOperationServerIndex]?.url;
|
|
5401
5377
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5402
5378
|
},
|
|
5403
5379
|
/**
|
|
5404
5380
|
*
|
|
5405
5381
|
* @param {string} id
|
|
5406
|
-
* @param {
|
|
5382
|
+
* @param {number} [page]
|
|
5383
|
+
* @param {number} [itemsPerPage]
|
|
5384
|
+
* @param {SubscriptionStatusEnum} [status]
|
|
5407
5385
|
* @param {*} [options] Override http request option.
|
|
5408
5386
|
* @throws {RequiredError}
|
|
5409
5387
|
*/
|
|
5410
|
-
async
|
|
5411
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5388
|
+
async getCompanySubscriptions(id, page, itemsPerPage, status, options) {
|
|
5389
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanySubscriptions(id, page, itemsPerPage, status, options);
|
|
5412
5390
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5413
|
-
const localVarOperationServerBasePath = operationServerMap['CompanyApi.
|
|
5391
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanySubscriptions']?.[localVarOperationServerIndex]?.url;
|
|
5414
5392
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5415
5393
|
},
|
|
5416
5394
|
/**
|
|
@@ -5666,15 +5644,6 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5666
5644
|
createCompanyLanguage(requestParameters, options) {
|
|
5667
5645
|
return localVarFp.createCompanyLanguage(requestParameters.companyId, requestParameters.iCompanyCreateLanguageRequest, options).then((request) => request(axios, basePath));
|
|
5668
5646
|
},
|
|
5669
|
-
/**
|
|
5670
|
-
*
|
|
5671
|
-
* @param {CompanyApiCreateCompanyPaymentRequest} requestParameters Request parameters.
|
|
5672
|
-
* @param {*} [options] Override http request option.
|
|
5673
|
-
* @throws {RequiredError}
|
|
5674
|
-
*/
|
|
5675
|
-
createCompanyPayment(requestParameters, options) {
|
|
5676
|
-
return localVarFp.createCompanyPayment(requestParameters.id, requestParameters.iPaymentPostRequest, options).then((request) => request(axios, basePath));
|
|
5677
|
-
},
|
|
5678
5647
|
/**
|
|
5679
5648
|
*
|
|
5680
5649
|
* @param {CompanyApiCreateCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
@@ -5693,6 +5662,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5693
5662
|
createCompanyShippingProviders(requestParameters, options) {
|
|
5694
5663
|
return localVarFp.createCompanyShippingProviders(requestParameters.id, requestParameters.iCompanyCreateShippingProvidersRequest, options).then((request) => request(axios, basePath));
|
|
5695
5664
|
},
|
|
5665
|
+
/**
|
|
5666
|
+
*
|
|
5667
|
+
* @param {CompanyApiCreateCompanySubscriptionRequest} requestParameters Request parameters.
|
|
5668
|
+
* @param {*} [options] Override http request option.
|
|
5669
|
+
* @throws {RequiredError}
|
|
5670
|
+
*/
|
|
5671
|
+
createCompanySubscription(requestParameters, options) {
|
|
5672
|
+
return localVarFp.createCompanySubscription(requestParameters.id, requestParameters.iSubscriptionPostRequest, options).then((request) => request(axios, basePath));
|
|
5673
|
+
},
|
|
5696
5674
|
/**
|
|
5697
5675
|
*
|
|
5698
5676
|
* @param {CompanyApiCreateCompanyWarehousesRequest} requestParameters Request parameters.
|
|
@@ -5819,15 +5797,6 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5819
5797
|
getCompanyDashboard(requestParameters, options) {
|
|
5820
5798
|
return localVarFp.getCompanyDashboard(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
5821
5799
|
},
|
|
5822
|
-
/**
|
|
5823
|
-
*
|
|
5824
|
-
* @param {CompanyApiGetCompanyMonthlyBandwidthRequest} requestParameters Request parameters.
|
|
5825
|
-
* @param {*} [options] Override http request option.
|
|
5826
|
-
* @throws {RequiredError}
|
|
5827
|
-
*/
|
|
5828
|
-
getCompanyMonthlyBandwidth(requestParameters, options) {
|
|
5829
|
-
return localVarFp.getCompanyMonthlyBandwidth(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5830
|
-
},
|
|
5831
5800
|
/**
|
|
5832
5801
|
*
|
|
5833
5802
|
* @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
|
|
@@ -5839,48 +5808,48 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5839
5808
|
},
|
|
5840
5809
|
/**
|
|
5841
5810
|
*
|
|
5842
|
-
* @param {
|
|
5811
|
+
* @param {CompanyApiGetCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
5843
5812
|
* @param {*} [options] Override http request option.
|
|
5844
5813
|
* @throws {RequiredError}
|
|
5845
5814
|
*/
|
|
5846
|
-
|
|
5847
|
-
return localVarFp.
|
|
5815
|
+
getCompanyPaymentGateways(requestParameters, options) {
|
|
5816
|
+
return localVarFp.getCompanyPaymentGateways(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5848
5817
|
},
|
|
5849
5818
|
/**
|
|
5850
5819
|
*
|
|
5851
|
-
* @param {
|
|
5820
|
+
* @param {CompanyApiGetCompanyProductReviewsRequest} requestParameters Request parameters.
|
|
5852
5821
|
* @param {*} [options] Override http request option.
|
|
5853
5822
|
* @throws {RequiredError}
|
|
5854
5823
|
*/
|
|
5855
|
-
|
|
5856
|
-
return localVarFp.
|
|
5824
|
+
getCompanyProductReviews(requestParameters, options) {
|
|
5825
|
+
return localVarFp.getCompanyProductReviews(requestParameters.id, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
5857
5826
|
},
|
|
5858
5827
|
/**
|
|
5859
5828
|
*
|
|
5860
|
-
* @param {
|
|
5829
|
+
* @param {CompanyApiGetCompanyReviewCountRequest} requestParameters Request parameters.
|
|
5861
5830
|
* @param {*} [options] Override http request option.
|
|
5862
5831
|
* @throws {RequiredError}
|
|
5863
5832
|
*/
|
|
5864
|
-
|
|
5865
|
-
return localVarFp.
|
|
5833
|
+
getCompanyReviewCount(requestParameters, options) {
|
|
5834
|
+
return localVarFp.getCompanyReviewCount(requestParameters.id, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
5866
5835
|
},
|
|
5867
5836
|
/**
|
|
5868
5837
|
*
|
|
5869
|
-
* @param {
|
|
5838
|
+
* @param {CompanyApiGetCompanySubscriptionRequest} requestParameters Request parameters.
|
|
5870
5839
|
* @param {*} [options] Override http request option.
|
|
5871
5840
|
* @throws {RequiredError}
|
|
5872
5841
|
*/
|
|
5873
|
-
|
|
5874
|
-
return localVarFp.
|
|
5842
|
+
getCompanySubscription(requestParameters, options) {
|
|
5843
|
+
return localVarFp.getCompanySubscription(requestParameters.id, requestParameters.paymentId, options).then((request) => request(axios, basePath));
|
|
5875
5844
|
},
|
|
5876
5845
|
/**
|
|
5877
5846
|
*
|
|
5878
|
-
* @param {
|
|
5847
|
+
* @param {CompanyApiGetCompanySubscriptionsRequest} requestParameters Request parameters.
|
|
5879
5848
|
* @param {*} [options] Override http request option.
|
|
5880
5849
|
* @throws {RequiredError}
|
|
5881
5850
|
*/
|
|
5882
|
-
|
|
5883
|
-
return localVarFp.
|
|
5851
|
+
getCompanySubscriptions(requestParameters, options) {
|
|
5852
|
+
return localVarFp.getCompanySubscriptions(requestParameters.id, requestParameters.page, requestParameters.itemsPerPage, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
5884
5853
|
},
|
|
5885
5854
|
/**
|
|
5886
5855
|
*
|
|
@@ -6078,33 +6047,33 @@ export class CompanyApi extends BaseAPI {
|
|
|
6078
6047
|
}
|
|
6079
6048
|
/**
|
|
6080
6049
|
*
|
|
6081
|
-
* @param {
|
|
6050
|
+
* @param {CompanyApiCreateCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
6082
6051
|
* @param {*} [options] Override http request option.
|
|
6083
6052
|
* @throws {RequiredError}
|
|
6084
6053
|
* @memberof CompanyApi
|
|
6085
6054
|
*/
|
|
6086
|
-
|
|
6087
|
-
return CompanyApiFp(this.configuration).
|
|
6055
|
+
createCompanyPaymentGateways(requestParameters, options) {
|
|
6056
|
+
return CompanyApiFp(this.configuration).createCompanyPaymentGateways(requestParameters.id, requestParameters.iCompanyCreatePaymentGatewaysRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6088
6057
|
}
|
|
6089
6058
|
/**
|
|
6090
6059
|
*
|
|
6091
|
-
* @param {
|
|
6060
|
+
* @param {CompanyApiCreateCompanyShippingProvidersRequest} requestParameters Request parameters.
|
|
6092
6061
|
* @param {*} [options] Override http request option.
|
|
6093
6062
|
* @throws {RequiredError}
|
|
6094
6063
|
* @memberof CompanyApi
|
|
6095
6064
|
*/
|
|
6096
|
-
|
|
6097
|
-
return CompanyApiFp(this.configuration).
|
|
6065
|
+
createCompanyShippingProviders(requestParameters, options) {
|
|
6066
|
+
return CompanyApiFp(this.configuration).createCompanyShippingProviders(requestParameters.id, requestParameters.iCompanyCreateShippingProvidersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6098
6067
|
}
|
|
6099
6068
|
/**
|
|
6100
6069
|
*
|
|
6101
|
-
* @param {
|
|
6070
|
+
* @param {CompanyApiCreateCompanySubscriptionRequest} requestParameters Request parameters.
|
|
6102
6071
|
* @param {*} [options] Override http request option.
|
|
6103
6072
|
* @throws {RequiredError}
|
|
6104
6073
|
* @memberof CompanyApi
|
|
6105
6074
|
*/
|
|
6106
|
-
|
|
6107
|
-
return CompanyApiFp(this.configuration).
|
|
6075
|
+
createCompanySubscription(requestParameters, options) {
|
|
6076
|
+
return CompanyApiFp(this.configuration).createCompanySubscription(requestParameters.id, requestParameters.iSubscriptionPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6108
6077
|
}
|
|
6109
6078
|
/**
|
|
6110
6079
|
*
|
|
@@ -6246,16 +6215,6 @@ export class CompanyApi extends BaseAPI {
|
|
|
6246
6215
|
getCompanyDashboard(requestParameters, options) {
|
|
6247
6216
|
return CompanyApiFp(this.configuration).getCompanyDashboard(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
6248
6217
|
}
|
|
6249
|
-
/**
|
|
6250
|
-
*
|
|
6251
|
-
* @param {CompanyApiGetCompanyMonthlyBandwidthRequest} requestParameters Request parameters.
|
|
6252
|
-
* @param {*} [options] Override http request option.
|
|
6253
|
-
* @throws {RequiredError}
|
|
6254
|
-
* @memberof CompanyApi
|
|
6255
|
-
*/
|
|
6256
|
-
getCompanyMonthlyBandwidth(requestParameters, options) {
|
|
6257
|
-
return CompanyApiFp(this.configuration).getCompanyMonthlyBandwidth(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6258
|
-
}
|
|
6259
6218
|
/**
|
|
6260
6219
|
*
|
|
6261
6220
|
* @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
|
|
@@ -6268,53 +6227,53 @@ export class CompanyApi extends BaseAPI {
|
|
|
6268
6227
|
}
|
|
6269
6228
|
/**
|
|
6270
6229
|
*
|
|
6271
|
-
* @param {
|
|
6230
|
+
* @param {CompanyApiGetCompanyPaymentGatewaysRequest} requestParameters Request parameters.
|
|
6272
6231
|
* @param {*} [options] Override http request option.
|
|
6273
6232
|
* @throws {RequiredError}
|
|
6274
6233
|
* @memberof CompanyApi
|
|
6275
6234
|
*/
|
|
6276
|
-
|
|
6277
|
-
return CompanyApiFp(this.configuration).
|
|
6235
|
+
getCompanyPaymentGateways(requestParameters, options) {
|
|
6236
|
+
return CompanyApiFp(this.configuration).getCompanyPaymentGateways(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6278
6237
|
}
|
|
6279
6238
|
/**
|
|
6280
6239
|
*
|
|
6281
|
-
* @param {
|
|
6240
|
+
* @param {CompanyApiGetCompanyProductReviewsRequest} requestParameters Request parameters.
|
|
6282
6241
|
* @param {*} [options] Override http request option.
|
|
6283
6242
|
* @throws {RequiredError}
|
|
6284
6243
|
* @memberof CompanyApi
|
|
6285
6244
|
*/
|
|
6286
|
-
|
|
6287
|
-
return CompanyApiFp(this.configuration).
|
|
6245
|
+
getCompanyProductReviews(requestParameters, options) {
|
|
6246
|
+
return CompanyApiFp(this.configuration).getCompanyProductReviews(requestParameters.id, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
6288
6247
|
}
|
|
6289
6248
|
/**
|
|
6290
6249
|
*
|
|
6291
|
-
* @param {
|
|
6250
|
+
* @param {CompanyApiGetCompanyReviewCountRequest} requestParameters Request parameters.
|
|
6292
6251
|
* @param {*} [options] Override http request option.
|
|
6293
6252
|
* @throws {RequiredError}
|
|
6294
6253
|
* @memberof CompanyApi
|
|
6295
6254
|
*/
|
|
6296
|
-
|
|
6297
|
-
return CompanyApiFp(this.configuration).
|
|
6255
|
+
getCompanyReviewCount(requestParameters, options) {
|
|
6256
|
+
return CompanyApiFp(this.configuration).getCompanyReviewCount(requestParameters.id, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
6298
6257
|
}
|
|
6299
6258
|
/**
|
|
6300
6259
|
*
|
|
6301
|
-
* @param {
|
|
6260
|
+
* @param {CompanyApiGetCompanySubscriptionRequest} requestParameters Request parameters.
|
|
6302
6261
|
* @param {*} [options] Override http request option.
|
|
6303
6262
|
* @throws {RequiredError}
|
|
6304
6263
|
* @memberof CompanyApi
|
|
6305
6264
|
*/
|
|
6306
|
-
|
|
6307
|
-
return CompanyApiFp(this.configuration).
|
|
6265
|
+
getCompanySubscription(requestParameters, options) {
|
|
6266
|
+
return CompanyApiFp(this.configuration).getCompanySubscription(requestParameters.id, requestParameters.paymentId, options).then((request) => request(this.axios, this.basePath));
|
|
6308
6267
|
}
|
|
6309
6268
|
/**
|
|
6310
6269
|
*
|
|
6311
|
-
* @param {
|
|
6270
|
+
* @param {CompanyApiGetCompanySubscriptionsRequest} requestParameters Request parameters.
|
|
6312
6271
|
* @param {*} [options] Override http request option.
|
|
6313
6272
|
* @throws {RequiredError}
|
|
6314
6273
|
* @memberof CompanyApi
|
|
6315
6274
|
*/
|
|
6316
|
-
|
|
6317
|
-
return CompanyApiFp(this.configuration).
|
|
6275
|
+
getCompanySubscriptions(requestParameters, options) {
|
|
6276
|
+
return CompanyApiFp(this.configuration).getCompanySubscriptions(requestParameters.id, requestParameters.page, requestParameters.itemsPerPage, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
6318
6277
|
}
|
|
6319
6278
|
/**
|
|
6320
6279
|
*
|
|
@@ -10469,30 +10428,6 @@ export const PlanApiAxiosParamCreator = function (configuration) {
|
|
|
10469
10428
|
options: localVarRequestOptions,
|
|
10470
10429
|
};
|
|
10471
10430
|
},
|
|
10472
|
-
/**
|
|
10473
|
-
*
|
|
10474
|
-
* @param {*} [options] Override http request option.
|
|
10475
|
-
* @throws {RequiredError}
|
|
10476
|
-
*/
|
|
10477
|
-
getPlanLimits: async (options = {}) => {
|
|
10478
|
-
const localVarPath = `/api/plans/limits`;
|
|
10479
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10480
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10481
|
-
let baseOptions;
|
|
10482
|
-
if (configuration) {
|
|
10483
|
-
baseOptions = configuration.baseOptions;
|
|
10484
|
-
}
|
|
10485
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
10486
|
-
const localVarHeaderParameter = {};
|
|
10487
|
-
const localVarQueryParameter = {};
|
|
10488
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10489
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10490
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10491
|
-
return {
|
|
10492
|
-
url: toPathString(localVarUrlObj),
|
|
10493
|
-
options: localVarRequestOptions,
|
|
10494
|
-
};
|
|
10495
|
-
},
|
|
10496
10431
|
/**
|
|
10497
10432
|
*
|
|
10498
10433
|
* @param {number} [page]
|
|
@@ -10504,11 +10439,12 @@ export const PlanApiAxiosParamCreator = function (configuration) {
|
|
|
10504
10439
|
* @param {OrderEnum} [order]
|
|
10505
10440
|
* @param {string} [sort]
|
|
10506
10441
|
* @param {PlanStatusEnum} [status]
|
|
10507
|
-
* @param {
|
|
10442
|
+
* @param {GetPlansCategoryEnum} [category]
|
|
10443
|
+
* @param {string} [company]
|
|
10508
10444
|
* @param {*} [options] Override http request option.
|
|
10509
10445
|
* @throws {RequiredError}
|
|
10510
10446
|
*/
|
|
10511
|
-
getPlans: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status,
|
|
10447
|
+
getPlans: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, category, company, options = {}) => {
|
|
10512
10448
|
const localVarPath = `/api/plans`;
|
|
10513
10449
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10514
10450
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -10550,8 +10486,11 @@ export const PlanApiAxiosParamCreator = function (configuration) {
|
|
|
10550
10486
|
if (status !== undefined) {
|
|
10551
10487
|
localVarQueryParameter['status'] = status;
|
|
10552
10488
|
}
|
|
10553
|
-
if (
|
|
10554
|
-
localVarQueryParameter['
|
|
10489
|
+
if (category !== undefined) {
|
|
10490
|
+
localVarQueryParameter['category'] = category;
|
|
10491
|
+
}
|
|
10492
|
+
if (company !== undefined) {
|
|
10493
|
+
localVarQueryParameter['company'] = company;
|
|
10555
10494
|
}
|
|
10556
10495
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10557
10496
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -10639,17 +10578,6 @@ export const PlanApiFp = function (configuration) {
|
|
|
10639
10578
|
const localVarOperationServerBasePath = operationServerMap['PlanApi.getPlanById']?.[localVarOperationServerIndex]?.url;
|
|
10640
10579
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10641
10580
|
},
|
|
10642
|
-
/**
|
|
10643
|
-
*
|
|
10644
|
-
* @param {*} [options] Override http request option.
|
|
10645
|
-
* @throws {RequiredError}
|
|
10646
|
-
*/
|
|
10647
|
-
async getPlanLimits(options) {
|
|
10648
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPlanLimits(options);
|
|
10649
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10650
|
-
const localVarOperationServerBasePath = operationServerMap['PlanApi.getPlanLimits']?.[localVarOperationServerIndex]?.url;
|
|
10651
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10652
|
-
},
|
|
10653
10581
|
/**
|
|
10654
10582
|
*
|
|
10655
10583
|
* @param {number} [page]
|
|
@@ -10661,12 +10589,13 @@ export const PlanApiFp = function (configuration) {
|
|
|
10661
10589
|
* @param {OrderEnum} [order]
|
|
10662
10590
|
* @param {string} [sort]
|
|
10663
10591
|
* @param {PlanStatusEnum} [status]
|
|
10664
|
-
* @param {
|
|
10592
|
+
* @param {GetPlansCategoryEnum} [category]
|
|
10593
|
+
* @param {string} [company]
|
|
10665
10594
|
* @param {*} [options] Override http request option.
|
|
10666
10595
|
* @throws {RequiredError}
|
|
10667
10596
|
*/
|
|
10668
|
-
async getPlans(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status,
|
|
10669
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPlans(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status,
|
|
10597
|
+
async getPlans(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, category, company, options) {
|
|
10598
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPlans(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, category, company, options);
|
|
10670
10599
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10671
10600
|
const localVarOperationServerBasePath = operationServerMap['PlanApi.getPlans']?.[localVarOperationServerIndex]?.url;
|
|
10672
10601
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -10720,14 +10649,6 @@ export const PlanApiFactory = function (configuration, basePath, axios) {
|
|
|
10720
10649
|
getPlanById(requestParameters, options) {
|
|
10721
10650
|
return localVarFp.getPlanById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
10722
10651
|
},
|
|
10723
|
-
/**
|
|
10724
|
-
*
|
|
10725
|
-
* @param {*} [options] Override http request option.
|
|
10726
|
-
* @throws {RequiredError}
|
|
10727
|
-
*/
|
|
10728
|
-
getPlanLimits(options) {
|
|
10729
|
-
return localVarFp.getPlanLimits(options).then((request) => request(axios, basePath));
|
|
10730
|
-
},
|
|
10731
10652
|
/**
|
|
10732
10653
|
*
|
|
10733
10654
|
* @param {PlanApiGetPlansRequest} requestParameters Request parameters.
|
|
@@ -10735,7 +10656,7 @@ export const PlanApiFactory = function (configuration, basePath, axios) {
|
|
|
10735
10656
|
* @throws {RequiredError}
|
|
10736
10657
|
*/
|
|
10737
10658
|
getPlans(requestParameters = {}, options) {
|
|
10738
|
-
return localVarFp.getPlans(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, requestParameters.
|
|
10659
|
+
return localVarFp.getPlans(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, requestParameters.category, requestParameters.company, options).then((request) => request(axios, basePath));
|
|
10739
10660
|
},
|
|
10740
10661
|
/**
|
|
10741
10662
|
*
|
|
@@ -10785,15 +10706,6 @@ export class PlanApi extends BaseAPI {
|
|
|
10785
10706
|
getPlanById(requestParameters, options) {
|
|
10786
10707
|
return PlanApiFp(this.configuration).getPlanById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
10787
10708
|
}
|
|
10788
|
-
/**
|
|
10789
|
-
*
|
|
10790
|
-
* @param {*} [options] Override http request option.
|
|
10791
|
-
* @throws {RequiredError}
|
|
10792
|
-
* @memberof PlanApi
|
|
10793
|
-
*/
|
|
10794
|
-
getPlanLimits(options) {
|
|
10795
|
-
return PlanApiFp(this.configuration).getPlanLimits(options).then((request) => request(this.axios, this.basePath));
|
|
10796
|
-
}
|
|
10797
10709
|
/**
|
|
10798
10710
|
*
|
|
10799
10711
|
* @param {PlanApiGetPlansRequest} requestParameters Request parameters.
|
|
@@ -10802,7 +10714,7 @@ export class PlanApi extends BaseAPI {
|
|
|
10802
10714
|
* @memberof PlanApi
|
|
10803
10715
|
*/
|
|
10804
10716
|
getPlans(requestParameters = {}, options) {
|
|
10805
|
-
return PlanApiFp(this.configuration).getPlans(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, requestParameters.
|
|
10717
|
+
return PlanApiFp(this.configuration).getPlans(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, requestParameters.category, requestParameters.company, options).then((request) => request(this.axios, this.basePath));
|
|
10806
10718
|
}
|
|
10807
10719
|
/**
|
|
10808
10720
|
*
|
|
@@ -10822,6 +10734,14 @@ export const GetPlansDateFieldEnum = {
|
|
|
10822
10734
|
CREATED_AT: 'createdAt',
|
|
10823
10735
|
UPDATED_AT: 'updatedAt'
|
|
10824
10736
|
};
|
|
10737
|
+
/**
|
|
10738
|
+
* @export
|
|
10739
|
+
*/
|
|
10740
|
+
export const GetPlansCategoryEnum = {
|
|
10741
|
+
ADDON_BANDWIDTH: 'addon-bandwidth',
|
|
10742
|
+
B2C: 'b2c',
|
|
10743
|
+
CMS: 'cms'
|
|
10744
|
+
};
|
|
10825
10745
|
/**
|
|
10826
10746
|
* ProductApi - axios parameter creator
|
|
10827
10747
|
* @export
|