@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.
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +17 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +219 -1
- package/build/cjs/index.typings.js +17 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +219 -1
- package/build/cjs/meta.js +17 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +15 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +219 -1
- package/build/es/index.typings.mjs +15 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +219 -1
- package/build/es/meta.mjs +15 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +17 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +237 -1
- package/build/internal/cjs/index.typings.js +17 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +219 -1
- package/build/internal/cjs/meta.js +17 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +15 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +237 -1
- package/build/internal/es/index.typings.mjs +15 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +219 -1
- package/build/internal/es/meta.mjs +15 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -2498,19 +2498,46 @@ interface GiftCardCalculationError {
|
|
|
2498
2498
|
interface MembershipOptions {
|
|
2499
2499
|
/**
|
|
2500
2500
|
* List of payment options that can be used.
|
|
2501
|
+
* Populated by the legacy ListEligibleMemberships flow.
|
|
2501
2502
|
* @maxSize 300
|
|
2503
|
+
* @deprecated List of payment options that can be used.
|
|
2504
|
+
* Populated by the legacy ListEligibleMemberships flow.
|
|
2505
|
+
* @replacedBy validated_existing_memberships
|
|
2506
|
+
* @targetRemovalDate 2026-10-01
|
|
2502
2507
|
*/
|
|
2503
2508
|
eligibleMemberships?: Membership[];
|
|
2504
2509
|
/**
|
|
2505
2510
|
* List of payment options that are owned by the member, but cannot be used due to reason provided.
|
|
2511
|
+
* Populated by the legacy ListEligibleMemberships flow.
|
|
2506
2512
|
* @maxSize 300
|
|
2513
|
+
* @deprecated List of payment options that are owned by the member, but cannot be used due to reason provided.
|
|
2514
|
+
* Populated by the legacy ListEligibleMemberships flow.
|
|
2515
|
+
* @replacedBy validated_existing_memberships
|
|
2516
|
+
* @targetRemovalDate 2026-10-01
|
|
2507
2517
|
*/
|
|
2508
2518
|
invalidMemberships?: InvalidMembership[];
|
|
2509
2519
|
/**
|
|
2510
2520
|
* The selected membership payment options and which line items they apply to.
|
|
2521
|
+
* Populated by the legacy ListEligibleMemberships flow.
|
|
2511
2522
|
* @maxSize 300
|
|
2523
|
+
* @deprecated The selected membership payment options and which line items they apply to.
|
|
2524
|
+
* Populated by the legacy ListEligibleMemberships flow.
|
|
2525
|
+
* @replacedBy validated_existing_memberships
|
|
2526
|
+
* @targetRemovalDate 2026-10-01
|
|
2512
2527
|
*/
|
|
2513
2528
|
selectedMemberships?: HostSelectedMembership[];
|
|
2529
|
+
/**
|
|
2530
|
+
* Validated existing memberships selected for redemption, each with the line items it can cover.
|
|
2531
|
+
* Populated by the EnhanceAndValidateSelection flow.
|
|
2532
|
+
* @internal
|
|
2533
|
+
*/
|
|
2534
|
+
validatedExistingMemberships?: ValidatedExistingMemberships;
|
|
2535
|
+
/**
|
|
2536
|
+
* Validated future plans (purchasable during this checkout) and how their benefits cover the line items.
|
|
2537
|
+
* Populated by the EnhanceAndValidateSelection flow.
|
|
2538
|
+
* @internal
|
|
2539
|
+
*/
|
|
2540
|
+
validatedPurchasablePlans?: ValidatedPurchasablePlans;
|
|
2514
2541
|
}
|
|
2515
2542
|
interface Membership {
|
|
2516
2543
|
/**
|
|
@@ -2610,6 +2637,215 @@ interface InvalidMembership {
|
|
|
2610
2637
|
*/
|
|
2611
2638
|
reason?: string;
|
|
2612
2639
|
}
|
|
2640
|
+
/** Same shape as `ListExistingMembershipsResponse.memberships`. */
|
|
2641
|
+
interface ValidatedExistingMemberships {
|
|
2642
|
+
/**
|
|
2643
|
+
* The selected memberships, each paired with the line items it can redeem and the cost to redeem each.
|
|
2644
|
+
* @maxSize 300
|
|
2645
|
+
*/
|
|
2646
|
+
memberships?: ExistingMembership[];
|
|
2647
|
+
}
|
|
2648
|
+
/**
|
|
2649
|
+
* A membership the member already owns, together with the input line items it can pay for.
|
|
2650
|
+
*
|
|
2651
|
+
* A membership is a single benefit granted by a plan the member has already paid for, so coverage is
|
|
2652
|
+
* nested here per membership (no `benefit_id` linkage is needed, unlike a plan that grants many benefits).
|
|
2653
|
+
*/
|
|
2654
|
+
interface ExistingMembership {
|
|
2655
|
+
/** The membership the member owns. */
|
|
2656
|
+
membership?: V1Membership;
|
|
2657
|
+
/**
|
|
2658
|
+
* The input line items this membership can pay for, and the cost to redeem each.
|
|
2659
|
+
* @maxSize 300
|
|
2660
|
+
*/
|
|
2661
|
+
coveredLineItems?: CoveredLineItem[];
|
|
2662
|
+
}
|
|
2663
|
+
interface V1Membership {
|
|
2664
|
+
/**
|
|
2665
|
+
* Membership ID.
|
|
2666
|
+
* @minLength 1
|
|
2667
|
+
* @maxLength 100
|
|
2668
|
+
*/
|
|
2669
|
+
_id?: string;
|
|
2670
|
+
/** Membership name. */
|
|
2671
|
+
name?: MembershipName;
|
|
2672
|
+
/**
|
|
2673
|
+
* Deprecated. Use `ExistingMembership.covered_line_items` to see which line items this membership covers.
|
|
2674
|
+
* @minSize 1
|
|
2675
|
+
* @maxSize 300
|
|
2676
|
+
* @minLength 1
|
|
2677
|
+
* @maxLength 100
|
|
2678
|
+
* @deprecated
|
|
2679
|
+
* @replacedBy ExistingMembership.covered_line_items.line_item_id
|
|
2680
|
+
* @targetRemovalDate 2026-07-30
|
|
2681
|
+
*/
|
|
2682
|
+
lineItemIds?: string[];
|
|
2683
|
+
/** Membership's payment credits (balance information). */
|
|
2684
|
+
credits?: MembershipPaymentCredits;
|
|
2685
|
+
/**
|
|
2686
|
+
* Membership expiration date.
|
|
2687
|
+
* @deprecated
|
|
2688
|
+
* @replacedBy offering_description
|
|
2689
|
+
* @targetRemovalDate 2026-07-30
|
|
2690
|
+
*/
|
|
2691
|
+
expirationDate?: Date | null;
|
|
2692
|
+
/**
|
|
2693
|
+
* Deprecated. Use `offering_description` for human-readable provider data.
|
|
2694
|
+
* @deprecated
|
|
2695
|
+
* @replacedBy offering_description
|
|
2696
|
+
* @targetRemovalDate 2026-07-30
|
|
2697
|
+
*/
|
|
2698
|
+
additionalData?: Record<string, any> | null;
|
|
2699
|
+
/**
|
|
2700
|
+
* Human-readable offering summary for display (for example price and validity text). Provider-supplied.
|
|
2701
|
+
* @internal
|
|
2702
|
+
* @maxLength 500
|
|
2703
|
+
*/
|
|
2704
|
+
offeringDescription?: string | null;
|
|
2705
|
+
}
|
|
2706
|
+
/** A line item a membership can pay for, and the cost to redeem it. */
|
|
2707
|
+
interface CoveredLineItem {
|
|
2708
|
+
/**
|
|
2709
|
+
* The input line item this membership can cover.
|
|
2710
|
+
* @minLength 1
|
|
2711
|
+
* @maxLength 100
|
|
2712
|
+
*/
|
|
2713
|
+
lineItemId?: string;
|
|
2714
|
+
/**
|
|
2715
|
+
* The amount to redeem from the membership's benefit quota (`benefit.limited_quota.remaining`) for this item.
|
|
2716
|
+
* Always 0 when the benefit is unlimited (nothing is decremented).
|
|
2717
|
+
*/
|
|
2718
|
+
redemptionCost?: number;
|
|
2719
|
+
}
|
|
2720
|
+
/** Same shape as `ListPurchasablePlansResponse`. */
|
|
2721
|
+
interface ValidatedPurchasablePlans {
|
|
2722
|
+
/**
|
|
2723
|
+
* The selected plans.
|
|
2724
|
+
* @maxSize 300
|
|
2725
|
+
*/
|
|
2726
|
+
purchasablePlans?: PurchasablePlan[];
|
|
2727
|
+
/**
|
|
2728
|
+
* How the plans' benefits cover the line items, linked to a benefit by `benefit_id`.
|
|
2729
|
+
* @maxSize 300
|
|
2730
|
+
*/
|
|
2731
|
+
coverages?: LineItemCoverage[];
|
|
2732
|
+
}
|
|
2733
|
+
interface PurchasablePlan {
|
|
2734
|
+
/** Catalog and item reference for the plan that can be purchased. */
|
|
2735
|
+
catalogReference?: CatalogReference;
|
|
2736
|
+
/** Plan name. */
|
|
2737
|
+
name?: MembershipName;
|
|
2738
|
+
/**
|
|
2739
|
+
* Benefits the plan would grant once purchased. Multiple entries support multi-benefit plans (e.g., a bundle granting separate yoga and pilates credits).
|
|
2740
|
+
* @minSize 1
|
|
2741
|
+
* @maxSize 50
|
|
2742
|
+
*/
|
|
2743
|
+
benefits?: Benefit[];
|
|
2744
|
+
/**
|
|
2745
|
+
* Human-readable offering summary for display (for example price and validity text). Provider-supplied.
|
|
2746
|
+
* @maxLength 500
|
|
2747
|
+
*/
|
|
2748
|
+
offeringDescription?: string | null;
|
|
2749
|
+
/**
|
|
2750
|
+
* URL the buyer is redirected to in order to collect additional info required to purchase this plan.
|
|
2751
|
+
* @format WEB_URL
|
|
2752
|
+
*/
|
|
2753
|
+
infoCollectionUrl?: string | null;
|
|
2754
|
+
/**
|
|
2755
|
+
* Plan price.
|
|
2756
|
+
* @decimalValue options { gte:0, maxScale:3 }
|
|
2757
|
+
*/
|
|
2758
|
+
price?: string;
|
|
2759
|
+
/**
|
|
2760
|
+
* Human-readable description of the plan price (for example "First month free, then $20/month").
|
|
2761
|
+
*
|
|
2762
|
+
* `price` is simply the price (useful for sorting or comparison, for example), while this is a
|
|
2763
|
+
* descriptive, display-oriented summary of it.
|
|
2764
|
+
* @maxLength 500
|
|
2765
|
+
*/
|
|
2766
|
+
priceDescription?: string | null;
|
|
2767
|
+
}
|
|
2768
|
+
/**
|
|
2769
|
+
* A single redeemable benefit. A purchasable plan grants one or more benefits (`PurchasablePlan.benefits`);
|
|
2770
|
+
* once the plan is paid, each benefit becomes its own membership (charged via `membership_id`).
|
|
2771
|
+
*/
|
|
2772
|
+
interface Benefit extends BenefitQuotaOneOf {
|
|
2773
|
+
limitedQuota?: LimitedQuota;
|
|
2774
|
+
/**
|
|
2775
|
+
* Identifier for this benefit. On a `PurchasablePlan` it must be unique within the response so
|
|
2776
|
+
* `coverages` (`LineItemCoverage.benefit_id`) can reference it unambiguously across the plan's benefits.
|
|
2777
|
+
* @minLength 1
|
|
2778
|
+
* @maxLength 200
|
|
2779
|
+
*/
|
|
2780
|
+
benefitId?: string;
|
|
2781
|
+
/**
|
|
2782
|
+
* Human-readable label for this benefit (for example, "Manicure" or "Pedicure" on multi-set punchcards).
|
|
2783
|
+
* @maxLength 200
|
|
2784
|
+
*/
|
|
2785
|
+
label?: string | null;
|
|
2786
|
+
/**
|
|
2787
|
+
* The kind of quota this benefit grants: a countable amount drawn down on redemption (`LIMITED`),
|
|
2788
|
+
* or an unbounded amount that is never drawn down (`UNLIMITED`).
|
|
2789
|
+
*/
|
|
2790
|
+
quotaType?: QuotaTypeWithLiterals;
|
|
2791
|
+
}
|
|
2792
|
+
/** @oneof */
|
|
2793
|
+
interface BenefitQuotaOneOf {
|
|
2794
|
+
limitedQuota?: LimitedQuota;
|
|
2795
|
+
}
|
|
2796
|
+
declare enum QuotaType {
|
|
2797
|
+
/** The benefit grants a countable quota that is drawn down on redemption. */
|
|
2798
|
+
LIMITED = "LIMITED",
|
|
2799
|
+
/** The benefit is unlimited (unbounded) and is never drawn down. */
|
|
2800
|
+
UNLIMITED = "UNLIMITED"
|
|
2801
|
+
}
|
|
2802
|
+
/** @enumType */
|
|
2803
|
+
type QuotaTypeWithLiterals = QuotaType | 'LIMITED' | 'UNLIMITED';
|
|
2804
|
+
/** A limited, countable redeemable amount. */
|
|
2805
|
+
interface LimitedQuota {
|
|
2806
|
+
/**
|
|
2807
|
+
* The quota's initial value.
|
|
2808
|
+
* @min 1
|
|
2809
|
+
*/
|
|
2810
|
+
total?: number;
|
|
2811
|
+
/** The quota's remaining value. */
|
|
2812
|
+
remaining?: number;
|
|
2813
|
+
/** How the quota is measured. */
|
|
2814
|
+
limitedQuotaType?: LimitedQuotaTypeWithLiterals;
|
|
2815
|
+
}
|
|
2816
|
+
declare enum LimitedQuotaType {
|
|
2817
|
+
/** Quota is measured in discrete uses (e.g., sessions, visits). */
|
|
2818
|
+
PUNCH_CARD = "PUNCH_CARD",
|
|
2819
|
+
/** Quota is measured in a currency-like value (e.g., points). */
|
|
2820
|
+
CREDIT = "CREDIT"
|
|
2821
|
+
}
|
|
2822
|
+
/** @enumType */
|
|
2823
|
+
type LimitedQuotaTypeWithLiterals = LimitedQuotaType | 'PUNCH_CARD' | 'CREDIT';
|
|
2824
|
+
/**
|
|
2825
|
+
* Maps a benefit to a line item it can cover, and at what cost, linked to a benefit by `benefit_id`.
|
|
2826
|
+
* One entry per (benefit, line item). Returned by `ListPurchasablePlans` (alongside `purchasable_plans`).
|
|
2827
|
+
* For the existing-memberships flow the equivalent mapping is `ExistingMembership.covered_line_items`,
|
|
2828
|
+
* which needs no `benefit_id` because a membership is a single benefit.
|
|
2829
|
+
*/
|
|
2830
|
+
interface LineItemCoverage {
|
|
2831
|
+
/**
|
|
2832
|
+
* The benefit that covers the line item, as returned in `Benefit.benefit_id`.
|
|
2833
|
+
* @minLength 1
|
|
2834
|
+
* @maxLength 200
|
|
2835
|
+
*/
|
|
2836
|
+
benefitId?: string;
|
|
2837
|
+
/**
|
|
2838
|
+
* The line item this benefit covers.
|
|
2839
|
+
* @minLength 1
|
|
2840
|
+
* @maxLength 100
|
|
2841
|
+
*/
|
|
2842
|
+
lineItemId?: string;
|
|
2843
|
+
/**
|
|
2844
|
+
* The amount to redeem from the benefit's `limited_quota.remaining` value for this item.
|
|
2845
|
+
* Always 0 for an unlimited benefit (nothing is decremented).
|
|
2846
|
+
*/
|
|
2847
|
+
redemptionCost?: number;
|
|
2848
|
+
}
|
|
2613
2849
|
interface AdditionalFee {
|
|
2614
2850
|
/**
|
|
2615
2851
|
* Additional fee's unique code (or ID) for future processing.
|
|
@@ -3633,4 +3869,4 @@ interface EstimateCurrentCartTotalsOptions {
|
|
|
3633
3869
|
*/
|
|
3634
3870
|
declare function deleteCurrentCart(): Promise<void>;
|
|
3635
3871
|
|
|
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 };
|
|
3872
|
+
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 };
|
|
@@ -580,6 +580,9 @@ function estimateCurrentCartTotals(payload) {
|
|
|
580
580
|
{ path: "membershipOptions.eligibleMemberships.expirationDate" },
|
|
581
581
|
{
|
|
582
582
|
path: "membershipOptions.invalidMemberships.membership.expirationDate"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
path: "membershipOptions.validatedExistingMemberships.memberships.membership.expirationDate"
|
|
583
586
|
}
|
|
584
587
|
]
|
|
585
588
|
},
|
|
@@ -808,6 +811,16 @@ var BalanceType = /* @__PURE__ */ ((BalanceType2) => {
|
|
|
808
811
|
BalanceType2["CREDIT"] = "CREDIT";
|
|
809
812
|
return BalanceType2;
|
|
810
813
|
})(BalanceType || {});
|
|
814
|
+
var QuotaType = /* @__PURE__ */ ((QuotaType2) => {
|
|
815
|
+
QuotaType2["LIMITED"] = "LIMITED";
|
|
816
|
+
QuotaType2["UNLIMITED"] = "UNLIMITED";
|
|
817
|
+
return QuotaType2;
|
|
818
|
+
})(QuotaType || {});
|
|
819
|
+
var LimitedQuotaType = /* @__PURE__ */ ((LimitedQuotaType2) => {
|
|
820
|
+
LimitedQuotaType2["PUNCH_CARD"] = "PUNCH_CARD";
|
|
821
|
+
LimitedQuotaType2["CREDIT"] = "CREDIT";
|
|
822
|
+
return LimitedQuotaType2;
|
|
823
|
+
})(LimitedQuotaType || {});
|
|
811
824
|
var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
|
|
812
825
|
AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
|
|
813
826
|
AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
|
|
@@ -1328,6 +1341,7 @@ export {
|
|
|
1328
1341
|
ItemAvailabilityStatus,
|
|
1329
1342
|
ItemTypePreset,
|
|
1330
1343
|
JurisdictionType,
|
|
1344
|
+
LimitedQuotaType,
|
|
1331
1345
|
ManualCalculationReason,
|
|
1332
1346
|
NameInLineItem,
|
|
1333
1347
|
NameInOther,
|
|
@@ -1335,6 +1349,7 @@ export {
|
|
|
1335
1349
|
PickupMethod,
|
|
1336
1350
|
PlatformFeeChargeType,
|
|
1337
1351
|
ProductPeriodAlignment,
|
|
1352
|
+
QuotaType,
|
|
1338
1353
|
RateType,
|
|
1339
1354
|
RuleType,
|
|
1340
1355
|
Severity,
|