@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
@@ -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
  *
@@ -897,9 +911,42 @@ type TaxableAddressTypeWithLiterals = TaxableAddressType | 'BUSINESS' | 'BILLING
897
911
  * than from `lineItem.quantity`.
898
912
  */
899
913
  interface DecimalQuantity extends DecimalQuantityUnitOneOf {
914
+ /** Unit the value is expressed in, selected from the standard `measurementUnit` enum. */
915
+ measurementUnit?: MeasurementUnitWithLiterals;
916
+ /**
917
+ * Free-form unit name for standard units not in the
918
+ * `measurementUnit` enum (e.g. "hour", "minute", "session").
919
+ * @minLength 1
920
+ * @maxLength 50
921
+ */
922
+ otherUnit?: string;
923
+ /**
924
+ * The decimal quantity the buyer / merchant entered.
925
+ *
926
+ * String-encoded decimal. The exact value is preserved — no
927
+ * rounding, no conversion to an integer.
928
+ *
929
+ * Examples: "2.75", "1.5", "0.75".
930
+ * @decimalValue options { gt:0, lte:1000000000000000, maxScale:4 }
931
+ */
932
+ value?: string;
933
+ /**
934
+ * Human-readable, pre-formatted display string for the quantity. For example, "2.75 square meters of fake grass".
935
+ * Always set alongside `value`; use this directly for display rather than composing your own string from `value` and `unit`.
936
+ */
937
+ description?: TranslatableString;
900
938
  }
901
939
  /** @oneof */
902
940
  interface DecimalQuantityUnitOneOf {
941
+ /** Unit the value is expressed in, selected from the standard `measurementUnit` enum. */
942
+ measurementUnit?: MeasurementUnitWithLiterals;
943
+ /**
944
+ * Free-form unit name for standard units not in the
945
+ * `measurementUnit` enum (e.g. "hour", "minute", "session").
946
+ * @minLength 1
947
+ * @maxLength 50
948
+ */
949
+ otherUnit?: string;
903
950
  }
904
951
  interface TranslatableString {
905
952
  /**
@@ -1733,6 +1780,8 @@ interface AdditionalFee {
1733
1780
  lineItemIds?: string[];
1734
1781
  /** Specifies the entity that added the additional fee. */
1735
1782
  source?: AdditionalFeeSourceWithLiterals;
1783
+ /** Address type tax was calculated against for this fee. */
1784
+ taxableAddress?: TaxableAddress;
1736
1785
  }
1737
1786
  declare enum AdditionalFeeSource {
1738
1787
  /** The additional fee was added by an additional fee service plugin. */
@@ -2644,7 +2693,7 @@ declare function onSubscriptionContractUpdated(handler: (event: SubscriptionCont
2644
2693
  * @returns The requested SubscriptionContract.
2645
2694
  * @fqn wix.ecom.subscription_contracts.v1.SubscriptionContracts.GetSubscriptionContract
2646
2695
  */
2647
- 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>>;
2696
+ 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>>;
2648
2697
  /**
2649
2698
  * Retrieves a list of SubscriptionContracts, given the provided [paging, filtering, and sorting][1].
2650
2699
  *