@wix/auto_sdk_ecom_checkout-templates 1.0.91 → 1.0.93

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 +7 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +40 -3
  5. package/build/cjs/index.typings.js +7 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +40 -3
  8. package/build/cjs/meta.js +7 -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 +6 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +40 -3
  14. package/build/es/index.typings.mjs +6 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +40 -3
  17. package/build/es/meta.mjs +6 -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 +7 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +56 -4
  23. package/build/internal/cjs/index.typings.js +7 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +40 -3
  26. package/build/internal/cjs/meta.js +7 -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 +6 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +56 -4
  32. package/build/internal/es/index.typings.mjs +6 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +40 -3
  35. package/build/internal/es/meta.mjs +6 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -2019,6 +2019,35 @@ interface DiscountRuleName {
2019
2019
  */
2020
2020
  translated?: string | null;
2021
2021
  }
2022
+ interface ItemCombination {
2023
+ /**
2024
+ * The number of times this exact combination of items (with the specified quantities) was applied together in the order.
2025
+ * @min 1
2026
+ * @max 100000
2027
+ */
2028
+ count?: number;
2029
+ /**
2030
+ * Line items that participated together in this combination.
2031
+ * @minSize 1
2032
+ * @maxSize 100
2033
+ */
2034
+ lineItems?: ItemCombinationLineItem[];
2035
+ }
2036
+ interface ItemCombinationLineItem {
2037
+ /**
2038
+ * The unique ID of the line item to which this discount applies.
2039
+ * @format GUID
2040
+ */
2041
+ lineItemId?: string;
2042
+ /** Total discount amount for all units (quantity) of this line item in this combination. */
2043
+ discountAmount?: MultiCurrencyPrice;
2044
+ /**
2045
+ * Number of units from this line item that participated in a single combination.
2046
+ * @min 1
2047
+ * @max 100000
2048
+ */
2049
+ quantity?: number;
2050
+ }
2022
2051
  interface LineItemDiscount {
2023
2052
  /**
2024
2053
  * ID of line item the discount applies to.
@@ -2297,13 +2326,21 @@ interface MembershipName {
2297
2326
  }
2298
2327
  interface MembershipPaymentCredits {
2299
2328
  /**
2300
- * Membership's total amount of credits.
2329
+ * Membership's initial value.
2301
2330
  * @min 1
2302
2331
  */
2303
2332
  total?: number;
2304
- /** Membership's remaining amount of credits. */
2333
+ /** Membership's remaining value. */
2305
2334
  remaining?: number;
2306
2335
  }
2336
+ declare enum BalanceType {
2337
+ /** Balance is measured in discrete uses (e.g., sessions, visits). */
2338
+ PUNCH_CARD = "PUNCH_CARD",
2339
+ /** Balance is measured in a currency-like value (e.g., points). */
2340
+ CREDIT = "CREDIT"
2341
+ }
2342
+ /** @enumType */
2343
+ type BalanceTypeWithLiterals = BalanceType | 'PUNCH_CARD' | 'CREDIT';
2307
2344
  interface InvalidMembership {
2308
2345
  /** Membership details. */
2309
2346
  membership?: Membership;
@@ -3297,4 +3334,4 @@ declare function createAndRedirectToCheckout(checkoutTemplateId: string, siteId:
3297
3334
  __applicationErrorsType?: CreateAndRedirectToCheckoutApplicationErrors;
3298
3335
  }>;
3299
3336
 
3300
- export { type ActionEvent, type AdditionalFee, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type Address, type AddressLocation, type AddressWithContact, type AggregatedTaxBreakdown, type ApplicableLineItems, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails, type BaseEventMetadata, type BuyerInfo, type BuyerInfoIdOneOf, type CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf, type Carrier, type CarrierError, type CarrierErrors, type CarrierServiceOption, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, type Charge, ChargeType, type ChargeTypeWithLiterals, type Checkout, type CheckoutCustomization, type CheckoutTemplate, type CheckoutTemplateCreatedEnvelope, type CheckoutTemplateDeletedEnvelope, type CheckoutTemplateQuery, type CheckoutTemplateQuerySpec, type CheckoutTemplateUpdatedEnvelope, type CheckoutTemplateUsed, type CheckoutTemplateUsedEnvelope, type CheckoutTemplatesQueryBuilder, type CheckoutTemplatesQueryResult, type Color, type CommonQueryWithEntityContext, type ConversionInfo, type Coupon, type CreateAndRedirectToCheckoutApplicationErrors, type CreateAndRedirectToCheckoutRequest, type CreateCheckoutFromTemplateApplicationErrors, type CreateCheckoutFromTemplateRequest, type CreateCheckoutFromTemplateResponse, type CreateCheckoutTemplateApplicationErrors, type CreateCheckoutTemplateRequest, type CreateCheckoutTemplateResponse, type CreatedBy, type CreatedByIdOneOf, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomContentReference, type CustomField, type CustomLineItem, type CustomSettings, type DeleteCheckoutTemplateRequest, type DeleteCheckoutTemplateResponse, type DeliveryAllocation, type DeliveryLogistics, type DeliveryTimeSlot, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type Details, type DetailsKindOneOf, type DiscountRule, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type ExternalReference, FallbackReason, type FallbackReasonWithLiterals, type FieldViolation, FileType, type FileTypeWithLiterals, type FocalPoint, type FreeTrialPeriod, type FullAddressContactDetails, type GetCheckoutTemplateRequest, type GetCheckoutTemplateResponse, type GiftCard, type Group, type HeadersEntry, type IdentificationData, type IdentificationDataIdOneOf, type InvalidMembership, type ItemAvailabilityInfo, ItemAvailabilityStatus, type ItemAvailabilityStatusWithLiterals, type ItemModifier, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItem, type LineItemDiscount, 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, type Policy, type PriceDescription, type PriceSummary, type ProductName, type QueryCheckoutTemplatesRequest, type QueryCheckoutTemplatesResponse, RateType, type RateTypeWithLiterals, type RawHttpResponse, type Region, type RestoreInfo, RuleType, type RuleTypeWithLiterals, type Scope, type SecuredMedia, type SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices, type SelectedMembership, type SelectedMemberships, type ServiceProperties, Severity, type SeverityWithLiterals, type ShippingInfo, type ShippingOption, type ShippingPrice, type ShippingRegion, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type StreetAddress, type SubscriptionCharges, 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 UpdateCheckoutTemplate, type UpdateCheckoutTemplateApplicationErrors, type UpdateCheckoutTemplateRequest, type UpdateCheckoutTemplateResponse, V1ChargeType, type V1ChargeTypeWithLiterals, type V1ItemModifier, type V1LineItem, type V1ModifierGroup, type ValidationError, type VatId, VatType, type VatTypeWithLiterals, type Violation, type WebClientCustomization, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, createAndRedirectToCheckout, createCheckoutFromTemplate, createCheckoutTemplate, deleteCheckoutTemplate, getCheckoutTemplate, onCheckoutTemplateCreated, onCheckoutTemplateDeleted, onCheckoutTemplateUpdated, onCheckoutTemplateUsed, queryCheckoutTemplates, typedQueryCheckoutTemplates, updateCheckoutTemplate };
3337
+ export { type ActionEvent, type AdditionalFee, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type Address, type AddressLocation, type AddressWithContact, type AggregatedTaxBreakdown, type ApplicableLineItems, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails, BalanceType, type BalanceTypeWithLiterals, type BaseEventMetadata, type BuyerInfo, type BuyerInfoIdOneOf, type CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf, type Carrier, type CarrierError, type CarrierErrors, type CarrierServiceOption, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, type Charge, ChargeType, type ChargeTypeWithLiterals, type Checkout, type CheckoutCustomization, type CheckoutTemplate, type CheckoutTemplateCreatedEnvelope, type CheckoutTemplateDeletedEnvelope, type CheckoutTemplateQuery, type CheckoutTemplateQuerySpec, type CheckoutTemplateUpdatedEnvelope, type CheckoutTemplateUsed, type CheckoutTemplateUsedEnvelope, type CheckoutTemplatesQueryBuilder, type CheckoutTemplatesQueryResult, type Color, type CommonQueryWithEntityContext, type ConversionInfo, type Coupon, type CreateAndRedirectToCheckoutApplicationErrors, type CreateAndRedirectToCheckoutRequest, type CreateCheckoutFromTemplateApplicationErrors, type CreateCheckoutFromTemplateRequest, type CreateCheckoutFromTemplateResponse, type CreateCheckoutTemplateApplicationErrors, type CreateCheckoutTemplateRequest, type CreateCheckoutTemplateResponse, type CreatedBy, type CreatedByIdOneOf, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomContentReference, type CustomField, type CustomLineItem, type CustomSettings, type DeleteCheckoutTemplateRequest, type DeleteCheckoutTemplateResponse, type DeliveryAllocation, type DeliveryLogistics, type DeliveryTimeSlot, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type Details, type DetailsKindOneOf, type DiscountRule, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type ExternalReference, FallbackReason, type FallbackReasonWithLiterals, type FieldViolation, FileType, type FileTypeWithLiterals, type FocalPoint, type FreeTrialPeriod, type FullAddressContactDetails, type GetCheckoutTemplateRequest, type GetCheckoutTemplateResponse, type GiftCard, type Group, type HeadersEntry, 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 LineItemDiscount, 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, type Policy, type PriceDescription, type PriceSummary, type ProductName, type QueryCheckoutTemplatesRequest, type QueryCheckoutTemplatesResponse, RateType, type RateTypeWithLiterals, type RawHttpResponse, type Region, type RestoreInfo, RuleType, type RuleTypeWithLiterals, type Scope, type SecuredMedia, type SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices, type SelectedMembership, type SelectedMemberships, type ServiceProperties, Severity, type SeverityWithLiterals, type ShippingInfo, type ShippingOption, type ShippingPrice, type ShippingRegion, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type StreetAddress, type SubscriptionCharges, 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 UpdateCheckoutTemplate, type UpdateCheckoutTemplateApplicationErrors, type UpdateCheckoutTemplateRequest, type UpdateCheckoutTemplateResponse, V1ChargeType, type V1ChargeTypeWithLiterals, type V1ItemModifier, type V1LineItem, type V1ModifierGroup, type ValidationError, type VatId, VatType, type VatTypeWithLiterals, type Violation, type WebClientCustomization, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, createAndRedirectToCheckout, createCheckoutFromTemplate, createCheckoutTemplate, deleteCheckoutTemplate, getCheckoutTemplate, onCheckoutTemplateCreated, onCheckoutTemplateDeleted, onCheckoutTemplateUpdated, onCheckoutTemplateUsed, queryCheckoutTemplates, typedQueryCheckoutTemplates, updateCheckoutTemplate };
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var index_typings_exports = {};
22
22
  __export(index_typings_exports, {
23
23
  AdditionalFeeSource: () => AdditionalFeeSource,
24
+ BalanceType: () => BalanceType,
24
25
  ChannelType: () => ChannelType,
25
26
  ChargeType: () => ChargeType,
26
27
  DescriptionLineType: () => DescriptionLineType,
@@ -600,6 +601,11 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
600
601
  ChannelType2["PAYPAL_AGENTIC_CHECKOUT"] = "PAYPAL_AGENTIC_CHECKOUT";
601
602
  return ChannelType2;
602
603
  })(ChannelType || {});
604
+ var BalanceType = /* @__PURE__ */ ((BalanceType2) => {
605
+ BalanceType2["PUNCH_CARD"] = "PUNCH_CARD";
606
+ BalanceType2["CREDIT"] = "CREDIT";
607
+ return BalanceType2;
608
+ })(BalanceType || {});
603
609
  var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
604
610
  AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
605
611
  AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
@@ -968,6 +974,7 @@ async function createAndRedirectToCheckout2(checkoutTemplateId, siteId) {
968
974
  // Annotate the CommonJS export names for ESM import in node:
969
975
  0 && (module.exports = {
970
976
  AdditionalFeeSource,
977
+ BalanceType,
971
978
  ChannelType,
972
979
  ChargeType,
973
980
  DescriptionLineType,