@wix/auto_sdk_stores_catalog-imports-v-3 1.0.17 → 1.0.18

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.
@@ -69,7 +69,7 @@ interface ProductWithInventory extends ProductWithInventoryTypedPropertiesOneOf
69
69
  */
70
70
  revision?: string | null;
71
71
  /**
72
- * Product name.
72
+ * Product name. Translatable.
73
73
  * @minLength 1
74
74
  * @maxLength 80
75
75
  */
@@ -84,14 +84,14 @@ interface ProductWithInventory extends ProductWithInventoryTypedPropertiesOneOf
84
84
  /**
85
85
  * Product description in HTML.
86
86
  *
87
- * + When provided on create/update, this string must be a valid HTML. It will then be converted to rich content.
88
- * + `plainDescription` is ignored when value is also passed to the `description` field.
87
+ * + When provided on create/update, this string must be valid HTML. It's then converted to rich content.
88
+ * + `plainDescription` is ignored when a value is also passed to the `description` field.
89
89
  * > **Note:** Returned only when you pass `"PLAIN_DESCRIPTION"` to the `fields` array in Products API requests.
90
90
  * @maxLength 16000
91
91
  */
92
92
  plainDescription?: string | null;
93
93
  /**
94
- * Whether the product is visible to site visitors on the site.
94
+ * Whether the product is visible to site visitors.
95
95
  *
96
96
  * Default: `true`
97
97
  */
@@ -108,25 +108,23 @@ interface ProductWithInventory extends ProductWithInventoryTypedPropertiesOneOf
108
108
  /** Product SEO data. */
109
109
  seoData?: SeoSchema;
110
110
  /**
111
- * Tax group ID.
111
+ * [Tax group ID](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-groups/introduction). Used to apply specific tax rates to products.
112
112
  * @format GUID
113
113
  */
114
114
  taxGroupId?: string | null;
115
115
  /**
116
- * Product options. Allows buyer to customize product, e.g. select Color, Size and so on.
117
- * Always generates variants: every variant must have exactly one choice related to each option.
118
- * Since options and variants tightly coupled and rely on each other they usually should be provided together in all operations.
119
- * For existing options and choices provide ids only, all other data (e.g. names, title, types and so on) will be resolved for you by ids.
120
- * If you don't have ids it's ok to omit them but provide all other data instead. For existing options ids will be resolved, not existing options will be created.
121
- * *None*: you cannot change name of existing option via this endpoint but you can do it by calling CustomizationService
116
+ * Product options. Each option (like "Size" or "Color") creates variants when combined with other options.
117
+ *
118
+ * When you provide options, you must also provide the corresponding variants. Each variant must have exactly one choice for each option.
119
+ * To use existing [customizations](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction), pass their IDs. Otherwise, new customization entities are automatically created.
122
120
  * @maxSize 6
123
121
  */
124
122
  options?: ConnectedOption[];
125
123
  /**
126
- * Product Modifiers. Allows buyer to customize product, e.g. select Color, Size and so on similarly to `options` but with one main difference - `modifiers` never generate any variants.
127
- * For existing modifiers and choices provide ids only, all other data (e.g. names, title, types and so on) will be resolved for you by ids.
128
- * If you don't have ids it's ok to omit them but provide all other data instead. For existing modifiers ids will be resolved, not existing modifiers will be created.
129
- * *None*: you cannot change name of existing modifier via this endpoint by passing id and changed name, if you pass id name will be ignored. If you want to update existing modifier name do it by calling CustomizationService
124
+ * Product modifiers. Collect additional information from customers without creating variants.
125
+ *
126
+ * Unlike options, modifiers don't affect inventory or create additional variants. Use them for customizations like gift messages or engraving text.
127
+ * To use existing [customizations](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction), pass their IDs. Otherwise, new customization entities are automatically created.
130
128
  * @maxSize 10
131
129
  */
132
130
  modifiers?: ConnectedModifier[];
@@ -153,21 +151,21 @@ interface ProductWithInventory extends ProductWithInventoryTypedPropertiesOneOf
153
151
  */
154
152
  ribbon?: Ribbon;
155
153
  /**
156
- * Main category ID.
154
+ * The ID of the product's primary direct category, which defines the product's breadcrumbs path. For example, if the product's main category is "T-Shirts" (which is a subcategory of "Clothing"), the breadcrumbs path will be "Clothing > T-Shirts".
157
155
  * @format GUID
158
156
  */
159
157
  mainCategoryId?: string | null;
160
158
  /**
161
- * Product type.
159
+ * Product type: `PHYSICAL` for tangible goods that require shipping, or `DIGITAL` for downloadable content.
162
160
  *
163
- * When passing `productType: PHYSICAL`, you must also pass `physicalProperties`.
161
+ * When passing `productType: PHYSICAL`, you must also pass `physicalProperties`. When passing `productType: DIGITAL`, you can optionally pass `digitalProperties` in each variant.
164
162
  * @immutable
165
163
  */
166
164
  productType?: ProductTypeWithLiterals;
167
165
  /**
168
166
  * A unique human-friendly identifier for the product.
169
- * Unlike the product ID, the handle can be set by the user to ensure consistency across multiple platforms.
170
- * In case handle wasn't given, the handle will be automatically generated.
167
+ *
168
+ * Unlike the auto-generated `id`, the handle can be set when creating a product. This is useful when re-importing products from other systems, as it provides a stable identifier across platforms. If not provided during creation, one is automatically generated. Can't be changed after creation.
171
169
  * @minLength 1
172
170
  * @maxLength 100
173
171
  * @readonly
@@ -185,9 +183,16 @@ interface ProductWithInventory extends ProductWithInventoryTypedPropertiesOneOf
185
183
  * @format GUID
186
184
  */
187
185
  inventoryAppId?: string | null;
188
- /** Product variants. */
186
+ /**
187
+ * Product variants. Each variant must reference all product options via its `choices` array.
188
+ * Each choice references an option using `optionChoiceNames` for all requests.
189
+ */
189
190
  variantsInfo?: VariantsInfo;
190
- /** Subscription details. */
191
+ /**
192
+ * Product subscriptions.
193
+ *
194
+ * Subscription discounts are defined at the product level but apply to each variant's `actualPrice`. This means the final subscription price varies per variant based on the variant's base price.
195
+ */
191
196
  subscriptionDetails?: SubscriptionDetails;
192
197
  /**
193
198
  * Custom extended fields for the product object.
@@ -2781,9 +2786,9 @@ interface VariantWithInventoryTypedPropertiesOneOf {
2781
2786
  digitalProperties?: VariantDigitalProperties;
2782
2787
  }
2783
2788
  interface PriceInfo {
2784
- /** Variant price. Must be greater or equal to 0. */
2789
+ /** Variant's current selling price. Must be greater than or equal to 0. */
2785
2790
  actualPrice?: FixedMonetaryAmount;
2786
- /** The compare-at-price represents the original price of a product before any discount. It is optional and should only be set if a discount applies. When set, it must be higher than the current price to reflect accurate savings. */
2791
+ /** Original price before any discount, shown with a strikethrough in the UI of Wix sites. Only set this if a discount applies. When set, it should be higher than `actualPrice` to reflect savings. */
2787
2792
  compareAtPrice?: FixedMonetaryAmount;
2788
2793
  }
2789
2794
  interface FixedMonetaryAmount {