@wix/auto_sdk_ecom_cart 1.0.181 → 1.0.183

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.
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
2
  import { CreateCartOptions, Cart, CreateCartApplicationErrors, UpdateCartOptions, UpdateCartApplicationErrors, GetCartByCheckoutIdResponse, AddToCartOptions, AddToCartResponse, AddToCartApplicationErrors, RemoveLineItemsResponse, CreateCheckoutOptions, CreateCheckoutResponse, CreateCheckoutApplicationErrors, RemoveCouponResponse, LineItemQuantityUpdate, UpdateLineItemsQuantityResponse, EstimateTotalsOptions, EstimateTotalsResponse, RemoveBusinessLocationResponse, CartDeletedEnvelope, CartUpdatedEnvelope, CartCreatedEnvelope } from './index.typings.js';
3
- export { AccountInfo, AccountInfoMetadata, ActionEvent, AddToCartRequest, AddToCurrentCartAndEstimateTotalsRequest, AddToCurrentCartRequest, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, Address, AddressLocation, AddressWithContact, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AppliedDiscountDiscountType, AppliedDiscountDiscountTypeWithLiterals, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, BaseEventMetadata, Benefit, BenefitQuotaOneOf, BillingSettings, BuyerInfo, BuyerInfoIdOneOf, CalculatedItemModifier, CalculatedLineItem, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CartDiscount, CartDiscountDiscountSourceOneOf, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, ChargeType, ChargeTypeWithLiterals, Color, Coupon, CoveredLineItem, CreateCartRequest, CreateCartResponse, CreateCheckoutFromCurrentCartRequest, CreateCheckoutRequest, CustomLineItem, DeleteCartRequest, DeleteCartResponse, DeleteCurrentCartRequest, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, DiscountRule, DiscountRuleName, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EstimateCurrentCartTotalsRequest, EstimateTotalsRequest, EventMetadata, ExistingMembership, ExtendedFields, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FocalPoint, FreeTrialPeriod, FullAddressContactDetails, GetCartByCheckoutIdRequest, GetCartRequest, GetCartResponse, GetCurrentCartRequest, GetCurrentCartResponse, GiftCard, GiftCardCalculationError, Group, HostSelectedMembership, IdentificationData, IdentificationDataIdOneOf, InvalidMembership, ItemAvailabilityInfo, ItemAvailabilityStatus, ItemAvailabilityStatusWithLiterals, ItemCombination, ItemCombinationLineItem, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, JurisdictionType, JurisdictionTypeWithLiterals, LimitedQuota, LimitedQuotaType, LimitedQuotaTypeWithLiterals, LineItem, LineItemAdded, LineItemCoverage, LineItemDiscount, LineItemPricesData, ManualCalculationReason, ManualCalculationReasonWithLiterals, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, OtherCharge, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlainTextValue, PlatformFee, PlatformFeeChargeType, PlatformFeeChargeTypeWithLiterals, Policy, PriceDescription, PriceSummary, ProductName, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, PurchasablePlan, QuotaType, QuotaTypeWithLiterals, RateType, RateTypeWithLiterals, Region, RemoveBusinessLocationRequest, RemoveCouponFromCurrentCartRequest, RemoveCouponRequest, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsRequest, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, SelectedShippingOption, ServiceProperties, Severity, SeverityWithLiterals, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, StreetAddress, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetLineItem, TargetTargetTypeOneOf, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UpdateCartRequest, UpdateCartResponse, UpdateCurrentCartLineItemQuantityRequest, UpdateLineItemsQuantityRequest, V1Coupon, V1DiscountRule, V1DiscountRuleName, V1ItemModifier, V1Membership, V1MerchantDiscount, V1ModifierGroup, ValidatedExistingMemberships, ValidatedPurchasablePlans, ValidationError, VatId, VatType, VatTypeWithLiterals, Violation, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.typings.js';
3
+ export { AccountInfo, AccountInfoMetadata, ActionEvent, AddToCartRequest, AddToCurrentCartAndEstimateTotalsRequest, AddToCurrentCartRequest, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, Address, AddressLocation, AddressWithContact, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AppliedDiscountDiscountType, AppliedDiscountDiscountTypeWithLiterals, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, BaseEventMetadata, Benefit, BenefitQuotaOneOf, BillingSettings, BuyerInfo, BuyerInfoIdOneOf, CalculatedItemModifier, CalculatedLineItem, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CartDiscount, CartDiscountDiscountSourceOneOf, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, ChargeType, ChargeTypeWithLiterals, Color, Coupon, CoveredLineItem, CreateCartRequest, CreateCartResponse, CreateCheckoutFromCurrentCartRequest, CreateCheckoutRequest, CustomLineItem, CyclePriceOverride, DeleteCartRequest, DeleteCartResponse, DeleteCurrentCartRequest, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, DiscountRule, DiscountRuleName, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EstimateCurrentCartTotalsRequest, EstimateTotalsRequest, EventMetadata, ExistingMembership, ExtendedFields, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FocalPoint, FreeTrialPeriod, FullAddressContactDetails, GetCartByCheckoutIdRequest, GetCartRequest, GetCartResponse, GetCurrentCartRequest, GetCurrentCartResponse, GiftCard, GiftCardCalculationError, Group, HostSelectedMembership, IdentificationData, IdentificationDataIdOneOf, InvalidMembership, ItemAvailabilityInfo, ItemAvailabilityStatus, ItemAvailabilityStatusWithLiterals, ItemCombination, ItemCombinationLineItem, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, JurisdictionType, JurisdictionTypeWithLiterals, LimitedQuota, LimitedQuotaType, LimitedQuotaTypeWithLiterals, LineItem, LineItemAdded, LineItemCoverage, LineItemDiscount, LineItemPricesData, ManualCalculationReason, ManualCalculationReasonWithLiterals, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, OtherCharge, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlainTextValue, PlatformFee, PlatformFeeChargeType, PlatformFeeChargeTypeWithLiterals, Policy, PriceDescription, PriceSummary, ProductName, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, PurchasablePlan, QuotaType, QuotaTypeWithLiterals, RateType, RateTypeWithLiterals, Region, RemoveBusinessLocationRequest, RemoveCouponFromCurrentCartRequest, RemoveCouponRequest, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsRequest, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, SelectedShippingOption, ServiceProperties, Severity, SeverityWithLiterals, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, StreetAddress, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetLineItem, TargetTargetTypeOneOf, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UpdateCartRequest, UpdateCartResponse, UpdateCurrentCartLineItemQuantityRequest, UpdateLineItemsQuantityRequest, V1Coupon, V1DiscountRule, V1DiscountRuleName, V1ItemModifier, V1Membership, V1MerchantDiscount, V1ModifierGroup, ValidatedExistingMemberships, ValidatedPurchasablePlans, ValidationError, VatId, VatType, VatTypeWithLiterals, Violation, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.typings.js';
4
4
 
5
5
  declare function createCart$1(httpClient: HttpClient): CreateCartSignature;
6
6
  interface CreateCartSignature {
@@ -709,7 +709,7 @@ interface SubscriptionSettings {
709
709
  * @min 1
710
710
  */
711
711
  billingCycles?: number | null;
712
- /** Whether to allow the customer to cancel the subscription.. */
712
+ /** Whether to allow the customer to cancel the subscription. */
713
713
  enableCustomerCancellation?: boolean;
714
714
  /**
715
715
  * Period until first cycle starts. If applied payNow will be 0
@@ -731,6 +731,15 @@ interface SubscriptionSettings {
731
731
  * @internal
732
732
  */
733
733
  productPeriodAlignment?: ProductPeriodAlignmentWithLiterals;
734
+ /**
735
+ * Unit prices for specified billing cycles of the subscription. Cycles that no entry covers
736
+ * are charged the item's `price`.
737
+ *
738
+ * When `billingCycles` is set, every entry must end on or before the last billing cycle.
739
+ * @internal
740
+ * @maxSize 1
741
+ */
742
+ cyclePriceOverrides?: CyclePriceOverride[];
734
743
  }
735
744
  /** Frequency unit of recurring payment */
736
745
  declare enum SubscriptionFrequency {
@@ -768,6 +777,27 @@ declare enum ProductPeriodAlignment {
768
777
  }
769
778
  /** @enumType */
770
779
  type ProductPeriodAlignmentWithLiterals = ProductPeriodAlignment | 'ALIGNED_WITH_BILLING_PERIOD' | 'NOT_ALIGNED_WITH_BILLING_PERIOD';
780
+ interface CyclePriceOverride {
781
+ /**
782
+ * __Required.__ First billing cycle the price applies to. The first paid cycle of the
783
+ * subscription is `1`. A free trial period, if any, is cycle `0`.
784
+ * @min 1
785
+ * @max 1
786
+ */
787
+ cycleFrom?: number;
788
+ /**
789
+ * __Required.__ Number of consecutive billing cycles the price applies to, starting at `cycleFrom`.
790
+ * @min 1
791
+ * @max 1
792
+ */
793
+ numberOfCycles?: number | null;
794
+ /**
795
+ * __Required.__ Unit price for the cycles this entry covers, in the item's currency.
796
+ * Can be higher than, lower than, or equal to the item's `price`.
797
+ * @decimalValue options { gte:0, lte:1000000000000000, maxScale:4 }
798
+ */
799
+ price?: string;
800
+ }
771
801
  interface Title {
772
802
  /**
773
803
  * Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
@@ -2815,27 +2845,29 @@ interface Membership {
2815
2845
  }
2816
2846
  interface MembershipName {
2817
2847
  /**
2818
- * Membership name.
2848
+ * Membership name in the site's original language.
2819
2849
  * @maxLength 100
2820
2850
  */
2821
2851
  original?: string;
2822
2852
  /**
2823
- * Translated membership name. Defaults to `original` when not provided.
2853
+ * Membership name translated into the buyer's language.
2854
+ *
2855
+ * Default: The value of `original`
2824
2856
  * @maxLength 100
2825
2857
  */
2826
2858
  translated?: string | null;
2827
2859
  }
2828
2860
  interface MembershipPaymentCredits {
2829
2861
  /**
2830
- * Membership's initial value.
2862
+ * Membership's initial balance.
2831
2863
  * @min 1
2832
2864
  */
2833
2865
  total?: number;
2834
- /** Membership's remaining value. */
2866
+ /** Membership's remaining balance. */
2835
2867
  remaining?: number;
2836
2868
  /**
2837
- * Deprecated. The new flow no longer exposes a per-item redemption cost on a membership's credits;
2838
- * what a membership can pay for is conveyed by `ExistingMembership.covered_line_items` (per-item redemption cost).
2869
+ * Deprecated. Use `ExistingMembership.coveredLineItems`, which carries the redemption cost per line
2870
+ * item. A membership's balance no longer states a per-item cost of its own.
2839
2871
  * @internal
2840
2872
  * @deprecated
2841
2873
  * @replacedBy ExistingMembership.covered_line_items.redemption_cost
@@ -2843,15 +2875,19 @@ interface MembershipPaymentCredits {
2843
2875
  */
2844
2876
  redemptionCost?: number;
2845
2877
  /**
2846
- * Membership's balance type.
2878
+ * How the membership's balance is measured.
2879
+ *
2880
+ * The same vocabulary as `LimitedQuota.limitedQuotaType` on the purchasable-plan side. The two are
2881
+ * separate types only because this one serves the legacy flow and is left untouched until List
2882
+ * Eligible Memberships is removed.
2847
2883
  * @internal
2848
2884
  */
2849
2885
  balanceType?: BalanceTypeWithLiterals;
2850
2886
  }
2851
2887
  declare enum BalanceType {
2852
- /** Balance is measured in discrete uses (e.g., sessions, visits). */
2888
+ /** Balance is measured in discrete uses, such as sessions or visits. */
2853
2889
  PUNCH_CARD = "PUNCH_CARD",
2854
- /** Balance is measured in a currency-like value (e.g., points). */
2890
+ /** Balance is measured in a currency-like value, such as points. */
2855
2891
  CREDIT = "CREDIT"
2856
2892
  }
2857
2893
  /** @enumType */
@@ -2866,25 +2902,26 @@ interface InvalidMembership {
2866
2902
  */
2867
2903
  reason?: string;
2868
2904
  }
2869
- /** Same shape as `ListExistingMembershipsResponse.memberships`. */
2905
+ /** The validated existing memberships. Same shape as `ListExistingMembershipsResponse.memberships`. */
2870
2906
  interface ValidatedExistingMemberships {
2871
2907
  /**
2872
- * The selected memberships, each paired with the line items it can redeem and the cost to redeem each.
2908
+ * The selected memberships, each paired with the line items it can pay for and the cost to redeem
2909
+ * each.
2873
2910
  * @maxSize 300
2874
2911
  */
2875
2912
  memberships?: ExistingMembership[];
2876
2913
  }
2877
2914
  /**
2878
- * A membership the member already owns, together with the input line items it can pay for.
2915
+ * A membership the member owns, together with the given line items it can pay for.
2879
2916
  *
2880
- * A membership is a single benefit granted by a plan the member has already paid for, so coverage is
2881
- * nested here per membership (no `benefit_id` linkage is needed, unlike a plan that grants many benefits).
2917
+ * A membership is a single benefit granted by a plan the member has already paid for, so its coverage
2918
+ * is nested directly here. No `benefitId` link is needed, unlike a plan that grants several benefits.
2882
2919
  */
2883
2920
  interface ExistingMembership {
2884
2921
  /** The membership the member owns. */
2885
2922
  membership?: V1Membership;
2886
2923
  /**
2887
- * The input line items this membership can pay for, and the cost to redeem each.
2924
+ * Line items this membership can pay for, and the cost to redeem each.
2888
2925
  * @maxSize 300
2889
2926
  */
2890
2927
  coveredLineItems?: CoveredLineItem[];
@@ -2899,11 +2936,10 @@ interface V1Membership {
2899
2936
  /** Membership name. */
2900
2937
  name?: MembershipName;
2901
2938
  /**
2902
- * Deprecated. Use `ExistingMembership.covered_line_items` to see which line items this membership covers.
2939
+ * Deprecated. Use `ExistingMembership.coveredLineItems` to see which line items this membership
2940
+ * covers.
2903
2941
  *
2904
- * Populate this only in the legacy `ListEligibleMemberships` flow, which still requires it and rejects a
2905
- * membership that omits it. Leave it empty everywhere else - `ListMembershipsByIds` receives no line items
2906
- * at all, so there is nothing to report there.
2942
+ * Populate this only in the legacy [List Eligible Memberships](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/payments/memberships/memberships-service-plugin/list-eligible-memberships) flow, which still requires it and rejects a membership that omits it. Leave it empty everywhere else. [List Memberships By IDs](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/payments/memberships/memberships-service-plugin/list-memberships-by-ids) receives no line items at all, so there's nothing to report there.
2907
2943
  * @maxSize 300
2908
2944
  * @minLength 1
2909
2945
  * @maxLength 100
@@ -2912,19 +2948,25 @@ interface V1Membership {
2912
2948
  * @targetRemovalDate 2026-08-30
2913
2949
  */
2914
2950
  lineItemIds?: string[];
2915
- /** Membership's payment credits (balance information). */
2951
+ /**
2952
+ * Membership's balance.
2953
+ *
2954
+ * Omit this field for an unlimited membership, which has no balance to draw down. Every
2955
+ * `ExistingMembership.coveredLineItems.redemptionCost` is then `0`. Unlike a plan's benefit, a
2956
+ * membership carries no explicit unlimited marker: the absence of a balance is the marker.
2957
+ */
2916
2958
  credits?: MembershipPaymentCredits;
2917
- /** Membership expiration date. */
2959
+ /** Date and time the membership expires. */
2918
2960
  expirationDate?: Date | null;
2919
2961
  /**
2920
- * Deprecated. Use `offering_description` for human-readable provider data.
2962
+ * Deprecated. Use `offeringDescription` for human-readable data about the offering.
2921
2963
  * @deprecated
2922
2964
  * @replacedBy offering_description
2923
2965
  * @targetRemovalDate 2026-08-30
2924
2966
  */
2925
2967
  additionalData?: Record<string, any> | null;
2926
2968
  /**
2927
- * Human-readable offering summary for display (for example price and validity text). Provider-supplied.
2969
+ * Human-readable summary of the offering, for display. For example, its price and validity text.
2928
2970
  * @internal
2929
2971
  * @maxLength 500
2930
2972
  */
@@ -2933,18 +2975,21 @@ interface V1Membership {
2933
2975
  /** A line item a membership can pay for, and the cost to redeem it. */
2934
2976
  interface CoveredLineItem {
2935
2977
  /**
2936
- * The input line item this membership can cover.
2978
+ * ID of the line item this membership can pay for. Matches the `id` of one of the given line items.
2937
2979
  * @minLength 1
2938
2980
  * @maxLength 100
2939
2981
  */
2940
2982
  lineItemId?: string;
2941
2983
  /**
2942
- * The amount to redeem from the membership's benefit quota (`benefit.limited_quota.remaining`) for this item.
2943
- * Always 0 when the benefit is unlimited (nothing is decremented).
2984
+ * Amount deducted from the membership's remaining balance (`credits.remaining`) when this line item
2985
+ * is redeemed.
2986
+ *
2987
+ * Always `0` for an unlimited membership, which is expressed by omitting `credits` and decrements
2988
+ * nothing.
2944
2989
  */
2945
2990
  redemptionCost?: number;
2946
2991
  }
2947
- /** Same shape as `ListPurchasablePlansResponse`. */
2992
+ /** The validated purchasable plans. Same shape as `ListPurchasablePlansResponse`. */
2948
2993
  interface ValidatedPurchasablePlans {
2949
2994
  /**
2950
2995
  * The selected plans.
@@ -2952,68 +2997,109 @@ interface ValidatedPurchasablePlans {
2952
2997
  */
2953
2998
  purchasablePlans?: PurchasablePlan[];
2954
2999
  /**
2955
- * How the plans' benefits cover the line items, linked to a benefit by `benefit_id`.
3000
+ * How the plans' benefits cover the line items, each entry naming its benefit by `benefitId`.
2956
3001
  * @maxSize 300
2957
3002
  */
2958
3003
  coverages?: LineItemCoverage[];
2959
3004
  }
2960
3005
  interface PurchasablePlan {
2961
- /** Catalog and item reference for the plan that can be purchased. */
3006
+ /**
3007
+ * Catalog and item reference identifying both the plan and the pricing variant.
3008
+ *
3009
+ * A purchasable plan has no ID of its own. The reference carries the plan in `catalogItemId` and
3010
+ * the chosen pricing variant in `options`, so the same plan appears once per variant with a
3011
+ * different reference each time. The plan ID alone repeats across entries; the full reference
3012
+ * doesn't.
3013
+ *
3014
+ * When the plan needs nothing further from the buyer, the reference can be added to the cart as it
3015
+ * stands. When it does, for example a plan carrying a form, a custom start date, or a buyer-chosen
3016
+ * price, the reference has to be completed with that input first. See `infoCollectionUrl`.
3017
+ */
2962
3018
  catalogReference?: CatalogReference;
2963
3019
  /** Plan name. */
2964
3020
  name?: MembershipName;
2965
3021
  /**
2966
- * Benefits the plan would grant once purchased. Multiple entries support multi-benefit plans (e.g., a bundle granting separate yoga and pilates credits).
3022
+ * Benefits the plan grants once purchased.
3023
+ *
3024
+ * A plan can grant several, for example a bundle granting separate yoga and pilates credits. Each
3025
+ * benefit becomes its own membership after purchase.
2967
3026
  * @minSize 1
2968
3027
  * @maxSize 50
2969
3028
  */
2970
3029
  benefits?: Benefit[];
2971
3030
  /**
2972
- * Human-readable offering summary for display (for example price and validity text). Provider-supplied.
3031
+ * Human-readable summary of what the plan offers, for display. For example, `8 yoga classes and 4
3032
+ * pilates classes, billed monthly`.
3033
+ *
3034
+ * Describe the offering here and the price in `priceDescription`.
2973
3035
  * @maxLength 500
2974
3036
  */
2975
3037
  offeringDescription?: string | null;
2976
3038
  /**
2977
- * URL the buyer is redirected to in order to collect additional info required to purchase this plan.
3039
+ * URL of the page that collects the extra input this plan needs before it can be purchased.
3040
+ *
3041
+ * Return it only for a plan that needs more from the buyer, such as one carrying a form, a custom
3042
+ * start date, or a buyer-chosen price. Omitting it means the plan needs nothing further, and the
3043
+ * caller builds the cart itself.
3044
+ *
3045
+ * The buyer reaches this page before any cart exists, rather than from the checkout page, and
3046
+ * there's no return trip. The page receives the caller's already-created items, then builds the
3047
+ * cart and checkout from the plan plus those items. There's no return URL, no cart ID, no
3048
+ * preserved selection, and no completion signal: the purchase reaches Wix through the ordinary
3049
+ * checkout and order flow, and the membership through Membership Ready To Be Charged.
3050
+ *
3051
+ * The page covers a single plan. Items that plan covers can be mixed with directly-paid ones, but
3052
+ * a selection spanning two plans isn't supported here.
2978
3053
  * @format WEB_URL
2979
3054
  */
2980
3055
  infoCollectionUrl?: string | null;
2981
3056
  /**
2982
- * Plan price.
3057
+ * Plan price, in the plan's own configured currency.
3058
+ *
3059
+ * No currency accompanies the amount and none is converted, so prices from different plans aren't
3060
+ * comparable and the currency reaches the buyer only through `priceDescription`. Name the currency
3061
+ * there.
2983
3062
  * @decimalValue options { gte:0, maxScale:3 }
2984
3063
  */
2985
3064
  price?: string;
2986
3065
  /**
2987
- * Human-readable description of the plan price (for example "First month free, then $20/month").
3066
+ * Human-readable summary of the plan price, for display. For example, `First month free, then
3067
+ * $20/month`.
2988
3068
  *
2989
- * `price` is simply the price (useful for sorting or comparison, for example), while this is a
2990
- * descriptive, display-oriented summary of it.
3069
+ * Use `price` for the bare amount, which is what sorting and comparison rely on, and this field for
3070
+ * pricing a buyer needs prose to understand.
2991
3071
  * @maxLength 500
2992
3072
  */
2993
3073
  priceDescription?: string | null;
2994
3074
  }
2995
3075
  /**
2996
- * A single redeemable benefit. A purchasable plan grants one or more benefits (`PurchasablePlan.benefits`);
2997
- * once the plan is paid, each benefit becomes its own membership (charged via `membership_id`).
3076
+ * A single redeemable benefit granted by a plan.
3077
+ *
3078
+ * A purchasable plan grants one or more benefits in `benefits`. Once the plan is paid for, each benefit
3079
+ * becomes its own membership, charged by `membershipId`.
2998
3080
  */
2999
3081
  interface Benefit extends BenefitQuotaOneOf {
3000
3082
  limitedQuota?: LimitedQuota;
3001
3083
  /**
3002
- * Identifier for this benefit. On a `PurchasablePlan` it must be unique within the response so
3003
- * `coverages` (`LineItemCoverage.benefit_id`) can reference it unambiguously across the plan's benefits.
3084
+ * Identifier for this benefit, unique within its plan.
3085
+ *
3086
+ * Not unique across the response. A plan is returned once per pricing variant, and every variant
3087
+ * repeats that plan's benefit IDs. Two different plans can also share an ID when they grant the
3088
+ * same benefit, and a coverage entry naming it is then true for both.
3089
+ *
3090
+ * Never give two different benefits the same ID. That's the one case a caller can't recover from,
3091
+ * because a cost computed for one benefit would be applied to the other.
3004
3092
  * @minLength 1
3005
3093
  * @maxLength 200
3006
3094
  */
3007
3095
  benefitId?: string;
3008
3096
  /**
3009
- * Human-readable label for this benefit (for example, "Manicure" or "Pedicure" on multi-set punchcards).
3097
+ * Human-readable label for this benefit. For example, `Manicure` or `Pedicure` on a multi-set
3098
+ * punch card.
3010
3099
  * @maxLength 200
3011
3100
  */
3012
3101
  label?: string | null;
3013
- /**
3014
- * The kind of quota this benefit grants: a countable amount drawn down on redemption (`LIMITED`),
3015
- * or an unbounded amount that is never drawn down (`UNLIMITED`).
3016
- */
3102
+ /** Kind of quota this benefit grants. */
3017
3103
  quotaType?: QuotaTypeWithLiterals;
3018
3104
  }
3019
3105
  /** @oneof */
@@ -3021,9 +3107,9 @@ interface BenefitQuotaOneOf {
3021
3107
  limitedQuota?: LimitedQuota;
3022
3108
  }
3023
3109
  declare enum QuotaType {
3024
- /** The benefit grants a countable quota that is drawn down on redemption. */
3110
+ /** The benefit grants a countable quota that's drawn down on redemption. */
3025
3111
  LIMITED = "LIMITED",
3026
- /** The benefit is unlimited (unbounded) and is never drawn down. */
3112
+ /** The benefit is unlimited and is never drawn down. */
3027
3113
  UNLIMITED = "UNLIMITED"
3028
3114
  }
3029
3115
  /** @enumType */
@@ -3031,45 +3117,64 @@ type QuotaTypeWithLiterals = QuotaType | 'LIMITED' | 'UNLIMITED';
3031
3117
  /** A limited, countable redeemable amount. */
3032
3118
  interface LimitedQuota {
3033
3119
  /**
3034
- * The quota's initial value.
3120
+ * Quota's initial value.
3035
3121
  * @min 1
3036
3122
  */
3037
3123
  total?: number;
3038
- /** The quota's remaining value. */
3124
+ /** Quota's remaining value. */
3039
3125
  remaining?: number;
3040
- /** How the quota is measured. */
3126
+ /**
3127
+ * How the quota is measured.
3128
+ *
3129
+ * The same vocabulary as `MembershipPaymentCredits.balanceType` on the existing-membership side.
3130
+ */
3041
3131
  limitedQuotaType?: LimitedQuotaTypeWithLiterals;
3042
3132
  }
3043
3133
  declare enum LimitedQuotaType {
3044
- /** Quota is measured in discrete uses (e.g., sessions, visits). */
3134
+ /** Quota is measured in discrete uses, such as sessions or visits. */
3045
3135
  PUNCH_CARD = "PUNCH_CARD",
3046
- /** Quota is measured in a currency-like value (e.g., points). */
3136
+ /** Quota is measured in a currency-like value, such as points. */
3047
3137
  CREDIT = "CREDIT"
3048
3138
  }
3049
3139
  /** @enumType */
3050
3140
  type LimitedQuotaTypeWithLiterals = LimitedQuotaType | 'PUNCH_CARD' | 'CREDIT';
3051
3141
  /**
3052
- * Maps a benefit to a line item it can cover, and at what cost, linked to a benefit by `benefit_id`.
3053
- * One entry per (benefit, line item). Returned by `ListPurchasablePlans` (alongside `purchasable_plans`).
3054
- * For the existing-memberships flow the equivalent mapping is `ExistingMembership.covered_line_items`,
3055
- * which needs no `benefit_id` because a membership is a single benefit.
3142
+ * Maps one of a plan's benefits to a line item it can cover, and at what cost.
3143
+ *
3144
+ * One entry per benefit and line item pair, returned by [List Purchasable Plans](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/payments/memberships/memberships-service-plugin/list-purchasable-plans) alongside `purchasablePlans`.
3145
+ *
3146
+ * An entry names a benefit and carries no plan identity, so match its `benefitId` against the
3147
+ * `benefits` of the returned plans and apply it to every entry that grants that benefit. Entries for
3148
+ * the same plan repeat it once per pricing variant, and two different plans sharing a benefit ID
3149
+ * grant the same benefit, so the entry holds for each of them. A caller that stops at the first
3150
+ * match shows nothing incorrect, but hides the other entries, which cover the item too.
3151
+ *
3152
+ * The cost is identical across a plan's variants, so there's one entry per benefit rather than one
3153
+ * per variant.
3154
+ *
3155
+ * For memberships the member already owns, the equivalent mapping is
3156
+ * `ExistingMembership.coveredLineItems`, which needs no `benefitId` because a membership is a single
3157
+ * benefit.
3056
3158
  */
3057
3159
  interface LineItemCoverage {
3058
3160
  /**
3059
- * The benefit that covers the line item, as returned in `Benefit.benefit_id`.
3161
+ * ID of the benefit that covers the line item, as returned in `Benefit.benefitId`.
3162
+ *
3163
+ * Identifies a benefit within its plan, and repeats across that plan's pricing variants.
3060
3164
  * @minLength 1
3061
3165
  * @maxLength 200
3062
3166
  */
3063
3167
  benefitId?: string;
3064
3168
  /**
3065
- * The line item this benefit covers.
3169
+ * ID of the line item this benefit covers.
3066
3170
  * @minLength 1
3067
3171
  * @maxLength 100
3068
3172
  */
3069
3173
  lineItemId?: string;
3070
3174
  /**
3071
- * The amount to redeem from the benefit's `limited_quota.remaining` value for this item.
3072
- * Always 0 for an unlimited benefit (nothing is decremented).
3175
+ * Amount deducted from the benefit's `limitedQuota.remaining` value when this line item is redeemed.
3176
+ *
3177
+ * Always `0` for an unlimited benefit, which decrements nothing.
3073
3178
  */
3074
3179
  redemptionCost?: number;
3075
3180
  }
@@ -4370,4 +4475,4 @@ declare function deleteCart(_id: string): Promise<void>;
4370
4475
  */
4371
4476
  declare function removeBusinessLocation(_id: string): Promise<NonNullablePaths<RemoveBusinessLocationResponse, `cart.lineItems` | `cart.lineItems.${number}.quantity` | `cart.lineItems.${number}.catalogReference.catalogItemId` | `cart.lineItems.${number}.catalogReference.appId` | `cart.lineItems.${number}.productName.original` | `cart.lineItems.${number}.price.amount` | `cart.lineItems.${number}.price.convertedAmount` | `cart.lineItems.${number}.price.formattedAmount` | `cart.lineItems.${number}.price.formattedConvertedAmount` | `cart.lineItems.${number}.availability.status` | `cart.lineItems.${number}.physicalProperties.shippable` | `cart.lineItems.${number}.itemType.preset` | `cart.lineItems.${number}.itemType.custom` | `cart.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency` | `cart.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal` | `cart.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation` | `cart.lineItems.${number}.subscriptionOptionInfo.title.original` | `cart.lineItems.${number}.subscriptionOptionInfo.description.original` | `cart.lineItems.${number}.paymentOption` | `cart.lineItems.${number}.priceDescription.original` | `cart.lineItems.${number}.selectedMembership._id` | `cart.lineItems.${number}.selectedMembership.appId` | `cart.lineItems.${number}.customLineItem` | `cart.lineItems.${number}.priceUndetermined` | `cart.lineItems.${number}.fixedQuantity` | `cart.lineItems.${number}.catalogOverrideFields.paymentOption.value` | `cart.lineItems.${number}.savePaymentMethod` | `cart.lineItems.${number}.taxableAddress.addressType` | `cart.lineItems.${number}.membersOnly` | `cart.buyerInfo.visitorId` | `cart.buyerInfo.memberId` | `cart.buyerInfo.userId` | `cart.currency` | `cart.conversionCurrency` | `cart.weightUnit` | `cart.appliedDiscounts` | `cart.appliedDiscounts.${number}.coupon._id` | `cart.appliedDiscounts.${number}.coupon.code` | `cart.contactInfo.address.streetAddress.number` | `cart.contactInfo.address.streetAddress.name` | `cart.contactInfo.contactDetails.vatId._id` | `cart.contactInfo.contactDetails.vatId.type` | `cart.selectedShippingOption.code` | `cart.paymentCurrency`, 5>>;
4372
4477
 
4373
- export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddToCartApplicationErrors, type AddToCartOptions, type AddToCartRequest, type AddToCartResponse, type AddToCurrentCartAndEstimateTotalsRequest, 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 CreateCartApplicationErrors, type CreateCartOptions, type CreateCartRequest, type CreateCartResponse, type CreateCheckoutApplicationErrors, type CreateCheckoutFromCurrentCartRequest, type CreateCheckoutOptions, 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 EstimateCurrentCartTotalsRequest, type EstimateTotalsOptions, 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 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 UpdateCartApplicationErrors, type UpdateCartOptions, type UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartLineItemQuantityRequest, 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, addToCart, createCart, createCheckout, deleteCart, estimateTotals, getCart, getCartByCheckoutId, onCartCreated, onCartDeleted, onCartUpdated, removeBusinessLocation, removeCoupon, removeLineItems, updateCart, updateLineItemsQuantity };
4478
+ export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddToCartApplicationErrors, type AddToCartOptions, type AddToCartRequest, type AddToCartResponse, type AddToCurrentCartAndEstimateTotalsRequest, 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 CreateCartApplicationErrors, type CreateCartOptions, type CreateCartRequest, type CreateCartResponse, type CreateCheckoutApplicationErrors, type CreateCheckoutFromCurrentCartRequest, type CreateCheckoutOptions, type CreateCheckoutRequest, type CreateCheckoutResponse, type CustomLineItem, type CyclePriceOverride, 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 EstimateCurrentCartTotalsRequest, type EstimateTotalsOptions, 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 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 UpdateCartApplicationErrors, type UpdateCartOptions, type UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartLineItemQuantityRequest, 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, addToCart, createCart, createCheckout, deleteCart, estimateTotals, getCart, getCartByCheckoutId, onCartCreated, onCartDeleted, onCartUpdated, removeBusinessLocation, removeCoupon, removeLineItems, updateCart, updateLineItemsQuantity };