@wix/auto_sdk_ecom_draft-orders 1.0.52 → 1.0.54

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.
@@ -317,6 +317,12 @@ interface OrderLineItem {
317
317
  * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
318
318
  */
319
319
  extendedFields?: ExtendedFields;
320
+ /**
321
+ * Modifier groups that were added to the item.
322
+ * @readonly
323
+ * @maxSize 10
324
+ */
325
+ modifierGroups?: ModifierGroup[];
320
326
  }
321
327
  interface ProductName {
322
328
  /**
@@ -612,14 +618,11 @@ interface SubscriptionInfo {
612
618
  * @format GUID
613
619
  */
614
620
  id?: string | null;
615
- /**
616
- * Subscription cycle. For example, if this order is for the 3rd cycle of a subscription, value will be `3`.
617
- * @min 1
618
- */
621
+ /** Subscription cycle. For example, if this order is for the 3rd cycle of a subscription, value will be `3`. */
619
622
  cycleNumber?: number;
620
623
  /**
621
624
  * Subscription option title. For example, `"Monthly coffee Subscription"`.
622
- * @maxLength 20
625
+ * @maxLength 150
623
626
  * @deprecated Subscription option title. For example, `"Monthly coffee Subscription"`.
624
627
  * @replacedBy title
625
628
  * @targetRemovalDate 2025-10-01
@@ -627,7 +630,7 @@ interface SubscriptionInfo {
627
630
  subscriptionOptionTitle?: string;
628
631
  /**
629
632
  * Subscription option description. For example, `"1kg of selected coffee, once a month"`.
630
- * @maxLength 60
633
+ * @maxLength 500
631
634
  * @deprecated Subscription option description. For example, `"1kg of selected coffee, once a month"`.
632
635
  * @replacedBy description
633
636
  * @targetRemovalDate 2025-10-01
@@ -739,6 +742,63 @@ interface ExtendedFields {
739
742
  */
740
743
  namespaces?: Record<string, Record<string, any>>;
741
744
  }
745
+ interface ModifierGroup {
746
+ /**
747
+ * Modifier group ID.
748
+ * @minLength 1
749
+ * @maxLength 36
750
+ */
751
+ id?: string;
752
+ /** Modifier group name. */
753
+ name?: TranslatableString;
754
+ /**
755
+ * List of modifiers in this group.
756
+ * @minSize 1
757
+ * @maxSize 10
758
+ */
759
+ modifiers?: ItemModifier[];
760
+ }
761
+ interface TranslatableString {
762
+ /**
763
+ * __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
764
+ *
765
+ * Min: 1 character.
766
+ * Max: 200 characters.
767
+ * @minLength 1
768
+ * @maxLength 200
769
+ */
770
+ original?: string;
771
+ /**
772
+ * String translated into the buyer's language.
773
+ *
774
+ * Min: 1 character.
775
+ * Max: 400 characters.
776
+ * Default: Same as `original`.
777
+ * @minLength 1
778
+ * @maxLength 400
779
+ */
780
+ translated?: string | null;
781
+ }
782
+ interface ItemModifier {
783
+ /**
784
+ * Modifier ID.
785
+ * @minLength 1
786
+ * @maxLength 36
787
+ */
788
+ id?: string;
789
+ /**
790
+ * The quantity of this modifier.
791
+ * @min 1
792
+ * @max 100000
793
+ */
794
+ quantity?: number | null;
795
+ /** Primary display label for the modifier. */
796
+ label?: TranslatableString;
797
+ /** Additional details. */
798
+ details?: TranslatableString;
799
+ /** The price of the modifier. */
800
+ price?: Price;
801
+ }
742
802
  interface ItemChangedDetails {
743
803
  /**
744
804
  * Line item quantity before change.