@wix/auto_sdk_ecom_ecommerce-settings 1.0.44 → 1.0.46
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 +39 -14
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +38 -13
- 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 +39 -14
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +38 -13
- 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 +33 -19
- package/build/internal/cjs/meta.d.ts +32 -18
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.typings.d.mts +33 -19
- package/build/internal/es/meta.d.mts +32 -18
- 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
|
/**
|
|
@@ -87,8 +87,9 @@ interface CrossBorderTaxConfiguration {
|
|
|
87
87
|
}
|
|
88
88
|
interface DiscountRulesConfiguration {
|
|
89
89
|
/**
|
|
90
|
-
* Whether at least one discount rule
|
|
91
|
-
*
|
|
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).
|
|
92
93
|
*/
|
|
93
94
|
active?: boolean | null;
|
|
94
95
|
}
|
|
@@ -240,14 +241,17 @@ interface CheckoutFields {
|
|
|
240
241
|
*/
|
|
241
242
|
purchaseRecommendationsEnabled?: boolean | null;
|
|
242
243
|
/**
|
|
243
|
-
* Who can enter
|
|
244
|
+
* Who can enter test mode on the site's checkout. In test mode, the regular payment methods are
|
|
244
245
|
* hidden and checkout completes with a dedicated test payment method, so no real payment is
|
|
245
|
-
* processed. The resulting order is
|
|
246
|
-
*
|
|
247
|
-
*
|
|
246
|
+
* processed. The resulting order is a
|
|
247
|
+
* [test order](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/orders/test-orders),
|
|
248
|
+
* and the order's `demo` field is `true`.
|
|
249
|
+
*
|
|
250
|
+
* Test orders reduce inventory, go through fulfillment, and trigger transactional emails, but
|
|
251
|
+
* they're excluded from sales reports and analytics. Most order events aren't sent to apps or
|
|
252
|
+
* sites for test orders.
|
|
248
253
|
*
|
|
249
254
|
* Default: `DISABLED`
|
|
250
|
-
* @internal
|
|
251
255
|
*/
|
|
252
256
|
testMode?: TestModeWithLiterals;
|
|
253
257
|
/**
|
|
@@ -299,13 +303,13 @@ interface CheckboxField {
|
|
|
299
303
|
declare enum TestMode {
|
|
300
304
|
/** Test Mode is off everywhere. */
|
|
301
305
|
DISABLED = "DISABLED",
|
|
302
|
-
/** Every checkout on the site
|
|
306
|
+
/** Every checkout on the site places a test order. This value is temporary: `testMode` changes back to `DISABLED` 30 minutes after it changes to `ENABLED_TO_ALL`. Setting `ENABLED_TO_ALL` again while `testMode` is already `ENABLED_TO_ALL` doesn't restart the 30 minutes. */
|
|
303
307
|
ENABLED_TO_ALL = "ENABLED_TO_ALL",
|
|
304
308
|
/**
|
|
305
309
|
* Only the site owner and collaborators enter Test Mode. Other visitors get the regular checkout.
|
|
306
310
|
*
|
|
307
|
-
* >**Note:** has no effect on sites without a Wix member area, such as Headless sites. On these
|
|
308
|
-
* sites, `DISABLED` and `ENABLED_TO_OWNER_AND_COLLABORATORS` behave the same
|
|
311
|
+
* >**Note:** This value has no effect on sites without a Wix member area, such as Headless sites. On these
|
|
312
|
+
* sites, `DISABLED` and `ENABLED_TO_OWNER_AND_COLLABORATORS` behave the same. Use `ENABLED_TO_ALL` instead.
|
|
309
313
|
*/
|
|
310
314
|
ENABLED_TO_OWNER_AND_COLLABORATORS = "ENABLED_TO_OWNER_AND_COLLABORATORS"
|
|
311
315
|
}
|
|
@@ -549,12 +553,12 @@ interface DeliveryConfiguration {
|
|
|
549
553
|
/**
|
|
550
554
|
* Countries the site delivers to, with their delivery destination properties.
|
|
551
555
|
*
|
|
552
|
-
*
|
|
556
|
+
* When `restOfWorld` isn't returned, a country without `deliveryDestinationProperties` is delivered to only in the subdivisions listed in its `subdivisions`.
|
|
553
557
|
* @maxSize 195
|
|
554
558
|
*/
|
|
555
559
|
countries?: CountryDeliveryProperties[];
|
|
556
560
|
/**
|
|
557
|
-
* Delivery destination properties for every
|
|
561
|
+
* Delivery destination properties for every destination that `countries` doesn't cover: countries that aren't listed, and unlisted subdivisions of a country without `deliveryDestinationProperties`.
|
|
558
562
|
*
|
|
559
563
|
* Returned only when the site delivers to the rest of the world.
|
|
560
564
|
*/
|
|
@@ -901,15 +905,25 @@ interface GetEcommerceSettingsRequest {
|
|
|
901
905
|
fields: RequestedFieldsWithLiterals[];
|
|
902
906
|
}
|
|
903
907
|
declare enum RequestedFields {
|
|
908
|
+
/** Additional Fees service plugin configuration. Returned in `additionalFeesServicePlugin`. */
|
|
904
909
|
ADDITIONAL_FEES_SERVICE_PLUGIN = "ADDITIONAL_FEES_SERVICE_PLUGIN",
|
|
910
|
+
/** Validations service plugin configuration. Returned in `validationsServicePlugin`. */
|
|
905
911
|
VALIDATIONS_SERVICE_PLUGIN = "VALIDATIONS_SERVICE_PLUGIN",
|
|
912
|
+
/** Tax configuration. Returned in `tax`. */
|
|
906
913
|
TAX = "TAX",
|
|
914
|
+
/** Discount rules configuration. Returned in `discountRules`. */
|
|
907
915
|
DISCOUNT_RULES = "DISCOUNT_RULES",
|
|
916
|
+
/** Checkout settings. Returned in `checkout`. */
|
|
908
917
|
CHECKOUT = "CHECKOUT",
|
|
918
|
+
/** Delivery destinations. Returned in `delivery`. */
|
|
909
919
|
DELIVERY = "DELIVERY",
|
|
920
|
+
/** Premium status: whether the site has a premium plan that supports accepting payments. Returned in `premiumSite`. */
|
|
910
921
|
PREMIUM_SITE = "PREMIUM_SITE",
|
|
922
|
+
/** Business information. Returned in `businessInfo`. */
|
|
911
923
|
BUSINESS_INFO = "BUSINESS_INFO",
|
|
924
|
+
/** Purchase recommendations service plugin configuration. Returned in `purchaseRecommendationsServicePlugin`. */
|
|
912
925
|
PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN = "PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN",
|
|
926
|
+
/** Business locale. Returned in `businessLocale`. */
|
|
913
927
|
BUSINESS_LOCALE = "BUSINESS_LOCALE"
|
|
914
928
|
}
|
|
915
929
|
/** @enumType */
|
|
@@ -10,7 +10,7 @@ interface GetEcommerceSettingsSignature {
|
|
|
10
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
11
|
* @param - Settings to include in the response.
|
|
12
12
|
*/
|
|
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> & {
|
|
13
|
+
(fields: RequestedFieldsWithLiterals[]): Promise<NonNullablePaths<GetEcommerceSettingsResponse, `ecommerceSettings.additionalFeesServicePlugin.activeProviders` | `ecommerceSettings.additionalFeesServicePlugin.activeProviders.${number}.appId` | `ecommerceSettings.checkout.checkoutFields.testMode` | `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> & {
|
|
14
14
|
__applicationErrorsType?: GetEcommerceSettingsApplicationErrors;
|
|
15
15
|
}>;
|
|
16
16
|
}
|
|
@@ -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
|
/**
|
|
@@ -86,8 +86,9 @@ interface CrossBorderTaxConfiguration {
|
|
|
86
86
|
}
|
|
87
87
|
interface DiscountRulesConfiguration {
|
|
88
88
|
/**
|
|
89
|
-
* Whether at least one discount rule
|
|
90
|
-
*
|
|
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).
|
|
91
92
|
*/
|
|
92
93
|
active?: boolean | null;
|
|
93
94
|
}
|
|
@@ -239,14 +240,17 @@ interface CheckoutFields {
|
|
|
239
240
|
*/
|
|
240
241
|
purchaseRecommendationsEnabled?: boolean | null;
|
|
241
242
|
/**
|
|
242
|
-
* Who can enter
|
|
243
|
+
* Who can enter test mode on the site's checkout. In test mode, the regular payment methods are
|
|
243
244
|
* hidden and checkout completes with a dedicated test payment method, so no real payment is
|
|
244
|
-
* processed. The resulting order is
|
|
245
|
-
*
|
|
246
|
-
*
|
|
245
|
+
* processed. The resulting order is a
|
|
246
|
+
* [test order](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/orders/test-orders),
|
|
247
|
+
* and the order's `demo` field is `true`.
|
|
248
|
+
*
|
|
249
|
+
* Test orders reduce inventory, go through fulfillment, and trigger transactional emails, but
|
|
250
|
+
* they're excluded from sales reports and analytics. Most order events aren't sent to apps or
|
|
251
|
+
* sites for test orders.
|
|
247
252
|
*
|
|
248
253
|
* Default: `DISABLED`
|
|
249
|
-
* @internal
|
|
250
254
|
*/
|
|
251
255
|
testMode?: TestModeWithLiterals;
|
|
252
256
|
/**
|
|
@@ -298,13 +302,13 @@ interface CheckboxField {
|
|
|
298
302
|
declare enum TestMode {
|
|
299
303
|
/** Test Mode is off everywhere. */
|
|
300
304
|
DISABLED = "DISABLED",
|
|
301
|
-
/** Every checkout on the site
|
|
305
|
+
/** Every checkout on the site places a test order. This value is temporary: `testMode` changes back to `DISABLED` 30 minutes after it changes to `ENABLED_TO_ALL`. Setting `ENABLED_TO_ALL` again while `testMode` is already `ENABLED_TO_ALL` doesn't restart the 30 minutes. */
|
|
302
306
|
ENABLED_TO_ALL = "ENABLED_TO_ALL",
|
|
303
307
|
/**
|
|
304
308
|
* Only the site owner and collaborators enter Test Mode. Other visitors get the regular checkout.
|
|
305
309
|
*
|
|
306
|
-
* >**Note:** has no effect on sites without a Wix member area, such as Headless sites. On these
|
|
307
|
-
* sites, `DISABLED` and `ENABLED_TO_OWNER_AND_COLLABORATORS` behave the same
|
|
310
|
+
* >**Note:** This value has no effect on sites without a Wix member area, such as Headless sites. On these
|
|
311
|
+
* sites, `DISABLED` and `ENABLED_TO_OWNER_AND_COLLABORATORS` behave the same. Use `ENABLED_TO_ALL` instead.
|
|
308
312
|
*/
|
|
309
313
|
ENABLED_TO_OWNER_AND_COLLABORATORS = "ENABLED_TO_OWNER_AND_COLLABORATORS"
|
|
310
314
|
}
|
|
@@ -507,12 +511,12 @@ interface DeliveryConfiguration {
|
|
|
507
511
|
/**
|
|
508
512
|
* Countries the site delivers to, with their delivery destination properties.
|
|
509
513
|
*
|
|
510
|
-
*
|
|
514
|
+
* When `restOfWorld` isn't returned, a country without `deliveryDestinationProperties` is delivered to only in the subdivisions listed in its `subdivisions`.
|
|
511
515
|
* @maxSize 195
|
|
512
516
|
*/
|
|
513
517
|
countries?: CountryDeliveryProperties[];
|
|
514
518
|
/**
|
|
515
|
-
* Delivery destination properties for every
|
|
519
|
+
* Delivery destination properties for every destination that `countries` doesn't cover: countries that aren't listed, and unlisted subdivisions of a country without `deliveryDestinationProperties`.
|
|
516
520
|
*
|
|
517
521
|
* Returned only when the site delivers to the rest of the world.
|
|
518
522
|
*/
|
|
@@ -859,15 +863,25 @@ interface GetEcommerceSettingsRequest {
|
|
|
859
863
|
fields: RequestedFieldsWithLiterals[];
|
|
860
864
|
}
|
|
861
865
|
declare enum RequestedFields {
|
|
866
|
+
/** Additional Fees service plugin configuration. Returned in `additionalFeesServicePlugin`. */
|
|
862
867
|
ADDITIONAL_FEES_SERVICE_PLUGIN = "ADDITIONAL_FEES_SERVICE_PLUGIN",
|
|
868
|
+
/** Validations service plugin configuration. Returned in `validationsServicePlugin`. */
|
|
863
869
|
VALIDATIONS_SERVICE_PLUGIN = "VALIDATIONS_SERVICE_PLUGIN",
|
|
870
|
+
/** Tax configuration. Returned in `tax`. */
|
|
864
871
|
TAX = "TAX",
|
|
872
|
+
/** Discount rules configuration. Returned in `discountRules`. */
|
|
865
873
|
DISCOUNT_RULES = "DISCOUNT_RULES",
|
|
874
|
+
/** Checkout settings. Returned in `checkout`. */
|
|
866
875
|
CHECKOUT = "CHECKOUT",
|
|
876
|
+
/** Delivery destinations. Returned in `delivery`. */
|
|
867
877
|
DELIVERY = "DELIVERY",
|
|
878
|
+
/** Premium status: whether the site has a premium plan that supports accepting payments. Returned in `premiumSite`. */
|
|
868
879
|
PREMIUM_SITE = "PREMIUM_SITE",
|
|
880
|
+
/** Business information. Returned in `businessInfo`. */
|
|
869
881
|
BUSINESS_INFO = "BUSINESS_INFO",
|
|
882
|
+
/** Purchase recommendations service plugin configuration. Returned in `purchaseRecommendationsServicePlugin`. */
|
|
870
883
|
PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN = "PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN",
|
|
884
|
+
/** Business locale. Returned in `businessLocale`. */
|
|
871
885
|
BUSINESS_LOCALE = "BUSINESS_LOCALE"
|
|
872
886
|
}
|
|
873
887
|
/** @enumType */
|
|
@@ -1608,7 +1622,7 @@ type GetEcommerceSettingsApplicationErrors = {
|
|
|
1608
1622
|
* @applicableIdentity APP
|
|
1609
1623
|
* @fqn wix.ecom.ecommerce_settings.v1.EcommerceSettingsService.GetEcommerceSettings
|
|
1610
1624
|
*/
|
|
1611
|
-
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> & {
|
|
1625
|
+
declare function getEcommerceSettings(fields: RequestedFieldsWithLiterals[]): Promise<NonNullablePaths<GetEcommerceSettingsResponse, `ecommerceSettings.additionalFeesServicePlugin.activeProviders` | `ecommerceSettings.additionalFeesServicePlugin.activeProviders.${number}.appId` | `ecommerceSettings.checkout.checkoutFields.testMode` | `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> & {
|
|
1612
1626
|
__applicationErrorsType?: GetEcommerceSettingsApplicationErrors;
|
|
1613
1627
|
}>;
|
|
1614
1628
|
|
|
@@ -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
|
/**
|
|
@@ -87,8 +87,9 @@ interface CrossBorderTaxConfiguration {
|
|
|
87
87
|
}
|
|
88
88
|
interface DiscountRulesConfiguration {
|
|
89
89
|
/**
|
|
90
|
-
* Whether at least one discount rule
|
|
91
|
-
*
|
|
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).
|
|
92
93
|
*/
|
|
93
94
|
active?: boolean | null;
|
|
94
95
|
}
|
|
@@ -240,14 +241,17 @@ interface CheckoutFields {
|
|
|
240
241
|
*/
|
|
241
242
|
purchaseRecommendationsEnabled?: boolean | null;
|
|
242
243
|
/**
|
|
243
|
-
* Who can enter
|
|
244
|
+
* Who can enter test mode on the site's checkout. In test mode, the regular payment methods are
|
|
244
245
|
* hidden and checkout completes with a dedicated test payment method, so no real payment is
|
|
245
|
-
* processed. The resulting order is
|
|
246
|
-
*
|
|
247
|
-
*
|
|
246
|
+
* processed. The resulting order is a
|
|
247
|
+
* [test order](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/orders/test-orders),
|
|
248
|
+
* and the order's `demo` field is `true`.
|
|
249
|
+
*
|
|
250
|
+
* Test orders reduce inventory, go through fulfillment, and trigger transactional emails, but
|
|
251
|
+
* they're excluded from sales reports and analytics. Most order events aren't sent to apps or
|
|
252
|
+
* sites for test orders.
|
|
248
253
|
*
|
|
249
254
|
* Default: `DISABLED`
|
|
250
|
-
* @internal
|
|
251
255
|
*/
|
|
252
256
|
testMode?: TestModeWithLiterals;
|
|
253
257
|
/**
|
|
@@ -299,13 +303,13 @@ interface CheckboxField {
|
|
|
299
303
|
declare enum TestMode {
|
|
300
304
|
/** Test Mode is off everywhere. */
|
|
301
305
|
DISABLED = "DISABLED",
|
|
302
|
-
/** Every checkout on the site
|
|
306
|
+
/** Every checkout on the site places a test order. This value is temporary: `testMode` changes back to `DISABLED` 30 minutes after it changes to `ENABLED_TO_ALL`. Setting `ENABLED_TO_ALL` again while `testMode` is already `ENABLED_TO_ALL` doesn't restart the 30 minutes. */
|
|
303
307
|
ENABLED_TO_ALL = "ENABLED_TO_ALL",
|
|
304
308
|
/**
|
|
305
309
|
* Only the site owner and collaborators enter Test Mode. Other visitors get the regular checkout.
|
|
306
310
|
*
|
|
307
|
-
* >**Note:** has no effect on sites without a Wix member area, such as Headless sites. On these
|
|
308
|
-
* sites, `DISABLED` and `ENABLED_TO_OWNER_AND_COLLABORATORS` behave the same
|
|
311
|
+
* >**Note:** This value has no effect on sites without a Wix member area, such as Headless sites. On these
|
|
312
|
+
* sites, `DISABLED` and `ENABLED_TO_OWNER_AND_COLLABORATORS` behave the same. Use `ENABLED_TO_ALL` instead.
|
|
309
313
|
*/
|
|
310
314
|
ENABLED_TO_OWNER_AND_COLLABORATORS = "ENABLED_TO_OWNER_AND_COLLABORATORS"
|
|
311
315
|
}
|
|
@@ -549,12 +553,12 @@ interface DeliveryConfiguration {
|
|
|
549
553
|
/**
|
|
550
554
|
* Countries the site delivers to, with their delivery destination properties.
|
|
551
555
|
*
|
|
552
|
-
*
|
|
556
|
+
* When `restOfWorld` isn't returned, a country without `deliveryDestinationProperties` is delivered to only in the subdivisions listed in its `subdivisions`.
|
|
553
557
|
* @maxSize 195
|
|
554
558
|
*/
|
|
555
559
|
countries?: CountryDeliveryProperties[];
|
|
556
560
|
/**
|
|
557
|
-
* Delivery destination properties for every
|
|
561
|
+
* Delivery destination properties for every destination that `countries` doesn't cover: countries that aren't listed, and unlisted subdivisions of a country without `deliveryDestinationProperties`.
|
|
558
562
|
*
|
|
559
563
|
* Returned only when the site delivers to the rest of the world.
|
|
560
564
|
*/
|
|
@@ -901,15 +905,25 @@ interface GetEcommerceSettingsRequest {
|
|
|
901
905
|
fields: RequestedFieldsWithLiterals[];
|
|
902
906
|
}
|
|
903
907
|
declare enum RequestedFields {
|
|
908
|
+
/** Additional Fees service plugin configuration. Returned in `additionalFeesServicePlugin`. */
|
|
904
909
|
ADDITIONAL_FEES_SERVICE_PLUGIN = "ADDITIONAL_FEES_SERVICE_PLUGIN",
|
|
910
|
+
/** Validations service plugin configuration. Returned in `validationsServicePlugin`. */
|
|
905
911
|
VALIDATIONS_SERVICE_PLUGIN = "VALIDATIONS_SERVICE_PLUGIN",
|
|
912
|
+
/** Tax configuration. Returned in `tax`. */
|
|
906
913
|
TAX = "TAX",
|
|
914
|
+
/** Discount rules configuration. Returned in `discountRules`. */
|
|
907
915
|
DISCOUNT_RULES = "DISCOUNT_RULES",
|
|
916
|
+
/** Checkout settings. Returned in `checkout`. */
|
|
908
917
|
CHECKOUT = "CHECKOUT",
|
|
918
|
+
/** Delivery destinations. Returned in `delivery`. */
|
|
909
919
|
DELIVERY = "DELIVERY",
|
|
920
|
+
/** Premium status: whether the site has a premium plan that supports accepting payments. Returned in `premiumSite`. */
|
|
910
921
|
PREMIUM_SITE = "PREMIUM_SITE",
|
|
922
|
+
/** Business information. Returned in `businessInfo`. */
|
|
911
923
|
BUSINESS_INFO = "BUSINESS_INFO",
|
|
924
|
+
/** Purchase recommendations service plugin configuration. Returned in `purchaseRecommendationsServicePlugin`. */
|
|
912
925
|
PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN = "PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN",
|
|
926
|
+
/** Business locale. Returned in `businessLocale`. */
|
|
913
927
|
BUSINESS_LOCALE = "BUSINESS_LOCALE"
|
|
914
928
|
}
|
|
915
929
|
/** @enumType */
|
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.46",
|
|
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": "5656805056ca0cecb86eb18faa32d9f761e320c860d441afa6477e84"
|
|
54
54
|
}
|