@wix/auto_sdk_ecom_subscription-contracts 1.0.119 → 1.0.120

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +48 -1
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.d.ts +47 -0
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/cjs/schemas.d.ts +80 -0
  8. package/build/cjs/schemas.js +126 -0
  9. package/build/cjs/schemas.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs.map +1 -1
  12. package/build/es/index.typings.d.mts +48 -1
  13. package/build/es/index.typings.mjs.map +1 -1
  14. package/build/es/meta.d.mts +47 -0
  15. package/build/es/meta.mjs.map +1 -1
  16. package/build/es/schemas.d.mts +80 -0
  17. package/build/es/schemas.mjs +126 -0
  18. package/build/es/schemas.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js.map +1 -1
  21. package/build/internal/cjs/index.typings.d.ts +19 -9
  22. package/build/internal/cjs/index.typings.js.map +1 -1
  23. package/build/internal/cjs/meta.d.ts +47 -0
  24. package/build/internal/cjs/meta.js.map +1 -1
  25. package/build/internal/cjs/schemas.d.ts +80 -0
  26. package/build/internal/cjs/schemas.js +126 -0
  27. package/build/internal/cjs/schemas.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs.map +1 -1
  30. package/build/internal/es/index.typings.d.mts +19 -9
  31. package/build/internal/es/index.typings.mjs.map +1 -1
  32. package/build/internal/es/meta.d.mts +47 -0
  33. package/build/internal/es/meta.mjs.map +1 -1
  34. package/build/internal/es/schemas.d.mts +80 -0
  35. package/build/internal/es/schemas.mjs +126 -0
  36. package/build/internal/es/schemas.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -321,6 +321,20 @@ interface OrderLineItem {
321
321
  * Default: `false`
322
322
  */
323
323
  priceUndetermined?: boolean;
324
+ /**
325
+ * Whether the line item quantity is fixed and cannot be changed.
326
+ *
327
+ * Default: `false`
328
+ */
329
+ fixedQuantity?: boolean;
330
+ /**
331
+ * Decimal-quantity metadata. Set when the line represents a
332
+ * non-integer purchase (e.g. 2.75 m² of fake grass).
333
+ *
334
+ * When set, the line item must have `fixedQuantity` = true and be set with `quantity` = 1.
335
+ * The decimal value lives in `decimalQuantity.value`.
336
+ */
337
+ decimalQuantity?: DecimalQuantity;
324
338
  /**
325
339
  * Custom extended fields for the line item object.
326
340
  *
@@ -920,9 +934,42 @@ type TaxableAddressTypeWithLiterals = TaxableAddressType | 'BUSINESS' | 'BILLING
920
934
  * than from `lineItem.quantity`.
921
935
  */
922
936
  interface DecimalQuantity extends DecimalQuantityUnitOneOf {
937
+ /** Unit the value is expressed in, selected from the standard `measurementUnit` enum. */
938
+ measurementUnit?: MeasurementUnitWithLiterals;
939
+ /**
940
+ * Free-form unit name for standard units not in the
941
+ * `measurementUnit` enum (e.g. "hour", "minute", "session").
942
+ * @minLength 1
943
+ * @maxLength 50
944
+ */
945
+ otherUnit?: string;
946
+ /**
947
+ * The decimal quantity the buyer / merchant entered.
948
+ *
949
+ * String-encoded decimal. The exact value is preserved — no
950
+ * rounding, no conversion to an integer.
951
+ *
952
+ * Examples: "2.75", "1.5", "0.75".
953
+ * @decimalValue options { gt:0, lte:1000000000000000, maxScale:4 }
954
+ */
955
+ value?: string;
956
+ /**
957
+ * Human-readable, pre-formatted display string for the quantity. For example, "2.75 square meters of fake grass".
958
+ * Always set alongside `value`; use this directly for display rather than composing your own string from `value` and `unit`.
959
+ */
960
+ description?: TranslatableString;
923
961
  }
924
962
  /** @oneof */
925
963
  interface DecimalQuantityUnitOneOf {
964
+ /** Unit the value is expressed in, selected from the standard `measurementUnit` enum. */
965
+ measurementUnit?: MeasurementUnitWithLiterals;
966
+ /**
967
+ * Free-form unit name for standard units not in the
968
+ * `measurementUnit` enum (e.g. "hour", "minute", "session").
969
+ * @minLength 1
970
+ * @maxLength 50
971
+ */
972
+ otherUnit?: string;
926
973
  }
927
974
  interface TranslatableString {
928
975
  /**