@wix/auto_sdk_ecom_ecommerce-settings 1.0.40 → 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.
@@ -1,55 +1,32 @@
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
- * @internal
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;
49
- /**
50
- * Business locale: currency, language, locale, weight unit and unit system.
51
- * @internal
52
- */
29
+ /** Business locale: currency, language, locale, weight unit and unit system. */
53
30
  businessLocale?: BusinessLocale;
54
31
  }
55
32
  interface ServicePluginConfiguration {
@@ -507,57 +484,18 @@ declare enum CheckoutBillingFields {
507
484
  type CheckoutBillingFieldsWithLiterals = CheckoutBillingFields | 'All_FIELDS' | 'MINIMUM_REQUIRED_FIELDS';
508
485
  interface DeliveryConfiguration {
509
486
  /**
510
- * Scope of destinations, when `WORLDWIDE` is selected, the destinations list will be empty.
511
- * @deprecated Scope of destinations, when `WORLDWIDE` is selected, the destinations list will be empty.
512
- * @targetRemovalDate 2025-12-31
513
- */
514
- destinationScope?: DestinationScopeWithLiterals;
515
- /**
516
- * The list of destinations.
517
- * @maxSize 200
518
- * @deprecated The list of destinations.
519
- * @targetRemovalDate 2025-12-31
520
- */
521
- destinations?: Destination[];
522
- /**
523
- * Whether postal code is required to support delivery calculations.
524
- * @deprecated Whether postal code is required to support delivery calculations.
525
- * @targetRemovalDate 2025-12-31
526
- */
527
- postalCodeRequired?: boolean | null;
528
- /**
529
- * 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`.
530
490
  * @maxSize 195
531
491
  */
532
492
  countries?: CountryDeliveryProperties[];
533
- /** Delivery destination properties for Rest Of World */
534
- restOfWorld?: DeliveryDestinationProperties;
535
- }
536
- declare enum DestinationScope {
537
- /** Specific destinations are configured. */
538
- SPECIFIC_DESTINATIONS = "SPECIFIC_DESTINATIONS",
539
- /** All destinations worldwide. */
540
- WORLDWIDE = "WORLDWIDE"
541
- }
542
- /** @enumType */
543
- type DestinationScopeWithLiterals = DestinationScope | 'SPECIFIC_DESTINATIONS' | 'WORLDWIDE';
544
- /** Geographic destination for a delivery region. */
545
- interface Destination {
546
- /**
547
- * 2-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
548
- * @format COUNTRY
549
- */
550
- countryCode?: string;
551
493
  /**
552
- * Subdivision codes in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format. For example, `"US-CA"` for California. If empty, the delivery region applies to the entire country.
494
+ * Delivery destination properties for every country that isn't listed in `countries`.
553
495
  *
554
- * The following countries don't support subdivision-level delivery and require an empty `subdivisions` list. Sending subdivisions for these countries fails with `SUBDIVISIONS_UNSUPPORTED_FOR_COUNTRY`:
555
- * `AT`, `BE`, `BS`, `CH`, `CI`, `CZ`, `DO`, `GR`, `NO`, `PL`, `RS`, `SD`, `SI`, `SK`, `SN`.
556
- * @maxSize 100
557
- * @minLength 1
558
- * @maxLength 256
496
+ * Returned only when the site delivers to the rest of the world.
559
497
  */
560
- subdivisions?: string[];
498
+ restOfWorld?: DeliveryDestinationProperties;
561
499
  }
562
500
  interface CountryDeliveryProperties {
563
501
  /**
@@ -692,18 +630,24 @@ interface StreetAddress {
692
630
  }
693
631
  interface BusinessLocale {
694
632
  /**
695
- * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
696
- * Payment currency for the business (default is 'USD').
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`
697
636
  * @format CURRENCY
698
637
  */
699
638
  currency?: string;
700
639
  /**
701
- * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
702
- * Used by the business for site content, emails, notifications, etc (default is 'en').
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`
703
643
  * @format LANGUAGE
704
644
  */
705
645
  language?: string;
706
- /** Locale for date, number, and measurement formatting (default is `en-US`). */
646
+ /**
647
+ * Locale for date, number, and measurement formatting.
648
+ *
649
+ * Default: `en-US`
650
+ */
707
651
  locale?: Locale;
708
652
  /** Weight unit, based on locale. */
709
653
  weightUnit?: WeightUnitWithLiterals;
@@ -887,7 +831,7 @@ interface URIs {
887
831
  }
888
832
  interface GetEcommerceSettingsRequest {
889
833
  /**
890
- * Fields to include in the response.
834
+ * Settings to include in the response.
891
835
  * @minSize 1
892
836
  * @maxSize 25
893
837
  */
@@ -908,13 +852,13 @@ declare enum RequestedFields {
908
852
  /** @enumType */
909
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';
910
854
  interface GetEcommerceSettingsResponse {
911
- /** Ecommerce settings. */
855
+ /** Retrieved eCommerce settings. */
912
856
  ecommerceSettings?: EcommerceSettings;
913
- /** A list of errors that occurred while retrieving the eCommerce settings. */
857
+ /** Requested fields that couldn't be retrieved. These fields are left out of `ecommerceSettings`. */
914
858
  errors?: Error[];
915
859
  }
916
860
  interface Error {
917
- /** The requested field the error is related to. */
861
+ /** Requested field that couldn't be retrieved. */
918
862
  requestedField?: RequestedFieldsWithLiterals;
919
863
  }
920
864
  interface DomainEvent extends DomainEventBodyOneOf {
@@ -1632,8 +1576,10 @@ type GetEcommerceSettingsApplicationErrors = {
1632
1576
  data?: Record<string, any>;
1633
1577
  };
1634
1578
  /**
1635
- * Retrieves site eCommerce settings.
1636
- * @param fields - Fields to include in the response.
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.
1637
1583
  * @public
1638
1584
  * @documentationMaturity preview
1639
1585
  * @requiredField fields
@@ -1641,8 +1587,8 @@ type GetEcommerceSettingsApplicationErrors = {
1641
1587
  * @applicableIdentity APP
1642
1588
  * @fqn wix.ecom.ecommerce_settings.v1.EcommerceSettingsService.GetEcommerceSettings
1643
1589
  */
1644
- declare function getEcommerceSettings(fields: RequestedFieldsWithLiterals[]): Promise<NonNullablePaths<GetEcommerceSettingsResponse, `errors` | `errors.${number}.requestedField`, 2> & {
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> & {
1645
1591
  __applicationErrorsType?: GetEcommerceSettingsApplicationErrors;
1646
1592
  }>;
1647
1593
 
1648
- 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 Destination, DestinationScope, type DestinationScopeWithLiterals, 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 };
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,56 +1,33 @@
1
1
  import { GetEcommerceSettingsRequest as GetEcommerceSettingsRequest$1, GetEcommerceSettingsResponse as GetEcommerceSettingsResponse$1 } from './index.typings.js';
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
- * @internal
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;
50
- /**
51
- * Business locale: currency, language, locale, weight unit and unit system.
52
- * @internal
53
- */
30
+ /** Business locale: currency, language, locale, weight unit and unit system. */
54
31
  businessLocale?: BusinessLocale;
55
32
  }
56
33
  interface ServicePluginConfiguration {
@@ -549,57 +526,18 @@ declare enum CheckoutBillingFields {
549
526
  type CheckoutBillingFieldsWithLiterals = CheckoutBillingFields | 'All_FIELDS' | 'MINIMUM_REQUIRED_FIELDS';
550
527
  interface DeliveryConfiguration {
551
528
  /**
552
- * Scope of destinations, when `WORLDWIDE` is selected, the destinations list will be empty.
553
- * @deprecated Scope of destinations, when `WORLDWIDE` is selected, the destinations list will be empty.
554
- * @targetRemovalDate 2025-12-31
555
- */
556
- destinationScope?: DestinationScopeWithLiterals;
557
- /**
558
- * The list of destinations.
559
- * @maxSize 200
560
- * @deprecated The list of destinations.
561
- * @targetRemovalDate 2025-12-31
562
- */
563
- destinations?: Destination[];
564
- /**
565
- * Whether postal code is required to support delivery calculations.
566
- * @deprecated Whether postal code is required to support delivery calculations.
567
- * @targetRemovalDate 2025-12-31
568
- */
569
- postalCodeRequired?: boolean | null;
570
- /**
571
- * 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`.
572
532
  * @maxSize 195
573
533
  */
574
534
  countries?: CountryDeliveryProperties[];
575
- /** Delivery destination properties for Rest Of World */
576
- restOfWorld?: DeliveryDestinationProperties;
577
- }
578
- declare enum DestinationScope {
579
- /** Specific destinations are configured. */
580
- SPECIFIC_DESTINATIONS = "SPECIFIC_DESTINATIONS",
581
- /** All destinations worldwide. */
582
- WORLDWIDE = "WORLDWIDE"
583
- }
584
- /** @enumType */
585
- type DestinationScopeWithLiterals = DestinationScope | 'SPECIFIC_DESTINATIONS' | 'WORLDWIDE';
586
- /** Geographic destination for a delivery region. */
587
- interface Destination {
588
- /**
589
- * 2-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
590
- * @format COUNTRY
591
- */
592
- countryCode?: string;
593
535
  /**
594
- * Subdivision codes in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format. For example, `"US-CA"` for California. If empty, the delivery region applies to the entire country.
536
+ * Delivery destination properties for every country that isn't listed in `countries`.
595
537
  *
596
- * The following countries don't support subdivision-level delivery and require an empty `subdivisions` list. Sending subdivisions for these countries fails with `SUBDIVISIONS_UNSUPPORTED_FOR_COUNTRY`:
597
- * `AT`, `BE`, `BS`, `CH`, `CI`, `CZ`, `DO`, `GR`, `NO`, `PL`, `RS`, `SD`, `SI`, `SK`, `SN`.
598
- * @maxSize 100
599
- * @minLength 1
600
- * @maxLength 256
538
+ * Returned only when the site delivers to the rest of the world.
601
539
  */
602
- subdivisions?: string[];
540
+ restOfWorld?: DeliveryDestinationProperties;
603
541
  }
604
542
  interface CountryDeliveryProperties {
605
543
  /**
@@ -734,18 +672,24 @@ interface StreetAddress {
734
672
  }
735
673
  interface BusinessLocale {
736
674
  /**
737
- * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
738
- * Payment currency for the business (default is 'USD').
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`
739
678
  * @format CURRENCY
740
679
  */
741
680
  currency?: string;
742
681
  /**
743
- * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
744
- * Used by the business for site content, emails, notifications, etc (default is 'en').
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`
745
685
  * @format LANGUAGE
746
686
  */
747
687
  language?: string;
748
- /** Locale for date, number, and measurement formatting (default is `en-US`). */
688
+ /**
689
+ * Locale for date, number, and measurement formatting.
690
+ *
691
+ * Default: `en-US`
692
+ */
749
693
  locale?: Locale;
750
694
  /** Weight unit, based on locale. */
751
695
  weightUnit?: WeightUnitWithLiterals;
@@ -929,7 +873,7 @@ interface URIs {
929
873
  }
930
874
  interface GetEcommerceSettingsRequest {
931
875
  /**
932
- * Fields to include in the response.
876
+ * Settings to include in the response.
933
877
  * @minSize 1
934
878
  * @maxSize 25
935
879
  */
@@ -950,13 +894,13 @@ declare enum RequestedFields {
950
894
  /** @enumType */
951
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';
952
896
  interface GetEcommerceSettingsResponse {
953
- /** Ecommerce settings. */
897
+ /** Retrieved eCommerce settings. */
954
898
  ecommerceSettings?: EcommerceSettings;
955
- /** A list of errors that occurred while retrieving the eCommerce settings. */
899
+ /** Requested fields that couldn't be retrieved. These fields are left out of `ecommerceSettings`. */
956
900
  errors?: Error[];
957
901
  }
958
902
  interface Error {
959
- /** The requested field the error is related to. */
903
+ /** Requested field that couldn't be retrieved. */
960
904
  requestedField?: RequestedFieldsWithLiterals;
961
905
  }
962
906
  interface DomainEvent extends DomainEventBodyOneOf {
@@ -1730,4 +1674,4 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
1730
1674
  };
1731
1675
  declare function getEcommerceSettings(): __PublicMethodMetaInfo<'GET', {}, GetEcommerceSettingsRequest$1, GetEcommerceSettingsRequest, GetEcommerceSettingsResponse$1, GetEcommerceSettingsResponse>;
1732
1676
 
1733
- 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 Destination as DestinationOriginal, DestinationScope as DestinationScopeOriginal, type DestinationScopeWithLiterals as DestinationScopeWithLiteralsOriginal, 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 };
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 };
@@ -1,14 +1,16 @@
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, Destination, DestinationScope, DestinationScopeWithLiterals, 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, 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 {
7
7
  /**
8
- * Retrieves site eCommerce settings.
9
- * @param - Fields to include in the response.
8
+ * Retrieves a site's eCommerce settings.
9
+ *
10
+ * 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.
11
+ * @param - Settings to include in the response.
10
12
  */
11
- (fields: RequestedFieldsWithLiterals[]): Promise<NonNullablePaths<GetEcommerceSettingsResponse, `errors` | `errors.${number}.requestedField`, 2> & {
13
+ (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> & {
12
14
  __applicationErrorsType?: GetEcommerceSettingsApplicationErrors;
13
15
  }>;
14
16
  }