@wix/auto_sdk_ecom_checkout 1.0.43 → 1.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { C as CreateCheckoutOptions, a as Checkout, G as GetCheckoutByCartIdResponse, b as GetCheckoutURLResponse, U as UpdateCheckout, c as UpdateCheckoutOptions, R as RemoveCouponResponse, d as RemoveGiftCardResponse, e as RemoveOverrideCheckoutUrlResponse, A as AddToCheckoutOptions, f as AddToCheckoutResponse, g as RemoveLineItemsResponse, h as CreateOrderOptions, i as CreateOrderResponse, j as RawHttpResponse, L as LineItemQuantityUpdate, k as UpdateLineItemsQuantityResponse, l as CheckoutCompletedEnvelope, m as CheckoutCreatedEnvelope, n as CheckoutDeletedEnvelope, o as CheckoutUpdatedEnvelope } from './ecom-v1-checkout-checkout.universal-BWJwZODy.js';
3
- export { cU as ActionEvent, c0 as AddToCheckoutRequest, bt as AdditionalFee, y as AdditionalFeeSource, cw as Address, cx as AddressAddressLine1OptionsOneOf, aC as AddressLocation, az as AddressWithContact, bj as AggregatedTaxBreakdown, aA as ApiAddress, aP as ApplicableLineItems, b0 as ApplicationError, cG as AppliedCoupon, b7 as AppliedDiscount, b8 as AppliedDiscountDiscountSourceOneOf, bi as AutoTaxFallbackCalculationDetails, cY as BaseEventMetadata, cM as BillingInfo, aV as BuyerInfo, aW as BuyerInfoIdOneOf, aY as CalculationErrors, aZ as CalculationErrorsShippingCalculationErrorOneOf, aN as Carrier, b5 as CarrierError, b4 as CarrierErrors, aR as CarrierServiceOption, aq as CatalogOverrideFields, $ as CatalogReference, cK as ChannelInfo, Y as ChannelInfoChannelType, x as ChannelType, bE as Charge, cr as ChargeDetails, s as ChargeType, bG as CheckoutMarkedAsCompleted, aa as Color, aE as CommonVatId, q as CommonVatType, bu as ConversionInfo, b9 as Coupon, bH as CreateCheckoutRequest, bM as CreateCheckoutResponse, c_ as CreateOrderAndChargeOptions, c9 as CreateOrderAndChargeRequest, ca as CreateOrderAndChargeResponse, cb as CreateOrderAndChargeResponseIdOneOf, c2 as CreateOrderRequest, c3 as CreateOrderResponseIdOneOf, bk as CreatedBy, bl as CreatedByIdOneOf, bB as CustomContentReference, be as CustomField, bI as CustomLineItem, bA as CustomSettings, cq as CustomTextFieldSelection, cj as DeleteCheckoutRequest, ck as DeleteCheckoutResponse, aM as DeliveryAllocation, aH as DeliveryLogistics, aJ as DeliveryTimeSlot, am as Description, a5 as DescriptionLine, a7 as DescriptionLineDescriptionLineValueOneOf, a8 as DescriptionLineName, D as DescriptionLineType, a6 as DescriptionLineValueOneOf, a_ as Details, a$ as DetailsKindOneOf, cJ as Discount, X as DiscountDiscountType, bb as DiscountRule, bc as DiscountRuleName, u as DiscountType, cO as DomainEvent, cP as DomainEventBodyOneOf, c5 as DoublePaymentErrorData, c6 as DoublePaymentErrorDataIdOneOf, cN as Empty, cQ as EntityCreatedEvent, cT as EntityDeletedEvent, cS as EntityUpdatedEvent, cZ as EventMetadata, au as ExtendedFields, bC as ExternalReference, w as FallbackReason, b2 as FieldViolation, F as FileType, ab as FocalPoint, ak as FreeTrialPeriod, aD as FullAddressContactDetails, cy as FullName, bT as GetCheckoutByCartIdRequest, ch as GetCheckoutPaymentSettingsRequest, ci as GetCheckoutPaymentSettingsResponse, H as GetCheckoutPaymentSettingsResponsePaymentOption, bP as GetCheckoutRequest, bQ as GetCheckoutResponse, bW as GetCheckoutURLRequest, bR as GetCheckoutWithAllExtendedFieldsRequest, bS as GetCheckoutWithAllExtendedFieldsResponse, bU as GetWixCheckoutURLRequest, bV as GetWixCheckoutURLResponse, b6 as GiftCard, af as Group, cd as HeadersEntry, cW as IdentificationData, cX as IdentificationDataIdOneOf, K as IdentityType, bq as InvalidMembership, ac as ItemAvailabilityInfo, I as ItemAvailabilityStatus, ay as ItemModifier, a2 as ItemTaxFullDetails, ag as ItemType, p as ItemTypeItemType, ah as ItemTypeItemTypeDataOneOf, J as JurisdictionType, _ as LineItem, bd as LineItemDiscount, O as LineItemType, M as ManualCalculationReason, cc as MarkCheckoutAsCompletedAndRedirectToUrlRequest, ce as MarkCheckoutAsCompletedRequest, cf as MarkCheckoutAsCompletedResponse, ct as MediaItem, Q as MediaItemType, bn as Membership, bo as MembershipName, bm as MembershipOptions, bp as MembershipPaymentCredits, ba as MerchantDiscount, bL as MerchantDiscountInput, cV as MessageEnvelope, aw as ModifierGroup, a1 as MultiCurrencyPrice, B as NameInLineItem, N as NameInOther, cp as OptionSelection, by as Other, aU as OtherCharge, c4 as PaymentErrorResponseData, ar as PaymentOption, P as PaymentOptionType, ad as PhysicalProperties, cF as PickupAddress, aI as PickupDetails, r as PickupMethod, a9 as PlainTextValue, av as Policy, ap as PriceDescription, aX as PriceSummary, cs as ProductDetails, a0 as ProductName, v as RateType, c7 as RedeemErrorData, aO as Region, bZ as RemoveCouponRequest, b_ as RemoveGiftCardRequest, c1 as RemoveLineItemsRequest, b$ as RemoveOverrideCheckoutUrlRequest, cR as RestoreInfo, t as RuleType, ae as Scope, an as SecuredMedia, aG as SelectedCarrierServiceOption, aL as SelectedCarrierServiceOptionOtherCharge, aK as SelectedCarrierServiceOptionPrices, bs as SelectedMembership, br as SelectedMemberships, ao as ServiceProperties, z as Severity, cD as ShipmentDetails, bN as ShippingCalculationErrorData, bO as ShippingCalculationErrorDataShippingCalculationErrorOneOf, aF as ShippingInfo, aS as ShippingOption, aT as ShippingPrice, aQ as ShippingRegion, cv as StoreSettings, cz as Street, aB as StreetAddress, cm as Subscription, bD as SubscriptionCharges, cl as SubscriptionCreated, S as SubscriptionFrequency, ai as SubscriptionOptionInfo, aj as SubscriptionSettings, E as SuggestedFix, b3 as SystemError, bw as Target, bz as TargetLineItem, bx as TargetTargetTypeOneOf, a4 as TaxBreakdown, bg as TaxCalculationDetails, bh as TaxCalculationDetailsCalculationDetailsOneOf, a3 as TaxRateBreakdown, bf as TaxSummary, as as TaxableAddress, at as TaxableAddressTaxableAddressDataOneOf, T as TaxableAddressType, al as Title, cu as Totals, ax as TranslatableString, bX as UpdateCheckoutRequest, bY as UpdateCheckoutResponse, cg as UpdateLineItemsQuantityRequest, bF as UpdatedCheckoutMessage, cn as V1BuyerInfo, cH as V1CustomField, bK as V1ItemModifier, co as V1LineItem, bJ as V1ModifierGroup, cE as V1PickupDetails, cB as V1ShippingInfo, cC as V1ShippingInfoDetailsOneOf, cI as V1SubscriptionOptionInfo, cL as V1SubscriptionSettings, b1 as ValidationError, cA as VatId, V as VatType, bv as Violation, c8 as ViolationsList, Z as WebhookIdentityType, W as WeightUnit } from './ecom-v1-checkout-checkout.universal-BWJwZODy.js';
2
+ import { CreateCheckoutOptions, Checkout, CreateCheckoutApplicationErrors, GetCheckoutByCartIdResponse, GetCheckoutURLResponse, UpdateCheckout, UpdateCheckoutOptions, UpdateCheckoutApplicationErrors, RemoveCouponResponse, RemoveGiftCardResponse, RemoveOverrideCheckoutUrlResponse, AddToCheckoutOptions, AddToCheckoutResponse, AddToCheckoutApplicationErrors, RemoveLineItemsResponse, CreateOrderOptions, CreateOrderResponse, CreateOrderApplicationErrors, RawHttpResponse, MarkCheckoutAsCompletedAndRedirectToUrlApplicationErrors, LineItemQuantityUpdate, UpdateLineItemsQuantityResponse, CheckoutCompletedEnvelope, CheckoutCreatedEnvelope, CheckoutDeletedEnvelope, CheckoutUpdatedEnvelope } from './index.typings.js';
3
+ export { ActionEvent, AddToCheckoutRequest, AdditionalFee, AdditionalFeeSource, Address, AddressAddressLine1OptionsOneOf, AddressLocation, AddressWithContact, AggregatedTaxBreakdown, ApiAddress, ApplicableLineItems, ApplicationError, AppliedCoupon, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BaseEventMetadata, BillingInfo, BuyerInfo, BuyerInfoIdOneOf, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CatalogOverrideFields, CatalogReference, ChannelInfo, ChannelInfoChannelType, ChannelType, Charge, ChargeDetails, ChargeType, CheckoutMarkedAsCompleted, Color, CommonVatId, CommonVatType, ConversionInfo, Coupon, CreateCheckoutRequest, CreateCheckoutResponse, CreateOrderAndChargeOptions, CreateOrderAndChargeRequest, CreateOrderAndChargeResponse, CreateOrderAndChargeResponseIdOneOf, CreateOrderRequest, CreateOrderResponseIdOneOf, CreatedBy, CreatedByIdOneOf, CustomContentReference, CustomField, CustomLineItem, CustomSettings, CustomTextFieldSelection, DeleteCheckoutRequest, DeleteCheckoutResponse, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Discount, DiscountDiscountType, DiscountRule, DiscountRuleName, DiscountType, DomainEvent, DomainEventBodyOneOf, DoublePaymentErrorData, DoublePaymentErrorDataIdOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReference, FallbackReason, FieldViolation, FileType, FocalPoint, FreeTrialPeriod, FullAddressContactDetails, FullName, GetCheckoutByCartIdRequest, GetCheckoutPaymentSettingsRequest, GetCheckoutPaymentSettingsResponse, GetCheckoutPaymentSettingsResponsePaymentOption, GetCheckoutRequest, GetCheckoutResponse, GetCheckoutURLRequest, GetCheckoutWithAllExtendedFieldsRequest, GetCheckoutWithAllExtendedFieldsResponse, GetWixCheckoutURLRequest, GetWixCheckoutURLResponse, GiftCard, Group, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, IdentityType, InvalidMembership, ItemAvailabilityInfo, ItemAvailabilityStatus, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemType, ItemTypeItemTypeDataOneOf, JurisdictionType, LineItem, LineItemDiscount, LineItemType, ManualCalculationReason, MarkCheckoutAsCompletedAndRedirectToUrlRequest, MarkCheckoutAsCompletedRequest, MarkCheckoutAsCompletedResponse, MediaItem, MediaItemType, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MerchantDiscountInput, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInOther, OptionSelection, Other, OtherCharge, PaymentErrorResponseData, PaymentOption, PaymentOptionType, PhysicalProperties, PickupAddress, PickupDetails, PickupMethod, PlainTextValue, Policy, PriceDescription, PriceSummary, ProductDetails, ProductName, RateType, RedeemErrorData, Region, RemoveCouponRequest, RemoveGiftCardRequest, RemoveLineItemsRequest, RemoveOverrideCheckoutUrlRequest, RestoreInfo, RuleType, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, ServiceProperties, Severity, ShipmentDetails, ShippingCalculationErrorData, ShippingCalculationErrorDataShippingCalculationErrorOneOf, ShippingInfo, ShippingOption, ShippingPrice, ShippingRegion, StoreSettings, Street, StreetAddress, Subscription, SubscriptionCharges, SubscriptionCreated, SubscriptionFrequency, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SystemError, Target, TargetLineItem, TargetTargetTypeOneOf, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, Title, Totals, TranslatableString, UpdateCheckoutRequest, UpdateCheckoutResponse, UpdateLineItemsQuantityRequest, UpdatedCheckoutMessage, V1BuyerInfo, V1CustomField, V1ItemModifier, V1LineItem, V1ModifierGroup, V1PickupDetails, V1ShippingInfo, V1ShippingInfoDetailsOneOf, V1SubscriptionOptionInfo, V1SubscriptionSettings, ValidationError, VatId, VatType, Violation, ViolationsList, WebhookIdentityType, WeightUnit } from './index.typings.js';
4
4
 
5
5
  declare function createCheckout$1(httpClient: HttpClient): CreateCheckoutSignature;
6
6
  interface CreateCheckoutSignature {
@@ -13,7 +13,9 @@ interface CreateCheckoutSignature {
13
13
  * @param - Checkout creation options.
14
14
  * @returns Newly created checkout.
15
15
  */
16
- (options?: CreateCheckoutOptions | undefined): Promise<Checkout>;
16
+ (options?: CreateCheckoutOptions | undefined): Promise<Checkout & {
17
+ __applicationErrorsType?: CreateCheckoutApplicationErrors | undefined;
18
+ }>;
17
19
  }
18
20
  declare function getCheckout$1(httpClient: HttpClient): GetCheckoutSignature;
19
21
  interface GetCheckoutSignature {
@@ -65,7 +67,9 @@ interface UpdateCheckoutSignature {
65
67
  * @param - Checkout update options.
66
68
  * @returns Updated checkout.
67
69
  */
68
- (_id: string, checkout: UpdateCheckout, options?: UpdateCheckoutOptions | undefined): Promise<Checkout>;
70
+ (_id: string, checkout: UpdateCheckout, options?: UpdateCheckoutOptions | undefined): Promise<Checkout & {
71
+ __applicationErrorsType?: UpdateCheckoutApplicationErrors | undefined;
72
+ }>;
69
73
  }
70
74
  declare function removeCoupon$1(httpClient: HttpClient): RemoveCouponSignature;
71
75
  interface RemoveCouponSignature {
@@ -106,7 +110,9 @@ interface AddToCheckoutSignature {
106
110
  * @param - Checkout ID.
107
111
  * @param - Items to be added to checkout.
108
112
  */
109
- (_id: string, options?: AddToCheckoutOptions | undefined): Promise<AddToCheckoutResponse>;
113
+ (_id: string, options?: AddToCheckoutOptions | undefined): Promise<AddToCheckoutResponse & {
114
+ __applicationErrorsType?: AddToCheckoutApplicationErrors | undefined;
115
+ }>;
110
116
  }
111
117
  declare function removeLineItems$1(httpClient: HttpClient): RemoveLineItemsSignature;
112
118
  interface RemoveLineItemsSignature {
@@ -136,7 +142,9 @@ interface CreateOrderSignature {
136
142
  * @param - Checkout ID.
137
143
  * @param - Additional order creation options.
138
144
  */
139
- (_id: string, options?: CreateOrderOptions | undefined): Promise<CreateOrderResponse>;
145
+ (_id: string, options?: CreateOrderOptions | undefined): Promise<CreateOrderResponse & {
146
+ __applicationErrorsType?: CreateOrderApplicationErrors | undefined;
147
+ }>;
140
148
  }
141
149
  declare function markCheckoutAsCompletedAndRedirectToUrl$1(httpClient: HttpClient): MarkCheckoutAsCompletedAndRedirectToUrlSignature;
142
150
  interface MarkCheckoutAsCompletedAndRedirectToUrlSignature {
@@ -144,7 +152,9 @@ interface MarkCheckoutAsCompletedAndRedirectToUrlSignature {
144
152
  * Marks a checkout as completed and redirects to a specified URL.
145
153
  * @param - Server-signed JWT token with required information to complete checkout
146
154
  */
147
- (token: string): Promise<RawHttpResponse>;
155
+ (token: string): Promise<RawHttpResponse & {
156
+ __applicationErrorsType?: MarkCheckoutAsCompletedAndRedirectToUrlApplicationErrors | undefined;
157
+ }>;
148
158
  }
149
159
  declare function markCheckoutAsCompleted$1(httpClient: HttpClient): MarkCheckoutAsCompletedSignature;
150
160
  interface MarkCheckoutAsCompletedSignature {