@wix/auto_sdk_ecom_current-cart 1.0.169 → 1.0.171

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 (45) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +14 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +76 -5
  5. package/build/cjs/index.typings.js +14 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +76 -5
  8. package/build/cjs/meta.js +14 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.js +6 -10
  11. package/build/cjs/schemas.js.map +1 -1
  12. package/build/es/index.d.mts +1 -1
  13. package/build/es/index.mjs +12 -0
  14. package/build/es/index.mjs.map +1 -1
  15. package/build/es/index.typings.d.mts +76 -5
  16. package/build/es/index.typings.mjs +12 -0
  17. package/build/es/index.typings.mjs.map +1 -1
  18. package/build/es/meta.d.mts +76 -5
  19. package/build/es/meta.mjs +12 -0
  20. package/build/es/meta.mjs.map +1 -1
  21. package/build/es/schemas.mjs +6 -10
  22. package/build/es/schemas.mjs.map +1 -1
  23. package/build/internal/cjs/index.d.ts +1 -1
  24. package/build/internal/cjs/index.js +14 -0
  25. package/build/internal/cjs/index.js.map +1 -1
  26. package/build/internal/cjs/index.typings.d.ts +88 -5
  27. package/build/internal/cjs/index.typings.js +14 -0
  28. package/build/internal/cjs/index.typings.js.map +1 -1
  29. package/build/internal/cjs/meta.d.ts +76 -5
  30. package/build/internal/cjs/meta.js +14 -0
  31. package/build/internal/cjs/meta.js.map +1 -1
  32. package/build/internal/cjs/schemas.js +6 -10
  33. package/build/internal/cjs/schemas.js.map +1 -1
  34. package/build/internal/es/index.d.mts +1 -1
  35. package/build/internal/es/index.mjs +12 -0
  36. package/build/internal/es/index.mjs.map +1 -1
  37. package/build/internal/es/index.typings.d.mts +88 -5
  38. package/build/internal/es/index.typings.mjs +12 -0
  39. package/build/internal/es/index.typings.mjs.map +1 -1
  40. package/build/internal/es/meta.d.mts +76 -5
  41. package/build/internal/es/meta.mjs +12 -0
  42. package/build/internal/es/meta.mjs.map +1 -1
  43. package/build/internal/es/schemas.mjs +6 -10
  44. package/build/internal/es/schemas.mjs.map +1 -1
  45. package/package.json +2 -2
@@ -2367,18 +2367,33 @@ interface Membership {
2367
2367
  /** The name of this membership. */
2368
2368
  name?: MembershipName;
2369
2369
  /**
2370
- * Line item IDs which are "paid" for by this membership.
2370
+ * Deprecated. Use the response-level `coverages` (`LineItemCoverage`) to see which line items each benefit covers.
2371
2371
  * @minSize 1
2372
2372
  * @maxSize 300
2373
2373
  * @minLength 1
2374
2374
  * @maxLength 100
2375
2375
  */
2376
2376
  lineItemIds?: string[];
2377
- /** Optional - For a membership that has limited credits, information about credit usage. */
2377
+ /**
2378
+ * Deprecated. Use `benefits`.
2379
+ * @deprecated
2380
+ * @replacedBy benefits
2381
+ * @targetRemovalDate 2026-07-30
2382
+ */
2378
2383
  credits?: MembershipPaymentCredits;
2379
- /** Optional - TMembership expiry date. */
2384
+ /**
2385
+ * Deprecated. Use `offering_description`.
2386
+ * @deprecated
2387
+ * @replacedBy offering_description
2388
+ * @targetRemovalDate 2026-07-30
2389
+ */
2380
2390
  expirationDate?: Date | null;
2381
- /** Additional data about this membership. */
2391
+ /**
2392
+ * Deprecated. Use `benefits.additional_data`.
2393
+ * @deprecated
2394
+ * @replacedBy benefits
2395
+ * @targetRemovalDate 2026-07-30
2396
+ */
2382
2397
  additionalData?: Record<string, any> | null;
2383
2398
  }
2384
2399
  interface MembershipName {
@@ -2410,6 +2425,62 @@ declare enum BalanceType {
2410
2425
  }
2411
2426
  /** @enumType */
2412
2427
  type BalanceTypeWithLiterals = BalanceType | 'PUNCH_CARD' | 'CREDIT';
2428
+ /**
2429
+ * A single redeemable benefit granted by a membership or a purchasable plan.
2430
+ * Used by the per-benefit redemption flow (`ListExistingMemberships`, `ListPurchasablePlans`, `EnhanceAndValidateSelection`).
2431
+ */
2432
+ interface Benefit extends BenefitQuotaOneOf {
2433
+ limitedQuota?: LimitedQuota;
2434
+ /**
2435
+ * Identifier for this benefit. Must be unique within the response so the response-level `coverages`
2436
+ * (`LineItemCoverage.benefit_id`) can reference it unambiguously across memberships/plans.
2437
+ * @minLength 1
2438
+ * @maxLength 200
2439
+ */
2440
+ benefitId?: string;
2441
+ /**
2442
+ * Human-readable label for this benefit (for example, "Manicure" or "Pedicure" on multi-set punchcards).
2443
+ * @maxLength 200
2444
+ */
2445
+ label?: string | null;
2446
+ /**
2447
+ * The kind of quota this benefit grants: a countable amount drawn down on redemption (`LIMITED`),
2448
+ * or an unbounded amount that is never drawn down (`UNLIMITED`).
2449
+ */
2450
+ quotaType?: QuotaTypeWithLiterals;
2451
+ }
2452
+ /** @oneof */
2453
+ interface BenefitQuotaOneOf {
2454
+ limitedQuota?: LimitedQuota;
2455
+ }
2456
+ declare enum QuotaType {
2457
+ /** The benefit grants a countable quota that is drawn down on redemption. */
2458
+ LIMITED = "LIMITED",
2459
+ /** The benefit is unlimited (unbounded) and is never drawn down. */
2460
+ UNLIMITED = "UNLIMITED"
2461
+ }
2462
+ /** @enumType */
2463
+ type QuotaTypeWithLiterals = QuotaType | 'LIMITED' | 'UNLIMITED';
2464
+ /** A limited, countable redeemable amount. */
2465
+ interface LimitedQuota {
2466
+ /**
2467
+ * The quota's initial value.
2468
+ * @min 1
2469
+ */
2470
+ total?: number;
2471
+ /** The quota's remaining value. */
2472
+ remaining?: number;
2473
+ /** How the quota is measured. */
2474
+ limitedQuotaType?: LimitedQuotaTypeWithLiterals;
2475
+ }
2476
+ declare enum LimitedQuotaType {
2477
+ /** Quota is measured in discrete uses (e.g., sessions, visits). */
2478
+ PUNCH_CARD = "PUNCH_CARD",
2479
+ /** Quota is measured in a currency-like value (e.g., points). */
2480
+ CREDIT = "CREDIT"
2481
+ }
2482
+ /** @enumType */
2483
+ type LimitedQuotaTypeWithLiterals = LimitedQuotaType | 'PUNCH_CARD' | 'CREDIT';
2413
2484
  interface InvalidMembership {
2414
2485
  /** Membership details. */
2415
2486
  membership?: Membership;
@@ -3413,4 +3484,4 @@ interface EstimateCurrentCartTotalsOptions {
3413
3484
  */
3414
3485
  declare function deleteCurrentCart(): Promise<void>;
3415
3486
 
3416
- export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddToCartRequest, type AddToCartResponse, type AddToCurrentCartAndEstimateTotalsRequest, type AddToCurrentCartOptions, type AddToCurrentCartRequest, type AdditionalFee, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type Address, type AddressLocation, type AddressWithContact, type AggregatedTaxBreakdown, type ApplicableLineItems, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, AppliedDiscountDiscountType, type AppliedDiscountDiscountTypeWithLiterals, type AutoTaxFallbackCalculationDetails, BalanceType, type BalanceTypeWithLiterals, type BaseEventMetadata, type BillingSettings, type BuyerInfo, type BuyerInfoIdOneOf, type CalculatedItemModifier, type CalculatedLineItem, type CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf, type Carrier, type CarrierError, type CarrierErrors, type CarrierServiceOption, type Cart, type CartCreatedEnvelope, type CartDeletedEnvelope, type CartDiscount, type CartDiscountDiscountSourceOneOf, type CartUpdatedEnvelope, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, ChargeType, type ChargeTypeWithLiterals, type Color, type Coupon, type CreateCartRequest, type CreateCartResponse, type CreateCheckoutFromCurrentCartOptions, type CreateCheckoutFromCurrentCartRequest, type CreateCheckoutRequest, type CreateCheckoutResponse, type CustomLineItem, type DeleteCartRequest, type DeleteCartResponse, type DeleteCurrentCartRequest, type DeliveryAllocation, type DeliveryLogistics, type DeliveryTimeSlot, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type Details, type DetailsKindOneOf, type Dimensions, DimensionsUnit, type DimensionsUnitWithLiterals, type DiscountRule, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EstimateCurrentCartTotalsOptions, type EstimateCurrentCartTotalsRequest, type EstimateTotalsRequest, type EstimateTotalsResponse, type EventMetadata, type ExtendedFields, FallbackReason, type FallbackReasonWithLiterals, type FieldViolation, FileType, type FileTypeWithLiterals, type FocalPoint, type FreeTrialPeriod, type FullAddressContactDetails, type GetCartByCheckoutIdRequest, type GetCartByCheckoutIdResponse, type GetCartRequest, type GetCartResponse, type GetCurrentCartApplicationErrors, type GetCurrentCartRequest, type GetCurrentCartResponse, type GiftCard, type GiftCardCalculationError, type Group, type HostSelectedMembership, type IdentificationData, type IdentificationDataIdOneOf, type InvalidMembership, type ItemAvailabilityInfo, ItemAvailabilityStatus, type ItemAvailabilityStatusWithLiterals, type ItemCombination, type ItemCombinationLineItem, type ItemModifier, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItem, type LineItemAdded, type LineItemDiscount, type LineItemPricesData, type LineItemQuantityUpdate, ManualCalculationReason, type ManualCalculationReasonWithLiterals, type Membership, type MembershipName, type MembershipOptions, type MembershipPaymentCredits, type MerchantDiscount, type MessageEnvelope, type ModifierGroup, type MultiCurrencyPrice, NameInLineItem, type NameInLineItemWithLiterals, NameInOther, type NameInOtherWithLiterals, type Other, type OtherCharge, type PaymentOption, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PhysicalProperties, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlainTextValue, type PlatformFee, PlatformFeeChargeType, type PlatformFeeChargeTypeWithLiterals, type Policy, type PriceDescription, type PriceSummary, type ProductName, ProductPeriodAlignment, type ProductPeriodAlignmentWithLiterals, RateType, type RateTypeWithLiterals, type Region, type RemoveBusinessLocationRequest, type RemoveBusinessLocationResponse, type RemoveCouponFromCurrentCartRequest, type RemoveCouponRequest, type RemoveCouponResponse, type RemoveLineItemsFromCurrentCartRequest, type RemoveLineItemsRequest, type RemoveLineItemsResponse, type RestoreInfo, RuleType, type RuleTypeWithLiterals, type Scope, type SecuredMedia, type SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices, type SelectedMembership, type SelectedMemberships, type SelectedShippingOption, type ServiceProperties, Severity, type SeverityWithLiterals, type ShippingInformation, type ShippingOption, type ShippingPrice, type ShippingRegion, type StreetAddress, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionOptionInfo, type SubscriptionSettings, SuggestedFix, type SuggestedFixWithLiterals, type SystemError, type Target, type TargetLineItem, type TargetTargetTypeOneOf, type TaxBreakdown, type TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown, type TaxSummary, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type Title, type TranslatableString, type UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartLineItemQuantityRequest, type UpdateCurrentCartOptions, type UpdateLineItemsQuantityRequest, type UpdateLineItemsQuantityResponse, type V1Coupon, type V1DiscountRule, type V1DiscountRuleName, type V1ItemModifier, type V1MerchantDiscount, type V1ModifierGroup, type ValidationError, type VatId, VatType, type VatTypeWithLiterals, type Violation, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, addToCurrentCart, createCheckoutFromCurrentCart, deleteCurrentCart, estimateCurrentCartTotals, getCurrentCart, onCartCreated, onCartDeleted, onCartUpdated, removeCouponFromCurrentCart, removeLineItemsFromCurrentCart, updateCurrentCart, updateCurrentCartLineItemQuantity };
3487
+ export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddToCartRequest, type AddToCartResponse, type AddToCurrentCartAndEstimateTotalsRequest, type AddToCurrentCartOptions, type AddToCurrentCartRequest, type AdditionalFee, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type Address, type AddressLocation, type AddressWithContact, type AggregatedTaxBreakdown, type ApplicableLineItems, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, AppliedDiscountDiscountType, type AppliedDiscountDiscountTypeWithLiterals, type AutoTaxFallbackCalculationDetails, BalanceType, type BalanceTypeWithLiterals, type BaseEventMetadata, type Benefit, type BenefitQuotaOneOf, type BillingSettings, type BuyerInfo, type BuyerInfoIdOneOf, type CalculatedItemModifier, type CalculatedLineItem, type CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf, type Carrier, type CarrierError, type CarrierErrors, type CarrierServiceOption, type Cart, type CartCreatedEnvelope, type CartDeletedEnvelope, type CartDiscount, type CartDiscountDiscountSourceOneOf, type CartUpdatedEnvelope, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, ChargeType, type ChargeTypeWithLiterals, type Color, type Coupon, type CreateCartRequest, type CreateCartResponse, type CreateCheckoutFromCurrentCartOptions, type CreateCheckoutFromCurrentCartRequest, type CreateCheckoutRequest, type CreateCheckoutResponse, type CustomLineItem, type DeleteCartRequest, type DeleteCartResponse, type DeleteCurrentCartRequest, type DeliveryAllocation, type DeliveryLogistics, type DeliveryTimeSlot, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type Details, type DetailsKindOneOf, type Dimensions, DimensionsUnit, type DimensionsUnitWithLiterals, type DiscountRule, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EstimateCurrentCartTotalsOptions, type EstimateCurrentCartTotalsRequest, type EstimateTotalsRequest, type EstimateTotalsResponse, type EventMetadata, type ExtendedFields, FallbackReason, type FallbackReasonWithLiterals, type FieldViolation, FileType, type FileTypeWithLiterals, type FocalPoint, type FreeTrialPeriod, type FullAddressContactDetails, type GetCartByCheckoutIdRequest, type GetCartByCheckoutIdResponse, type GetCartRequest, type GetCartResponse, type GetCurrentCartApplicationErrors, type GetCurrentCartRequest, type GetCurrentCartResponse, type GiftCard, type GiftCardCalculationError, type Group, type HostSelectedMembership, type IdentificationData, type IdentificationDataIdOneOf, type InvalidMembership, type ItemAvailabilityInfo, ItemAvailabilityStatus, type ItemAvailabilityStatusWithLiterals, type ItemCombination, type ItemCombinationLineItem, type ItemModifier, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LimitedQuota, LimitedQuotaType, type LimitedQuotaTypeWithLiterals, type LineItem, type LineItemAdded, type LineItemDiscount, type LineItemPricesData, type LineItemQuantityUpdate, ManualCalculationReason, type ManualCalculationReasonWithLiterals, type Membership, type MembershipName, type MembershipOptions, type MembershipPaymentCredits, type MerchantDiscount, type MessageEnvelope, type ModifierGroup, type MultiCurrencyPrice, NameInLineItem, type NameInLineItemWithLiterals, NameInOther, type NameInOtherWithLiterals, type Other, type OtherCharge, type PaymentOption, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PhysicalProperties, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlainTextValue, type PlatformFee, PlatformFeeChargeType, type PlatformFeeChargeTypeWithLiterals, type Policy, type PriceDescription, type PriceSummary, type ProductName, ProductPeriodAlignment, type ProductPeriodAlignmentWithLiterals, QuotaType, type QuotaTypeWithLiterals, RateType, type RateTypeWithLiterals, type Region, type RemoveBusinessLocationRequest, type RemoveBusinessLocationResponse, type RemoveCouponFromCurrentCartRequest, type RemoveCouponRequest, type RemoveCouponResponse, type RemoveLineItemsFromCurrentCartRequest, type RemoveLineItemsRequest, type RemoveLineItemsResponse, type RestoreInfo, RuleType, type RuleTypeWithLiterals, type Scope, type SecuredMedia, type SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices, type SelectedMembership, type SelectedMemberships, type SelectedShippingOption, type ServiceProperties, Severity, type SeverityWithLiterals, type ShippingInformation, type ShippingOption, type ShippingPrice, type ShippingRegion, type StreetAddress, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionOptionInfo, type SubscriptionSettings, SuggestedFix, type SuggestedFixWithLiterals, type SystemError, type Target, type TargetLineItem, type TargetTargetTypeOneOf, type TaxBreakdown, type TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown, type TaxSummary, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type Title, type TranslatableString, type UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartLineItemQuantityRequest, type UpdateCurrentCartOptions, type UpdateLineItemsQuantityRequest, type UpdateLineItemsQuantityResponse, type V1Coupon, type V1DiscountRule, type V1DiscountRuleName, type V1ItemModifier, type V1MerchantDiscount, type V1ModifierGroup, type ValidationError, type VatId, VatType, type VatTypeWithLiterals, type Violation, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, addToCurrentCart, createCheckoutFromCurrentCart, deleteCurrentCart, estimateCurrentCartTotals, getCurrentCart, onCartCreated, onCartDeleted, onCartUpdated, removeCouponFromCurrentCart, removeLineItemsFromCurrentCart, updateCurrentCart, updateCurrentCartLineItemQuantity };
@@ -33,6 +33,7 @@ __export(index_typings_exports, {
33
33
  ItemAvailabilityStatus: () => ItemAvailabilityStatus,
34
34
  ItemTypePreset: () => ItemTypePreset,
35
35
  JurisdictionType: () => JurisdictionType,
36
+ LimitedQuotaType: () => LimitedQuotaType,
36
37
  ManualCalculationReason: () => ManualCalculationReason,
37
38
  NameInLineItem: () => NameInLineItem,
38
39
  NameInOther: () => NameInOther,
@@ -40,6 +41,7 @@ __export(index_typings_exports, {
40
41
  PickupMethod: () => PickupMethod,
41
42
  PlatformFeeChargeType: () => PlatformFeeChargeType,
42
43
  ProductPeriodAlignment: () => ProductPeriodAlignment,
44
+ QuotaType: () => QuotaType,
43
45
  RateType: () => RateType,
44
46
  RuleType: () => RuleType,
45
47
  Severity: () => Severity,
@@ -868,6 +870,16 @@ var BalanceType = /* @__PURE__ */ ((BalanceType2) => {
868
870
  BalanceType2["CREDIT"] = "CREDIT";
869
871
  return BalanceType2;
870
872
  })(BalanceType || {});
873
+ var QuotaType = /* @__PURE__ */ ((QuotaType2) => {
874
+ QuotaType2["LIMITED"] = "LIMITED";
875
+ QuotaType2["UNLIMITED"] = "UNLIMITED";
876
+ return QuotaType2;
877
+ })(QuotaType || {});
878
+ var LimitedQuotaType = /* @__PURE__ */ ((LimitedQuotaType2) => {
879
+ LimitedQuotaType2["PUNCH_CARD"] = "PUNCH_CARD";
880
+ LimitedQuotaType2["CREDIT"] = "CREDIT";
881
+ return LimitedQuotaType2;
882
+ })(LimitedQuotaType || {});
871
883
  var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
872
884
  AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
873
885
  AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
@@ -1389,6 +1401,7 @@ async function deleteCurrentCart2() {
1389
1401
  ItemAvailabilityStatus,
1390
1402
  ItemTypePreset,
1391
1403
  JurisdictionType,
1404
+ LimitedQuotaType,
1392
1405
  ManualCalculationReason,
1393
1406
  NameInLineItem,
1394
1407
  NameInOther,
@@ -1396,6 +1409,7 @@ async function deleteCurrentCart2() {
1396
1409
  PickupMethod,
1397
1410
  PlatformFeeChargeType,
1398
1411
  ProductPeriodAlignment,
1412
+ QuotaType,
1399
1413
  RateType,
1400
1414
  RuleType,
1401
1415
  Severity,