@wix/auto_sdk_ecom_current-cart 1.0.175 → 1.0.176

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 +17 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +219 -1
  5. package/build/cjs/index.typings.js +17 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +219 -1
  8. package/build/cjs/meta.js +17 -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 +15 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +219 -1
  14. package/build/es/index.typings.mjs +15 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +219 -1
  17. package/build/es/meta.mjs +15 -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 +17 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +237 -1
  23. package/build/internal/cjs/index.typings.js +17 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +219 -1
  26. package/build/internal/cjs/meta.js +17 -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 +15 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +237 -1
  32. package/build/internal/es/index.typings.mjs +15 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +219 -1
  35. package/build/internal/es/meta.mjs +15 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -2338,17 +2338,32 @@ interface GiftCardCalculationError {
2338
2338
  interface MembershipOptions {
2339
2339
  /**
2340
2340
  * List of payment options that can be used.
2341
+ * Populated by the legacy ListEligibleMemberships flow.
2341
2342
  * @maxSize 300
2343
+ * @deprecated List of payment options that can be used.
2344
+ * Populated by the legacy ListEligibleMemberships flow.
2345
+ * @replacedBy validated_existing_memberships
2346
+ * @targetRemovalDate 2026-10-01
2342
2347
  */
2343
2348
  eligibleMemberships?: Membership[];
2344
2349
  /**
2345
2350
  * List of payment options that are owned by the member, but cannot be used due to reason provided.
2351
+ * Populated by the legacy ListEligibleMemberships flow.
2346
2352
  * @maxSize 300
2353
+ * @deprecated List of payment options that are owned by the member, but cannot be used due to reason provided.
2354
+ * Populated by the legacy ListEligibleMemberships flow.
2355
+ * @replacedBy validated_existing_memberships
2356
+ * @targetRemovalDate 2026-10-01
2347
2357
  */
2348
2358
  invalidMemberships?: InvalidMembership[];
2349
2359
  /**
2350
2360
  * The selected membership payment options and which line items they apply to.
2361
+ * Populated by the legacy ListEligibleMemberships flow.
2351
2362
  * @maxSize 300
2363
+ * @deprecated The selected membership payment options and which line items they apply to.
2364
+ * Populated by the legacy ListEligibleMemberships flow.
2365
+ * @replacedBy validated_existing_memberships
2366
+ * @targetRemovalDate 2026-10-01
2352
2367
  */
2353
2368
  selectedMemberships?: HostSelectedMembership[];
2354
2369
  }
@@ -2430,6 +2445,209 @@ interface InvalidMembership {
2430
2445
  */
2431
2446
  reason?: string;
2432
2447
  }
2448
+ /** Same shape as `ListExistingMembershipsResponse.memberships`. */
2449
+ interface ValidatedExistingMemberships {
2450
+ /**
2451
+ * The selected memberships, each paired with the line items it can redeem and the cost to redeem each.
2452
+ * @maxSize 300
2453
+ */
2454
+ memberships?: ExistingMembership[];
2455
+ }
2456
+ /**
2457
+ * A membership the member already owns, together with the input line items it can pay for.
2458
+ *
2459
+ * A membership is a single benefit granted by a plan the member has already paid for, so coverage is
2460
+ * nested here per membership (no `benefit_id` linkage is needed, unlike a plan that grants many benefits).
2461
+ */
2462
+ interface ExistingMembership {
2463
+ /** The membership the member owns. */
2464
+ membership?: V1Membership;
2465
+ /**
2466
+ * The input line items this membership can pay for, and the cost to redeem each.
2467
+ * @maxSize 300
2468
+ */
2469
+ coveredLineItems?: CoveredLineItem[];
2470
+ }
2471
+ interface V1Membership {
2472
+ /**
2473
+ * Membership ID.
2474
+ * @minLength 1
2475
+ * @maxLength 100
2476
+ */
2477
+ _id?: string;
2478
+ /** Membership name. */
2479
+ name?: MembershipName;
2480
+ /**
2481
+ * Deprecated. Use `ExistingMembership.covered_line_items` to see which line items this membership covers.
2482
+ * @minSize 1
2483
+ * @maxSize 300
2484
+ * @minLength 1
2485
+ * @maxLength 100
2486
+ * @deprecated
2487
+ * @replacedBy ExistingMembership.covered_line_items.line_item_id
2488
+ * @targetRemovalDate 2026-07-30
2489
+ */
2490
+ lineItemIds?: string[];
2491
+ /** Membership's payment credits (balance information). */
2492
+ credits?: MembershipPaymentCredits;
2493
+ /**
2494
+ * Membership expiration date.
2495
+ * @deprecated
2496
+ * @replacedBy offering_description
2497
+ * @targetRemovalDate 2026-07-30
2498
+ */
2499
+ expirationDate?: Date | null;
2500
+ /**
2501
+ * Deprecated. Use `offering_description` for human-readable provider data.
2502
+ * @deprecated
2503
+ * @replacedBy offering_description
2504
+ * @targetRemovalDate 2026-07-30
2505
+ */
2506
+ additionalData?: Record<string, any> | null;
2507
+ }
2508
+ /** A line item a membership can pay for, and the cost to redeem it. */
2509
+ interface CoveredLineItem {
2510
+ /**
2511
+ * The input line item this membership can cover.
2512
+ * @minLength 1
2513
+ * @maxLength 100
2514
+ */
2515
+ lineItemId?: string;
2516
+ /**
2517
+ * The amount to redeem from the membership's benefit quota (`benefit.limited_quota.remaining`) for this item.
2518
+ * Always 0 when the benefit is unlimited (nothing is decremented).
2519
+ */
2520
+ redemptionCost?: number;
2521
+ }
2522
+ /** Same shape as `ListPurchasablePlansResponse`. */
2523
+ interface ValidatedPurchasablePlans {
2524
+ /**
2525
+ * The selected plans.
2526
+ * @maxSize 300
2527
+ */
2528
+ purchasablePlans?: PurchasablePlan[];
2529
+ /**
2530
+ * How the plans' benefits cover the line items, linked to a benefit by `benefit_id`.
2531
+ * @maxSize 300
2532
+ */
2533
+ coverages?: LineItemCoverage[];
2534
+ }
2535
+ interface PurchasablePlan {
2536
+ /** Catalog and item reference for the plan that can be purchased. */
2537
+ catalogReference?: CatalogReference;
2538
+ /** Plan name. */
2539
+ name?: MembershipName;
2540
+ /**
2541
+ * Benefits the plan would grant once purchased. Multiple entries support multi-benefit plans (e.g., a bundle granting separate yoga and pilates credits).
2542
+ * @minSize 1
2543
+ * @maxSize 50
2544
+ */
2545
+ benefits?: Benefit[];
2546
+ /**
2547
+ * Human-readable offering summary for display (for example price and validity text). Provider-supplied.
2548
+ * @maxLength 500
2549
+ */
2550
+ offeringDescription?: string | null;
2551
+ /**
2552
+ * URL the buyer is redirected to in order to collect additional info required to purchase this plan.
2553
+ * @format WEB_URL
2554
+ */
2555
+ infoCollectionUrl?: string | null;
2556
+ /**
2557
+ * Plan price.
2558
+ * @decimalValue options { gte:0, maxScale:3 }
2559
+ */
2560
+ price?: string;
2561
+ /**
2562
+ * Human-readable description of the plan price (for example "First month free, then $20/month").
2563
+ *
2564
+ * `price` is simply the price (useful for sorting or comparison, for example), while this is a
2565
+ * descriptive, display-oriented summary of it.
2566
+ * @maxLength 500
2567
+ */
2568
+ priceDescription?: string | null;
2569
+ }
2570
+ /**
2571
+ * A single redeemable benefit. A purchasable plan grants one or more benefits (`PurchasablePlan.benefits`);
2572
+ * once the plan is paid, each benefit becomes its own membership (charged via `membership_id`).
2573
+ */
2574
+ interface Benefit extends BenefitQuotaOneOf {
2575
+ limitedQuota?: LimitedQuota;
2576
+ /**
2577
+ * Identifier for this benefit. On a `PurchasablePlan` it must be unique within the response so
2578
+ * `coverages` (`LineItemCoverage.benefit_id`) can reference it unambiguously across the plan's benefits.
2579
+ * @minLength 1
2580
+ * @maxLength 200
2581
+ */
2582
+ benefitId?: string;
2583
+ /**
2584
+ * Human-readable label for this benefit (for example, "Manicure" or "Pedicure" on multi-set punchcards).
2585
+ * @maxLength 200
2586
+ */
2587
+ label?: string | null;
2588
+ /**
2589
+ * The kind of quota this benefit grants: a countable amount drawn down on redemption (`LIMITED`),
2590
+ * or an unbounded amount that is never drawn down (`UNLIMITED`).
2591
+ */
2592
+ quotaType?: QuotaTypeWithLiterals;
2593
+ }
2594
+ /** @oneof */
2595
+ interface BenefitQuotaOneOf {
2596
+ limitedQuota?: LimitedQuota;
2597
+ }
2598
+ declare enum QuotaType {
2599
+ /** The benefit grants a countable quota that is drawn down on redemption. */
2600
+ LIMITED = "LIMITED",
2601
+ /** The benefit is unlimited (unbounded) and is never drawn down. */
2602
+ UNLIMITED = "UNLIMITED"
2603
+ }
2604
+ /** @enumType */
2605
+ type QuotaTypeWithLiterals = QuotaType | 'LIMITED' | 'UNLIMITED';
2606
+ /** A limited, countable redeemable amount. */
2607
+ interface LimitedQuota {
2608
+ /**
2609
+ * The quota's initial value.
2610
+ * @min 1
2611
+ */
2612
+ total?: number;
2613
+ /** The quota's remaining value. */
2614
+ remaining?: number;
2615
+ /** How the quota is measured. */
2616
+ limitedQuotaType?: LimitedQuotaTypeWithLiterals;
2617
+ }
2618
+ declare enum LimitedQuotaType {
2619
+ /** Quota is measured in discrete uses (e.g., sessions, visits). */
2620
+ PUNCH_CARD = "PUNCH_CARD",
2621
+ /** Quota is measured in a currency-like value (e.g., points). */
2622
+ CREDIT = "CREDIT"
2623
+ }
2624
+ /** @enumType */
2625
+ type LimitedQuotaTypeWithLiterals = LimitedQuotaType | 'PUNCH_CARD' | 'CREDIT';
2626
+ /**
2627
+ * Maps a benefit to a line item it can cover, and at what cost, linked to a benefit by `benefit_id`.
2628
+ * One entry per (benefit, line item). Returned by `ListPurchasablePlans` (alongside `purchasable_plans`).
2629
+ * For the existing-memberships flow the equivalent mapping is `ExistingMembership.covered_line_items`,
2630
+ * which needs no `benefit_id` because a membership is a single benefit.
2631
+ */
2632
+ interface LineItemCoverage {
2633
+ /**
2634
+ * The benefit that covers the line item, as returned in `Benefit.benefit_id`.
2635
+ * @minLength 1
2636
+ * @maxLength 200
2637
+ */
2638
+ benefitId?: string;
2639
+ /**
2640
+ * The line item this benefit covers.
2641
+ * @minLength 1
2642
+ * @maxLength 100
2643
+ */
2644
+ lineItemId?: string;
2645
+ /**
2646
+ * The amount to redeem from the benefit's `limited_quota.remaining` value for this item.
2647
+ * Always 0 for an unlimited benefit (nothing is decremented).
2648
+ */
2649
+ redemptionCost?: number;
2650
+ }
2433
2651
  interface AdditionalFee {
2434
2652
  /**
2435
2653
  * Additional fee's unique code (or ID) for future processing.
@@ -3423,4 +3641,4 @@ interface EstimateCurrentCartTotalsOptions {
3423
3641
  */
3424
3642
  declare function deleteCurrentCart(): Promise<void>;
3425
3643
 
3426
- 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 };
3644
+ 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 CoveredLineItem, 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 ExistingMembership, 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 LineItemCoverage, 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, type PurchasablePlan, 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 V1Membership, type V1MerchantDiscount, type V1ModifierGroup, type ValidatedExistingMemberships, type ValidatedPurchasablePlans, 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,
@@ -640,6 +642,9 @@ function estimateCurrentCartTotals(payload) {
640
642
  { path: "membershipOptions.eligibleMemberships.expirationDate" },
641
643
  {
642
644
  path: "membershipOptions.invalidMemberships.membership.expirationDate"
645
+ },
646
+ {
647
+ path: "membershipOptions.validatedExistingMemberships.memberships.membership.expirationDate"
643
648
  }
644
649
  ]
645
650
  },
@@ -868,6 +873,16 @@ var BalanceType = /* @__PURE__ */ ((BalanceType2) => {
868
873
  BalanceType2["CREDIT"] = "CREDIT";
869
874
  return BalanceType2;
870
875
  })(BalanceType || {});
876
+ var QuotaType = /* @__PURE__ */ ((QuotaType2) => {
877
+ QuotaType2["LIMITED"] = "LIMITED";
878
+ QuotaType2["UNLIMITED"] = "UNLIMITED";
879
+ return QuotaType2;
880
+ })(QuotaType || {});
881
+ var LimitedQuotaType = /* @__PURE__ */ ((LimitedQuotaType2) => {
882
+ LimitedQuotaType2["PUNCH_CARD"] = "PUNCH_CARD";
883
+ LimitedQuotaType2["CREDIT"] = "CREDIT";
884
+ return LimitedQuotaType2;
885
+ })(LimitedQuotaType || {});
871
886
  var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
872
887
  AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
873
888
  AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
@@ -1389,6 +1404,7 @@ async function deleteCurrentCart2() {
1389
1404
  ItemAvailabilityStatus,
1390
1405
  ItemTypePreset,
1391
1406
  JurisdictionType,
1407
+ LimitedQuotaType,
1392
1408
  ManualCalculationReason,
1393
1409
  NameInLineItem,
1394
1410
  NameInOther,
@@ -1396,6 +1412,7 @@ async function deleteCurrentCart2() {
1396
1412
  PickupMethod,
1397
1413
  PlatformFeeChargeType,
1398
1414
  ProductPeriodAlignment,
1415
+ QuotaType,
1399
1416
  RateType,
1400
1417
  RuleType,
1401
1418
  Severity,