@wix/auto_sdk_ecom_current-cart 1.0.173 → 1.0.175

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 +0 -14
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +2 -65
  5. package/build/cjs/index.typings.js +0 -14
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +2 -65
  8. package/build/cjs/meta.js +0 -14
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.js +2 -4
  11. package/build/cjs/schemas.js.map +1 -1
  12. package/build/es/index.d.mts +1 -1
  13. package/build/es/index.mjs +0 -12
  14. package/build/es/index.mjs.map +1 -1
  15. package/build/es/index.typings.d.mts +2 -65
  16. package/build/es/index.typings.mjs +0 -12
  17. package/build/es/index.typings.mjs.map +1 -1
  18. package/build/es/meta.d.mts +2 -65
  19. package/build/es/meta.mjs +0 -12
  20. package/build/es/meta.mjs.map +1 -1
  21. package/build/es/schemas.mjs +2 -4
  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 +0 -14
  25. package/build/internal/cjs/index.js.map +1 -1
  26. package/build/internal/cjs/index.typings.d.ts +7 -77
  27. package/build/internal/cjs/index.typings.js +0 -14
  28. package/build/internal/cjs/index.typings.js.map +1 -1
  29. package/build/internal/cjs/meta.d.ts +2 -65
  30. package/build/internal/cjs/meta.js +0 -14
  31. package/build/internal/cjs/meta.js.map +1 -1
  32. package/build/internal/cjs/schemas.js +2 -4
  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 +0 -12
  36. package/build/internal/es/index.mjs.map +1 -1
  37. package/build/internal/es/index.typings.d.mts +7 -77
  38. package/build/internal/es/index.typings.mjs +0 -12
  39. package/build/internal/es/index.typings.mjs.map +1 -1
  40. package/build/internal/es/meta.d.mts +2 -65
  41. package/build/internal/es/meta.mjs +0 -12
  42. package/build/internal/es/meta.mjs.map +1 -1
  43. package/build/internal/es/schemas.mjs +2 -4
  44. package/build/internal/es/schemas.mjs.map +1 -1
  45. package/package.json +2 -2
@@ -2534,13 +2534,7 @@ interface Membership {
2534
2534
  * @maxLength 100
2535
2535
  */
2536
2536
  lineItemIds?: string[];
2537
- /**
2538
- * Deprecated. The new flow no longer exposes raw balances on a membership; what a membership can pay
2539
- * for is conveyed by `ExistingMembership.covered_line_items` (per-item redemption cost).
2540
- * @deprecated
2541
- * @replacedBy ExistingMembership.covered_line_items.redemption_cost
2542
- * @targetRemovalDate 2026-07-30
2543
- */
2537
+ /** Membership's payment credits (balance information). */
2544
2538
  credits?: MembershipPaymentCredits;
2545
2539
  /**
2546
2540
  * Deprecated. Use `offering_description`.
@@ -2562,17 +2556,6 @@ interface Membership {
2562
2556
  * @maxLength 500
2563
2557
  */
2564
2558
  offeringDescription?: string | null;
2565
- /**
2566
- * Deprecated. A membership is a single benefit of a paid plan and no longer models benefits itself.
2567
- * What a membership can pay for is exposed by `ListExistingMembershipsResponse.memberships`
2568
- * (`ExistingMembership.covered_line_items`).
2569
- * @internal
2570
- * @maxSize 50
2571
- * @deprecated
2572
- * @replacedBy ExistingMembership.covered_line_items
2573
- * @targetRemovalDate 2026-07-30
2574
- */
2575
- benefits?: Benefit[];
2576
2559
  }
2577
2560
  interface MembershipName {
2578
2561
  /**
@@ -2595,8 +2578,12 @@ interface MembershipPaymentCredits {
2595
2578
  /** Membership's remaining value. */
2596
2579
  remaining?: number;
2597
2580
  /**
2598
- * The amount to redeem from the `remaining` balance (per item).
2581
+ * Deprecated. The new flow no longer exposes a per-item redemption cost on a membership's credits;
2582
+ * what a membership can pay for is conveyed by `ExistingMembership.covered_line_items` (per-item redemption cost).
2599
2583
  * @internal
2584
+ * @deprecated
2585
+ * @replacedBy ExistingMembership.covered_line_items.redemption_cost
2586
+ * @targetRemovalDate 2026-07-30
2600
2587
  */
2601
2588
  redemptionCost?: number;
2602
2589
  /**
@@ -2613,63 +2600,6 @@ declare enum BalanceType {
2613
2600
  }
2614
2601
  /** @enumType */
2615
2602
  type BalanceTypeWithLiterals = BalanceType | 'PUNCH_CARD' | 'CREDIT';
2616
- /**
2617
- * A single redeemable benefit. A purchasable plan grants one or more benefits (`PurchasablePlan.benefits`);
2618
- * once the plan is paid, each benefit becomes its own membership (charged via `membership_id`).
2619
- * (Also present on the deprecated `Membership.benefits`, retained for backward compatibility.)
2620
- */
2621
- interface Benefit extends BenefitQuotaOneOf {
2622
- limitedQuota?: LimitedQuota;
2623
- /**
2624
- * Identifier for this benefit. On a `PurchasablePlan` it must be unique within the response so
2625
- * `coverages` (`LineItemCoverage.benefit_id`) can reference it unambiguously across the plan's benefits.
2626
- * @minLength 1
2627
- * @maxLength 200
2628
- */
2629
- benefitId?: string;
2630
- /**
2631
- * Human-readable label for this benefit (for example, "Manicure" or "Pedicure" on multi-set punchcards).
2632
- * @maxLength 200
2633
- */
2634
- label?: string | null;
2635
- /**
2636
- * The kind of quota this benefit grants: a countable amount drawn down on redemption (`LIMITED`),
2637
- * or an unbounded amount that is never drawn down (`UNLIMITED`).
2638
- */
2639
- quotaType?: QuotaTypeWithLiterals;
2640
- }
2641
- /** @oneof */
2642
- interface BenefitQuotaOneOf {
2643
- limitedQuota?: LimitedQuota;
2644
- }
2645
- declare enum QuotaType {
2646
- /** The benefit grants a countable quota that is drawn down on redemption. */
2647
- LIMITED = "LIMITED",
2648
- /** The benefit is unlimited (unbounded) and is never drawn down. */
2649
- UNLIMITED = "UNLIMITED"
2650
- }
2651
- /** @enumType */
2652
- type QuotaTypeWithLiterals = QuotaType | 'LIMITED' | 'UNLIMITED';
2653
- /** A limited, countable redeemable amount. */
2654
- interface LimitedQuota {
2655
- /**
2656
- * The quota's initial value.
2657
- * @min 1
2658
- */
2659
- total?: number;
2660
- /** The quota's remaining value. */
2661
- remaining?: number;
2662
- /** How the quota is measured. */
2663
- limitedQuotaType?: LimitedQuotaTypeWithLiterals;
2664
- }
2665
- declare enum LimitedQuotaType {
2666
- /** Quota is measured in discrete uses (e.g., sessions, visits). */
2667
- PUNCH_CARD = "PUNCH_CARD",
2668
- /** Quota is measured in a currency-like value (e.g., points). */
2669
- CREDIT = "CREDIT"
2670
- }
2671
- /** @enumType */
2672
- type LimitedQuotaTypeWithLiterals = LimitedQuotaType | 'PUNCH_CARD' | 'CREDIT';
2673
2603
  interface InvalidMembership {
2674
2604
  /** Membership details. */
2675
2605
  membership?: Membership;
@@ -3703,4 +3633,4 @@ interface EstimateCurrentCartTotalsOptions {
3703
3633
  */
3704
3634
  declare function deleteCurrentCart(): Promise<void>;
3705
3635
 
3706
- 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 };
3636
+ 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 };
@@ -808,16 +808,6 @@ var BalanceType = /* @__PURE__ */ ((BalanceType2) => {
808
808
  BalanceType2["CREDIT"] = "CREDIT";
809
809
  return BalanceType2;
810
810
  })(BalanceType || {});
811
- var QuotaType = /* @__PURE__ */ ((QuotaType2) => {
812
- QuotaType2["LIMITED"] = "LIMITED";
813
- QuotaType2["UNLIMITED"] = "UNLIMITED";
814
- return QuotaType2;
815
- })(QuotaType || {});
816
- var LimitedQuotaType = /* @__PURE__ */ ((LimitedQuotaType2) => {
817
- LimitedQuotaType2["PUNCH_CARD"] = "PUNCH_CARD";
818
- LimitedQuotaType2["CREDIT"] = "CREDIT";
819
- return LimitedQuotaType2;
820
- })(LimitedQuotaType || {});
821
811
  var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
822
812
  AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
823
813
  AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
@@ -1338,7 +1328,6 @@ export {
1338
1328
  ItemAvailabilityStatus,
1339
1329
  ItemTypePreset,
1340
1330
  JurisdictionType,
1341
- LimitedQuotaType,
1342
1331
  ManualCalculationReason,
1343
1332
  NameInLineItem,
1344
1333
  NameInOther,
@@ -1346,7 +1335,6 @@ export {
1346
1335
  PickupMethod,
1347
1336
  PlatformFeeChargeType,
1348
1337
  ProductPeriodAlignment,
1349
- QuotaType,
1350
1338
  RateType,
1351
1339
  RuleType,
1352
1340
  Severity,