@wix/auto_sdk_ecom_subscription-contracts 1.0.116 → 1.0.118

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 +27 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +65 -22
  5. package/build/cjs/index.typings.js +27 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +65 -22
  8. package/build/cjs/meta.js +27 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +26 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +65 -22
  14. package/build/es/index.typings.mjs +26 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +65 -22
  17. package/build/es/meta.mjs +26 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +27 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +104 -19
  23. package/build/internal/cjs/index.typings.js +27 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +65 -22
  26. package/build/internal/cjs/meta.js +27 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +26 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +104 -19
  32. package/build/internal/es/index.typings.mjs +26 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +65 -22
  35. package/build/internal/es/meta.mjs +26 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -989,32 +989,59 @@ declare enum TaxableAddressType {
989
989
  }
990
990
  /** @enumType */
991
991
  type TaxableAddressTypeWithLiterals = TaxableAddressType | 'BUSINESS' | 'BILLING' | 'SHIPPING';
992
- interface ExtendedFields {
992
+ /**
993
+ * Decimal-quantity metadata for a line item.
994
+ *
995
+ * Set on a line item that represents a non-integer-quantity purchase
996
+ * (e.g. "2.75 square meters of fake grass", "1.5 kg of sugar",
997
+ * "0.75 hours of consultation"). When set, the line item must have
998
+ * `fixedQuantity` = true.
999
+ *
1000
+ * The decimal value lives in `value`. When `decimalQuantity` is set,
1001
+ * consumers read the human-readable quantity from `value` rather
1002
+ * than from `lineItem.quantity`.
1003
+ */
1004
+ interface DecimalQuantity extends DecimalQuantityUnitOneOf {
1005
+ /** @internal */
1006
+ measurementUnit?: MeasurementUnitWithLiterals;
993
1007
  /**
994
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
995
- * The value of each key is structured according to the schema defined when the extended fields were configured.
1008
+ * Free-form unit name for standard units not in the
1009
+ * `measurementUnit` enum (e.g. "hour", "minute", "session").
1010
+ * @internal
1011
+ * @minLength 1
1012
+ * @maxLength 50
1013
+ */
1014
+ otherUnit?: string;
1015
+ /**
1016
+ * The decimal quantity the buyer / merchant entered.
996
1017
  *
997
- * You can only access fields for which you have the appropriate permissions.
1018
+ * String-encoded decimal. The exact value is preserved no
1019
+ * rounding, no conversion to an integer.
998
1020
  *
999
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
1021
+ * Examples: "2.75", "1.5", "0.75".
1022
+ * @internal
1023
+ * @decimalValue options { gt:0, lte:1000000000000000, maxScale:4 }
1000
1024
  */
1001
- namespaces?: Record<string, Record<string, any>>;
1002
- }
1003
- interface ModifierGroup {
1025
+ value?: string;
1004
1026
  /**
1005
- * Modifier group ID.
1006
- * @minLength 1
1007
- * @maxLength 36
1027
+ * Human-readable description of the quantity
1028
+ * e.g. "2.75 square meters of fake grass".
1029
+ * @internal
1008
1030
  */
1009
- _id?: string;
1010
- /** Modifier group name. */
1011
- name?: TranslatableString;
1031
+ description?: TranslatableString;
1032
+ }
1033
+ /** @oneof */
1034
+ interface DecimalQuantityUnitOneOf {
1035
+ /** @internal */
1036
+ measurementUnit?: MeasurementUnitWithLiterals;
1012
1037
  /**
1013
- * List of modifiers in this group.
1014
- * @minSize 1
1015
- * @maxSize 10
1038
+ * Free-form unit name for standard units not in the
1039
+ * `measurementUnit` enum (e.g. "hour", "minute", "session").
1040
+ * @internal
1041
+ * @minLength 1
1042
+ * @maxLength 50
1016
1043
  */
1017
- modifiers?: ItemModifier[];
1044
+ otherUnit?: string;
1018
1045
  }
1019
1046
  interface TranslatableString {
1020
1047
  /**
@@ -1037,6 +1064,59 @@ interface TranslatableString {
1037
1064
  */
1038
1065
  translated?: string | null;
1039
1066
  }
1067
+ declare enum MeasurementUnit {
1068
+ UNSPECIFIED = "UNSPECIFIED",
1069
+ ML = "ML",
1070
+ CL = "CL",
1071
+ L = "L",
1072
+ CBM = "CBM",
1073
+ MG = "MG",
1074
+ G = "G",
1075
+ KG = "KG",
1076
+ MM = "MM",
1077
+ CM = "CM",
1078
+ M = "M",
1079
+ SQM = "SQM",
1080
+ OZ = "OZ",
1081
+ LB = "LB",
1082
+ FLOZ = "FLOZ",
1083
+ PT = "PT",
1084
+ QT = "QT",
1085
+ GAL = "GAL",
1086
+ IN = "IN",
1087
+ FT = "FT",
1088
+ YD = "YD",
1089
+ SQFT = "SQFT"
1090
+ }
1091
+ /** @enumType */
1092
+ type MeasurementUnitWithLiterals = MeasurementUnit | 'UNSPECIFIED' | 'ML' | 'CL' | 'L' | 'CBM' | 'MG' | 'G' | 'KG' | 'MM' | 'CM' | 'M' | 'SQM' | 'OZ' | 'LB' | 'FLOZ' | 'PT' | 'QT' | 'GAL' | 'IN' | 'FT' | 'YD' | 'SQFT';
1093
+ interface ExtendedFields {
1094
+ /**
1095
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
1096
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
1097
+ *
1098
+ * You can only access fields for which you have the appropriate permissions.
1099
+ *
1100
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
1101
+ */
1102
+ namespaces?: Record<string, Record<string, any>>;
1103
+ }
1104
+ interface ModifierGroup {
1105
+ /**
1106
+ * Modifier group ID.
1107
+ * @minLength 1
1108
+ * @maxLength 36
1109
+ */
1110
+ _id?: string;
1111
+ /** Modifier group name. */
1112
+ name?: TranslatableString;
1113
+ /**
1114
+ * List of modifiers in this group.
1115
+ * @minSize 1
1116
+ * @maxSize 10
1117
+ */
1118
+ modifiers?: ItemModifier[];
1119
+ }
1040
1120
  interface ItemModifier {
1041
1121
  /**
1042
1122
  * Modifier ID.
@@ -1851,6 +1931,11 @@ interface AdditionalFee {
1851
1931
  subscriptionCycles?: number | null;
1852
1932
  /** Specifies the entity that added the additional fee. */
1853
1933
  source?: AdditionalFeeSourceWithLiterals;
1934
+ /**
1935
+ * Address type tax was calculated against for this fee.
1936
+ * @internal
1937
+ */
1938
+ taxableAddress?: TaxableAddress;
1854
1939
  }
1855
1940
  declare enum AdditionalFeeSource {
1856
1941
  /** The additional fee was added by an additional fee service plugin. */
@@ -2928,4 +3013,4 @@ declare const utils: {
2928
3013
  };
2929
3014
  };
2930
3015
 
2931
- export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, ActionInitiator, type ActionInitiatorWithLiterals, type ActivityAuthor, type ActivityAuthorValueOneOf, ActivityType, type ActivityTypeWithLiterals, type AdditionalFee, type AdditionalFeeDelta, type AdditionalFeeDeltaDeltaDetailsOneOf, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type Address, type AddressLocation, type AddressWithContact, AdjustmentType, type AdjustmentTypeWithLiterals, type ApplicationError, type AppliedDiscount, type AppliedDiscountDelta, type AppliedDiscountDeltaDeltaDetailsOneOf, type AppliedDiscountDiscountSourceOneOf, type BaseEventMetadata, type BillingAdjustment, type BillingAdjustmentPriceSummary, type BillingSettings, type BulkActionMetadata, type BulkCreateSubscriptionContractsRequest, type BulkCreateSubscriptionContractsResponse, type BulkSubscriptionContractResult, type BulkUpdateSubscriptionContractsRequest, type BulkUpdateSubscriptionContractsResponse, type BuyerInfo, type BuyerInfoIdOneOf, type CatalogReference, ChangeType, type ChangeTypeWithLiterals, type ChangesAppliedActivity, type ChangesAppliedActivityTargetOneOf, type ChannelInfo, ChannelType, type ChannelTypeWithLiterals, ChargeType, type ChargeTypeWithLiterals, type Color, type CommitSubscriptionContractChangesRequest, type CommitSubscriptionContractChangesResponse, type CommonQueryWithEntityContext, type ContractChange, type ContractChangeValueOneOf, type ContractTarget, type Coupon, type CreateSubscriptionContractRequest, type CreateSubscriptionContractResponse, type CurrencyConversionDetails, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomField, type DeliveryLogistics, type DeliveryLogisticsAddressOneOf, type DeliveryTimeSlot, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type DigitalFile, type Dimensions, DimensionsUnit, type DimensionsUnitWithLiterals, DiscountReason, type DiscountReasonWithLiterals, type DiscountRule, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type FocalPoint, type FreeTrialPeriod, type FullAddressContactDetails, type GetSubscriptionContractRequest, type GetSubscriptionContractResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemCombination, type ItemCombinationLineItem, type ItemMetadata, type ItemModifier, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItemChanges, type LineItemDelta, type LineItemDiscount, type LineItemQuantityChange, LineItemQuantityChangeType, type LineItemQuantityChangeTypeWithLiterals, type LineItemTaxBreakdown, type LineItemTaxInfo, type Location, type LocationAndQuantity, type ManagedAdditionalFee, type ManagedDiscount, type ManagedLineItem, type MaskedSubscriptionContract, type MerchantDiscount, type MerchantDiscountMerchantDiscountReasonOneOf, type MessageEnvelope, type ModifierGroup, type OrderLineItem, type OrderTaxBreakdown, type OrderTaxInfo, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PhysicalProperties, type PickupAddress, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlainTextValue, type PlatformFee, type PlatformFeeSummary, type Price, type PriceDescription, type PriceSummary, type ProductName, ProductPeriodAlignment, type ProductPeriodAlignmentWithLiterals, type QuerySubscriptionContractsRequest, type QuerySubscriptionContractsResponse, type RestockLocation, type RestoreInfo, type ShippingInformation, type ShippingPrice, type ShippingRegion, SortOrder, type SortOrderWithLiterals, type Sorting, SpecificItemsCouponBehavior, type SpecificItemsCouponBehaviorWithLiterals, type StreetAddress, type SubscriptionCommitSettings, type SubscriptionContract, type SubscriptionContractActivity, type SubscriptionContractActivityContentOneOf, type SubscriptionContractActivityTargetOneOf, type SubscriptionContractCanceled, type SubscriptionContractChangesCommitted, type SubscriptionContractCreatedEnvelope, type SubscriptionContractDeletedEnvelope, type SubscriptionContractDiffs, type SubscriptionContractExpired, type SubscriptionContractQuery, type SubscriptionContractQuerySpec, type SubscriptionContractSettings, type SubscriptionContractUpdatedEnvelope, type SubscriptionContractsQueryBuilder, type SubscriptionContractsQueryResult, type SubscriptionDescription, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionInfo, type SubscriptionSettings, SubscriptionSettingsProductPeriodAlignment, type SubscriptionSettingsProductPeriodAlignmentWithLiterals, type SubscriptionTitle, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type TotalPriceChange, type TranslatableString, type TranslatedValue, type UpdateSubscriptionContractRequest, type UpdateSubscriptionContractResponse, type V1BillingSettings, type V1FreeTrialPeriod, type V1SubscriptionDescription, type V1SubscriptionSettings, type V1SubscriptionTitle, V2SubscriptionFrequency, type V2SubscriptionFrequencyWithLiterals, type VatId, VatType, type VatTypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, getSubscriptionContract, onSubscriptionContractCreated, onSubscriptionContractDeleted, onSubscriptionContractUpdated, querySubscriptionContracts, typedQuerySubscriptionContracts, utils };
3016
+ export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, ActionInitiator, type ActionInitiatorWithLiterals, type ActivityAuthor, type ActivityAuthorValueOneOf, ActivityType, type ActivityTypeWithLiterals, type AdditionalFee, type AdditionalFeeDelta, type AdditionalFeeDeltaDeltaDetailsOneOf, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type Address, type AddressLocation, type AddressWithContact, AdjustmentType, type AdjustmentTypeWithLiterals, type ApplicationError, type AppliedDiscount, type AppliedDiscountDelta, type AppliedDiscountDeltaDeltaDetailsOneOf, type AppliedDiscountDiscountSourceOneOf, type BaseEventMetadata, type BillingAdjustment, type BillingAdjustmentPriceSummary, type BillingSettings, type BulkActionMetadata, type BulkCreateSubscriptionContractsRequest, type BulkCreateSubscriptionContractsResponse, type BulkSubscriptionContractResult, type BulkUpdateSubscriptionContractsRequest, type BulkUpdateSubscriptionContractsResponse, type BuyerInfo, type BuyerInfoIdOneOf, type CatalogReference, ChangeType, type ChangeTypeWithLiterals, type ChangesAppliedActivity, type ChangesAppliedActivityTargetOneOf, type ChannelInfo, ChannelType, type ChannelTypeWithLiterals, ChargeType, type ChargeTypeWithLiterals, type Color, type CommitSubscriptionContractChangesRequest, type CommitSubscriptionContractChangesResponse, type CommonQueryWithEntityContext, type ContractChange, type ContractChangeValueOneOf, type ContractTarget, type Coupon, type CreateSubscriptionContractRequest, type CreateSubscriptionContractResponse, type CurrencyConversionDetails, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomField, type DecimalQuantity, type DecimalQuantityUnitOneOf, type DeliveryLogistics, type DeliveryLogisticsAddressOneOf, type DeliveryTimeSlot, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type DigitalFile, type Dimensions, DimensionsUnit, type DimensionsUnitWithLiterals, DiscountReason, type DiscountReasonWithLiterals, type DiscountRule, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type FocalPoint, type FreeTrialPeriod, type FullAddressContactDetails, type GetSubscriptionContractRequest, type GetSubscriptionContractResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemCombination, type ItemCombinationLineItem, type ItemMetadata, type ItemModifier, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItemChanges, type LineItemDelta, type LineItemDiscount, type LineItemQuantityChange, LineItemQuantityChangeType, type LineItemQuantityChangeTypeWithLiterals, type LineItemTaxBreakdown, type LineItemTaxInfo, type Location, type LocationAndQuantity, type ManagedAdditionalFee, type ManagedDiscount, type ManagedLineItem, type MaskedSubscriptionContract, MeasurementUnit, type MeasurementUnitWithLiterals, type MerchantDiscount, type MerchantDiscountMerchantDiscountReasonOneOf, type MessageEnvelope, type ModifierGroup, type OrderLineItem, type OrderTaxBreakdown, type OrderTaxInfo, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PhysicalProperties, type PickupAddress, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlainTextValue, type PlatformFee, type PlatformFeeSummary, type Price, type PriceDescription, type PriceSummary, type ProductName, ProductPeriodAlignment, type ProductPeriodAlignmentWithLiterals, type QuerySubscriptionContractsRequest, type QuerySubscriptionContractsResponse, type RestockLocation, type RestoreInfo, type ShippingInformation, type ShippingPrice, type ShippingRegion, SortOrder, type SortOrderWithLiterals, type Sorting, SpecificItemsCouponBehavior, type SpecificItemsCouponBehaviorWithLiterals, type StreetAddress, type SubscriptionCommitSettings, type SubscriptionContract, type SubscriptionContractActivity, type SubscriptionContractActivityContentOneOf, type SubscriptionContractActivityTargetOneOf, type SubscriptionContractCanceled, type SubscriptionContractChangesCommitted, type SubscriptionContractCreatedEnvelope, type SubscriptionContractDeletedEnvelope, type SubscriptionContractDiffs, type SubscriptionContractExpired, type SubscriptionContractQuery, type SubscriptionContractQuerySpec, type SubscriptionContractSettings, type SubscriptionContractUpdatedEnvelope, type SubscriptionContractsQueryBuilder, type SubscriptionContractsQueryResult, type SubscriptionDescription, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionInfo, type SubscriptionSettings, SubscriptionSettingsProductPeriodAlignment, type SubscriptionSettingsProductPeriodAlignmentWithLiterals, type SubscriptionTitle, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type TotalPriceChange, type TranslatableString, type TranslatedValue, type UpdateSubscriptionContractRequest, type UpdateSubscriptionContractResponse, type V1BillingSettings, type V1FreeTrialPeriod, type V1SubscriptionDescription, type V1SubscriptionSettings, type V1SubscriptionTitle, V2SubscriptionFrequency, type V2SubscriptionFrequencyWithLiterals, type VatId, VatType, type VatTypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, getSubscriptionContract, onSubscriptionContractCreated, onSubscriptionContractDeleted, onSubscriptionContractUpdated, querySubscriptionContracts, typedQuerySubscriptionContracts, utils };
@@ -312,6 +312,31 @@ var TaxableAddressType = /* @__PURE__ */ ((TaxableAddressType2) => {
312
312
  TaxableAddressType2["SHIPPING"] = "SHIPPING";
313
313
  return TaxableAddressType2;
314
314
  })(TaxableAddressType || {});
315
+ var MeasurementUnit = /* @__PURE__ */ ((MeasurementUnit2) => {
316
+ MeasurementUnit2["UNSPECIFIED"] = "UNSPECIFIED";
317
+ MeasurementUnit2["ML"] = "ML";
318
+ MeasurementUnit2["CL"] = "CL";
319
+ MeasurementUnit2["L"] = "L";
320
+ MeasurementUnit2["CBM"] = "CBM";
321
+ MeasurementUnit2["MG"] = "MG";
322
+ MeasurementUnit2["G"] = "G";
323
+ MeasurementUnit2["KG"] = "KG";
324
+ MeasurementUnit2["MM"] = "MM";
325
+ MeasurementUnit2["CM"] = "CM";
326
+ MeasurementUnit2["M"] = "M";
327
+ MeasurementUnit2["SQM"] = "SQM";
328
+ MeasurementUnit2["OZ"] = "OZ";
329
+ MeasurementUnit2["LB"] = "LB";
330
+ MeasurementUnit2["FLOZ"] = "FLOZ";
331
+ MeasurementUnit2["PT"] = "PT";
332
+ MeasurementUnit2["QT"] = "QT";
333
+ MeasurementUnit2["GAL"] = "GAL";
334
+ MeasurementUnit2["IN"] = "IN";
335
+ MeasurementUnit2["FT"] = "FT";
336
+ MeasurementUnit2["YD"] = "YD";
337
+ MeasurementUnit2["SQFT"] = "SQFT";
338
+ return MeasurementUnit2;
339
+ })(MeasurementUnit || {});
315
340
  var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
316
341
  WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
317
342
  WeightUnit2["KG"] = "KG";
@@ -597,6 +622,7 @@ export {
597
622
  ItemTypePreset,
598
623
  JurisdictionType,
599
624
  LineItemQuantityChangeType,
625
+ MeasurementUnit,
600
626
  PaymentOptionType,
601
627
  PickupMethod,
602
628
  ProductPeriodAlignment,