@wix/auto_sdk_ecom_checkout-templates 1.0.92 → 1.0.94
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 +8 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +33 -4
- package/build/cjs/index.typings.js +8 -8
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +33 -4
- package/build/cjs/meta.js +8 -8
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +7 -7
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +33 -4
- package/build/es/index.typings.mjs +7 -7
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +33 -4
- package/build/es/meta.mjs +7 -7
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +8 -8
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +43 -4
- package/build/internal/cjs/index.typings.js +8 -8
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +33 -4
- package/build/internal/cjs/meta.js +8 -8
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +7 -7
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +43 -4
- package/build/internal/es/index.typings.mjs +7 -7
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +33 -4
- package/build/internal/es/meta.mjs +7 -7
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1358,7 +1358,7 @@ interface PlatformFee {
|
|
|
1358
1358
|
/** __Required.__ Platform fee name. */
|
|
1359
1359
|
name?: TranslatableString;
|
|
1360
1360
|
/** Platform fee charge type. */
|
|
1361
|
-
chargeType?:
|
|
1361
|
+
chargeType?: PlatformFeeChargeTypeWithLiterals;
|
|
1362
1362
|
/**
|
|
1363
1363
|
* Percentage rate charged as platform fee.
|
|
1364
1364
|
*
|
|
@@ -1368,7 +1368,7 @@ interface PlatformFee {
|
|
|
1368
1368
|
*/
|
|
1369
1369
|
percentageRate?: string;
|
|
1370
1370
|
}
|
|
1371
|
-
declare enum
|
|
1371
|
+
declare enum PlatformFeeChargeType {
|
|
1372
1372
|
UNKNOWN_CHARGE_TYPE = "UNKNOWN_CHARGE_TYPE",
|
|
1373
1373
|
/** The platform fee is passed on to the customer. */
|
|
1374
1374
|
PASS_ON = "PASS_ON",
|
|
@@ -1376,7 +1376,7 @@ declare enum V1ChargeType {
|
|
|
1376
1376
|
ABSORBED = "ABSORBED"
|
|
1377
1377
|
}
|
|
1378
1378
|
/** @enumType */
|
|
1379
|
-
type
|
|
1379
|
+
type PlatformFeeChargeTypeWithLiterals = PlatformFeeChargeType | 'UNKNOWN_CHARGE_TYPE' | 'PASS_ON' | 'ABSORBED';
|
|
1380
1380
|
/** Billing Info and shipping details */
|
|
1381
1381
|
interface AddressWithContact {
|
|
1382
1382
|
/** Address. */
|
|
@@ -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.
|
|
@@ -3305,4 +3334,4 @@ declare function createAndRedirectToCheckout(checkoutTemplateId: string, siteId:
|
|
|
3305
3334
|
__applicationErrorsType?: CreateAndRedirectToCheckoutApplicationErrors;
|
|
3306
3335
|
}>;
|
|
3307
3336
|
|
|
3308
|
-
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 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,
|
|
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, PlatformFeeChargeType, type PlatformFeeChargeTypeWithLiterals, 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, 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 };
|
|
@@ -447,12 +447,12 @@ var ItemAvailabilityStatus = /* @__PURE__ */ ((ItemAvailabilityStatus2) => {
|
|
|
447
447
|
ItemAvailabilityStatus2["PARTIALLY_AVAILABLE"] = "PARTIALLY_AVAILABLE";
|
|
448
448
|
return ItemAvailabilityStatus2;
|
|
449
449
|
})(ItemAvailabilityStatus || {});
|
|
450
|
-
var
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
return
|
|
455
|
-
})(
|
|
450
|
+
var PlatformFeeChargeType = /* @__PURE__ */ ((PlatformFeeChargeType2) => {
|
|
451
|
+
PlatformFeeChargeType2["UNKNOWN_CHARGE_TYPE"] = "UNKNOWN_CHARGE_TYPE";
|
|
452
|
+
PlatformFeeChargeType2["PASS_ON"] = "PASS_ON";
|
|
453
|
+
PlatformFeeChargeType2["ABSORBED"] = "ABSORBED";
|
|
454
|
+
return PlatformFeeChargeType2;
|
|
455
|
+
})(PlatformFeeChargeType || {});
|
|
456
456
|
var VatType = /* @__PURE__ */ ((VatType2) => {
|
|
457
457
|
VatType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
458
458
|
VatType2["CPF"] = "CPF";
|
|
@@ -930,6 +930,7 @@ export {
|
|
|
930
930
|
NameInOther,
|
|
931
931
|
PaymentOptionType,
|
|
932
932
|
PickupMethod,
|
|
933
|
+
PlatformFeeChargeType,
|
|
933
934
|
RateType,
|
|
934
935
|
RuleType,
|
|
935
936
|
Severity,
|
|
@@ -938,7 +939,6 @@ export {
|
|
|
938
939
|
SubscriptionFrequency,
|
|
939
940
|
SuggestedFix,
|
|
940
941
|
TaxableAddressType,
|
|
941
|
-
V1ChargeType,
|
|
942
942
|
VatType,
|
|
943
943
|
WebhookIdentityType,
|
|
944
944
|
WeightUnit,
|