@wix/auto_sdk_ecom_ecommerce-settings 1.0.39 → 1.0.41
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 +6 -4
- package/build/cjs/index.js +24 -7
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +90 -55
- package/build/cjs/index.typings.js +24 -7
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +85 -52
- package/build/cjs/meta.js +24 -7
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +6 -4
- package/build/es/index.mjs +22 -6
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +90 -55
- package/build/es/index.typings.mjs +22 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +85 -52
- package/build/es/meta.mjs +22 -6
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +6 -4
- package/build/internal/cjs/index.typings.d.ts +78 -88
- package/build/internal/cjs/meta.d.ts +73 -85
- package/build/internal/es/index.d.mts +6 -4
- package/build/internal/es/index.typings.d.mts +78 -88
- package/build/internal/es/meta.d.mts +73 -85
- package/package.json +4 -4
|
@@ -1,51 +1,33 @@
|
|
|
1
1
|
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* eCommerce settings are a read-only snapshot of how a site's eCommerce is set up, collected from the APIs that own each value.
|
|
5
|
+
* Each field is returned only when it's requested in `fields` and retrieved successfully.
|
|
6
|
+
*/
|
|
3
7
|
interface EcommerceSettings {
|
|
4
|
-
/**
|
|
5
|
-
* Additional Fees service plugin configuration.
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
|
+
/** Additional Fees service plugin configuration. */
|
|
8
9
|
additionalFeesServicePlugin?: ServicePluginConfiguration;
|
|
9
|
-
/**
|
|
10
|
-
* Validations service plugin configuration.
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
10
|
+
/** Validations service plugin configuration. */
|
|
13
11
|
validationsServicePlugin?: ServicePluginConfiguration;
|
|
14
|
-
/**
|
|
15
|
-
* Purchase recommendations service plugin configuration.
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
12
|
+
/** Purchase recommendations service plugin configuration. */
|
|
18
13
|
purchaseRecommendationsServicePlugin?: ServicePluginConfiguration;
|
|
19
|
-
/**
|
|
20
|
-
* Tax configuration.
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
14
|
+
/** Tax configuration. */
|
|
23
15
|
tax?: TaxConfiguration;
|
|
24
|
-
/**
|
|
25
|
-
* Discount rules configuration.
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
16
|
+
/** Discount rules configuration. */
|
|
28
17
|
discountRules?: DiscountRulesConfiguration;
|
|
29
18
|
/**
|
|
30
19
|
* Checkout settings.
|
|
31
|
-
*
|
|
20
|
+
* Learn more about the [Checkout Settings API](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/checkout/checkout-settings/introduction).
|
|
32
21
|
*/
|
|
33
22
|
checkout?: CheckoutSettings;
|
|
34
|
-
/**
|
|
35
|
-
* Delivery configuration.
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
23
|
+
/** Destinations the site delivers to, and their delivery properties. */
|
|
38
24
|
delivery?: DeliveryConfiguration;
|
|
39
|
-
/**
|
|
40
|
-
* Whether the site is a premium site.
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
25
|
+
/** Whether the site is a premium site. */
|
|
43
26
|
premiumSite?: boolean | null;
|
|
44
|
-
/**
|
|
45
|
-
* Business information.
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
27
|
+
/** Business information, such as the business name, address, and contact details. */
|
|
48
28
|
businessInfo?: BusinessProperties;
|
|
29
|
+
/** Business locale: currency, language, locale, weight unit and unit system. */
|
|
30
|
+
businessLocale?: BusinessLocale;
|
|
49
31
|
}
|
|
50
32
|
interface ServicePluginConfiguration {
|
|
51
33
|
/**
|
|
@@ -502,57 +484,18 @@ declare enum CheckoutBillingFields {
|
|
|
502
484
|
type CheckoutBillingFieldsWithLiterals = CheckoutBillingFields | 'All_FIELDS' | 'MINIMUM_REQUIRED_FIELDS';
|
|
503
485
|
interface DeliveryConfiguration {
|
|
504
486
|
/**
|
|
505
|
-
*
|
|
506
|
-
*
|
|
507
|
-
*
|
|
508
|
-
*/
|
|
509
|
-
destinationScope?: DestinationScopeWithLiterals;
|
|
510
|
-
/**
|
|
511
|
-
* The list of destinations.
|
|
512
|
-
* @maxSize 200
|
|
513
|
-
* @deprecated The list of destinations.
|
|
514
|
-
* @targetRemovalDate 2025-12-31
|
|
515
|
-
*/
|
|
516
|
-
destinations?: Destination[];
|
|
517
|
-
/**
|
|
518
|
-
* Whether postal code is required to support delivery calculations.
|
|
519
|
-
* @deprecated Whether postal code is required to support delivery calculations.
|
|
520
|
-
* @targetRemovalDate 2025-12-31
|
|
521
|
-
*/
|
|
522
|
-
postalCodeRequired?: boolean | null;
|
|
523
|
-
/**
|
|
524
|
-
* List of countries and subdivisions and their delivery destination properties
|
|
487
|
+
* Countries the site delivers to, with their delivery destination properties.
|
|
488
|
+
*
|
|
489
|
+
* A country without `deliveryDestinationProperties` is delivered to only in the subdivisions listed in its `subdivisions`.
|
|
525
490
|
* @maxSize 195
|
|
526
491
|
*/
|
|
527
492
|
countries?: CountryDeliveryProperties[];
|
|
528
|
-
/** Delivery destination properties for Rest Of World */
|
|
529
|
-
restOfWorld?: DeliveryDestinationProperties;
|
|
530
|
-
}
|
|
531
|
-
declare enum DestinationScope {
|
|
532
|
-
/** Specific destinations are configured. */
|
|
533
|
-
SPECIFIC_DESTINATIONS = "SPECIFIC_DESTINATIONS",
|
|
534
|
-
/** All destinations worldwide. */
|
|
535
|
-
WORLDWIDE = "WORLDWIDE"
|
|
536
|
-
}
|
|
537
|
-
/** @enumType */
|
|
538
|
-
type DestinationScopeWithLiterals = DestinationScope | 'SPECIFIC_DESTINATIONS' | 'WORLDWIDE';
|
|
539
|
-
/** Geographic destination for a delivery region. */
|
|
540
|
-
interface Destination {
|
|
541
|
-
/**
|
|
542
|
-
* 2-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
543
|
-
* @format COUNTRY
|
|
544
|
-
*/
|
|
545
|
-
countryCode?: string;
|
|
546
493
|
/**
|
|
547
|
-
*
|
|
494
|
+
* Delivery destination properties for every country that isn't listed in `countries`.
|
|
548
495
|
*
|
|
549
|
-
*
|
|
550
|
-
* `AT`, `BE`, `BS`, `CH`, `CI`, `CZ`, `DO`, `GR`, `NO`, `PL`, `RS`, `SD`, `SI`, `SK`, `SN`.
|
|
551
|
-
* @maxSize 100
|
|
552
|
-
* @minLength 1
|
|
553
|
-
* @maxLength 256
|
|
496
|
+
* Returned only when the site delivers to the rest of the world.
|
|
554
497
|
*/
|
|
555
|
-
|
|
498
|
+
restOfWorld?: DeliveryDestinationProperties;
|
|
556
499
|
}
|
|
557
500
|
interface CountryDeliveryProperties {
|
|
558
501
|
/**
|
|
@@ -685,6 +628,50 @@ interface StreetAddress {
|
|
|
685
628
|
/** Street name. */
|
|
686
629
|
name?: string;
|
|
687
630
|
}
|
|
631
|
+
interface BusinessLocale {
|
|
632
|
+
/**
|
|
633
|
+
* Currency the business accepts payments in. Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
634
|
+
*
|
|
635
|
+
* Default: `USD`
|
|
636
|
+
* @format CURRENCY
|
|
637
|
+
*/
|
|
638
|
+
currency?: string;
|
|
639
|
+
/**
|
|
640
|
+
* Language the business uses for site content, emails, and notifications. Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
641
|
+
*
|
|
642
|
+
* Default: `en`
|
|
643
|
+
* @format LANGUAGE
|
|
644
|
+
*/
|
|
645
|
+
language?: string;
|
|
646
|
+
/**
|
|
647
|
+
* Locale for date, number, and measurement formatting.
|
|
648
|
+
*
|
|
649
|
+
* Default: `en-US`
|
|
650
|
+
*/
|
|
651
|
+
locale?: Locale;
|
|
652
|
+
/** Weight unit, based on locale. */
|
|
653
|
+
weightUnit?: WeightUnitWithLiterals;
|
|
654
|
+
/** Unit system, based on locale. */
|
|
655
|
+
unitSystem?: UnitSystemWithLiterals;
|
|
656
|
+
}
|
|
657
|
+
declare enum WeightUnit {
|
|
658
|
+
/** Weight unit can't be classified due to an error. */
|
|
659
|
+
UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
|
|
660
|
+
/** Kilograms. */
|
|
661
|
+
KG = "KG",
|
|
662
|
+
/** Pounds. */
|
|
663
|
+
LB = "LB"
|
|
664
|
+
}
|
|
665
|
+
/** @enumType */
|
|
666
|
+
type WeightUnitWithLiterals = WeightUnit | 'UNSPECIFIED_WEIGHT_UNIT' | 'KG' | 'LB';
|
|
667
|
+
declare enum UnitSystem {
|
|
668
|
+
/** Imperial unit system. For example, inches, feet, pounds, ounces, etc. */
|
|
669
|
+
IMPERIAL = "IMPERIAL",
|
|
670
|
+
/** Metric unit system. For example, centimeters, kilometers, grams, etc. */
|
|
671
|
+
METRIC = "METRIC"
|
|
672
|
+
}
|
|
673
|
+
/** @enumType */
|
|
674
|
+
type UnitSystemWithLiterals = UnitSystem | 'IMPERIAL' | 'METRIC';
|
|
688
675
|
interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
689
676
|
/**
|
|
690
677
|
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
@@ -844,7 +831,7 @@ interface URIs {
|
|
|
844
831
|
}
|
|
845
832
|
interface GetEcommerceSettingsRequest {
|
|
846
833
|
/**
|
|
847
|
-
*
|
|
834
|
+
* Settings to include in the response.
|
|
848
835
|
* @minSize 1
|
|
849
836
|
* @maxSize 25
|
|
850
837
|
*/
|
|
@@ -859,18 +846,19 @@ declare enum RequestedFields {
|
|
|
859
846
|
DELIVERY = "DELIVERY",
|
|
860
847
|
PREMIUM_SITE = "PREMIUM_SITE",
|
|
861
848
|
BUSINESS_INFO = "BUSINESS_INFO",
|
|
862
|
-
PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN = "PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN"
|
|
849
|
+
PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN = "PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN",
|
|
850
|
+
BUSINESS_LOCALE = "BUSINESS_LOCALE"
|
|
863
851
|
}
|
|
864
852
|
/** @enumType */
|
|
865
|
-
type RequestedFieldsWithLiterals = RequestedFields | 'ADDITIONAL_FEES_SERVICE_PLUGIN' | 'VALIDATIONS_SERVICE_PLUGIN' | 'TAX' | 'DISCOUNT_RULES' | 'CHECKOUT' | 'DELIVERY' | 'PREMIUM_SITE' | 'BUSINESS_INFO' | 'PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN';
|
|
853
|
+
type RequestedFieldsWithLiterals = RequestedFields | 'ADDITIONAL_FEES_SERVICE_PLUGIN' | 'VALIDATIONS_SERVICE_PLUGIN' | 'TAX' | 'DISCOUNT_RULES' | 'CHECKOUT' | 'DELIVERY' | 'PREMIUM_SITE' | 'BUSINESS_INFO' | 'PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN' | 'BUSINESS_LOCALE';
|
|
866
854
|
interface GetEcommerceSettingsResponse {
|
|
867
|
-
/**
|
|
855
|
+
/** Retrieved eCommerce settings. */
|
|
868
856
|
ecommerceSettings?: EcommerceSettings;
|
|
869
|
-
/**
|
|
857
|
+
/** Requested fields that couldn't be retrieved. These fields are left out of `ecommerceSettings`. */
|
|
870
858
|
errors?: Error[];
|
|
871
859
|
}
|
|
872
860
|
interface Error {
|
|
873
|
-
/**
|
|
861
|
+
/** Requested field that couldn't be retrieved. */
|
|
874
862
|
requestedField?: RequestedFieldsWithLiterals;
|
|
875
863
|
}
|
|
876
864
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
@@ -1588,8 +1576,10 @@ type GetEcommerceSettingsApplicationErrors = {
|
|
|
1588
1576
|
data?: Record<string, any>;
|
|
1589
1577
|
};
|
|
1590
1578
|
/**
|
|
1591
|
-
* Retrieves site eCommerce settings.
|
|
1592
|
-
*
|
|
1579
|
+
* Retrieves a site's eCommerce settings.
|
|
1580
|
+
*
|
|
1581
|
+
* The response includes only the fields specified in `fields`. If a requested field can't be retrieved, it's left out of `ecommerceSettings` and listed in `errors`. The other requested fields are still returned.
|
|
1582
|
+
* @param fields - Settings to include in the response.
|
|
1593
1583
|
* @public
|
|
1594
1584
|
* @documentationMaturity preview
|
|
1595
1585
|
* @requiredField fields
|
|
@@ -1597,8 +1587,8 @@ type GetEcommerceSettingsApplicationErrors = {
|
|
|
1597
1587
|
* @applicableIdentity APP
|
|
1598
1588
|
* @fqn wix.ecom.ecommerce_settings.v1.EcommerceSettingsService.GetEcommerceSettings
|
|
1599
1589
|
*/
|
|
1600
|
-
declare function getEcommerceSettings(fields: RequestedFieldsWithLiterals[]): Promise<NonNullablePaths<GetEcommerceSettingsResponse, `errors` | `errors.${number}.requestedField`,
|
|
1590
|
+
declare function getEcommerceSettings(fields: RequestedFieldsWithLiterals[]): Promise<NonNullablePaths<GetEcommerceSettingsResponse, `ecommerceSettings.additionalFeesServicePlugin.activeProviders` | `ecommerceSettings.additionalFeesServicePlugin.activeProviders.${number}.appId` | `ecommerceSettings.checkout.checkoutBrand.header.logo.size` | `ecommerceSettings.checkout.checkoutBrand.header.alignment` | `ecommerceSettings.checkout.checkoutBrand.header.continueShopping.displayType` | `ecommerceSettings.checkout.checkoutBrand.mainSection.expressButtonsCornerRadius` | `ecommerceSettings.checkout.checkoutBillingFields` | `ecommerceSettings.delivery.countries` | `ecommerceSettings.delivery.countries.${number}.country` | `ecommerceSettings.delivery.countries.${number}.deliveryDestinationProperties.postalCodeRequired` | `ecommerceSettings.delivery.countries.${number}.deliveryDestinationProperties.pickupOnly` | `ecommerceSettings.businessInfo.currency` | `ecommerceSettings.businessInfo.language` | `ecommerceSettings.businessInfo.locale.language` | `ecommerceSettings.businessInfo.address.streetAddress.number` | `ecommerceSettings.businessInfo.address.streetAddress.name` | `ecommerceSettings.businessLocale.currency` | `ecommerceSettings.businessLocale.language` | `ecommerceSettings.businessLocale.weightUnit` | `ecommerceSettings.businessLocale.unitSystem` | `errors` | `errors.${number}.requestedField`, 5> & {
|
|
1601
1591
|
__applicationErrorsType?: GetEcommerceSettingsApplicationErrors;
|
|
1602
1592
|
}>;
|
|
1603
1593
|
|
|
1604
|
-
export { type AccountInfo, type ActionEvent, type ActiveProvider, type Address, Alignment, type AlignmentWithLiterals, type App, type AssignedFromFloatingReason, type BackgroundFill, type BackgroundFillOptionsOneOf, type BooleanFeature, 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
|
|
1594
|
+
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 };
|
|
@@ -1,52 +1,34 @@
|
|
|
1
1
|
import { GetEcommerceSettingsRequest as GetEcommerceSettingsRequest$1, GetEcommerceSettingsResponse as GetEcommerceSettingsResponse$1 } from './index.typings.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* eCommerce settings are a read-only snapshot of how a site's eCommerce is set up, collected from the APIs that own each value.
|
|
6
|
+
* Each field is returned only when it's requested in `fields` and retrieved successfully.
|
|
7
|
+
*/
|
|
4
8
|
interface EcommerceSettings {
|
|
5
|
-
/**
|
|
6
|
-
* Additional Fees service plugin configuration.
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
+
/** Additional Fees service plugin configuration. */
|
|
9
10
|
additionalFeesServicePlugin?: ServicePluginConfiguration;
|
|
10
|
-
/**
|
|
11
|
-
* Validations service plugin configuration.
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
11
|
+
/** Validations service plugin configuration. */
|
|
14
12
|
validationsServicePlugin?: ServicePluginConfiguration;
|
|
15
|
-
/**
|
|
16
|
-
* Purchase recommendations service plugin configuration.
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
13
|
+
/** Purchase recommendations service plugin configuration. */
|
|
19
14
|
purchaseRecommendationsServicePlugin?: ServicePluginConfiguration;
|
|
20
|
-
/**
|
|
21
|
-
* Tax configuration.
|
|
22
|
-
* @internal
|
|
23
|
-
*/
|
|
15
|
+
/** Tax configuration. */
|
|
24
16
|
tax?: TaxConfiguration;
|
|
25
|
-
/**
|
|
26
|
-
* Discount rules configuration.
|
|
27
|
-
* @internal
|
|
28
|
-
*/
|
|
17
|
+
/** Discount rules configuration. */
|
|
29
18
|
discountRules?: DiscountRulesConfiguration;
|
|
30
19
|
/**
|
|
31
20
|
* Checkout settings.
|
|
32
|
-
*
|
|
21
|
+
* Learn more about the [Checkout Settings API](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/checkout/checkout-settings/introduction).
|
|
33
22
|
*/
|
|
34
23
|
checkout?: CheckoutSettings;
|
|
35
|
-
/**
|
|
36
|
-
* Delivery configuration.
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
24
|
+
/** Destinations the site delivers to, and their delivery properties. */
|
|
39
25
|
delivery?: DeliveryConfiguration;
|
|
40
|
-
/**
|
|
41
|
-
* Whether the site is a premium site.
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
26
|
+
/** Whether the site is a premium site. */
|
|
44
27
|
premiumSite?: boolean | null;
|
|
45
|
-
/**
|
|
46
|
-
* Business information.
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
28
|
+
/** Business information, such as the business name, address, and contact details. */
|
|
49
29
|
businessInfo?: BusinessProperties;
|
|
30
|
+
/** Business locale: currency, language, locale, weight unit and unit system. */
|
|
31
|
+
businessLocale?: BusinessLocale;
|
|
50
32
|
}
|
|
51
33
|
interface ServicePluginConfiguration {
|
|
52
34
|
/**
|
|
@@ -544,57 +526,18 @@ declare enum CheckoutBillingFields {
|
|
|
544
526
|
type CheckoutBillingFieldsWithLiterals = CheckoutBillingFields | 'All_FIELDS' | 'MINIMUM_REQUIRED_FIELDS';
|
|
545
527
|
interface DeliveryConfiguration {
|
|
546
528
|
/**
|
|
547
|
-
*
|
|
548
|
-
*
|
|
549
|
-
*
|
|
550
|
-
*/
|
|
551
|
-
destinationScope?: DestinationScopeWithLiterals;
|
|
552
|
-
/**
|
|
553
|
-
* The list of destinations.
|
|
554
|
-
* @maxSize 200
|
|
555
|
-
* @deprecated The list of destinations.
|
|
556
|
-
* @targetRemovalDate 2025-12-31
|
|
557
|
-
*/
|
|
558
|
-
destinations?: Destination[];
|
|
559
|
-
/**
|
|
560
|
-
* Whether postal code is required to support delivery calculations.
|
|
561
|
-
* @deprecated Whether postal code is required to support delivery calculations.
|
|
562
|
-
* @targetRemovalDate 2025-12-31
|
|
563
|
-
*/
|
|
564
|
-
postalCodeRequired?: boolean | null;
|
|
565
|
-
/**
|
|
566
|
-
* List of countries and subdivisions and their delivery destination properties
|
|
529
|
+
* Countries the site delivers to, with their delivery destination properties.
|
|
530
|
+
*
|
|
531
|
+
* A country without `deliveryDestinationProperties` is delivered to only in the subdivisions listed in its `subdivisions`.
|
|
567
532
|
* @maxSize 195
|
|
568
533
|
*/
|
|
569
534
|
countries?: CountryDeliveryProperties[];
|
|
570
|
-
/** Delivery destination properties for Rest Of World */
|
|
571
|
-
restOfWorld?: DeliveryDestinationProperties;
|
|
572
|
-
}
|
|
573
|
-
declare enum DestinationScope {
|
|
574
|
-
/** Specific destinations are configured. */
|
|
575
|
-
SPECIFIC_DESTINATIONS = "SPECIFIC_DESTINATIONS",
|
|
576
|
-
/** All destinations worldwide. */
|
|
577
|
-
WORLDWIDE = "WORLDWIDE"
|
|
578
|
-
}
|
|
579
|
-
/** @enumType */
|
|
580
|
-
type DestinationScopeWithLiterals = DestinationScope | 'SPECIFIC_DESTINATIONS' | 'WORLDWIDE';
|
|
581
|
-
/** Geographic destination for a delivery region. */
|
|
582
|
-
interface Destination {
|
|
583
|
-
/**
|
|
584
|
-
* 2-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
585
|
-
* @format COUNTRY
|
|
586
|
-
*/
|
|
587
|
-
countryCode?: string;
|
|
588
535
|
/**
|
|
589
|
-
*
|
|
536
|
+
* Delivery destination properties for every country that isn't listed in `countries`.
|
|
590
537
|
*
|
|
591
|
-
*
|
|
592
|
-
* `AT`, `BE`, `BS`, `CH`, `CI`, `CZ`, `DO`, `GR`, `NO`, `PL`, `RS`, `SD`, `SI`, `SK`, `SN`.
|
|
593
|
-
* @maxSize 100
|
|
594
|
-
* @minLength 1
|
|
595
|
-
* @maxLength 256
|
|
538
|
+
* Returned only when the site delivers to the rest of the world.
|
|
596
539
|
*/
|
|
597
|
-
|
|
540
|
+
restOfWorld?: DeliveryDestinationProperties;
|
|
598
541
|
}
|
|
599
542
|
interface CountryDeliveryProperties {
|
|
600
543
|
/**
|
|
@@ -727,6 +670,50 @@ interface StreetAddress {
|
|
|
727
670
|
/** Street name. */
|
|
728
671
|
name?: string;
|
|
729
672
|
}
|
|
673
|
+
interface BusinessLocale {
|
|
674
|
+
/**
|
|
675
|
+
* Currency the business accepts payments in. Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
676
|
+
*
|
|
677
|
+
* Default: `USD`
|
|
678
|
+
* @format CURRENCY
|
|
679
|
+
*/
|
|
680
|
+
currency?: string;
|
|
681
|
+
/**
|
|
682
|
+
* Language the business uses for site content, emails, and notifications. Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
|
|
683
|
+
*
|
|
684
|
+
* Default: `en`
|
|
685
|
+
* @format LANGUAGE
|
|
686
|
+
*/
|
|
687
|
+
language?: string;
|
|
688
|
+
/**
|
|
689
|
+
* Locale for date, number, and measurement formatting.
|
|
690
|
+
*
|
|
691
|
+
* Default: `en-US`
|
|
692
|
+
*/
|
|
693
|
+
locale?: Locale;
|
|
694
|
+
/** Weight unit, based on locale. */
|
|
695
|
+
weightUnit?: WeightUnitWithLiterals;
|
|
696
|
+
/** Unit system, based on locale. */
|
|
697
|
+
unitSystem?: UnitSystemWithLiterals;
|
|
698
|
+
}
|
|
699
|
+
declare enum WeightUnit {
|
|
700
|
+
/** Weight unit can't be classified due to an error. */
|
|
701
|
+
UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
|
|
702
|
+
/** Kilograms. */
|
|
703
|
+
KG = "KG",
|
|
704
|
+
/** Pounds. */
|
|
705
|
+
LB = "LB"
|
|
706
|
+
}
|
|
707
|
+
/** @enumType */
|
|
708
|
+
type WeightUnitWithLiterals = WeightUnit | 'UNSPECIFIED_WEIGHT_UNIT' | 'KG' | 'LB';
|
|
709
|
+
declare enum UnitSystem {
|
|
710
|
+
/** Imperial unit system. For example, inches, feet, pounds, ounces, etc. */
|
|
711
|
+
IMPERIAL = "IMPERIAL",
|
|
712
|
+
/** Metric unit system. For example, centimeters, kilometers, grams, etc. */
|
|
713
|
+
METRIC = "METRIC"
|
|
714
|
+
}
|
|
715
|
+
/** @enumType */
|
|
716
|
+
type UnitSystemWithLiterals = UnitSystem | 'IMPERIAL' | 'METRIC';
|
|
730
717
|
interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
731
718
|
/**
|
|
732
719
|
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
@@ -886,7 +873,7 @@ interface URIs {
|
|
|
886
873
|
}
|
|
887
874
|
interface GetEcommerceSettingsRequest {
|
|
888
875
|
/**
|
|
889
|
-
*
|
|
876
|
+
* Settings to include in the response.
|
|
890
877
|
* @minSize 1
|
|
891
878
|
* @maxSize 25
|
|
892
879
|
*/
|
|
@@ -901,18 +888,19 @@ declare enum RequestedFields {
|
|
|
901
888
|
DELIVERY = "DELIVERY",
|
|
902
889
|
PREMIUM_SITE = "PREMIUM_SITE",
|
|
903
890
|
BUSINESS_INFO = "BUSINESS_INFO",
|
|
904
|
-
PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN = "PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN"
|
|
891
|
+
PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN = "PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN",
|
|
892
|
+
BUSINESS_LOCALE = "BUSINESS_LOCALE"
|
|
905
893
|
}
|
|
906
894
|
/** @enumType */
|
|
907
|
-
type RequestedFieldsWithLiterals = RequestedFields | 'ADDITIONAL_FEES_SERVICE_PLUGIN' | 'VALIDATIONS_SERVICE_PLUGIN' | 'TAX' | 'DISCOUNT_RULES' | 'CHECKOUT' | 'DELIVERY' | 'PREMIUM_SITE' | 'BUSINESS_INFO' | 'PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN';
|
|
895
|
+
type RequestedFieldsWithLiterals = RequestedFields | 'ADDITIONAL_FEES_SERVICE_PLUGIN' | 'VALIDATIONS_SERVICE_PLUGIN' | 'TAX' | 'DISCOUNT_RULES' | 'CHECKOUT' | 'DELIVERY' | 'PREMIUM_SITE' | 'BUSINESS_INFO' | 'PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN' | 'BUSINESS_LOCALE';
|
|
908
896
|
interface GetEcommerceSettingsResponse {
|
|
909
|
-
/**
|
|
897
|
+
/** Retrieved eCommerce settings. */
|
|
910
898
|
ecommerceSettings?: EcommerceSettings;
|
|
911
|
-
/**
|
|
899
|
+
/** Requested fields that couldn't be retrieved. These fields are left out of `ecommerceSettings`. */
|
|
912
900
|
errors?: Error[];
|
|
913
901
|
}
|
|
914
902
|
interface Error {
|
|
915
|
-
/**
|
|
903
|
+
/** Requested field that couldn't be retrieved. */
|
|
916
904
|
requestedField?: RequestedFieldsWithLiterals;
|
|
917
905
|
}
|
|
918
906
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
@@ -1686,4 +1674,4 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
1686
1674
|
};
|
|
1687
1675
|
declare function getEcommerceSettings(): __PublicMethodMetaInfo<'GET', {}, GetEcommerceSettingsRequest$1, GetEcommerceSettingsRequest, GetEcommerceSettingsResponse$1, GetEcommerceSettingsResponse>;
|
|
1688
1676
|
|
|
1689
|
-
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 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
|
|
1677
|
+
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 };
|
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.41",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"service-plugins"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@wix/sdk-runtime": "^1.0.
|
|
33
|
-
"@wix/sdk-types": "^1.17.
|
|
32
|
+
"@wix/sdk-runtime": "^1.0.28",
|
|
33
|
+
"@wix/sdk-types": "^1.17.12"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"tsup": "^8.4.0",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"fqdn": "wix.ecom.v1.ecommerce_settings"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "0890fa27a891e348c6250479fb8be75fb040c48efb8a0f34dca6b4f4"
|
|
54
54
|
}
|