@wix/auto_sdk_ecom_ecommerce-settings 1.0.43 → 1.0.45
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/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +33 -11
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +33 -11
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +33 -11
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +33 -11
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.typings.d.ts +38 -11
- package/build/internal/cjs/meta.d.ts +38 -11
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.typings.d.mts +38 -11
- package/build/internal/es/meta.d.mts +38 -11
- package/package.json +2 -2
|
@@ -18,21 +18,21 @@ interface EcommerceSettings {
|
|
|
18
18
|
discountRules?: DiscountRulesConfiguration;
|
|
19
19
|
/**
|
|
20
20
|
* Checkout settings.
|
|
21
|
-
* Learn more about the [Checkout Settings API](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/
|
|
21
|
+
* Learn more about the [Checkout Settings API](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/settings/checkout-settings/introduction).
|
|
22
22
|
*/
|
|
23
23
|
checkout?: CheckoutSettings;
|
|
24
24
|
/** Destinations the site delivers to, and their delivery properties. */
|
|
25
25
|
delivery?: DeliveryConfiguration;
|
|
26
|
-
/** Whether the site
|
|
26
|
+
/** Whether the site has a premium plan that supports accepting payments. */
|
|
27
27
|
premiumSite?: boolean | null;
|
|
28
28
|
/** Business information, such as the business name, address, and contact details. */
|
|
29
29
|
businessInfo?: BusinessProperties;
|
|
30
|
-
/** Business locale: currency, language, locale, weight unit and unit system. */
|
|
30
|
+
/** Business locale: currency, language, locale, weight unit, and unit system. */
|
|
31
31
|
businessLocale?: BusinessLocale;
|
|
32
32
|
}
|
|
33
33
|
interface ServicePluginConfiguration {
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Apps that implement the service plugin and are active on the site.
|
|
36
36
|
* @maxSize 100
|
|
37
37
|
*/
|
|
38
38
|
activeProviders?: ActiveProvider[];
|
|
@@ -59,8 +59,8 @@ declare enum TriggerFlow {
|
|
|
59
59
|
type TriggerFlowWithLiterals = TriggerFlow | 'CART' | 'CHECKOUT';
|
|
60
60
|
interface TaxConfiguration {
|
|
61
61
|
/**
|
|
62
|
-
* Whether at least one tax region
|
|
63
|
-
* Learn more about the [Tax Regions API](https://dev.wix.com/docs/
|
|
62
|
+
* Whether the site has at least one tax region.
|
|
63
|
+
* Learn more about the [Tax Regions API](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-regions/introduction).
|
|
64
64
|
*/
|
|
65
65
|
configured?: boolean | null;
|
|
66
66
|
/**
|
|
@@ -68,11 +68,28 @@ interface TaxConfiguration {
|
|
|
68
68
|
* Learn more about [tax inclusion in item prices](https://support.wix.com/en/article/including-tax-in-the-product-price).
|
|
69
69
|
*/
|
|
70
70
|
taxIncludedInItemPrices?: boolean | null;
|
|
71
|
+
/**
|
|
72
|
+
* Cross-border re-pricing of tax-inclusive prices (ECP-204). Absent until ecommerce-settings exposes it.
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
crossBorder?: CrossBorderTaxConfiguration;
|
|
76
|
+
}
|
|
77
|
+
interface CrossBorderTaxConfiguration {
|
|
78
|
+
/** Whether the site opted in to cross-border re-pricing (Tax Settings `cross_border.enabled` with no service-set disabled reason). */
|
|
79
|
+
enabled?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* ISO 3166-1 alpha-2 country code of the base tax region.
|
|
82
|
+
* @format COUNTRY
|
|
83
|
+
*/
|
|
84
|
+
baseCountry?: string;
|
|
85
|
+
/** Whether the base region is the site's only tax region in `base_country`. */
|
|
86
|
+
baseCountryHasSingleRegion?: boolean;
|
|
71
87
|
}
|
|
72
88
|
interface DiscountRulesConfiguration {
|
|
73
89
|
/**
|
|
74
|
-
* Whether at least one discount rule
|
|
75
|
-
*
|
|
90
|
+
* Whether at least one discount rule that applies automatically is active now.
|
|
91
|
+
* A rule counts when it's active and the current time is within its active time frame, if it has one.
|
|
92
|
+
* Learn more about the [Discount Rules API](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/discounts/discount-rules/introduction).
|
|
76
93
|
*/
|
|
77
94
|
active?: boolean | null;
|
|
78
95
|
}
|
|
@@ -533,12 +550,12 @@ interface DeliveryConfiguration {
|
|
|
533
550
|
/**
|
|
534
551
|
* Countries the site delivers to, with their delivery destination properties.
|
|
535
552
|
*
|
|
536
|
-
*
|
|
553
|
+
* When `restOfWorld` isn't returned, a country without `deliveryDestinationProperties` is delivered to only in the subdivisions listed in its `subdivisions`.
|
|
537
554
|
* @maxSize 195
|
|
538
555
|
*/
|
|
539
556
|
countries?: CountryDeliveryProperties[];
|
|
540
557
|
/**
|
|
541
|
-
* Delivery destination properties for every
|
|
558
|
+
* Delivery destination properties for every destination that `countries` doesn't cover: countries that aren't listed, and unlisted subdivisions of a country without `deliveryDestinationProperties`.
|
|
542
559
|
*
|
|
543
560
|
* Returned only when the site delivers to the rest of the world.
|
|
544
561
|
*/
|
|
@@ -885,15 +902,25 @@ interface GetEcommerceSettingsRequest {
|
|
|
885
902
|
fields: RequestedFieldsWithLiterals[];
|
|
886
903
|
}
|
|
887
904
|
declare enum RequestedFields {
|
|
905
|
+
/** Additional Fees service plugin configuration. Returned in `additionalFeesServicePlugin`. */
|
|
888
906
|
ADDITIONAL_FEES_SERVICE_PLUGIN = "ADDITIONAL_FEES_SERVICE_PLUGIN",
|
|
907
|
+
/** Validations service plugin configuration. Returned in `validationsServicePlugin`. */
|
|
889
908
|
VALIDATIONS_SERVICE_PLUGIN = "VALIDATIONS_SERVICE_PLUGIN",
|
|
909
|
+
/** Tax configuration. Returned in `tax`. */
|
|
890
910
|
TAX = "TAX",
|
|
911
|
+
/** Discount rules configuration. Returned in `discountRules`. */
|
|
891
912
|
DISCOUNT_RULES = "DISCOUNT_RULES",
|
|
913
|
+
/** Checkout settings. Returned in `checkout`. */
|
|
892
914
|
CHECKOUT = "CHECKOUT",
|
|
915
|
+
/** Delivery destinations. Returned in `delivery`. */
|
|
893
916
|
DELIVERY = "DELIVERY",
|
|
917
|
+
/** Premium status: whether the site has a premium plan that supports accepting payments. Returned in `premiumSite`. */
|
|
894
918
|
PREMIUM_SITE = "PREMIUM_SITE",
|
|
919
|
+
/** Business information. Returned in `businessInfo`. */
|
|
895
920
|
BUSINESS_INFO = "BUSINESS_INFO",
|
|
921
|
+
/** Purchase recommendations service plugin configuration. Returned in `purchaseRecommendationsServicePlugin`. */
|
|
896
922
|
PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN = "PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN",
|
|
923
|
+
/** Business locale. Returned in `businessLocale`. */
|
|
897
924
|
BUSINESS_LOCALE = "BUSINESS_LOCALE"
|
|
898
925
|
}
|
|
899
926
|
/** @enumType */
|
|
@@ -1679,4 +1706,4 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
1679
1706
|
};
|
|
1680
1707
|
declare function getEcommerceSettings(): __PublicMethodMetaInfo<'GET', {}, GetEcommerceSettingsRequest$1, GetEcommerceSettingsRequest, GetEcommerceSettingsResponse$1, GetEcommerceSettingsResponse>;
|
|
1681
1708
|
|
|
1682
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ActiveProvider as ActiveProviderOriginal, type Address as AddressOriginal, Alignment as AlignmentOriginal, type AlignmentWithLiterals as AlignmentWithLiteralsOriginal, type App as AppOriginal, type AssignedFromFloatingReason as AssignedFromFloatingReasonOriginal, type BackgroundFillOptionsOneOf as BackgroundFillOptionsOneOfOriginal, type BackgroundFill as BackgroundFillOriginal, type BooleanFeature as BooleanFeatureOriginal, type BusinessLocale as BusinessLocaleOriginal, type BusinessProperties as BusinessPropertiesOriginal, type CancelRequestedReason as CancelRequestedReasonOriginal, type CheckboxField as CheckboxFieldOriginal, CheckoutBillingFields as CheckoutBillingFieldsOriginal, type CheckoutBillingFieldsWithLiterals as CheckoutBillingFieldsWithLiteralsOriginal, type CheckoutBrand as CheckoutBrandOriginal, type CheckoutFields as CheckoutFieldsOriginal, type CheckoutFooter as CheckoutFooterOriginal, type CheckoutGlobal as CheckoutGlobalOriginal, type CheckoutHeader as CheckoutHeaderOriginal, type CheckoutMain as CheckoutMainOriginal, type CheckoutPolicies as CheckoutPoliciesOriginal, type CheckoutSettings as CheckoutSettingsOriginal, type ContactUsPolicy as ContactUsPolicyOriginal, type ContinueShopping as ContinueShoppingOriginal, ContractSwitchClassification as ContractSwitchClassificationOriginal, type ContractSwitchClassificationWithLiterals as ContractSwitchClassificationWithLiteralsOriginal, type ContractSwitchedReason as ContractSwitchedReasonOriginal, type CountryDeliveryProperties as CountryDeliveryPropertiesOriginal, type CustomCheckoutPolicy as CustomCheckoutPolicyOriginal, type CustomTag as CustomTagOriginal, type DeliveryConfiguration as DeliveryConfigurationOriginal, type DeliveryDestinationProperties as DeliveryDestinationPropertiesOriginal, DeliveryMethodType as DeliveryMethodTypeOriginal, type DeliveryMethodTypeWithLiterals as DeliveryMethodTypeWithLiteralsOriginal, type DigitalItemPolicy as DigitalItemPolicyOriginal, type DiscountRulesConfiguration as DiscountRulesConfigurationOriginal, DisplayType as DisplayTypeOriginal, type DisplayTypeWithLiterals as DisplayTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EcomSitePropertiesChangedEvent as EcomSitePropertiesChangedEventOriginal, type EcommerceSettings as EcommerceSettingsOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type Error as ErrorOriginal, ExpressButtonsCornerRadius as ExpressButtonsCornerRadiusOriginal, type ExpressButtonsCornerRadiusWithLiterals as ExpressButtonsCornerRadiusWithLiteralsOriginal, type FeatureCancelled as FeatureCancelledOriginal, type FeatureCancelledReasonOneOf as FeatureCancelledReasonOneOfOriginal, type FeatureContext as FeatureContextOriginal, type FeatureDisabled as FeatureDisabledOriginal, type FeatureDisabledReasonOneOf as FeatureDisabledReasonOneOfOriginal, type FeatureEnabled as FeatureEnabledOriginal, type FeatureEnabledReasonOneOf as FeatureEnabledReasonOneOfOriginal, type FeatureEventEventOneOf as FeatureEventEventOneOfOriginal, type FeatureEvent as FeatureEventOriginal, type Feature as FeatureOriginal, FeaturePeriod as FeaturePeriodOriginal, type FeaturePeriodWithLiterals as FeaturePeriodWithLiteralsOriginal, type FeatureQuantityInfoOneOf as FeatureQuantityInfoOneOfOriginal, type FeatureQuotaUsageChanged as FeatureQuotaUsageChangedOriginal, type FeatureUpdated as FeatureUpdatedOriginal, type FeatureUpdatedPreviousQuantityInfoOneOf as FeatureUpdatedPreviousQuantityInfoOneOfOriginal, type FeatureUpdatedReasonOneOf as FeatureUpdatedReasonOneOfOriginal, type File as FileOriginal, type FocalPoint as FocalPointOriginal, type GetEcommerceSettingsApplicationErrors as GetEcommerceSettingsApplicationErrorsOriginal, type GetEcommerceSettingsRequest as GetEcommerceSettingsRequestOriginal, type GetEcommerceSettingsResponse as GetEcommerceSettingsResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, InputFieldBackgroundStyle as InputFieldBackgroundStyleOriginal, type InputFieldBackgroundStyleWithLiterals as InputFieldBackgroundStyleWithLiteralsOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type Locale as LocaleOriginal, type Logo as LogoOriginal, LogoSize as LogoSizeOriginal, type LogoSizeWithLiterals as LogoSizeWithLiteralsOriginal, type ManualFeatureCreationReason as ManualFeatureCreationReasonOriginal, type ManualSyncReason as ManualSyncReasonOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MigratedFromLegacyReason as MigratedFromLegacyReasonOriginal, type NewFeatureReason as NewFeatureReasonOriginal, type Page as PageOriginal, type Pages as PagesOriginal, type PrivacyPolicy as PrivacyPolicyOriginal, type QuotaExhaustedReason as QuotaExhaustedReasonOriginal, type QuotaFeature as QuotaFeatureOriginal, type QuotaInfoEntry as QuotaInfoEntryOriginal, type QuotaInfo as QuotaInfoOriginal, type ReassignedFromSiteReason as ReassignedFromSiteReasonOriginal, type ReassignedToAnotherSiteReason as ReassignedToAnotherSiteReasonOriginal, type ReplacedByAnotherSubscriptionReason as ReplacedByAnotherSubscriptionReasonOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type ReturnPolicy as ReturnPolicyOriginal, type ServicePluginConfiguration as ServicePluginConfigurationOriginal, type StreetAddress as StreetAddressOriginal, type SubdivisionDeliveryProperties as SubdivisionDeliveryPropertiesOriginal, type SubscriptionCheckboxField as SubscriptionCheckboxFieldOriginal, type TaxConfiguration as TaxConfigurationOriginal, type TermsAndConditionsPolicy as TermsAndConditionsPolicyOriginal, TestMode as TestModeOriginal, type TestModeWithLiterals as TestModeWithLiteralsOriginal, type TransferredFromAnotherAccountReason as TransferredFromAnotherAccountReasonOriginal, type TransferredToAnotherAccountReason as TransferredToAnotherAccountReasonOriginal, TriggerFlow as TriggerFlowOriginal, type TriggerFlowWithLiterals as TriggerFlowWithLiteralsOriginal, type URI as URIOriginal, type URIs as URIsOriginal, type UnAssingedToFloatingReason as UnAssingedToFloatingReasonOriginal, UnitSystem as UnitSystemOriginal, type UnitSystemWithLiterals as UnitSystemWithLiteralsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeightUnit as WeightUnitOriginal, type WeightUnitWithLiterals as WeightUnitWithLiteralsOriginal, type __PublicMethodMetaInfo, getEcommerceSettings };
|
|
1709
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ActiveProvider as ActiveProviderOriginal, type Address as AddressOriginal, Alignment as AlignmentOriginal, type AlignmentWithLiterals as AlignmentWithLiteralsOriginal, type App as AppOriginal, type AssignedFromFloatingReason as AssignedFromFloatingReasonOriginal, type BackgroundFillOptionsOneOf as BackgroundFillOptionsOneOfOriginal, type BackgroundFill as BackgroundFillOriginal, type BooleanFeature as BooleanFeatureOriginal, type BusinessLocale as BusinessLocaleOriginal, type BusinessProperties as BusinessPropertiesOriginal, type CancelRequestedReason as CancelRequestedReasonOriginal, type CheckboxField as CheckboxFieldOriginal, CheckoutBillingFields as CheckoutBillingFieldsOriginal, type CheckoutBillingFieldsWithLiterals as CheckoutBillingFieldsWithLiteralsOriginal, type CheckoutBrand as CheckoutBrandOriginal, type CheckoutFields as CheckoutFieldsOriginal, type CheckoutFooter as CheckoutFooterOriginal, type CheckoutGlobal as CheckoutGlobalOriginal, type CheckoutHeader as CheckoutHeaderOriginal, type CheckoutMain as CheckoutMainOriginal, type CheckoutPolicies as CheckoutPoliciesOriginal, type CheckoutSettings as CheckoutSettingsOriginal, type ContactUsPolicy as ContactUsPolicyOriginal, type ContinueShopping as ContinueShoppingOriginal, ContractSwitchClassification as ContractSwitchClassificationOriginal, type ContractSwitchClassificationWithLiterals as ContractSwitchClassificationWithLiteralsOriginal, type ContractSwitchedReason as ContractSwitchedReasonOriginal, type CountryDeliveryProperties as CountryDeliveryPropertiesOriginal, type CrossBorderTaxConfiguration as CrossBorderTaxConfigurationOriginal, type CustomCheckoutPolicy as CustomCheckoutPolicyOriginal, type CustomTag as CustomTagOriginal, type DeliveryConfiguration as DeliveryConfigurationOriginal, type DeliveryDestinationProperties as DeliveryDestinationPropertiesOriginal, DeliveryMethodType as DeliveryMethodTypeOriginal, type DeliveryMethodTypeWithLiterals as DeliveryMethodTypeWithLiteralsOriginal, type DigitalItemPolicy as DigitalItemPolicyOriginal, type DiscountRulesConfiguration as DiscountRulesConfigurationOriginal, DisplayType as DisplayTypeOriginal, type DisplayTypeWithLiterals as DisplayTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EcomSitePropertiesChangedEvent as EcomSitePropertiesChangedEventOriginal, type EcommerceSettings as EcommerceSettingsOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type Error as ErrorOriginal, ExpressButtonsCornerRadius as ExpressButtonsCornerRadiusOriginal, type ExpressButtonsCornerRadiusWithLiterals as ExpressButtonsCornerRadiusWithLiteralsOriginal, type FeatureCancelled as FeatureCancelledOriginal, type FeatureCancelledReasonOneOf as FeatureCancelledReasonOneOfOriginal, type FeatureContext as FeatureContextOriginal, type FeatureDisabled as FeatureDisabledOriginal, type FeatureDisabledReasonOneOf as FeatureDisabledReasonOneOfOriginal, type FeatureEnabled as FeatureEnabledOriginal, type FeatureEnabledReasonOneOf as FeatureEnabledReasonOneOfOriginal, type FeatureEventEventOneOf as FeatureEventEventOneOfOriginal, type FeatureEvent as FeatureEventOriginal, type Feature as FeatureOriginal, FeaturePeriod as FeaturePeriodOriginal, type FeaturePeriodWithLiterals as FeaturePeriodWithLiteralsOriginal, type FeatureQuantityInfoOneOf as FeatureQuantityInfoOneOfOriginal, type FeatureQuotaUsageChanged as FeatureQuotaUsageChangedOriginal, type FeatureUpdated as FeatureUpdatedOriginal, type FeatureUpdatedPreviousQuantityInfoOneOf as FeatureUpdatedPreviousQuantityInfoOneOfOriginal, type FeatureUpdatedReasonOneOf as FeatureUpdatedReasonOneOfOriginal, type File as FileOriginal, type FocalPoint as FocalPointOriginal, type GetEcommerceSettingsApplicationErrors as GetEcommerceSettingsApplicationErrorsOriginal, type GetEcommerceSettingsRequest as GetEcommerceSettingsRequestOriginal, type GetEcommerceSettingsResponse as GetEcommerceSettingsResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, InputFieldBackgroundStyle as InputFieldBackgroundStyleOriginal, type InputFieldBackgroundStyleWithLiterals as InputFieldBackgroundStyleWithLiteralsOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type Locale as LocaleOriginal, type Logo as LogoOriginal, LogoSize as LogoSizeOriginal, type LogoSizeWithLiterals as LogoSizeWithLiteralsOriginal, type ManualFeatureCreationReason as ManualFeatureCreationReasonOriginal, type ManualSyncReason as ManualSyncReasonOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MigratedFromLegacyReason as MigratedFromLegacyReasonOriginal, type NewFeatureReason as NewFeatureReasonOriginal, type Page as PageOriginal, type Pages as PagesOriginal, type PrivacyPolicy as PrivacyPolicyOriginal, type QuotaExhaustedReason as QuotaExhaustedReasonOriginal, type QuotaFeature as QuotaFeatureOriginal, type QuotaInfoEntry as QuotaInfoEntryOriginal, type QuotaInfo as QuotaInfoOriginal, type ReassignedFromSiteReason as ReassignedFromSiteReasonOriginal, type ReassignedToAnotherSiteReason as ReassignedToAnotherSiteReasonOriginal, type ReplacedByAnotherSubscriptionReason as ReplacedByAnotherSubscriptionReasonOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type ReturnPolicy as ReturnPolicyOriginal, type ServicePluginConfiguration as ServicePluginConfigurationOriginal, type StreetAddress as StreetAddressOriginal, type SubdivisionDeliveryProperties as SubdivisionDeliveryPropertiesOriginal, type SubscriptionCheckboxField as SubscriptionCheckboxFieldOriginal, type TaxConfiguration as TaxConfigurationOriginal, type TermsAndConditionsPolicy as TermsAndConditionsPolicyOriginal, TestMode as TestModeOriginal, type TestModeWithLiterals as TestModeWithLiteralsOriginal, type TransferredFromAnotherAccountReason as TransferredFromAnotherAccountReasonOriginal, type TransferredToAnotherAccountReason as TransferredToAnotherAccountReasonOriginal, TriggerFlow as TriggerFlowOriginal, type TriggerFlowWithLiterals as TriggerFlowWithLiteralsOriginal, type URI as URIOriginal, type URIs as URIsOriginal, type UnAssingedToFloatingReason as UnAssingedToFloatingReasonOriginal, UnitSystem as UnitSystemOriginal, type UnitSystemWithLiterals as UnitSystemWithLiteralsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeightUnit as WeightUnitOriginal, type WeightUnitWithLiterals as WeightUnitWithLiteralsOriginal, type __PublicMethodMetaInfo, getEcommerceSettings };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { RequestedFieldsWithLiterals, GetEcommerceSettingsResponse, GetEcommerceSettingsApplicationErrors } from './index.typings.mjs';
|
|
3
|
-
export { AccountInfo, ActionEvent, ActiveProvider, Address, Alignment, AlignmentWithLiterals, App, AssignedFromFloatingReason, BackgroundFill, BackgroundFillOptionsOneOf, BooleanFeature, BusinessLocale, BusinessProperties, CancelRequestedReason, CheckboxField, CheckoutBillingFields, CheckoutBillingFieldsWithLiterals, CheckoutBrand, CheckoutFields, CheckoutFooter, CheckoutGlobal, CheckoutHeader, CheckoutMain, CheckoutPolicies, CheckoutSettings, ContactUsPolicy, ContinueShopping, ContractSwitchClassification, ContractSwitchClassificationWithLiterals, ContractSwitchedReason, CountryDeliveryProperties, CustomCheckoutPolicy, CustomTag, DeliveryConfiguration, DeliveryDestinationProperties, DeliveryMethodType, DeliveryMethodTypeWithLiterals, DigitalItemPolicy, DiscountRulesConfiguration, DisplayType, DisplayTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, EcomSitePropertiesChangedEvent, EcommerceSettings, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Error, ExpressButtonsCornerRadius, ExpressButtonsCornerRadiusWithLiterals, Feature, FeatureCancelled, FeatureCancelledReasonOneOf, FeatureContext, FeatureDisabled, FeatureDisabledReasonOneOf, FeatureEnabled, FeatureEnabledReasonOneOf, FeatureEvent, FeatureEventEventOneOf, FeaturePeriod, FeaturePeriodWithLiterals, FeatureQuantityInfoOneOf, FeatureQuotaUsageChanged, FeatureUpdated, FeatureUpdatedPreviousQuantityInfoOneOf, FeatureUpdatedReasonOneOf, File, FocalPoint, GetEcommerceSettingsRequest, IdentificationData, IdentificationDataIdOneOf, InputFieldBackgroundStyle, InputFieldBackgroundStyleWithLiterals, InvalidateCache, InvalidateCacheGetByOneOf, Locale, Logo, LogoSize, LogoSizeWithLiterals, ManualFeatureCreationReason, ManualSyncReason, MessageEnvelope, MigratedFromLegacyReason, NewFeatureReason, Page, Pages, PrivacyPolicy, QuotaExhaustedReason, QuotaFeature, QuotaInfo, QuotaInfoEntry, ReassignedFromSiteReason, ReassignedToAnotherSiteReason, ReplacedByAnotherSubscriptionReason, RequestedFields, RestoreInfo, ReturnPolicy, ServicePluginConfiguration, StreetAddress, SubdivisionDeliveryProperties, SubscriptionCheckboxField, TaxConfiguration, TermsAndConditionsPolicy, TestMode, TestModeWithLiterals, TransferredFromAnotherAccountReason, TransferredToAnotherAccountReason, TriggerFlow, TriggerFlowWithLiterals, URI, URIs, UnAssingedToFloatingReason, UnitSystem, UnitSystemWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.typings.mjs';
|
|
3
|
+
export { AccountInfo, ActionEvent, ActiveProvider, Address, Alignment, AlignmentWithLiterals, App, AssignedFromFloatingReason, BackgroundFill, BackgroundFillOptionsOneOf, BooleanFeature, BusinessLocale, BusinessProperties, CancelRequestedReason, CheckboxField, CheckoutBillingFields, CheckoutBillingFieldsWithLiterals, CheckoutBrand, CheckoutFields, CheckoutFooter, CheckoutGlobal, CheckoutHeader, CheckoutMain, CheckoutPolicies, CheckoutSettings, ContactUsPolicy, ContinueShopping, ContractSwitchClassification, ContractSwitchClassificationWithLiterals, ContractSwitchedReason, CountryDeliveryProperties, CrossBorderTaxConfiguration, CustomCheckoutPolicy, CustomTag, DeliveryConfiguration, DeliveryDestinationProperties, DeliveryMethodType, DeliveryMethodTypeWithLiterals, DigitalItemPolicy, DiscountRulesConfiguration, DisplayType, DisplayTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, EcomSitePropertiesChangedEvent, EcommerceSettings, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Error, ExpressButtonsCornerRadius, ExpressButtonsCornerRadiusWithLiterals, Feature, FeatureCancelled, FeatureCancelledReasonOneOf, FeatureContext, FeatureDisabled, FeatureDisabledReasonOneOf, FeatureEnabled, FeatureEnabledReasonOneOf, FeatureEvent, FeatureEventEventOneOf, FeaturePeriod, FeaturePeriodWithLiterals, FeatureQuantityInfoOneOf, FeatureQuotaUsageChanged, FeatureUpdated, FeatureUpdatedPreviousQuantityInfoOneOf, FeatureUpdatedReasonOneOf, File, FocalPoint, GetEcommerceSettingsRequest, IdentificationData, IdentificationDataIdOneOf, InputFieldBackgroundStyle, InputFieldBackgroundStyleWithLiterals, InvalidateCache, InvalidateCacheGetByOneOf, Locale, Logo, LogoSize, LogoSizeWithLiterals, ManualFeatureCreationReason, ManualSyncReason, MessageEnvelope, MigratedFromLegacyReason, NewFeatureReason, Page, Pages, PrivacyPolicy, QuotaExhaustedReason, QuotaFeature, QuotaInfo, QuotaInfoEntry, ReassignedFromSiteReason, ReassignedToAnotherSiteReason, ReplacedByAnotherSubscriptionReason, RequestedFields, RestoreInfo, ReturnPolicy, ServicePluginConfiguration, StreetAddress, SubdivisionDeliveryProperties, SubscriptionCheckboxField, TaxConfiguration, TermsAndConditionsPolicy, TestMode, TestModeWithLiterals, TransferredFromAnotherAccountReason, TransferredToAnotherAccountReason, TriggerFlow, TriggerFlowWithLiterals, URI, URIs, UnAssingedToFloatingReason, UnitSystem, UnitSystemWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
declare function getEcommerceSettings$1(httpClient: HttpClient): GetEcommerceSettingsSignature;
|
|
6
6
|
interface GetEcommerceSettingsSignature {
|
|
@@ -17,21 +17,21 @@ interface EcommerceSettings {
|
|
|
17
17
|
discountRules?: DiscountRulesConfiguration;
|
|
18
18
|
/**
|
|
19
19
|
* Checkout settings.
|
|
20
|
-
* Learn more about the [Checkout Settings API](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/
|
|
20
|
+
* Learn more about the [Checkout Settings API](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/settings/checkout-settings/introduction).
|
|
21
21
|
*/
|
|
22
22
|
checkout?: CheckoutSettings;
|
|
23
23
|
/** Destinations the site delivers to, and their delivery properties. */
|
|
24
24
|
delivery?: DeliveryConfiguration;
|
|
25
|
-
/** Whether the site
|
|
25
|
+
/** Whether the site has a premium plan that supports accepting payments. */
|
|
26
26
|
premiumSite?: boolean | null;
|
|
27
27
|
/** Business information, such as the business name, address, and contact details. */
|
|
28
28
|
businessInfo?: BusinessProperties;
|
|
29
|
-
/** Business locale: currency, language, locale, weight unit and unit system. */
|
|
29
|
+
/** Business locale: currency, language, locale, weight unit, and unit system. */
|
|
30
30
|
businessLocale?: BusinessLocale;
|
|
31
31
|
}
|
|
32
32
|
interface ServicePluginConfiguration {
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Apps that implement the service plugin and are active on the site.
|
|
35
35
|
* @maxSize 100
|
|
36
36
|
*/
|
|
37
37
|
activeProviders?: ActiveProvider[];
|
|
@@ -58,8 +58,8 @@ declare enum TriggerFlow {
|
|
|
58
58
|
type TriggerFlowWithLiterals = TriggerFlow | 'CART' | 'CHECKOUT';
|
|
59
59
|
interface TaxConfiguration {
|
|
60
60
|
/**
|
|
61
|
-
* Whether at least one tax region
|
|
62
|
-
* Learn more about the [Tax Regions API](https://dev.wix.com/docs/
|
|
61
|
+
* Whether the site has at least one tax region.
|
|
62
|
+
* Learn more about the [Tax Regions API](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-regions/introduction).
|
|
63
63
|
*/
|
|
64
64
|
configured?: boolean | null;
|
|
65
65
|
/**
|
|
@@ -67,11 +67,28 @@ interface TaxConfiguration {
|
|
|
67
67
|
* Learn more about [tax inclusion in item prices](https://support.wix.com/en/article/including-tax-in-the-product-price).
|
|
68
68
|
*/
|
|
69
69
|
taxIncludedInItemPrices?: boolean | null;
|
|
70
|
+
/**
|
|
71
|
+
* Cross-border re-pricing of tax-inclusive prices (ECP-204). Absent until ecommerce-settings exposes it.
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
74
|
+
crossBorder?: CrossBorderTaxConfiguration;
|
|
75
|
+
}
|
|
76
|
+
interface CrossBorderTaxConfiguration {
|
|
77
|
+
/** Whether the site opted in to cross-border re-pricing (Tax Settings `cross_border.enabled` with no service-set disabled reason). */
|
|
78
|
+
enabled?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* ISO 3166-1 alpha-2 country code of the base tax region.
|
|
81
|
+
* @format COUNTRY
|
|
82
|
+
*/
|
|
83
|
+
baseCountry?: string;
|
|
84
|
+
/** Whether the base region is the site's only tax region in `base_country`. */
|
|
85
|
+
baseCountryHasSingleRegion?: boolean;
|
|
70
86
|
}
|
|
71
87
|
interface DiscountRulesConfiguration {
|
|
72
88
|
/**
|
|
73
|
-
* Whether at least one discount rule
|
|
74
|
-
*
|
|
89
|
+
* Whether at least one discount rule that applies automatically is active now.
|
|
90
|
+
* A rule counts when it's active and the current time is within its active time frame, if it has one.
|
|
91
|
+
* Learn more about the [Discount Rules API](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/discounts/discount-rules/introduction).
|
|
75
92
|
*/
|
|
76
93
|
active?: boolean | null;
|
|
77
94
|
}
|
|
@@ -491,12 +508,12 @@ interface DeliveryConfiguration {
|
|
|
491
508
|
/**
|
|
492
509
|
* Countries the site delivers to, with their delivery destination properties.
|
|
493
510
|
*
|
|
494
|
-
*
|
|
511
|
+
* When `restOfWorld` isn't returned, a country without `deliveryDestinationProperties` is delivered to only in the subdivisions listed in its `subdivisions`.
|
|
495
512
|
* @maxSize 195
|
|
496
513
|
*/
|
|
497
514
|
countries?: CountryDeliveryProperties[];
|
|
498
515
|
/**
|
|
499
|
-
* Delivery destination properties for every
|
|
516
|
+
* Delivery destination properties for every destination that `countries` doesn't cover: countries that aren't listed, and unlisted subdivisions of a country without `deliveryDestinationProperties`.
|
|
500
517
|
*
|
|
501
518
|
* Returned only when the site delivers to the rest of the world.
|
|
502
519
|
*/
|
|
@@ -843,15 +860,25 @@ interface GetEcommerceSettingsRequest {
|
|
|
843
860
|
fields: RequestedFieldsWithLiterals[];
|
|
844
861
|
}
|
|
845
862
|
declare enum RequestedFields {
|
|
863
|
+
/** Additional Fees service plugin configuration. Returned in `additionalFeesServicePlugin`. */
|
|
846
864
|
ADDITIONAL_FEES_SERVICE_PLUGIN = "ADDITIONAL_FEES_SERVICE_PLUGIN",
|
|
865
|
+
/** Validations service plugin configuration. Returned in `validationsServicePlugin`. */
|
|
847
866
|
VALIDATIONS_SERVICE_PLUGIN = "VALIDATIONS_SERVICE_PLUGIN",
|
|
867
|
+
/** Tax configuration. Returned in `tax`. */
|
|
848
868
|
TAX = "TAX",
|
|
869
|
+
/** Discount rules configuration. Returned in `discountRules`. */
|
|
849
870
|
DISCOUNT_RULES = "DISCOUNT_RULES",
|
|
871
|
+
/** Checkout settings. Returned in `checkout`. */
|
|
850
872
|
CHECKOUT = "CHECKOUT",
|
|
873
|
+
/** Delivery destinations. Returned in `delivery`. */
|
|
851
874
|
DELIVERY = "DELIVERY",
|
|
875
|
+
/** Premium status: whether the site has a premium plan that supports accepting payments. Returned in `premiumSite`. */
|
|
852
876
|
PREMIUM_SITE = "PREMIUM_SITE",
|
|
877
|
+
/** Business information. Returned in `businessInfo`. */
|
|
853
878
|
BUSINESS_INFO = "BUSINESS_INFO",
|
|
879
|
+
/** Purchase recommendations service plugin configuration. Returned in `purchaseRecommendationsServicePlugin`. */
|
|
854
880
|
PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN = "PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN",
|
|
881
|
+
/** Business locale. Returned in `businessLocale`. */
|
|
855
882
|
BUSINESS_LOCALE = "BUSINESS_LOCALE"
|
|
856
883
|
}
|
|
857
884
|
/** @enumType */
|
|
@@ -1596,4 +1623,4 @@ declare function getEcommerceSettings(fields: RequestedFieldsWithLiterals[]): Pr
|
|
|
1596
1623
|
__applicationErrorsType?: GetEcommerceSettingsApplicationErrors;
|
|
1597
1624
|
}>;
|
|
1598
1625
|
|
|
1599
|
-
export { type AccountInfo, type ActionEvent, type ActiveProvider, type Address, Alignment, type AlignmentWithLiterals, type App, type AssignedFromFloatingReason, type BackgroundFill, type BackgroundFillOptionsOneOf, type BooleanFeature, type BusinessLocale, type BusinessProperties, type CancelRequestedReason, type CheckboxField, CheckoutBillingFields, type CheckoutBillingFieldsWithLiterals, type CheckoutBrand, type CheckoutFields, type CheckoutFooter, type CheckoutGlobal, type CheckoutHeader, type CheckoutMain, type CheckoutPolicies, type CheckoutSettings, type ContactUsPolicy, type ContinueShopping, ContractSwitchClassification, type ContractSwitchClassificationWithLiterals, type ContractSwitchedReason, type CountryDeliveryProperties, type CustomCheckoutPolicy, type CustomTag, type DeliveryConfiguration, type DeliveryDestinationProperties, DeliveryMethodType, type DeliveryMethodTypeWithLiterals, type DigitalItemPolicy, type DiscountRulesConfiguration, DisplayType, type DisplayTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EcomSitePropertiesChangedEvent, type EcommerceSettings, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type Error, ExpressButtonsCornerRadius, type ExpressButtonsCornerRadiusWithLiterals, type Feature, type FeatureCancelled, type FeatureCancelledReasonOneOf, type FeatureContext, type FeatureDisabled, type FeatureDisabledReasonOneOf, type FeatureEnabled, type FeatureEnabledReasonOneOf, type FeatureEvent, type FeatureEventEventOneOf, FeaturePeriod, type FeaturePeriodWithLiterals, type FeatureQuantityInfoOneOf, type FeatureQuotaUsageChanged, type FeatureUpdated, type FeatureUpdatedPreviousQuantityInfoOneOf, type FeatureUpdatedReasonOneOf, type File, type FocalPoint, type GetEcommerceSettingsApplicationErrors, type GetEcommerceSettingsRequest, type GetEcommerceSettingsResponse, type IdentificationData, type IdentificationDataIdOneOf, InputFieldBackgroundStyle, type InputFieldBackgroundStyleWithLiterals, type InvalidateCache, type InvalidateCacheGetByOneOf, type Locale, type Logo, LogoSize, type LogoSizeWithLiterals, type ManualFeatureCreationReason, type ManualSyncReason, type MessageEnvelope, type MigratedFromLegacyReason, type NewFeatureReason, type Page, type Pages, type PrivacyPolicy, type QuotaExhaustedReason, type QuotaFeature, type QuotaInfo, type QuotaInfoEntry, type ReassignedFromSiteReason, type ReassignedToAnotherSiteReason, type ReplacedByAnotherSubscriptionReason, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type ReturnPolicy, type ServicePluginConfiguration, type StreetAddress, type SubdivisionDeliveryProperties, type SubscriptionCheckboxField, type TaxConfiguration, type TermsAndConditionsPolicy, TestMode, type TestModeWithLiterals, type TransferredFromAnotherAccountReason, type TransferredToAnotherAccountReason, TriggerFlow, type TriggerFlowWithLiterals, type URI, type URIs, type UnAssingedToFloatingReason, UnitSystem, type UnitSystemWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, getEcommerceSettings };
|
|
1626
|
+
export { type AccountInfo, type ActionEvent, type ActiveProvider, type Address, Alignment, type AlignmentWithLiterals, type App, type AssignedFromFloatingReason, type BackgroundFill, type BackgroundFillOptionsOneOf, type BooleanFeature, type BusinessLocale, type BusinessProperties, type CancelRequestedReason, type CheckboxField, CheckoutBillingFields, type CheckoutBillingFieldsWithLiterals, type CheckoutBrand, type CheckoutFields, type CheckoutFooter, type CheckoutGlobal, type CheckoutHeader, type CheckoutMain, type CheckoutPolicies, type CheckoutSettings, type ContactUsPolicy, type ContinueShopping, ContractSwitchClassification, type ContractSwitchClassificationWithLiterals, type ContractSwitchedReason, type CountryDeliveryProperties, type CrossBorderTaxConfiguration, type CustomCheckoutPolicy, type CustomTag, type DeliveryConfiguration, type DeliveryDestinationProperties, DeliveryMethodType, type DeliveryMethodTypeWithLiterals, type DigitalItemPolicy, type DiscountRulesConfiguration, DisplayType, type DisplayTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EcomSitePropertiesChangedEvent, type EcommerceSettings, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type Error, ExpressButtonsCornerRadius, type ExpressButtonsCornerRadiusWithLiterals, type Feature, type FeatureCancelled, type FeatureCancelledReasonOneOf, type FeatureContext, type FeatureDisabled, type FeatureDisabledReasonOneOf, type FeatureEnabled, type FeatureEnabledReasonOneOf, type FeatureEvent, type FeatureEventEventOneOf, FeaturePeriod, type FeaturePeriodWithLiterals, type FeatureQuantityInfoOneOf, type FeatureQuotaUsageChanged, type FeatureUpdated, type FeatureUpdatedPreviousQuantityInfoOneOf, type FeatureUpdatedReasonOneOf, type File, type FocalPoint, type GetEcommerceSettingsApplicationErrors, type GetEcommerceSettingsRequest, type GetEcommerceSettingsResponse, type IdentificationData, type IdentificationDataIdOneOf, InputFieldBackgroundStyle, type InputFieldBackgroundStyleWithLiterals, type InvalidateCache, type InvalidateCacheGetByOneOf, type Locale, type Logo, LogoSize, type LogoSizeWithLiterals, type ManualFeatureCreationReason, type ManualSyncReason, type MessageEnvelope, type MigratedFromLegacyReason, type NewFeatureReason, type Page, type Pages, type PrivacyPolicy, type QuotaExhaustedReason, type QuotaFeature, type QuotaInfo, type QuotaInfoEntry, type ReassignedFromSiteReason, type ReassignedToAnotherSiteReason, type ReplacedByAnotherSubscriptionReason, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type ReturnPolicy, type ServicePluginConfiguration, type StreetAddress, type SubdivisionDeliveryProperties, type SubscriptionCheckboxField, type TaxConfiguration, type TermsAndConditionsPolicy, TestMode, type TestModeWithLiterals, type TransferredFromAnotherAccountReason, type TransferredToAnotherAccountReason, TriggerFlow, type TriggerFlowWithLiterals, type URI, type URIs, type UnAssingedToFloatingReason, UnitSystem, type UnitSystemWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, getEcommerceSettings };
|
|
@@ -18,21 +18,21 @@ interface EcommerceSettings {
|
|
|
18
18
|
discountRules?: DiscountRulesConfiguration;
|
|
19
19
|
/**
|
|
20
20
|
* Checkout settings.
|
|
21
|
-
* Learn more about the [Checkout Settings API](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/
|
|
21
|
+
* Learn more about the [Checkout Settings API](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/settings/checkout-settings/introduction).
|
|
22
22
|
*/
|
|
23
23
|
checkout?: CheckoutSettings;
|
|
24
24
|
/** Destinations the site delivers to, and their delivery properties. */
|
|
25
25
|
delivery?: DeliveryConfiguration;
|
|
26
|
-
/** Whether the site
|
|
26
|
+
/** Whether the site has a premium plan that supports accepting payments. */
|
|
27
27
|
premiumSite?: boolean | null;
|
|
28
28
|
/** Business information, such as the business name, address, and contact details. */
|
|
29
29
|
businessInfo?: BusinessProperties;
|
|
30
|
-
/** Business locale: currency, language, locale, weight unit and unit system. */
|
|
30
|
+
/** Business locale: currency, language, locale, weight unit, and unit system. */
|
|
31
31
|
businessLocale?: BusinessLocale;
|
|
32
32
|
}
|
|
33
33
|
interface ServicePluginConfiguration {
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Apps that implement the service plugin and are active on the site.
|
|
36
36
|
* @maxSize 100
|
|
37
37
|
*/
|
|
38
38
|
activeProviders?: ActiveProvider[];
|
|
@@ -59,8 +59,8 @@ declare enum TriggerFlow {
|
|
|
59
59
|
type TriggerFlowWithLiterals = TriggerFlow | 'CART' | 'CHECKOUT';
|
|
60
60
|
interface TaxConfiguration {
|
|
61
61
|
/**
|
|
62
|
-
* Whether at least one tax region
|
|
63
|
-
* Learn more about the [Tax Regions API](https://dev.wix.com/docs/
|
|
62
|
+
* Whether the site has at least one tax region.
|
|
63
|
+
* Learn more about the [Tax Regions API](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-regions/introduction).
|
|
64
64
|
*/
|
|
65
65
|
configured?: boolean | null;
|
|
66
66
|
/**
|
|
@@ -68,11 +68,28 @@ interface TaxConfiguration {
|
|
|
68
68
|
* Learn more about [tax inclusion in item prices](https://support.wix.com/en/article/including-tax-in-the-product-price).
|
|
69
69
|
*/
|
|
70
70
|
taxIncludedInItemPrices?: boolean | null;
|
|
71
|
+
/**
|
|
72
|
+
* Cross-border re-pricing of tax-inclusive prices (ECP-204). Absent until ecommerce-settings exposes it.
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
crossBorder?: CrossBorderTaxConfiguration;
|
|
76
|
+
}
|
|
77
|
+
interface CrossBorderTaxConfiguration {
|
|
78
|
+
/** Whether the site opted in to cross-border re-pricing (Tax Settings `cross_border.enabled` with no service-set disabled reason). */
|
|
79
|
+
enabled?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* ISO 3166-1 alpha-2 country code of the base tax region.
|
|
82
|
+
* @format COUNTRY
|
|
83
|
+
*/
|
|
84
|
+
baseCountry?: string;
|
|
85
|
+
/** Whether the base region is the site's only tax region in `base_country`. */
|
|
86
|
+
baseCountryHasSingleRegion?: boolean;
|
|
71
87
|
}
|
|
72
88
|
interface DiscountRulesConfiguration {
|
|
73
89
|
/**
|
|
74
|
-
* Whether at least one discount rule
|
|
75
|
-
*
|
|
90
|
+
* Whether at least one discount rule that applies automatically is active now.
|
|
91
|
+
* A rule counts when it's active and the current time is within its active time frame, if it has one.
|
|
92
|
+
* Learn more about the [Discount Rules API](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/discounts/discount-rules/introduction).
|
|
76
93
|
*/
|
|
77
94
|
active?: boolean | null;
|
|
78
95
|
}
|
|
@@ -533,12 +550,12 @@ interface DeliveryConfiguration {
|
|
|
533
550
|
/**
|
|
534
551
|
* Countries the site delivers to, with their delivery destination properties.
|
|
535
552
|
*
|
|
536
|
-
*
|
|
553
|
+
* When `restOfWorld` isn't returned, a country without `deliveryDestinationProperties` is delivered to only in the subdivisions listed in its `subdivisions`.
|
|
537
554
|
* @maxSize 195
|
|
538
555
|
*/
|
|
539
556
|
countries?: CountryDeliveryProperties[];
|
|
540
557
|
/**
|
|
541
|
-
* Delivery destination properties for every
|
|
558
|
+
* Delivery destination properties for every destination that `countries` doesn't cover: countries that aren't listed, and unlisted subdivisions of a country without `deliveryDestinationProperties`.
|
|
542
559
|
*
|
|
543
560
|
* Returned only when the site delivers to the rest of the world.
|
|
544
561
|
*/
|
|
@@ -885,15 +902,25 @@ interface GetEcommerceSettingsRequest {
|
|
|
885
902
|
fields: RequestedFieldsWithLiterals[];
|
|
886
903
|
}
|
|
887
904
|
declare enum RequestedFields {
|
|
905
|
+
/** Additional Fees service plugin configuration. Returned in `additionalFeesServicePlugin`. */
|
|
888
906
|
ADDITIONAL_FEES_SERVICE_PLUGIN = "ADDITIONAL_FEES_SERVICE_PLUGIN",
|
|
907
|
+
/** Validations service plugin configuration. Returned in `validationsServicePlugin`. */
|
|
889
908
|
VALIDATIONS_SERVICE_PLUGIN = "VALIDATIONS_SERVICE_PLUGIN",
|
|
909
|
+
/** Tax configuration. Returned in `tax`. */
|
|
890
910
|
TAX = "TAX",
|
|
911
|
+
/** Discount rules configuration. Returned in `discountRules`. */
|
|
891
912
|
DISCOUNT_RULES = "DISCOUNT_RULES",
|
|
913
|
+
/** Checkout settings. Returned in `checkout`. */
|
|
892
914
|
CHECKOUT = "CHECKOUT",
|
|
915
|
+
/** Delivery destinations. Returned in `delivery`. */
|
|
893
916
|
DELIVERY = "DELIVERY",
|
|
917
|
+
/** Premium status: whether the site has a premium plan that supports accepting payments. Returned in `premiumSite`. */
|
|
894
918
|
PREMIUM_SITE = "PREMIUM_SITE",
|
|
919
|
+
/** Business information. Returned in `businessInfo`. */
|
|
895
920
|
BUSINESS_INFO = "BUSINESS_INFO",
|
|
921
|
+
/** Purchase recommendations service plugin configuration. Returned in `purchaseRecommendationsServicePlugin`. */
|
|
896
922
|
PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN = "PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN",
|
|
923
|
+
/** Business locale. Returned in `businessLocale`. */
|
|
897
924
|
BUSINESS_LOCALE = "BUSINESS_LOCALE"
|
|
898
925
|
}
|
|
899
926
|
/** @enumType */
|
|
@@ -1679,4 +1706,4 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
1679
1706
|
};
|
|
1680
1707
|
declare function getEcommerceSettings(): __PublicMethodMetaInfo<'GET', {}, GetEcommerceSettingsRequest$1, GetEcommerceSettingsRequest, GetEcommerceSettingsResponse$1, GetEcommerceSettingsResponse>;
|
|
1681
1708
|
|
|
1682
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ActiveProvider as ActiveProviderOriginal, type Address as AddressOriginal, Alignment as AlignmentOriginal, type AlignmentWithLiterals as AlignmentWithLiteralsOriginal, type App as AppOriginal, type AssignedFromFloatingReason as AssignedFromFloatingReasonOriginal, type BackgroundFillOptionsOneOf as BackgroundFillOptionsOneOfOriginal, type BackgroundFill as BackgroundFillOriginal, type BooleanFeature as BooleanFeatureOriginal, type BusinessLocale as BusinessLocaleOriginal, type BusinessProperties as BusinessPropertiesOriginal, type CancelRequestedReason as CancelRequestedReasonOriginal, type CheckboxField as CheckboxFieldOriginal, CheckoutBillingFields as CheckoutBillingFieldsOriginal, type CheckoutBillingFieldsWithLiterals as CheckoutBillingFieldsWithLiteralsOriginal, type CheckoutBrand as CheckoutBrandOriginal, type CheckoutFields as CheckoutFieldsOriginal, type CheckoutFooter as CheckoutFooterOriginal, type CheckoutGlobal as CheckoutGlobalOriginal, type CheckoutHeader as CheckoutHeaderOriginal, type CheckoutMain as CheckoutMainOriginal, type CheckoutPolicies as CheckoutPoliciesOriginal, type CheckoutSettings as CheckoutSettingsOriginal, type ContactUsPolicy as ContactUsPolicyOriginal, type ContinueShopping as ContinueShoppingOriginal, ContractSwitchClassification as ContractSwitchClassificationOriginal, type ContractSwitchClassificationWithLiterals as ContractSwitchClassificationWithLiteralsOriginal, type ContractSwitchedReason as ContractSwitchedReasonOriginal, type CountryDeliveryProperties as CountryDeliveryPropertiesOriginal, type CustomCheckoutPolicy as CustomCheckoutPolicyOriginal, type CustomTag as CustomTagOriginal, type DeliveryConfiguration as DeliveryConfigurationOriginal, type DeliveryDestinationProperties as DeliveryDestinationPropertiesOriginal, DeliveryMethodType as DeliveryMethodTypeOriginal, type DeliveryMethodTypeWithLiterals as DeliveryMethodTypeWithLiteralsOriginal, type DigitalItemPolicy as DigitalItemPolicyOriginal, type DiscountRulesConfiguration as DiscountRulesConfigurationOriginal, DisplayType as DisplayTypeOriginal, type DisplayTypeWithLiterals as DisplayTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EcomSitePropertiesChangedEvent as EcomSitePropertiesChangedEventOriginal, type EcommerceSettings as EcommerceSettingsOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type Error as ErrorOriginal, ExpressButtonsCornerRadius as ExpressButtonsCornerRadiusOriginal, type ExpressButtonsCornerRadiusWithLiterals as ExpressButtonsCornerRadiusWithLiteralsOriginal, type FeatureCancelled as FeatureCancelledOriginal, type FeatureCancelledReasonOneOf as FeatureCancelledReasonOneOfOriginal, type FeatureContext as FeatureContextOriginal, type FeatureDisabled as FeatureDisabledOriginal, type FeatureDisabledReasonOneOf as FeatureDisabledReasonOneOfOriginal, type FeatureEnabled as FeatureEnabledOriginal, type FeatureEnabledReasonOneOf as FeatureEnabledReasonOneOfOriginal, type FeatureEventEventOneOf as FeatureEventEventOneOfOriginal, type FeatureEvent as FeatureEventOriginal, type Feature as FeatureOriginal, FeaturePeriod as FeaturePeriodOriginal, type FeaturePeriodWithLiterals as FeaturePeriodWithLiteralsOriginal, type FeatureQuantityInfoOneOf as FeatureQuantityInfoOneOfOriginal, type FeatureQuotaUsageChanged as FeatureQuotaUsageChangedOriginal, type FeatureUpdated as FeatureUpdatedOriginal, type FeatureUpdatedPreviousQuantityInfoOneOf as FeatureUpdatedPreviousQuantityInfoOneOfOriginal, type FeatureUpdatedReasonOneOf as FeatureUpdatedReasonOneOfOriginal, type File as FileOriginal, type FocalPoint as FocalPointOriginal, type GetEcommerceSettingsApplicationErrors as GetEcommerceSettingsApplicationErrorsOriginal, type GetEcommerceSettingsRequest as GetEcommerceSettingsRequestOriginal, type GetEcommerceSettingsResponse as GetEcommerceSettingsResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, InputFieldBackgroundStyle as InputFieldBackgroundStyleOriginal, type InputFieldBackgroundStyleWithLiterals as InputFieldBackgroundStyleWithLiteralsOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type Locale as LocaleOriginal, type Logo as LogoOriginal, LogoSize as LogoSizeOriginal, type LogoSizeWithLiterals as LogoSizeWithLiteralsOriginal, type ManualFeatureCreationReason as ManualFeatureCreationReasonOriginal, type ManualSyncReason as ManualSyncReasonOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MigratedFromLegacyReason as MigratedFromLegacyReasonOriginal, type NewFeatureReason as NewFeatureReasonOriginal, type Page as PageOriginal, type Pages as PagesOriginal, type PrivacyPolicy as PrivacyPolicyOriginal, type QuotaExhaustedReason as QuotaExhaustedReasonOriginal, type QuotaFeature as QuotaFeatureOriginal, type QuotaInfoEntry as QuotaInfoEntryOriginal, type QuotaInfo as QuotaInfoOriginal, type ReassignedFromSiteReason as ReassignedFromSiteReasonOriginal, type ReassignedToAnotherSiteReason as ReassignedToAnotherSiteReasonOriginal, type ReplacedByAnotherSubscriptionReason as ReplacedByAnotherSubscriptionReasonOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type ReturnPolicy as ReturnPolicyOriginal, type ServicePluginConfiguration as ServicePluginConfigurationOriginal, type StreetAddress as StreetAddressOriginal, type SubdivisionDeliveryProperties as SubdivisionDeliveryPropertiesOriginal, type SubscriptionCheckboxField as SubscriptionCheckboxFieldOriginal, type TaxConfiguration as TaxConfigurationOriginal, type TermsAndConditionsPolicy as TermsAndConditionsPolicyOriginal, TestMode as TestModeOriginal, type TestModeWithLiterals as TestModeWithLiteralsOriginal, type TransferredFromAnotherAccountReason as TransferredFromAnotherAccountReasonOriginal, type TransferredToAnotherAccountReason as TransferredToAnotherAccountReasonOriginal, TriggerFlow as TriggerFlowOriginal, type TriggerFlowWithLiterals as TriggerFlowWithLiteralsOriginal, type URI as URIOriginal, type URIs as URIsOriginal, type UnAssingedToFloatingReason as UnAssingedToFloatingReasonOriginal, UnitSystem as UnitSystemOriginal, type UnitSystemWithLiterals as UnitSystemWithLiteralsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeightUnit as WeightUnitOriginal, type WeightUnitWithLiterals as WeightUnitWithLiteralsOriginal, type __PublicMethodMetaInfo, getEcommerceSettings };
|
|
1709
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ActiveProvider as ActiveProviderOriginal, type Address as AddressOriginal, Alignment as AlignmentOriginal, type AlignmentWithLiterals as AlignmentWithLiteralsOriginal, type App as AppOriginal, type AssignedFromFloatingReason as AssignedFromFloatingReasonOriginal, type BackgroundFillOptionsOneOf as BackgroundFillOptionsOneOfOriginal, type BackgroundFill as BackgroundFillOriginal, type BooleanFeature as BooleanFeatureOriginal, type BusinessLocale as BusinessLocaleOriginal, type BusinessProperties as BusinessPropertiesOriginal, type CancelRequestedReason as CancelRequestedReasonOriginal, type CheckboxField as CheckboxFieldOriginal, CheckoutBillingFields as CheckoutBillingFieldsOriginal, type CheckoutBillingFieldsWithLiterals as CheckoutBillingFieldsWithLiteralsOriginal, type CheckoutBrand as CheckoutBrandOriginal, type CheckoutFields as CheckoutFieldsOriginal, type CheckoutFooter as CheckoutFooterOriginal, type CheckoutGlobal as CheckoutGlobalOriginal, type CheckoutHeader as CheckoutHeaderOriginal, type CheckoutMain as CheckoutMainOriginal, type CheckoutPolicies as CheckoutPoliciesOriginal, type CheckoutSettings as CheckoutSettingsOriginal, type ContactUsPolicy as ContactUsPolicyOriginal, type ContinueShopping as ContinueShoppingOriginal, ContractSwitchClassification as ContractSwitchClassificationOriginal, type ContractSwitchClassificationWithLiterals as ContractSwitchClassificationWithLiteralsOriginal, type ContractSwitchedReason as ContractSwitchedReasonOriginal, type CountryDeliveryProperties as CountryDeliveryPropertiesOriginal, type CrossBorderTaxConfiguration as CrossBorderTaxConfigurationOriginal, type CustomCheckoutPolicy as CustomCheckoutPolicyOriginal, type CustomTag as CustomTagOriginal, type DeliveryConfiguration as DeliveryConfigurationOriginal, type DeliveryDestinationProperties as DeliveryDestinationPropertiesOriginal, DeliveryMethodType as DeliveryMethodTypeOriginal, type DeliveryMethodTypeWithLiterals as DeliveryMethodTypeWithLiteralsOriginal, type DigitalItemPolicy as DigitalItemPolicyOriginal, type DiscountRulesConfiguration as DiscountRulesConfigurationOriginal, DisplayType as DisplayTypeOriginal, type DisplayTypeWithLiterals as DisplayTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EcomSitePropertiesChangedEvent as EcomSitePropertiesChangedEventOriginal, type EcommerceSettings as EcommerceSettingsOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type Error as ErrorOriginal, ExpressButtonsCornerRadius as ExpressButtonsCornerRadiusOriginal, type ExpressButtonsCornerRadiusWithLiterals as ExpressButtonsCornerRadiusWithLiteralsOriginal, type FeatureCancelled as FeatureCancelledOriginal, type FeatureCancelledReasonOneOf as FeatureCancelledReasonOneOfOriginal, type FeatureContext as FeatureContextOriginal, type FeatureDisabled as FeatureDisabledOriginal, type FeatureDisabledReasonOneOf as FeatureDisabledReasonOneOfOriginal, type FeatureEnabled as FeatureEnabledOriginal, type FeatureEnabledReasonOneOf as FeatureEnabledReasonOneOfOriginal, type FeatureEventEventOneOf as FeatureEventEventOneOfOriginal, type FeatureEvent as FeatureEventOriginal, type Feature as FeatureOriginal, FeaturePeriod as FeaturePeriodOriginal, type FeaturePeriodWithLiterals as FeaturePeriodWithLiteralsOriginal, type FeatureQuantityInfoOneOf as FeatureQuantityInfoOneOfOriginal, type FeatureQuotaUsageChanged as FeatureQuotaUsageChangedOriginal, type FeatureUpdated as FeatureUpdatedOriginal, type FeatureUpdatedPreviousQuantityInfoOneOf as FeatureUpdatedPreviousQuantityInfoOneOfOriginal, type FeatureUpdatedReasonOneOf as FeatureUpdatedReasonOneOfOriginal, type File as FileOriginal, type FocalPoint as FocalPointOriginal, type GetEcommerceSettingsApplicationErrors as GetEcommerceSettingsApplicationErrorsOriginal, type GetEcommerceSettingsRequest as GetEcommerceSettingsRequestOriginal, type GetEcommerceSettingsResponse as GetEcommerceSettingsResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, InputFieldBackgroundStyle as InputFieldBackgroundStyleOriginal, type InputFieldBackgroundStyleWithLiterals as InputFieldBackgroundStyleWithLiteralsOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type Locale as LocaleOriginal, type Logo as LogoOriginal, LogoSize as LogoSizeOriginal, type LogoSizeWithLiterals as LogoSizeWithLiteralsOriginal, type ManualFeatureCreationReason as ManualFeatureCreationReasonOriginal, type ManualSyncReason as ManualSyncReasonOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MigratedFromLegacyReason as MigratedFromLegacyReasonOriginal, type NewFeatureReason as NewFeatureReasonOriginal, type Page as PageOriginal, type Pages as PagesOriginal, type PrivacyPolicy as PrivacyPolicyOriginal, type QuotaExhaustedReason as QuotaExhaustedReasonOriginal, type QuotaFeature as QuotaFeatureOriginal, type QuotaInfoEntry as QuotaInfoEntryOriginal, type QuotaInfo as QuotaInfoOriginal, type ReassignedFromSiteReason as ReassignedFromSiteReasonOriginal, type ReassignedToAnotherSiteReason as ReassignedToAnotherSiteReasonOriginal, type ReplacedByAnotherSubscriptionReason as ReplacedByAnotherSubscriptionReasonOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type ReturnPolicy as ReturnPolicyOriginal, type ServicePluginConfiguration as ServicePluginConfigurationOriginal, type StreetAddress as StreetAddressOriginal, type SubdivisionDeliveryProperties as SubdivisionDeliveryPropertiesOriginal, type SubscriptionCheckboxField as SubscriptionCheckboxFieldOriginal, type TaxConfiguration as TaxConfigurationOriginal, type TermsAndConditionsPolicy as TermsAndConditionsPolicyOriginal, TestMode as TestModeOriginal, type TestModeWithLiterals as TestModeWithLiteralsOriginal, type TransferredFromAnotherAccountReason as TransferredFromAnotherAccountReasonOriginal, type TransferredToAnotherAccountReason as TransferredToAnotherAccountReasonOriginal, TriggerFlow as TriggerFlowOriginal, type TriggerFlowWithLiterals as TriggerFlowWithLiteralsOriginal, type URI as URIOriginal, type URIs as URIsOriginal, type UnAssingedToFloatingReason as UnAssingedToFloatingReasonOriginal, UnitSystem as UnitSystemOriginal, type UnitSystemWithLiterals as UnitSystemWithLiteralsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeightUnit as WeightUnitOriginal, type WeightUnitWithLiterals as WeightUnitWithLiteralsOriginal, type __PublicMethodMetaInfo, getEcommerceSettings };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_ecom_ecommerce-settings",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.45",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"fqdn": "wix.ecom.v1.ecommerce_settings"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "80a6716ff82b06df4a11035c51f0f9c1609c693f1f46c9ce1cbfd282"
|
|
54
54
|
}
|