@wix/auto_sdk_ecom_checkout-templates 1.0.159 → 1.0.161
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 +11 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +16 -5
- package/build/cjs/index.typings.js +11 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +16 -5
- package/build/cjs/meta.js +11 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +10 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +16 -5
- package/build/es/index.typings.mjs +10 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +16 -5
- package/build/es/meta.mjs +10 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.typings.d.ts +134 -6
- package/build/internal/cjs/meta.d.ts +134 -6
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.typings.d.mts +134 -6
- package/build/internal/es/meta.d.mts +134 -6
- package/package.json +2 -2
|
@@ -2068,16 +2068,24 @@ declare enum DiscountType {
|
|
|
2068
2068
|
/** @enumType */
|
|
2069
2069
|
type DiscountTypeWithLiterals = DiscountType | 'GLOBAL' | 'SPECIFIC_ITEMS' | 'SHIPPING';
|
|
2070
2070
|
/** Coupon */
|
|
2071
|
-
interface Coupon {
|
|
2071
|
+
interface Coupon extends CouponDiscountValueOneOf {
|
|
2072
2072
|
/** Coupon ID. */
|
|
2073
2073
|
_id?: string;
|
|
2074
2074
|
/** Coupon code. */
|
|
2075
2075
|
code?: string;
|
|
2076
|
-
/**
|
|
2076
|
+
/** Total amount the coupon took off. */
|
|
2077
2077
|
amount?: MultiCurrencyPrice;
|
|
2078
2078
|
/** Coupon name. */
|
|
2079
2079
|
name?: string;
|
|
2080
2080
|
}
|
|
2081
|
+
/** @oneof */
|
|
2082
|
+
interface CouponDiscountValueOneOf {
|
|
2083
|
+
}
|
|
2084
|
+
/** How a coupon's or discount rule's discount value is expressed. */
|
|
2085
|
+
declare enum DiscountValueType {
|
|
2086
|
+
}
|
|
2087
|
+
/** @enumType */
|
|
2088
|
+
type DiscountValueTypeWithLiterals = DiscountValueType;
|
|
2081
2089
|
interface MerchantDiscount {
|
|
2082
2090
|
/** Discount value. */
|
|
2083
2091
|
amount?: MultiCurrencyPrice;
|
|
@@ -2088,7 +2096,7 @@ interface MerchantDiscount {
|
|
|
2088
2096
|
*/
|
|
2089
2097
|
percentage?: number | null;
|
|
2090
2098
|
}
|
|
2091
|
-
interface DiscountRule {
|
|
2099
|
+
interface DiscountRule extends DiscountRuleDiscountValueOneOf {
|
|
2092
2100
|
/**
|
|
2093
2101
|
* Discount rule ID
|
|
2094
2102
|
* @format GUID
|
|
@@ -2096,9 +2104,12 @@ interface DiscountRule {
|
|
|
2096
2104
|
_id?: string;
|
|
2097
2105
|
/** Discount rule name */
|
|
2098
2106
|
name?: DiscountRuleName;
|
|
2099
|
-
/**
|
|
2107
|
+
/** Total amount the discount rule took off. */
|
|
2100
2108
|
amount?: MultiCurrencyPrice;
|
|
2101
2109
|
}
|
|
2110
|
+
/** @oneof */
|
|
2111
|
+
interface DiscountRuleDiscountValueOneOf {
|
|
2112
|
+
}
|
|
2102
2113
|
interface DiscountRuleName {
|
|
2103
2114
|
/**
|
|
2104
2115
|
* Original discount rule name (in site's default language).
|
|
@@ -3549,4 +3560,4 @@ declare function createAndRedirectToCheckout(checkoutTemplateId: string, siteId:
|
|
|
3549
3560
|
__applicationErrorsType?: CreateAndRedirectToCheckoutApplicationErrors;
|
|
3550
3561
|
}>;
|
|
3551
3562
|
|
|
3552
|
-
export { type AccountInfo, type AccountInfoMetadata, 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 BillingSettings, type BulkActionMetadata, type BulkCheckoutTemplateResult, type BulkCreateCheckoutTemplatesApplicationErrors, type BulkCreateCheckoutTemplatesOptions, type BulkCreateCheckoutTemplatesRequest, type BulkCreateCheckoutTemplatesResponse, 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 CyclePriceOverride, 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 Dimensions, DimensionsUnit, type DimensionsUnitWithLiterals, 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 GiftCardCalculationError, type Group, type HeadersEntry, type IdentificationData, type IdentificationDataIdOneOf, type InvalidMembership, type ItemAvailabilityInfo, ItemAvailabilityStatus, type ItemAvailabilityStatusWithLiterals, type ItemCombination, type ItemCombinationLineItem, type ItemMetadata, 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, PlatformFeeChargeType, type PlatformFeeChargeTypeWithLiterals, type Policy, type PriceDescription, type PriceSummary, type ProductName, ProductPeriodAlignment, type ProductPeriodAlignmentWithLiterals, 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, 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, utils };
|
|
3563
|
+
export { type AccountInfo, type AccountInfoMetadata, 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 BillingSettings, type BulkActionMetadata, type BulkCheckoutTemplateResult, type BulkCreateCheckoutTemplatesApplicationErrors, type BulkCreateCheckoutTemplatesOptions, type BulkCreateCheckoutTemplatesRequest, type BulkCreateCheckoutTemplatesResponse, 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 CouponDiscountValueOneOf, 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 CyclePriceOverride, 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 Dimensions, DimensionsUnit, type DimensionsUnitWithLiterals, type DiscountRule, type DiscountRuleDiscountValueOneOf, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, DiscountValueType, type DiscountValueTypeWithLiterals, 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 GiftCardCalculationError, type Group, type HeadersEntry, type IdentificationData, type IdentificationDataIdOneOf, type InvalidMembership, type ItemAvailabilityInfo, ItemAvailabilityStatus, type ItemAvailabilityStatusWithLiterals, type ItemCombination, type ItemCombinationLineItem, type ItemMetadata, 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, PlatformFeeChargeType, type PlatformFeeChargeTypeWithLiterals, type Policy, type PriceDescription, type PriceSummary, type ProductName, ProductPeriodAlignment, type ProductPeriodAlignmentWithLiterals, 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, 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, utils };
|
|
@@ -27,6 +27,7 @@ __export(index_typings_exports, {
|
|
|
27
27
|
DescriptionLineType: () => DescriptionLineType,
|
|
28
28
|
DimensionsUnit: () => DimensionsUnit,
|
|
29
29
|
DiscountType: () => DiscountType,
|
|
30
|
+
DiscountValueType: () => DiscountValueType,
|
|
30
31
|
FallbackReason: () => FallbackReason,
|
|
31
32
|
FileType: () => FileType,
|
|
32
33
|
ItemAvailabilityStatus: () => ItemAvailabilityStatus,
|
|
@@ -571,6 +572,13 @@ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
|
571
572
|
DiscountType2["SHIPPING"] = "SHIPPING";
|
|
572
573
|
return DiscountType2;
|
|
573
574
|
})(DiscountType || {});
|
|
575
|
+
var DiscountValueType = /* @__PURE__ */ ((DiscountValueType2) => {
|
|
576
|
+
DiscountValueType2["PERCENTAGE"] = "PERCENTAGE";
|
|
577
|
+
DiscountValueType2["FIXED_AMOUNT"] = "FIXED_AMOUNT";
|
|
578
|
+
DiscountValueType2["FIXED_PRICE"] = "FIXED_PRICE";
|
|
579
|
+
DiscountValueType2["QUANTITY_BASED"] = "QUANTITY_BASED";
|
|
580
|
+
return DiscountValueType2;
|
|
581
|
+
})(DiscountValueType || {});
|
|
574
582
|
var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
|
|
575
583
|
WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
|
|
576
584
|
WeightUnit2["KG"] = "KG";
|
|
@@ -615,6 +623,8 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
|
615
623
|
ChannelType2["STRIPE_AGENTIC_CHECKOUT"] = "STRIPE_AGENTIC_CHECKOUT";
|
|
616
624
|
ChannelType2["WIX_INVOICES_PLATFORM"] = "WIX_INVOICES_PLATFORM";
|
|
617
625
|
ChannelType2["UCP_AGENTIC_CHECKOUT"] = "UCP_AGENTIC_CHECKOUT";
|
|
626
|
+
ChannelType2["META_AGENTIC_CHECKOUT"] = "META_AGENTIC_CHECKOUT";
|
|
627
|
+
ChannelType2["GOOGLE_AGENTIC_CHECKOUT"] = "GOOGLE_AGENTIC_CHECKOUT";
|
|
618
628
|
return ChannelType2;
|
|
619
629
|
})(ChannelType || {});
|
|
620
630
|
var BalanceType = /* @__PURE__ */ ((BalanceType2) => {
|
|
@@ -1028,6 +1038,7 @@ async function createAndRedirectToCheckout2(checkoutTemplateId, siteId) {
|
|
|
1028
1038
|
DescriptionLineType,
|
|
1029
1039
|
DimensionsUnit,
|
|
1030
1040
|
DiscountType,
|
|
1041
|
+
DiscountValueType,
|
|
1031
1042
|
FallbackReason,
|
|
1032
1043
|
FileType,
|
|
1033
1044
|
ItemAvailabilityStatus,
|