@wix/auto_sdk_ecom_current-cart-v-2 1.0.205 → 1.0.207
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 +11 -5
- package/build/cjs/index.js +43 -28
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +58 -31
- package/build/cjs/index.typings.js +0 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +29 -29
- package/build/cjs/meta.js +0 -3
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +11 -5
- package/build/es/index.mjs +42 -28
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +58 -31
- package/build/es/index.typings.mjs +0 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +29 -29
- package/build/es/meta.mjs +0 -3
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -5
- package/build/internal/cjs/index.typings.d.ts +57 -30
- package/build/internal/cjs/meta.d.ts +28 -28
- package/build/internal/es/index.d.mts +11 -5
- package/build/internal/es/index.typings.d.mts +57 -30
- package/build/internal/es/meta.d.mts +28 -28
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { CreateCurrentCartOptions, CreateCurrentCartResponse, CreateCurrentCartApplicationErrors, GetCurrentCartResponse, Cart, UpdateCurrentCartResponse, UpdateCurrentCartApplicationErrors, RefreshCurrentCartResponse, RefreshCurrentCartApplicationErrors, CalculateCurrentCartOptions, CalculateCurrentCartResponse, CalculateCurrentCartApplicationErrors, EstimateCurrentCartOptions, EstimateCurrentCartResponse, EstimateCurrentCartApplicationErrors, AddLineItemsToCurrentCartOptions, AddLineItemsToCurrentCartResponse, AddLineItemsToCurrentCartApplicationErrors, RemoveLineItemsFromCurrentCartResponse, RemoveLineItemsFromCurrentCartApplicationErrors, UpdateLineItemsInCurrentCartOptions, UpdateLineItemsInCurrentCartResponse, UpdateLineItemsInCurrentCartApplicationErrors, CouponInput, AddCouponToCurrentCartResponse, AddCouponToCurrentCartApplicationErrors, RemoveCouponFromCurrentCartResponse, RemoveCouponFromCurrentCartApplicationErrors, DeliveryMethodInput, SetDeliveryMethodForCurrentCartResponse, SetDeliveryMethodForCurrentCartApplicationErrors, RemoveDeliveryMethodFromCurrentCartResponse, RemoveDeliveryMethodFromCurrentCartApplicationErrors, GiftCardInput, AddGiftCardToCurrentCartResponse, AddGiftCardToCurrentCartApplicationErrors, RemoveGiftCardFromCurrentCartResponse, RemoveGiftCardFromCurrentCartApplicationErrors, UpdateFormSubmissionsInCurrentCartOptions, UpdateFormSubmissionsInCurrentCartResponse, CartCalculatedEnvelope, CartCreatedEnvelope, CartDeletedEnvelope, CartUpdatedEnvelope } from './index.typings.js';
|
|
3
|
-
export { AccountInfo, AccountInfoMetadata, ActionEvent, AddCouponRequest, AddCouponResponse, AddCouponToCurrentCartRequest, AddGiftCardRequest, AddGiftCardResponse, AddGiftCardToCurrentCartRequest, AddLineItemsRequest, AddLineItemsResponse, AddLineItemsToCurrentCartRequest, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, AdditionalFeeTax, Address, AddressLocation, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, BaseEventMetadata, Benefit, BenefitQuotaOneOf, BenefitType, BenefitTypeWithLiterals, BillingSettings, BusinessInfo, CalculateCartForV1Request, CalculateCartForV1Response, CalculateCartRequest, CalculateCartResponse, CalculateCurrentCartRequest, CalculateTotalsResponse, CalculatedItemModifier, CalculatedLineItem, CalculatedPlatformFee, CalculationConfig, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CalculationOverrides, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CartAlreadyOrderedErrorData, CartEstimationIndicators, CartRevisionMismatchErrorData, CartSettings, CartSource, CartSummary, CatalogItemInput, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, ChargeType, ChargeTypeWithLiterals, Color, ConvertedMoney, Coupon, CouponAdded, CouponAlreadyExistsErrorData, CouponNotFoundInCartErrorData, CouponRemoved, CoveredLineItem, CreateCartRequest, CreateCartResponse, CreateCurrentCartRequest, CreatedBy, CreatedByIdOneOf, CustomContentReference, CustomField, CustomItemAttributes, CustomItemDeliveryConfig, CustomItemInput, CustomItemPaymentConfig, CustomItemPricingInfo, CustomItemQuantityInfo, CustomItemSource, CustomItemTaxConfig, CustomValidationErrorData, CustomerInfo, CustomerInfoIdOneOf, DeleteCartRequest, DeleteCartResponse, DeleteCurrentCartRequest, DeleteCurrentCartResponse, DeliveryAllocation, DeliveryInfo, DeliveryLogistics, DeliveryMethod, DeliveryMethodNotFoundErrorData, DeliverySummary, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, Discount, DiscountRule, DiscountRuleName, DiscountScope, DiscountScopeWithLiterals, DiscountSource, DiscountSourceType, DiscountSourceTypeWithLiterals, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, DuplicateItemModifierIdsErrorData, DuplicateLineItemUpdatesErrorData, DuplicateModifierGroupIdsErrorData, Empty, EmptyLineItemUpdatesErrorData, EmptyPaymentTokenErrorData, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EstimateCartRequest, EstimateCartResponse, EstimateCurrentCartRequest, EventMetadata, ExistingMembership, ExistingMembershipInput, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FixedQuantityItemErrorData, FormIdentifier, FormInfo, FormSubmission, FreeTrialPeriod, FullAddressContactDetails, FutureMembership, FutureMembershipInput, GetCartRequest, GetCartResponse, GetCheckoutURLRequest, GetCheckoutURLResponse, GetCurrentCartRequest, GetUpsellOptionsForCurrentCartRequest, GetUpsellOptionsForCurrentCartResponse, GetUpsellOptionsRequest, GetUpsellOptionsResponse, GiftCard, GiftCardAdded, GiftCardAlreadyExistsErrorData, GiftCardCalculationError,
|
|
2
|
+
import { CreateCurrentCartOptions, CreateCurrentCartResponse, CreateCurrentCartApplicationErrors, GetCurrentCartResponse, Cart, UpdateCurrentCartResponse, UpdateCurrentCartApplicationErrors, RefreshCurrentCartResponse, RefreshCurrentCartApplicationErrors, CalculateCurrentCartOptions, CalculateCurrentCartResponse, CalculateCurrentCartApplicationErrors, EstimateCurrentCartOptions, EstimateCurrentCartResponse, EstimateCurrentCartApplicationErrors, AddLineItemsToCurrentCartOptions, AddLineItemsToCurrentCartResponse, AddLineItemsToCurrentCartApplicationErrors, RemoveLineItemsFromCurrentCartResponse, RemoveLineItemsFromCurrentCartApplicationErrors, UpdateLineItemsInCurrentCartOptions, UpdateLineItemsInCurrentCartResponse, UpdateLineItemsInCurrentCartApplicationErrors, CouponInput, AddCouponToCurrentCartResponse, AddCouponToCurrentCartApplicationErrors, RemoveCouponFromCurrentCartResponse, RemoveCouponFromCurrentCartApplicationErrors, DeliveryMethodInput, SetDeliveryMethodForCurrentCartResponse, SetDeliveryMethodForCurrentCartApplicationErrors, RemoveDeliveryMethodFromCurrentCartResponse, RemoveDeliveryMethodFromCurrentCartApplicationErrors, GiftCardInput, AddGiftCardToCurrentCartResponse, AddGiftCardToCurrentCartApplicationErrors, RemoveGiftCardFromCurrentCartResponse, RemoveGiftCardFromCurrentCartApplicationErrors, UpdateFormSubmissionsInCurrentCartOptions, UpdateFormSubmissionsInCurrentCartResponse, CartCalculatedEnvelope, CartCompletedEnvelope, CartCreatedEnvelope, CartDeletedEnvelope, CartUpdatedEnvelope } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, AccountInfoMetadata, ActionEvent, AddCouponRequest, AddCouponResponse, AddCouponToCurrentCartRequest, AddGiftCardRequest, AddGiftCardResponse, AddGiftCardToCurrentCartRequest, AddLineItemsRequest, AddLineItemsResponse, AddLineItemsToCurrentCartRequest, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, AdditionalFeeTax, Address, AddressLocation, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, BaseEventMetadata, Benefit, BenefitQuotaOneOf, BenefitType, BenefitTypeWithLiterals, BillingSettings, BusinessInfo, CalculateCartForV1Request, CalculateCartForV1Response, CalculateCartRequest, CalculateCartResponse, CalculateCurrentCartRequest, CalculateTotalsResponse, CalculatedItemModifier, CalculatedLineItem, CalculatedPlatformFee, CalculationConfig, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CalculationOverrides, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CartAlreadyOrderedErrorData, CartCompleted, CartEstimationIndicators, CartRevisionMismatchErrorData, CartSettings, CartSource, CartSummary, CatalogItemInput, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, ChargeType, ChargeTypeWithLiterals, Color, ConvertedMoney, Coupon, CouponAdded, CouponAlreadyExistsErrorData, CouponNotFoundInCartErrorData, CouponRemoved, CoveredLineItem, CreateCartRequest, CreateCartResponse, CreateCurrentCartRequest, CreatedBy, CreatedByIdOneOf, CustomContentReference, CustomField, CustomItemAttributes, CustomItemDeliveryConfig, CustomItemInput, CustomItemPaymentConfig, CustomItemPricingInfo, CustomItemQuantityInfo, CustomItemSource, CustomItemTaxConfig, CustomValidationErrorData, CustomerInfo, CustomerInfoIdOneOf, DeleteCartRequest, DeleteCartResponse, DeleteCurrentCartRequest, DeleteCurrentCartResponse, DeliveryAllocation, DeliveryInfo, DeliveryLogistics, DeliveryMethod, DeliveryMethodNotFoundErrorData, DeliverySummary, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, Discount, DiscountRule, DiscountRuleName, DiscountScope, DiscountScopeWithLiterals, DiscountSource, DiscountSourceType, DiscountSourceTypeWithLiterals, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, DuplicateItemModifierIdsErrorData, DuplicateLineItemUpdatesErrorData, DuplicateModifierGroupIdsErrorData, Empty, EmptyLineItemUpdatesErrorData, EmptyPaymentTokenErrorData, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EstimateCartRequest, EstimateCartResponse, EstimateCurrentCartRequest, EventMetadata, ExistingMembership, ExistingMembershipInput, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FixedQuantityItemErrorData, FormIdentifier, FormInfo, FormSubmission, FreeTrialPeriod, FullAddressContactDetails, FutureMembership, FutureMembershipInput, GetCartRequest, GetCartResponse, GetCheckoutURLRequest, GetCheckoutURLResponse, GetCurrentCartRequest, GetUpsellOptionsForCurrentCartRequest, GetUpsellOptionsForCurrentCartResponse, GetUpsellOptionsRequest, GetUpsellOptionsResponse, GiftCard, GiftCardAdded, GiftCardAlreadyExistsErrorData, GiftCardCalculationError, GiftCardNotFoundInCartErrorData, GiftCardPaymentNotSupportedOnDemoCartErrorData, GiftCardRedeemErrorData, GiftCardRemoved, GiftCardSummary, Group, HandleAsyncCheckoutCompletionRequest, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InsufficientInventoryEntry, InsufficientInventoryErrorData, InvalidCartErrorData, InvalidCouponCodeErrorData, InvalidCouponReason, InvalidCouponReasonWithLiterals, InvalidCouponStatusErrorData, InvalidCouponStatusErrorDataDetailsOneOf, InvalidGiftCardCodeErrorData, InvalidGiftCardReason, InvalidGiftCardReasonWithLiterals, InvalidGiftCardStatusErrorData, InvalidMembership, InvalidMembershipEntry, InvalidMembershipErrorData, InvalidMembershipPaymentOptionErrorData, InvalidMembershipReason, InvalidMembershipReasonWithLiterals, InvalidMembershipStatusErrorData, InvalidPaymentStatusErrorData, InvalidPriceVerificationTokenErrorData, InvalidThirdPartyCheckoutTokenErrorData, ItemAttributes, ItemCombination, ItemCombinationLineItem, ItemDeliveryConfig, ItemDiscount, ItemModifier, ItemNotFoundInCatalogErrorData, ItemPaymentConfig, ItemPriceBreakdown, ItemPricingInfo, ItemQuantityInfo, ItemSource, ItemStatus, ItemStatusWithLiterals, ItemTaxConfig, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, ItemUpsells, JurisdictionType, JurisdictionTypeWithLiterals, LegacyFields, LimitedQuota, LimitedQuotaType, LimitedQuotaTypeWithLiterals, LineItem, LineItemAdded, LineItemCoverage, LineItemDiscount, LineItemIdentifier, LineItemIdentifierIdOneOf, LineItemNotFoundInCartErrorData, LineItemPriceConflictErrorData, LineItemPricesData, LineItemSummary, LineItemTax, LineItemUpdate, LineItemsOutOfStockErrorData, ManualCalculationReason, ManualCalculationReasonWithLiterals, MarkCartAsCompletedRequest, MarkCartAsCompletedResponse, MaxItemModifiersExceededErrorData, MaxLineItemsExceededErrorData, MembersOnlyItemErrorData, Membership, MembershipInput, MembershipInputMembershipOneOf, MembershipName, MembershipOptions, MembershipPaymentCredits, MembershipSummary, MembershipSummaryMembershipIdentifierOneOf, MerchantDiscount, MessageEnvelope, MinLineItemQuantityNotReachedDetails, MinSubtotalNotReachedDetails, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, OtherCharge, PaymentInfo, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PaymentSummary, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlaceOrderRequest, PlaceOrderResponse, PlainTextValue, PlatformFee, PlatformFeeChargeType, PlatformFeeChargeTypeWithLiterals, PlatformFeeSummary, Policy, Price, PriceDescription, PriceDetails, PriceSummary, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, PurchasablePlan, QuantityUpdate, QuotaType, QuotaTypeWithLiterals, RateType, RateTypeWithLiterals, RawHttpResponse, RedemptionType, RedemptionTypeWithLiterals, RedirectUrls, RefreshCartRequest, RefreshCartResponse, RefreshCurrentCartRequest, Region, RemoveCouponFromCurrentCartRequest, RemoveCouponRequest, RemoveCouponResponse, RemoveDeliveryMethodFromCurrentCartRequest, RemoveDeliveryMethodRequest, RemoveDeliveryMethodResponse, RemoveGiftCardFromCurrentCartRequest, RemoveGiftCardRequest, RemoveGiftCardResponse, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsRequest, RemoveLineItemsResponse, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMembershipUpdate, SelectedMemberships, ServiceProperties, SetDeliveryMethodForCurrentCartRequest, SetDeliveryMethodRequest, SetDeliveryMethodResponse, Severity, SeverityWithLiterals, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, Source, SourceWithLiterals, StreetAddress, SubscriptionCharges, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SubtotalBelowOrderMinimumErrorData, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetTargetTypeOneOf, Tax, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxDetails, TaxInfo, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UnmarkAsCurrentCartRequest, UnmarkAsCurrentCartResponse, UpdateCartRequest, UpdateCartResponse, UpdateCurrentCartRequest, UpdateFormSubmissionsInCurrentCartRequest, UpdateFormSubmissionsRequest, UpdateFormSubmissionsResponse, UpdateLineItemsInCurrentCartRequest, UpdateLineItemsRequest, UpdateLineItemsResponse, UpsellBenefitMetadata, UpsellOption, V1AdditionalFee, V1Membership, V1PlatformFeeChargeType, V1PlatformFeeChargeTypeWithLiterals, V1PriceSummary, V2AdditionalFee, V2CalculationErrors, V2CalculationErrorsShippingCalculationErrorOneOf, V2CarrierError, V2CarrierErrors, V2Coupon, V2ExistingMembership, V2GiftCard, V2LineItem, V2LineItemDiscount, V2Membership, V2MembershipIdentifierOneOf, V2PriceSummary, V2SelectedMembership, V2TaxSummary, V2Violation, V2ViolationDataOneOf, ValidatedExistingMemberships, ValidatedPurchasablePlans, ValidationError, ValidationsConfig, ValidationsConfigWithLiterals, VatId, VatType, VatTypeWithLiterals, Violation, ViolationCode, ViolationCodeWithLiterals, ViolationScope, ViolationScopeWithLiterals, ViolationSeverity, ViolationSeverityWithLiterals, ViolationWithErrorSeverityErrorData, ViolationsList, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createCurrentCart$1(httpClient: HttpClient): CreateCurrentCartSignature;
|
|
6
6
|
interface CreateCurrentCartSignature {
|
|
@@ -55,7 +55,7 @@ interface CalculateCurrentCartSignature {
|
|
|
55
55
|
*
|
|
56
56
|
* Note that line item discounts are already pre-computed and applied to the current cart.
|
|
57
57
|
*/
|
|
58
|
-
(options?: CalculateCurrentCartOptions): Promise<NonNullablePaths<CalculateCurrentCartResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.paymentConfig.membership.redemptionType` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.openAccess` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart` | `cart.demo` | `summary.cartId` | `summary.cartRevision` | `summary.calculationId` | `summary.lineItems` | `summary.lineItems.${number}.lineItemId` | `summary.lineItems.${number}.quantity` | `summary.lineItems.${number}.unitPrice.amount` | `summary.lineItems.${number}.unitPrice.convertedAmount` | `summary.discounts` | `summary.discounts.${number}.name.original` | `summary.discounts.${number}.source.sourceType` | `summary.discounts.${number}.scope` | `summary.deliverySummary.method.code` | `summary.deliverySummary.method.pickup` | `summary.additionalFees` | `summary.additionalFees.${number}.source` | `summary.taxSummary.taxes` | `summary.taxSummary.pricesIncludeTax` | `summary.taxSummary.lineItemTaxes` | `summary.taxSummary.lineItemTaxes.${number}.lineItemId` | `summary.taxSummary.additionalFeeTaxes` | `summary.taxSummary.additionalFeeTaxes.${number}.additionalFeeCode` | `summary.paymentSummary.giftCards` | `summary.paymentSummary.giftCards.${number}.giftCardId` | `summary.paymentSummary.memberships` | `summary.paymentSummary.memberships.${number}._id` | `summary.paymentSummary.memberships.${number}.appId` | `summary.paymentSummary.subscriptionCharges` | `summary.paymentSummary.requiresPaymentAfterGiftCard` | `summary.calculationErrors.generalShippingCalculationError.applicationError.code` | `summary.calculationErrors.generalShippingCalculationError.applicationError.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule` | `summary.calculationErrors.carrierErrors.errors` | `summary.calculationErrors.carrierErrors.errors.${number}.carrierId` | `summary.calculationErrors.orderValidationErrors` | `summary.spiViolations` | `summary.spiViolations.${number}.severity` | `summary.spiViolations.${number}.target.other.name` | `summary.spiViolations.${number}.target.lineItem.name` | `summary.violations` | `summary.violations.${number}.invalidCouponStatusData.minLineItemQuantityNotReachedDetails.requiredMinimumQuantity` | `summary.violations.${number}.invalidCouponStatusData.couponCode` | `summary.violations.${number}.invalidCouponStatusData.reason` | `summary.violations.${number}.invalidCouponCodeData.couponCode` | `summary.violations.${number}.invalidGiftCardCodeData.giftCardCode` | `summary.violations.${number}.invalidGiftCardStatusData.giftCardCode` | `summary.violations.${number}.invalidGiftCardStatusData.reason` | `summary.violations.${number}.lineItemsOutOfStockData.allLineItemsOutOfStock` | `summary.violations.${number}.invalidMembershipStatusData.reason` | `summary.violations.${number}.scope` | `summary.violations.${number}.code` | `summary.violations.${number}.severity`, 6> & {
|
|
58
|
+
(options?: CalculateCurrentCartOptions): Promise<NonNullablePaths<CalculateCurrentCartResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.paymentConfig.membership.redemptionType` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.openAccess` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart` | `cart.demo` | `summary.cartId` | `summary.cartRevision` | `summary.calculationId` | `summary.lineItems` | `summary.lineItems.${number}.lineItemId` | `summary.lineItems.${number}.quantity` | `summary.lineItems.${number}.unitPrice.amount` | `summary.lineItems.${number}.unitPrice.convertedAmount` | `summary.discounts` | `summary.discounts.${number}.name.original` | `summary.discounts.${number}.source.sourceType` | `summary.discounts.${number}.scope` | `summary.deliverySummary.method.code` | `summary.deliverySummary.method.pickup` | `summary.additionalFees` | `summary.additionalFees.${number}.source` | `summary.taxSummary.taxes` | `summary.taxSummary.pricesIncludeTax` | `summary.taxSummary.lineItemTaxes` | `summary.taxSummary.lineItemTaxes.${number}.lineItemId` | `summary.taxSummary.additionalFeeTaxes` | `summary.taxSummary.additionalFeeTaxes.${number}.additionalFeeCode` | `summary.paymentSummary.giftCards` | `summary.paymentSummary.giftCards.${number}.giftCardId` | `summary.paymentSummary.memberships` | `summary.paymentSummary.memberships.${number}._id` | `summary.paymentSummary.memberships.${number}.appId` | `summary.paymentSummary.subscriptionCharges` | `summary.paymentSummary.requiresPaymentAfterGiftCard` | `summary.calculationErrors.generalShippingCalculationError.applicationError.code` | `summary.calculationErrors.generalShippingCalculationError.applicationError.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule` | `summary.calculationErrors.carrierErrors.errors` | `summary.calculationErrors.carrierErrors.errors.${number}.carrierId` | `summary.calculationErrors.orderValidationErrors` | `summary.spiViolations` | `summary.spiViolations.${number}.severity` | `summary.spiViolations.${number}.target.other.name` | `summary.spiViolations.${number}.target.lineItem.name` | `summary.violations` | `summary.violations.${number}.invalidCouponStatusData.minLineItemQuantityNotReachedDetails.requiredMinimumQuantity` | `summary.violations.${number}.invalidCouponStatusData.couponCode` | `summary.violations.${number}.invalidCouponStatusData.reason` | `summary.violations.${number}.invalidCouponCodeData.couponCode` | `summary.violations.${number}.invalidGiftCardCodeData.giftCardCode` | `summary.violations.${number}.invalidGiftCardStatusData.giftCardCode` | `summary.violations.${number}.invalidGiftCardStatusData.reason` | `summary.violations.${number}.lineItemsOutOfStockData.allLineItemsOutOfStock` | `summary.violations.${number}.invalidMembershipStatusData.reason` | `summary.violations.${number}.giftCardPaymentNotSupportedOnDemoCartData.giftCardId` | `summary.violations.${number}.scope` | `summary.violations.${number}.code` | `summary.violations.${number}.severity`, 6> & {
|
|
59
59
|
__applicationErrorsType?: CalculateCurrentCartApplicationErrors;
|
|
60
60
|
}>;
|
|
61
61
|
}
|
|
@@ -76,7 +76,7 @@ interface EstimateCurrentCartSignature {
|
|
|
76
76
|
*
|
|
77
77
|
* Note that line item discounts are already pre-computed and applied to the current cart.
|
|
78
78
|
*/
|
|
79
|
-
(options?: EstimateCurrentCartOptions): Promise<NonNullablePaths<EstimateCurrentCartResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.paymentConfig.membership.redemptionType` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.openAccess` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart` | `cart.demo` | `summary.cartId` | `summary.cartRevision` | `summary.calculationId` | `summary.lineItems` | `summary.lineItems.${number}.lineItemId` | `summary.lineItems.${number}.quantity` | `summary.lineItems.${number}.unitPrice.amount` | `summary.lineItems.${number}.unitPrice.convertedAmount` | `summary.discounts` | `summary.discounts.${number}.name.original` | `summary.discounts.${number}.source.sourceType` | `summary.discounts.${number}.scope` | `summary.deliverySummary.method.code` | `summary.deliverySummary.method.pickup` | `summary.additionalFees` | `summary.additionalFees.${number}.source` | `summary.taxSummary.taxes` | `summary.taxSummary.pricesIncludeTax` | `summary.taxSummary.lineItemTaxes` | `summary.taxSummary.lineItemTaxes.${number}.lineItemId` | `summary.taxSummary.additionalFeeTaxes` | `summary.taxSummary.additionalFeeTaxes.${number}.additionalFeeCode` | `summary.paymentSummary.giftCards` | `summary.paymentSummary.giftCards.${number}.giftCardId` | `summary.paymentSummary.memberships` | `summary.paymentSummary.memberships.${number}._id` | `summary.paymentSummary.memberships.${number}.appId` | `summary.paymentSummary.subscriptionCharges` | `summary.paymentSummary.requiresPaymentAfterGiftCard` | `summary.calculationErrors.generalShippingCalculationError.applicationError.code` | `summary.calculationErrors.generalShippingCalculationError.applicationError.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule` | `summary.calculationErrors.carrierErrors.errors` | `summary.calculationErrors.carrierErrors.errors.${number}.carrierId` | `summary.calculationErrors.orderValidationErrors` | `summary.spiViolations` | `summary.spiViolations.${number}.severity` | `summary.spiViolations.${number}.target.other.name` | `summary.spiViolations.${number}.target.lineItem.name` | `summary.violations` | `summary.violations.${number}.invalidCouponStatusData.minLineItemQuantityNotReachedDetails.requiredMinimumQuantity` | `summary.violations.${number}.invalidCouponStatusData.couponCode` | `summary.violations.${number}.invalidCouponStatusData.reason` | `summary.violations.${number}.invalidCouponCodeData.couponCode` | `summary.violations.${number}.invalidGiftCardCodeData.giftCardCode` | `summary.violations.${number}.invalidGiftCardStatusData.giftCardCode` | `summary.violations.${number}.invalidGiftCardStatusData.reason` | `summary.violations.${number}.lineItemsOutOfStockData.allLineItemsOutOfStock` | `summary.violations.${number}.invalidMembershipStatusData.reason` | `summary.violations.${number}.scope` | `summary.violations.${number}.code` | `summary.violations.${number}.severity`, 6> & {
|
|
79
|
+
(options?: EstimateCurrentCartOptions): Promise<NonNullablePaths<EstimateCurrentCartResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.paymentConfig.membership.redemptionType` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.openAccess` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart` | `cart.demo` | `summary.cartId` | `summary.cartRevision` | `summary.calculationId` | `summary.lineItems` | `summary.lineItems.${number}.lineItemId` | `summary.lineItems.${number}.quantity` | `summary.lineItems.${number}.unitPrice.amount` | `summary.lineItems.${number}.unitPrice.convertedAmount` | `summary.discounts` | `summary.discounts.${number}.name.original` | `summary.discounts.${number}.source.sourceType` | `summary.discounts.${number}.scope` | `summary.deliverySummary.method.code` | `summary.deliverySummary.method.pickup` | `summary.additionalFees` | `summary.additionalFees.${number}.source` | `summary.taxSummary.taxes` | `summary.taxSummary.pricesIncludeTax` | `summary.taxSummary.lineItemTaxes` | `summary.taxSummary.lineItemTaxes.${number}.lineItemId` | `summary.taxSummary.additionalFeeTaxes` | `summary.taxSummary.additionalFeeTaxes.${number}.additionalFeeCode` | `summary.paymentSummary.giftCards` | `summary.paymentSummary.giftCards.${number}.giftCardId` | `summary.paymentSummary.memberships` | `summary.paymentSummary.memberships.${number}._id` | `summary.paymentSummary.memberships.${number}.appId` | `summary.paymentSummary.subscriptionCharges` | `summary.paymentSummary.requiresPaymentAfterGiftCard` | `summary.calculationErrors.generalShippingCalculationError.applicationError.code` | `summary.calculationErrors.generalShippingCalculationError.applicationError.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule` | `summary.calculationErrors.carrierErrors.errors` | `summary.calculationErrors.carrierErrors.errors.${number}.carrierId` | `summary.calculationErrors.orderValidationErrors` | `summary.spiViolations` | `summary.spiViolations.${number}.severity` | `summary.spiViolations.${number}.target.other.name` | `summary.spiViolations.${number}.target.lineItem.name` | `summary.violations` | `summary.violations.${number}.invalidCouponStatusData.minLineItemQuantityNotReachedDetails.requiredMinimumQuantity` | `summary.violations.${number}.invalidCouponStatusData.couponCode` | `summary.violations.${number}.invalidCouponStatusData.reason` | `summary.violations.${number}.invalidCouponCodeData.couponCode` | `summary.violations.${number}.invalidGiftCardCodeData.giftCardCode` | `summary.violations.${number}.invalidGiftCardStatusData.giftCardCode` | `summary.violations.${number}.invalidGiftCardStatusData.reason` | `summary.violations.${number}.lineItemsOutOfStockData.allLineItemsOutOfStock` | `summary.violations.${number}.invalidMembershipStatusData.reason` | `summary.violations.${number}.giftCardPaymentNotSupportedOnDemoCartData.giftCardId` | `summary.violations.${number}.scope` | `summary.violations.${number}.code` | `summary.violations.${number}.severity`, 6> & {
|
|
80
80
|
__applicationErrorsType?: EstimateCurrentCartApplicationErrors;
|
|
81
81
|
}>;
|
|
82
82
|
}
|
|
@@ -186,6 +186,7 @@ interface UpdateFormSubmissionsInCurrentCartSignature {
|
|
|
186
186
|
(options?: UpdateFormSubmissionsInCurrentCartOptions): Promise<NonNullablePaths<UpdateFormSubmissionsInCurrentCartResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.paymentConfig.membership.redemptionType` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.openAccess` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart` | `cart.demo`, 5>>;
|
|
187
187
|
}
|
|
188
188
|
declare const onCartCalculated$1: EventDefinition<CartCalculatedEnvelope, "wix.ecom.v2.cart_calculated">;
|
|
189
|
+
declare const onCartCompleted$1: EventDefinition<CartCompletedEnvelope, "wix.ecom.v2.cart_completed">;
|
|
189
190
|
declare const onCartCreated$1: EventDefinition<CartCreatedEnvelope, "wix.ecom.v2.cart_created">;
|
|
190
191
|
declare const onCartDeleted$1: EventDefinition<CartDeletedEnvelope, "wix.ecom.v2.cart_deleted">;
|
|
191
192
|
declare const onCartUpdated$1: EventDefinition<CartUpdatedEnvelope, "wix.ecom.v2.cart_updated">;
|
|
@@ -211,6 +212,11 @@ declare const updateFormSubmissionsInCurrentCart: MaybeContext<BuildRESTFunction
|
|
|
211
212
|
* Triggered when a cart is calculated.
|
|
212
213
|
*/
|
|
213
214
|
declare const onCartCalculated: BuildEventDefinition<typeof onCartCalculated$1> & typeof onCartCalculated$1;
|
|
215
|
+
/**
|
|
216
|
+
* Triggered when a cart is completed, meaning `orderPlaced` changes to `true`.
|
|
217
|
+
* Sent a single time per cart, even if `orderId` is added later.
|
|
218
|
+
*/
|
|
219
|
+
declare const onCartCompleted: BuildEventDefinition<typeof onCartCompleted$1> & typeof onCartCompleted$1;
|
|
214
220
|
/**
|
|
215
221
|
* Triggered when a cart is created.
|
|
216
222
|
*/
|
|
@@ -224,4 +230,4 @@ declare const onCartDeleted: BuildEventDefinition<typeof onCartDeleted$1> & type
|
|
|
224
230
|
*/
|
|
225
231
|
declare const onCartUpdated: BuildEventDefinition<typeof onCartUpdated$1> & typeof onCartUpdated$1;
|
|
226
232
|
|
|
227
|
-
export { AddCouponToCurrentCartApplicationErrors, AddCouponToCurrentCartResponse, AddGiftCardToCurrentCartApplicationErrors, AddGiftCardToCurrentCartResponse, AddLineItemsToCurrentCartApplicationErrors, AddLineItemsToCurrentCartOptions, AddLineItemsToCurrentCartResponse, CalculateCurrentCartApplicationErrors, CalculateCurrentCartOptions, CalculateCurrentCartResponse, Cart, CartCalculatedEnvelope, CartCreatedEnvelope, CartDeletedEnvelope, CartUpdatedEnvelope, CouponInput, CreateCurrentCartApplicationErrors, CreateCurrentCartOptions, CreateCurrentCartResponse, DeliveryMethodInput, EstimateCurrentCartApplicationErrors, EstimateCurrentCartOptions, EstimateCurrentCartResponse, GetCurrentCartResponse, GiftCardInput, RefreshCurrentCartApplicationErrors, RefreshCurrentCartResponse, RemoveCouponFromCurrentCartApplicationErrors, RemoveCouponFromCurrentCartResponse, RemoveDeliveryMethodFromCurrentCartApplicationErrors, RemoveDeliveryMethodFromCurrentCartResponse, RemoveGiftCardFromCurrentCartApplicationErrors, RemoveGiftCardFromCurrentCartResponse, RemoveLineItemsFromCurrentCartApplicationErrors, RemoveLineItemsFromCurrentCartResponse, SetDeliveryMethodForCurrentCartApplicationErrors, SetDeliveryMethodForCurrentCartResponse, UpdateCurrentCartApplicationErrors, UpdateCurrentCartResponse, UpdateFormSubmissionsInCurrentCartOptions, UpdateFormSubmissionsInCurrentCartResponse, UpdateLineItemsInCurrentCartApplicationErrors, UpdateLineItemsInCurrentCartOptions, UpdateLineItemsInCurrentCartResponse, addCouponToCurrentCart, addGiftCardToCurrentCart, addLineItemsToCurrentCart, calculateCurrentCart, createCurrentCart, deleteCurrentCart, estimateCurrentCart, getCurrentCart, onCartCalculated, onCartCreated, onCartDeleted, onCartUpdated, refreshCurrentCart, removeCouponFromCurrentCart, removeDeliveryMethodFromCurrentCart, removeGiftCardFromCurrentCart, removeLineItemsFromCurrentCart, setDeliveryMethodForCurrentCart, updateCurrentCart, updateFormSubmissionsInCurrentCart, updateLineItemsInCurrentCart };
|
|
233
|
+
export { AddCouponToCurrentCartApplicationErrors, AddCouponToCurrentCartResponse, AddGiftCardToCurrentCartApplicationErrors, AddGiftCardToCurrentCartResponse, AddLineItemsToCurrentCartApplicationErrors, AddLineItemsToCurrentCartOptions, AddLineItemsToCurrentCartResponse, CalculateCurrentCartApplicationErrors, CalculateCurrentCartOptions, CalculateCurrentCartResponse, Cart, CartCalculatedEnvelope, CartCompletedEnvelope, CartCreatedEnvelope, CartDeletedEnvelope, CartUpdatedEnvelope, CouponInput, CreateCurrentCartApplicationErrors, CreateCurrentCartOptions, CreateCurrentCartResponse, DeliveryMethodInput, EstimateCurrentCartApplicationErrors, EstimateCurrentCartOptions, EstimateCurrentCartResponse, GetCurrentCartResponse, GiftCardInput, RefreshCurrentCartApplicationErrors, RefreshCurrentCartResponse, RemoveCouponFromCurrentCartApplicationErrors, RemoveCouponFromCurrentCartResponse, RemoveDeliveryMethodFromCurrentCartApplicationErrors, RemoveDeliveryMethodFromCurrentCartResponse, RemoveGiftCardFromCurrentCartApplicationErrors, RemoveGiftCardFromCurrentCartResponse, RemoveLineItemsFromCurrentCartApplicationErrors, RemoveLineItemsFromCurrentCartResponse, SetDeliveryMethodForCurrentCartApplicationErrors, SetDeliveryMethodForCurrentCartResponse, UpdateCurrentCartApplicationErrors, UpdateCurrentCartResponse, UpdateFormSubmissionsInCurrentCartOptions, UpdateFormSubmissionsInCurrentCartResponse, UpdateLineItemsInCurrentCartApplicationErrors, UpdateLineItemsInCurrentCartOptions, UpdateLineItemsInCurrentCartResponse, addCouponToCurrentCart, addGiftCardToCurrentCart, addLineItemsToCurrentCart, calculateCurrentCart, createCurrentCart, deleteCurrentCart, estimateCurrentCart, getCurrentCart, onCartCalculated, onCartCompleted, onCartCreated, onCartDeleted, onCartUpdated, refreshCurrentCart, removeCouponFromCurrentCart, removeDeliveryMethodFromCurrentCart, removeGiftCardFromCurrentCart, removeLineItemsFromCurrentCart, setDeliveryMethodForCurrentCart, updateCurrentCart, updateFormSubmissionsInCurrentCart, updateLineItemsInCurrentCart };
|
package/build/cjs/index.js
CHANGED
|
@@ -73,6 +73,7 @@ __export(index_exports, {
|
|
|
73
73
|
getCurrentCart: () => getCurrentCart4,
|
|
74
74
|
getUpsellOptionsForCurrentCart: () => getUpsellOptionsForCurrentCart4,
|
|
75
75
|
onCartCalculated: () => onCartCalculated2,
|
|
76
|
+
onCartCompleted: () => onCartCompleted2,
|
|
76
77
|
onCartCreated: () => onCartCreated2,
|
|
77
78
|
onCartDeleted: () => onCartDeleted2,
|
|
78
79
|
onCartUpdated: () => onCartUpdated2,
|
|
@@ -1101,10 +1102,7 @@ var ViolationCode = /* @__PURE__ */ ((ViolationCode2) => {
|
|
|
1101
1102
|
ViolationCode2["INVALID_MEMBERSHIP_STATUS"] = "INVALID_MEMBERSHIP_STATUS";
|
|
1102
1103
|
ViolationCode2["INVALID_POSTAL_CODE"] = "INVALID_POSTAL_CODE";
|
|
1103
1104
|
ViolationCode2["INVALID_SUBDIVISION"] = "INVALID_SUBDIVISION";
|
|
1104
|
-
ViolationCode2["SUBSCRIPTION_ITEM_NOT_SUPPORTED_ON_DEMO_CART"] = "SUBSCRIPTION_ITEM_NOT_SUPPORTED_ON_DEMO_CART";
|
|
1105
|
-
ViolationCode2["GIFT_CARD_ITEM_NOT_SUPPORTED_ON_DEMO_CART"] = "GIFT_CARD_ITEM_NOT_SUPPORTED_ON_DEMO_CART";
|
|
1106
1105
|
ViolationCode2["GIFT_CARD_PAYMENT_NOT_SUPPORTED_ON_DEMO_CART"] = "GIFT_CARD_PAYMENT_NOT_SUPPORTED_ON_DEMO_CART";
|
|
1107
|
-
ViolationCode2["MEMBERSHIP_PAYMENT_NOT_SUPPORTED_ON_DEMO_CART"] = "MEMBERSHIP_PAYMENT_NOT_SUPPORTED_ON_DEMO_CART";
|
|
1108
1106
|
ViolationCode2["MISSING_SITE_PAYMENT_METHOD_TYPE_ID"] = "MISSING_SITE_PAYMENT_METHOD_TYPE_ID";
|
|
1109
1107
|
return ViolationCode2;
|
|
1110
1108
|
})(ViolationCode || {});
|
|
@@ -1980,7 +1978,8 @@ var TRANSFORM_PATHS_03 = [
|
|
|
1980
1978
|
{ path: "data.paymentSummary.subscriptionCharges.charges.cycleBillingDate" },
|
|
1981
1979
|
{ path: "metadata.eventTime" }
|
|
1982
1980
|
];
|
|
1983
|
-
var TRANSFORM_PATHS_13 = [
|
|
1981
|
+
var TRANSFORM_PATHS_13 = [{ path: "metadata.eventTime" }];
|
|
1982
|
+
var TRANSFORM_PATHS_23 = [
|
|
1984
1983
|
{ path: "entity.createdDate" },
|
|
1985
1984
|
{ path: "entity.updatedDate" },
|
|
1986
1985
|
{
|
|
@@ -1990,23 +1989,23 @@ var TRANSFORM_PATHS_13 = [
|
|
|
1990
1989
|
{ path: "entity.lineItems.attributes.serviceProperties.endDate" },
|
|
1991
1990
|
{ path: "metadata.eventTime" }
|
|
1992
1991
|
];
|
|
1993
|
-
var
|
|
1992
|
+
var TRANSFORM_PATHS_33 = [
|
|
1994
1993
|
{ path: "entity.lineItems.source.catalogOverrideFields.image" },
|
|
1995
1994
|
{ path: "entity.lineItems.attributes.image" }
|
|
1996
1995
|
];
|
|
1997
|
-
var
|
|
1996
|
+
var TRANSFORM_PATHS_43 = [
|
|
1998
1997
|
{
|
|
1999
1998
|
path: "entity.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
2000
1999
|
},
|
|
2001
2000
|
{ path: "entity.lineItems.attributes.physicalProperties.weight" },
|
|
2002
2001
|
{ path: "entity.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
2003
2002
|
];
|
|
2004
|
-
var
|
|
2005
|
-
var
|
|
2003
|
+
var TRANSFORM_PATHS_53 = [{ path: "entity.lineItems.attributes.url" }];
|
|
2004
|
+
var TRANSFORM_PATHS_63 = [
|
|
2006
2005
|
{ path: "entity.deliveryInfo.address" },
|
|
2007
2006
|
{ path: "entity.paymentInfo.billingAddress" }
|
|
2008
2007
|
];
|
|
2009
|
-
var
|
|
2008
|
+
var TRANSFORM_PATHS_72 = [
|
|
2010
2009
|
{ path: "entity.createdDate" },
|
|
2011
2010
|
{ path: "entity.updatedDate" },
|
|
2012
2011
|
{
|
|
@@ -2025,13 +2024,13 @@ var TRANSFORM_PATHS_63 = [
|
|
|
2025
2024
|
},
|
|
2026
2025
|
{ path: "modifiedFields.lineItems.attributes.serviceProperties.endDate" }
|
|
2027
2026
|
];
|
|
2028
|
-
var
|
|
2027
|
+
var TRANSFORM_PATHS_8 = [
|
|
2029
2028
|
{ path: "entity.lineItems.source.catalogOverrideFields.image" },
|
|
2030
2029
|
{ path: "entity.lineItems.attributes.image" },
|
|
2031
2030
|
{ path: "modifiedFields.lineItems.source.catalogOverrideFields.image" },
|
|
2032
2031
|
{ path: "modifiedFields.lineItems.attributes.image" }
|
|
2033
2032
|
];
|
|
2034
|
-
var
|
|
2033
|
+
var TRANSFORM_PATHS_9 = [
|
|
2035
2034
|
{
|
|
2036
2035
|
path: "entity.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
2037
2036
|
},
|
|
@@ -2043,11 +2042,11 @@ var TRANSFORM_PATHS_8 = [
|
|
|
2043
2042
|
{ path: "modifiedFields.lineItems.attributes.physicalProperties.weight" },
|
|
2044
2043
|
{ path: "modifiedFields.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
2045
2044
|
];
|
|
2046
|
-
var
|
|
2045
|
+
var TRANSFORM_PATHS_10 = [
|
|
2047
2046
|
{ path: "entity.lineItems.attributes.url" },
|
|
2048
2047
|
{ path: "modifiedFields.lineItems.attributes.url" }
|
|
2049
2048
|
];
|
|
2050
|
-
var
|
|
2049
|
+
var TRANSFORM_PATHS_11 = [
|
|
2051
2050
|
{ path: "entity.deliveryInfo.address" },
|
|
2052
2051
|
{ path: "entity.paymentInfo.billingAddress" },
|
|
2053
2052
|
{ path: "modifiedFields.deliveryInfo.address" },
|
|
@@ -2186,6 +2185,18 @@ var onCartCalculated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
2186
2185
|
])
|
|
2187
2186
|
)
|
|
2188
2187
|
)();
|
|
2188
|
+
var onCartCompleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
2189
|
+
"wix.ecom.v2.cart_completed",
|
|
2190
|
+
true,
|
|
2191
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
2192
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
2193
|
+
{
|
|
2194
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2195
|
+
paths: TRANSFORM_PATHS_13
|
|
2196
|
+
}
|
|
2197
|
+
])
|
|
2198
|
+
)
|
|
2199
|
+
)();
|
|
2189
2200
|
var onCartCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
2190
2201
|
"wix.ecom.v2.cart_created",
|
|
2191
2202
|
true,
|
|
@@ -2193,23 +2204,23 @@ var onCartCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
2193
2204
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
2194
2205
|
{
|
|
2195
2206
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2196
|
-
paths:
|
|
2207
|
+
paths: TRANSFORM_PATHS_23
|
|
2197
2208
|
},
|
|
2198
2209
|
{
|
|
2199
2210
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
2200
|
-
paths:
|
|
2211
|
+
paths: TRANSFORM_PATHS_33
|
|
2201
2212
|
},
|
|
2202
2213
|
{
|
|
2203
2214
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
2204
|
-
paths:
|
|
2215
|
+
paths: TRANSFORM_PATHS_43
|
|
2205
2216
|
},
|
|
2206
2217
|
{
|
|
2207
2218
|
transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2208
|
-
paths:
|
|
2219
|
+
paths: TRANSFORM_PATHS_53
|
|
2209
2220
|
},
|
|
2210
2221
|
{
|
|
2211
2222
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2212
|
-
paths:
|
|
2223
|
+
paths: TRANSFORM_PATHS_63
|
|
2213
2224
|
}
|
|
2214
2225
|
])
|
|
2215
2226
|
)
|
|
@@ -2221,23 +2232,23 @@ var onCartDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
2221
2232
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
2222
2233
|
{
|
|
2223
2234
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2224
|
-
paths:
|
|
2235
|
+
paths: TRANSFORM_PATHS_23
|
|
2225
2236
|
},
|
|
2226
2237
|
{
|
|
2227
2238
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
2228
|
-
paths:
|
|
2239
|
+
paths: TRANSFORM_PATHS_33
|
|
2229
2240
|
},
|
|
2230
2241
|
{
|
|
2231
2242
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
2232
|
-
paths:
|
|
2243
|
+
paths: TRANSFORM_PATHS_43
|
|
2233
2244
|
},
|
|
2234
2245
|
{
|
|
2235
2246
|
transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2236
|
-
paths:
|
|
2247
|
+
paths: TRANSFORM_PATHS_53
|
|
2237
2248
|
},
|
|
2238
2249
|
{
|
|
2239
2250
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2240
|
-
paths:
|
|
2251
|
+
paths: TRANSFORM_PATHS_63
|
|
2241
2252
|
}
|
|
2242
2253
|
])
|
|
2243
2254
|
)
|
|
@@ -2249,23 +2260,23 @@ var onCartUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
2249
2260
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
2250
2261
|
{
|
|
2251
2262
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2252
|
-
paths:
|
|
2263
|
+
paths: TRANSFORM_PATHS_72
|
|
2253
2264
|
},
|
|
2254
2265
|
{
|
|
2255
2266
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
2256
|
-
paths:
|
|
2267
|
+
paths: TRANSFORM_PATHS_8
|
|
2257
2268
|
},
|
|
2258
2269
|
{
|
|
2259
2270
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
2260
|
-
paths:
|
|
2271
|
+
paths: TRANSFORM_PATHS_9
|
|
2261
2272
|
},
|
|
2262
2273
|
{
|
|
2263
2274
|
transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2264
|
-
paths:
|
|
2275
|
+
paths: TRANSFORM_PATHS_10
|
|
2265
2276
|
},
|
|
2266
2277
|
{
|
|
2267
2278
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2268
|
-
paths:
|
|
2279
|
+
paths: TRANSFORM_PATHS_11
|
|
2269
2280
|
}
|
|
2270
2281
|
])
|
|
2271
2282
|
)
|
|
@@ -2295,6 +2306,9 @@ var getUpsellOptionsForCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.c
|
|
|
2295
2306
|
var onCartCalculated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
2296
2307
|
onCartCalculated
|
|
2297
2308
|
);
|
|
2309
|
+
var onCartCompleted2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
2310
|
+
onCartCompleted
|
|
2311
|
+
);
|
|
2298
2312
|
var onCartCreated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onCartCreated);
|
|
2299
2313
|
var onCartDeleted2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onCartDeleted);
|
|
2300
2314
|
var onCartUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onCartUpdated);
|
|
@@ -2353,6 +2367,7 @@ var onCartUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.createE
|
|
|
2353
2367
|
getCurrentCart,
|
|
2354
2368
|
getUpsellOptionsForCurrentCart,
|
|
2355
2369
|
onCartCalculated,
|
|
2370
|
+
onCartCompleted,
|
|
2356
2371
|
onCartCreated,
|
|
2357
2372
|
onCartDeleted,
|
|
2358
2373
|
onCartUpdated,
|