@wix/auto_sdk_ecom_subscription-contracts 1.0.118 → 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 +50 -1
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.d.ts +49 -0
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/cjs/schemas.d.ts +98 -0
  8. package/build/cjs/schemas.js +152 -2
  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 +50 -1
  13. package/build/es/index.typings.mjs.map +1 -1
  14. package/build/es/meta.d.mts +49 -0
  15. package/build/es/meta.mjs.map +1 -1
  16. package/build/es/schemas.d.mts +98 -0
  17. package/build/es/schemas.mjs +152 -2
  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 +20 -13
  22. package/build/internal/cjs/index.typings.js.map +1 -1
  23. package/build/internal/cjs/meta.d.ts +49 -0
  24. package/build/internal/cjs/meta.js.map +1 -1
  25. package/build/internal/cjs/schemas.d.ts +98 -0
  26. package/build/internal/cjs/schemas.js +152 -2
  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 +20 -13
  31. package/build/internal/es/index.typings.mjs.map +1 -1
  32. package/build/internal/es/meta.d.mts +49 -0
  33. package/build/internal/es/meta.mjs.map +1 -1
  34. package/build/internal/es/schemas.d.mts +98 -0
  35. package/build/internal/es/schemas.mjs +152 -2
  36. package/build/internal/es/schemas.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -363,6 +363,20 @@ interface OrderLineItem {
363
363
  * Default: `false`
364
364
  */
365
365
  priceUndetermined?: boolean;
366
+ /**
367
+ * Whether the line item quantity is fixed and cannot be changed.
368
+ *
369
+ * Default: `false`
370
+ */
371
+ fixedQuantity?: boolean;
372
+ /**
373
+ * Decimal-quantity metadata. Set when the line represents a
374
+ * non-integer purchase (e.g. 2.75 m² of fake grass).
375
+ *
376
+ * When set, the line item must have `fixedQuantity` = true and be set with `quantity` = 1.
377
+ * The decimal value lives in `decimalQuantity.value`.
378
+ */
379
+ decimalQuantity?: DecimalQuantity;
366
380
  /**
367
381
  * Custom extended fields for the line item object.
368
382
  *
@@ -1002,12 +1016,11 @@ type TaxableAddressTypeWithLiterals = TaxableAddressType | 'BUSINESS' | 'BILLING
1002
1016
  * than from `lineItem.quantity`.
1003
1017
  */
1004
1018
  interface DecimalQuantity extends DecimalQuantityUnitOneOf {
1005
- /** @internal */
1019
+ /** Unit the value is expressed in, selected from the standard `measurementUnit` enum. */
1006
1020
  measurementUnit?: MeasurementUnitWithLiterals;
1007
1021
  /**
1008
1022
  * Free-form unit name for standard units not in the
1009
1023
  * `measurementUnit` enum (e.g. "hour", "minute", "session").
1010
- * @internal
1011
1024
  * @minLength 1
1012
1025
  * @maxLength 50
1013
1026
  */
@@ -1019,25 +1032,22 @@ interface DecimalQuantity extends DecimalQuantityUnitOneOf {
1019
1032
  * rounding, no conversion to an integer.
1020
1033
  *
1021
1034
  * Examples: "2.75", "1.5", "0.75".
1022
- * @internal
1023
1035
  * @decimalValue options { gt:0, lte:1000000000000000, maxScale:4 }
1024
1036
  */
1025
1037
  value?: string;
1026
1038
  /**
1027
- * Human-readable description of the quantity
1028
- * e.g. "2.75 square meters of fake grass".
1029
- * @internal
1039
+ * Human-readable, pre-formatted display string for the quantity. For example, "2.75 square meters of fake grass".
1040
+ * Always set alongside `value`; use this directly for display rather than composing your own string from `value` and `unit`.
1030
1041
  */
1031
1042
  description?: TranslatableString;
1032
1043
  }
1033
1044
  /** @oneof */
1034
1045
  interface DecimalQuantityUnitOneOf {
1035
- /** @internal */
1046
+ /** Unit the value is expressed in, selected from the standard `measurementUnit` enum. */
1036
1047
  measurementUnit?: MeasurementUnitWithLiterals;
1037
1048
  /**
1038
1049
  * Free-form unit name for standard units not in the
1039
1050
  * `measurementUnit` enum (e.g. "hour", "minute", "session").
1040
- * @internal
1041
1051
  * @minLength 1
1042
1052
  * @maxLength 50
1043
1053
  */
@@ -1931,10 +1941,7 @@ interface AdditionalFee {
1931
1941
  subscriptionCycles?: number | null;
1932
1942
  /** Specifies the entity that added the additional fee. */
1933
1943
  source?: AdditionalFeeSourceWithLiterals;
1934
- /**
1935
- * Address type tax was calculated against for this fee.
1936
- * @internal
1937
- */
1944
+ /** Address type tax was calculated against for this fee. */
1938
1945
  taxableAddress?: TaxableAddress;
1939
1946
  }
1940
1947
  declare enum AdditionalFeeSource {
@@ -2847,7 +2854,7 @@ declare function onSubscriptionContractUpdated(handler: (event: SubscriptionCont
2847
2854
  * @returns The requested SubscriptionContract.
2848
2855
  * @fqn wix.ecom.subscription_contracts.v1.SubscriptionContracts.GetSubscriptionContract
2849
2856
  */
2850
- declare function getSubscriptionContract(subscriptionContractId: string): Promise<NonNullablePaths<SubscriptionContract, `subscriptionSettings.frequency` | `subscriptionSettings.autoRenewal` | `subscriptionSettings.enableCustomerCancellation` | `subscriptionSettings.freeTrialPeriod.frequency` | `subscriptionSettings.freeTrialPeriod.interval` | `lineItems` | `lineItems.${number}._id` | `lineItems.${number}.productName.original` | `lineItems.${number}.catalogReference.catalogItemId` | `lineItems.${number}.catalogReference.appId` | `lineItems.${number}.quantity` | `lineItems.${number}.totalDiscount.amount` | `lineItems.${number}.totalDiscount.formattedAmount` | `lineItems.${number}.physicalProperties.shippable` | `lineItems.${number}.itemType.preset` | `lineItems.${number}.itemType.custom` | `lineItems.${number}.paymentOption` | `lineItems.${number}.taxDetails.taxRate` | `lineItems.${number}.taxInfo.taxIncludedInPrice` | `lineItems.${number}.digitalFile.fileId` | `lineItems.${number}.subscriptionInfo.cycleNumber` | `lineItems.${number}.subscriptionInfo.subscriptionOptionTitle` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.frequency` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.autoRenewal` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.enableCustomerCancellation` | `lineItems.${number}.priceDescription.original` | `lineItems.${number}.taxableAddress.addressType` | `lineItems.${number}.priceUndetermined` | `buyerInfo.visitorId` | `buyerInfo.memberId` | `weightUnit` | `taxIncludedInPrices` | `platformFeeSummary.fees` | `platformFeeSummary.fees.${number}.lineItemId` | `platformFeeSummary.fees.${number}.chargeType` | `platformFeeSummary.fees.${number}.percentageRate` | `billingInfo.address.streetAddress.number` | `billingInfo.address.streetAddress.name` | `billingInfo.contactDetails.vatId._id` | `billingInfo.contactDetails.vatId.type` | `shippingInfo.title` | `shippingInfo.logistics.pickupDetails.pickupMethod` | `appliedDiscounts` | `appliedDiscounts.${number}.coupon._id` | `appliedDiscounts.${number}.coupon.code` | `appliedDiscounts.${number}.coupon.name` | `appliedDiscounts.${number}.merchantDiscount.discountReason` | `appliedDiscounts.${number}.discountRule._id` | `appliedDiscounts.${number}.discountRule.name.original` | `appliedDiscounts.${number}.discountType` | `channelInfo.type` | `customFields` | `customFields.${number}.title` | `additionalFees` | `additionalFees.${number}.name` | `additionalFees.${number}._id` | `additionalFees.${number}.source` | `activities` | `activities.${number}.changesApplied.draftSubscriptionContractId` | `activities.${number}._id` | `activities.${number}.author.userId` | `activities.${number}.author.appId` | `activities.${number}.activityType`, 6>>;
2857
+ declare function getSubscriptionContract(subscriptionContractId: string): Promise<NonNullablePaths<SubscriptionContract, `subscriptionSettings.frequency` | `subscriptionSettings.autoRenewal` | `subscriptionSettings.enableCustomerCancellation` | `subscriptionSettings.freeTrialPeriod.frequency` | `subscriptionSettings.freeTrialPeriod.interval` | `lineItems` | `lineItems.${number}._id` | `lineItems.${number}.productName.original` | `lineItems.${number}.catalogReference.catalogItemId` | `lineItems.${number}.catalogReference.appId` | `lineItems.${number}.quantity` | `lineItems.${number}.totalDiscount.amount` | `lineItems.${number}.totalDiscount.formattedAmount` | `lineItems.${number}.physicalProperties.shippable` | `lineItems.${number}.itemType.preset` | `lineItems.${number}.itemType.custom` | `lineItems.${number}.paymentOption` | `lineItems.${number}.taxDetails.taxRate` | `lineItems.${number}.taxInfo.taxIncludedInPrice` | `lineItems.${number}.digitalFile.fileId` | `lineItems.${number}.subscriptionInfo.cycleNumber` | `lineItems.${number}.subscriptionInfo.subscriptionOptionTitle` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.frequency` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.autoRenewal` | `lineItems.${number}.subscriptionInfo.subscriptionSettings.enableCustomerCancellation` | `lineItems.${number}.priceDescription.original` | `lineItems.${number}.taxableAddress.addressType` | `lineItems.${number}.priceUndetermined` | `lineItems.${number}.fixedQuantity` | `lineItems.${number}.decimalQuantity.measurementUnit` | `lineItems.${number}.decimalQuantity.otherUnit` | `lineItems.${number}.decimalQuantity.value` | `lineItems.${number}.decimalQuantity.description.original` | `buyerInfo.visitorId` | `buyerInfo.memberId` | `weightUnit` | `taxIncludedInPrices` | `platformFeeSummary.fees` | `platformFeeSummary.fees.${number}.lineItemId` | `platformFeeSummary.fees.${number}.chargeType` | `platformFeeSummary.fees.${number}.percentageRate` | `billingInfo.address.streetAddress.number` | `billingInfo.address.streetAddress.name` | `billingInfo.contactDetails.vatId._id` | `billingInfo.contactDetails.vatId.type` | `shippingInfo.title` | `shippingInfo.logistics.pickupDetails.pickupMethod` | `appliedDiscounts` | `appliedDiscounts.${number}.coupon._id` | `appliedDiscounts.${number}.coupon.code` | `appliedDiscounts.${number}.coupon.name` | `appliedDiscounts.${number}.merchantDiscount.discountReason` | `appliedDiscounts.${number}.discountRule._id` | `appliedDiscounts.${number}.discountRule.name.original` | `appliedDiscounts.${number}.discountType` | `channelInfo.type` | `customFields` | `customFields.${number}.title` | `additionalFees` | `additionalFees.${number}.name` | `additionalFees.${number}._id` | `additionalFees.${number}.source` | `activities` | `activities.${number}.changesApplied.draftSubscriptionContractId` | `activities.${number}._id` | `activities.${number}.author.userId` | `activities.${number}.author.appId` | `activities.${number}.activityType`, 6>>;
2851
2858
  /**
2852
2859
  * Retrieves a list of SubscriptionContracts, given the provided [paging, filtering, and sorting][1].
2853
2860
  *