@wix/auto_sdk_ecom_checkout 1.0.38 → 1.0.39
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/{ecom-v1-checkout-checkout.universal-DEDRvPML.d.mts → ecom-v1-checkout-checkout.universal-BWJwZODy.d.mts} +8 -5
- package/build/{ecom-v1-checkout-checkout.universal-DEDRvPML.d.ts → ecom-v1-checkout-checkout.universal-BWJwZODy.d.ts} +8 -5
- package/build/index.d.mts +9 -5
- package/build/index.d.ts +9 -5
- package/build/index.js +76 -0
- package/build/index.js.map +1 -1
- package/build/index.mjs +75 -0
- package/build/index.mjs.map +1 -1
- package/build/internal/{ecom-v1-checkout-checkout.universal-CirtPjnM.d.mts → ecom-v1-checkout-checkout.universal-o9jU9uir.d.mts} +8 -5
- package/build/internal/{ecom-v1-checkout-checkout.universal-CirtPjnM.d.ts → ecom-v1-checkout-checkout.universal-o9jU9uir.d.ts} +8 -5
- package/build/internal/index.d.mts +9 -5
- package/build/internal/index.d.ts +9 -5
- package/build/internal/index.js +76 -0
- package/build/internal/index.js.map +1 -1
- package/build/internal/index.mjs +75 -0
- package/build/internal/index.mjs.map +1 -1
- package/build/internal/meta.d.mts +1 -1
- package/build/internal/meta.d.ts +1 -1
- package/build/meta.d.mts +1 -1
- package/build/meta.d.ts +1 -1
- package/package.json +2 -2
|
@@ -2239,6 +2239,10 @@ interface UpdatedCheckoutMessage {
|
|
|
2239
2239
|
/** Updated checkout. */
|
|
2240
2240
|
updatedCheckout?: Checkout;
|
|
2241
2241
|
}
|
|
2242
|
+
/** Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed. */
|
|
2243
|
+
interface CheckoutMarkedAsCompleted {
|
|
2244
|
+
checkout?: Checkout;
|
|
2245
|
+
}
|
|
2242
2246
|
interface CreateCheckoutRequest {
|
|
2243
2247
|
/** Checkout information. */
|
|
2244
2248
|
checkoutInfo?: Checkout;
|
|
@@ -2823,10 +2827,6 @@ interface MarkCheckoutAsCompletedRequest {
|
|
|
2823
2827
|
}
|
|
2824
2828
|
interface MarkCheckoutAsCompletedResponse {
|
|
2825
2829
|
}
|
|
2826
|
-
/** Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed. */
|
|
2827
|
-
interface CheckoutMarkedAsCompleted {
|
|
2828
|
-
checkout?: Checkout;
|
|
2829
|
-
}
|
|
2830
2830
|
interface UpdateLineItemsQuantityRequest {
|
|
2831
2831
|
/**
|
|
2832
2832
|
* Checkout ID.
|
|
@@ -3694,6 +3694,9 @@ interface CheckoutCreatedEnvelope {
|
|
|
3694
3694
|
entity: Checkout;
|
|
3695
3695
|
metadata: EventMetadata;
|
|
3696
3696
|
}
|
|
3697
|
+
interface CheckoutDeletedEnvelope {
|
|
3698
|
+
metadata: EventMetadata;
|
|
3699
|
+
}
|
|
3697
3700
|
interface CheckoutUpdatedEnvelope {
|
|
3698
3701
|
entity: Checkout;
|
|
3699
3702
|
metadata: EventMetadata;
|
|
@@ -4021,4 +4024,4 @@ interface CreateOrderAndChargeOptions {
|
|
|
4021
4024
|
delayCapture?: boolean;
|
|
4022
4025
|
}
|
|
4023
4026
|
|
|
4024
|
-
export {
|
|
4027
|
+
export { DiscountDiscountType as $, type AddToCheckoutOptions as A, FallbackReason as B, type CreateCheckoutOptions as C, DescriptionLineType as D, ChannelType as E, FileType as F, type GetCheckoutByCartIdResponse as G, AdditionalFeeSource as H, ItemAvailabilityStatus as I, JurisdictionType as J, Severity as K, type LineItemQuantityUpdate as L, ManualCalculationReason as M, NameInOther as N, NameInLineItem as O, PaymentOptionType as P, SuggestedFix as Q, type RemoveCouponResponse as R, SubscriptionFrequency as S, TaxableAddressType as T, type UpdateCheckout as U, GetCheckoutPaymentSettingsResponsePaymentOption as V, WeightUnit as W, IdentityType as X, LineItemType as Y, MediaItemType as Z, VatType as _, type Checkout as a, type PriceSummary as a$, ChannelInfoChannelType as a0, WebhookIdentityType as a1, type LineItem as a2, type CatalogReference as a3, type ProductName as a4, type MultiCurrencyPrice as a5, type ItemTaxFullDetails as a6, type TaxRateBreakdown as a7, type TaxBreakdown as a8, type DescriptionLine as a9, type ModifierGroup as aA, type TranslatableString as aB, type ItemModifier as aC, type AddressWithContact as aD, type ApiAddress as aE, type StreetAddress as aF, type AddressLocation as aG, type FullAddressContactDetails as aH, type CommonVatId as aI, type ShippingInfo as aJ, type SelectedCarrierServiceOption as aK, type DeliveryLogistics as aL, type PickupDetails as aM, type DeliveryTimeSlot as aN, type SelectedCarrierServiceOptionPrices as aO, type SelectedCarrierServiceOptionOtherCharge as aP, type DeliveryAllocation as aQ, type Carrier as aR, type Region as aS, type ApplicableLineItems as aT, type ShippingRegion as aU, type CarrierServiceOption as aV, type ShippingOption as aW, type ShippingPrice as aX, type OtherCharge as aY, type BuyerInfo as aZ, type BuyerInfoIdOneOf as a_, type DescriptionLineValueOneOf as aa, type DescriptionLineDescriptionLineValueOneOf as ab, type DescriptionLineName as ac, type PlainTextValue as ad, type Color as ae, type FocalPoint as af, type ItemAvailabilityInfo as ag, type PhysicalProperties as ah, type Scope as ai, type Group as aj, type ItemType as ak, type ItemTypeItemTypeDataOneOf as al, type SubscriptionOptionInfo as am, type SubscriptionSettings as an, type FreeTrialPeriod as ao, type Title as ap, type Description as aq, type SecuredMedia as ar, type ServiceProperties as as, type PriceDescription as at, type CatalogOverrideFields as au, type PaymentOption as av, type TaxableAddress as aw, type TaxableAddressTaxableAddressDataOneOf as ax, type ExtendedFields as ay, type Policy as az, type GetWixCheckoutURLResponse as b, type UpdateCheckoutResponse as b$, type CalculationErrors as b0, type CalculationErrorsShippingCalculationErrorOneOf as b1, type Details as b2, type DetailsKindOneOf as b3, type ApplicationError as b4, type ValidationError as b5, type FieldViolation as b6, type SystemError as b7, type CarrierErrors as b8, type CarrierError as b9, type Target as bA, type TargetTargetTypeOneOf as bB, type Other as bC, type TargetLineItem as bD, type CustomSettings as bE, type CustomContentReference as bF, type ExternalReference as bG, type SubscriptionCharges as bH, type Charge as bI, type UpdatedCheckoutMessage as bJ, type CheckoutMarkedAsCompleted as bK, type CreateCheckoutRequest as bL, type CustomLineItem as bM, type V1ModifierGroup as bN, type V1ItemModifier as bO, type MerchantDiscountInput as bP, type CreateCheckoutResponse as bQ, type ShippingCalculationErrorData as bR, type ShippingCalculationErrorDataShippingCalculationErrorOneOf as bS, type GetCheckoutRequest as bT, type GetCheckoutResponse as bU, type GetCheckoutWithAllExtendedFieldsRequest as bV, type GetCheckoutWithAllExtendedFieldsResponse as bW, type GetCheckoutByCartIdRequest as bX, type GetWixCheckoutURLRequest as bY, type GetCheckoutURLRequest as bZ, type UpdateCheckoutRequest as b_, type GiftCard as ba, type AppliedDiscount as bb, type AppliedDiscountDiscountSourceOneOf as bc, type Coupon as bd, type MerchantDiscount as be, type DiscountRule as bf, type DiscountRuleName as bg, type LineItemDiscount as bh, type CustomField as bi, type TaxSummary as bj, type TaxCalculationDetails as bk, type TaxCalculationDetailsCalculationDetailsOneOf as bl, type AutoTaxFallbackCalculationDetails as bm, type AggregatedTaxBreakdown as bn, type CreatedBy as bo, type CreatedByIdOneOf as bp, type MembershipOptions as bq, type Membership as br, type MembershipName as bs, type MembershipPaymentCredits as bt, type InvalidMembership as bu, type SelectedMemberships as bv, type SelectedMembership as bw, type AdditionalFee as bx, type ConversionInfo as by, type Violation as bz, type GetCheckoutURLResponse as c, type RemoveCouponRequest as c0, type RemoveGiftCardRequest as c1, type RemoveOverrideCheckoutUrlRequest as c2, type AddToCheckoutRequest as c3, type RemoveLineItemsRequest as c4, type CreateOrderRequest as c5, type CreateOrderResponseIdOneOf as c6, type PaymentErrorResponseData as c7, type DoublePaymentErrorData as c8, type DoublePaymentErrorDataIdOneOf as c9, type Street as cA, type VatId as cB, type V1ShippingInfo as cC, type V1ShippingInfoDetailsOneOf as cD, type ShipmentDetails as cE, type V1PickupDetails as cF, type PickupAddress as cG, type AppliedCoupon as cH, type V1CustomField as cI, type V1SubscriptionOptionInfo as cJ, type Discount as cK, type ChannelInfo as cL, type V1SubscriptionSettings as cM, type BillingInfo as cN, type Empty as cO, type DomainEvent as cP, type DomainEventBodyOneOf as cQ, type EntityCreatedEvent as cR, type RestoreInfo as cS, type EntityUpdatedEvent as cT, type EntityDeletedEvent as cU, type ActionEvent as cV, type MessageEnvelope as cW, type IdentificationData as cX, type IdentificationDataIdOneOf as cY, type BaseEventMetadata as cZ, type EventMetadata as c_, type RedeemErrorData as ca, type ViolationsList as cb, type CreateOrderAndChargeRequest as cc, type CreateOrderAndChargeResponseIdOneOf as cd, type MarkCheckoutAsCompletedAndRedirectToUrlRequest as ce, type HeadersEntry as cf, type MarkCheckoutAsCompletedRequest as cg, type MarkCheckoutAsCompletedResponse as ch, type UpdateLineItemsQuantityRequest as ci, type GetCheckoutPaymentSettingsRequest as cj, type DeleteCheckoutRequest as ck, type DeleteCheckoutResponse as cl, type SubscriptionCreated as cm, type Subscription as cn, type V1BuyerInfo as co, type V1LineItem as cp, type OptionSelection as cq, type CustomTextFieldSelection as cr, type ChargeDetails as cs, type ProductDetails as ct, type MediaItem as cu, type Totals as cv, type StoreSettings as cw, type Address as cx, type AddressAddressLine1OptionsOneOf as cy, type FullName as cz, type UpdateCheckoutOptions as d, type RemoveGiftCardResponse as e, type RemoveOverrideCheckoutUrlResponse as f, type AddToCheckoutResponse as g, type RemoveLineItemsResponse as h, type CreateOrderOptions as i, type CreateOrderResponse as j, type CreateOrderAndChargeOptions as k, type CreateOrderAndChargeResponse as l, type RawHttpResponse as m, type UpdateLineItemsQuantityResponse as n, type GetCheckoutPaymentSettingsResponse as o, type CheckoutCompletedEnvelope as p, type CheckoutCreatedEnvelope as q, type CheckoutDeletedEnvelope as r, type CheckoutUpdatedEnvelope as s, ItemTypeItemType as t, CommonVatType as u, PickupMethod as v, ChargeType as w, RuleType as x, DiscountType as y, RateType as z };
|
|
@@ -2239,6 +2239,10 @@ interface UpdatedCheckoutMessage {
|
|
|
2239
2239
|
/** Updated checkout. */
|
|
2240
2240
|
updatedCheckout?: Checkout;
|
|
2241
2241
|
}
|
|
2242
|
+
/** Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed. */
|
|
2243
|
+
interface CheckoutMarkedAsCompleted {
|
|
2244
|
+
checkout?: Checkout;
|
|
2245
|
+
}
|
|
2242
2246
|
interface CreateCheckoutRequest {
|
|
2243
2247
|
/** Checkout information. */
|
|
2244
2248
|
checkoutInfo?: Checkout;
|
|
@@ -2823,10 +2827,6 @@ interface MarkCheckoutAsCompletedRequest {
|
|
|
2823
2827
|
}
|
|
2824
2828
|
interface MarkCheckoutAsCompletedResponse {
|
|
2825
2829
|
}
|
|
2826
|
-
/** Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed. */
|
|
2827
|
-
interface CheckoutMarkedAsCompleted {
|
|
2828
|
-
checkout?: Checkout;
|
|
2829
|
-
}
|
|
2830
2830
|
interface UpdateLineItemsQuantityRequest {
|
|
2831
2831
|
/**
|
|
2832
2832
|
* Checkout ID.
|
|
@@ -3694,6 +3694,9 @@ interface CheckoutCreatedEnvelope {
|
|
|
3694
3694
|
entity: Checkout;
|
|
3695
3695
|
metadata: EventMetadata;
|
|
3696
3696
|
}
|
|
3697
|
+
interface CheckoutDeletedEnvelope {
|
|
3698
|
+
metadata: EventMetadata;
|
|
3699
|
+
}
|
|
3697
3700
|
interface CheckoutUpdatedEnvelope {
|
|
3698
3701
|
entity: Checkout;
|
|
3699
3702
|
metadata: EventMetadata;
|
|
@@ -4021,4 +4024,4 @@ interface CreateOrderAndChargeOptions {
|
|
|
4021
4024
|
delayCapture?: boolean;
|
|
4022
4025
|
}
|
|
4023
4026
|
|
|
4024
|
-
export {
|
|
4027
|
+
export { DiscountDiscountType as $, type AddToCheckoutOptions as A, FallbackReason as B, type CreateCheckoutOptions as C, DescriptionLineType as D, ChannelType as E, FileType as F, type GetCheckoutByCartIdResponse as G, AdditionalFeeSource as H, ItemAvailabilityStatus as I, JurisdictionType as J, Severity as K, type LineItemQuantityUpdate as L, ManualCalculationReason as M, NameInOther as N, NameInLineItem as O, PaymentOptionType as P, SuggestedFix as Q, type RemoveCouponResponse as R, SubscriptionFrequency as S, TaxableAddressType as T, type UpdateCheckout as U, GetCheckoutPaymentSettingsResponsePaymentOption as V, WeightUnit as W, IdentityType as X, LineItemType as Y, MediaItemType as Z, VatType as _, type Checkout as a, type PriceSummary as a$, ChannelInfoChannelType as a0, WebhookIdentityType as a1, type LineItem as a2, type CatalogReference as a3, type ProductName as a4, type MultiCurrencyPrice as a5, type ItemTaxFullDetails as a6, type TaxRateBreakdown as a7, type TaxBreakdown as a8, type DescriptionLine as a9, type ModifierGroup as aA, type TranslatableString as aB, type ItemModifier as aC, type AddressWithContact as aD, type ApiAddress as aE, type StreetAddress as aF, type AddressLocation as aG, type FullAddressContactDetails as aH, type CommonVatId as aI, type ShippingInfo as aJ, type SelectedCarrierServiceOption as aK, type DeliveryLogistics as aL, type PickupDetails as aM, type DeliveryTimeSlot as aN, type SelectedCarrierServiceOptionPrices as aO, type SelectedCarrierServiceOptionOtherCharge as aP, type DeliveryAllocation as aQ, type Carrier as aR, type Region as aS, type ApplicableLineItems as aT, type ShippingRegion as aU, type CarrierServiceOption as aV, type ShippingOption as aW, type ShippingPrice as aX, type OtherCharge as aY, type BuyerInfo as aZ, type BuyerInfoIdOneOf as a_, type DescriptionLineValueOneOf as aa, type DescriptionLineDescriptionLineValueOneOf as ab, type DescriptionLineName as ac, type PlainTextValue as ad, type Color as ae, type FocalPoint as af, type ItemAvailabilityInfo as ag, type PhysicalProperties as ah, type Scope as ai, type Group as aj, type ItemType as ak, type ItemTypeItemTypeDataOneOf as al, type SubscriptionOptionInfo as am, type SubscriptionSettings as an, type FreeTrialPeriod as ao, type Title as ap, type Description as aq, type SecuredMedia as ar, type ServiceProperties as as, type PriceDescription as at, type CatalogOverrideFields as au, type PaymentOption as av, type TaxableAddress as aw, type TaxableAddressTaxableAddressDataOneOf as ax, type ExtendedFields as ay, type Policy as az, type GetWixCheckoutURLResponse as b, type UpdateCheckoutResponse as b$, type CalculationErrors as b0, type CalculationErrorsShippingCalculationErrorOneOf as b1, type Details as b2, type DetailsKindOneOf as b3, type ApplicationError as b4, type ValidationError as b5, type FieldViolation as b6, type SystemError as b7, type CarrierErrors as b8, type CarrierError as b9, type Target as bA, type TargetTargetTypeOneOf as bB, type Other as bC, type TargetLineItem as bD, type CustomSettings as bE, type CustomContentReference as bF, type ExternalReference as bG, type SubscriptionCharges as bH, type Charge as bI, type UpdatedCheckoutMessage as bJ, type CheckoutMarkedAsCompleted as bK, type CreateCheckoutRequest as bL, type CustomLineItem as bM, type V1ModifierGroup as bN, type V1ItemModifier as bO, type MerchantDiscountInput as bP, type CreateCheckoutResponse as bQ, type ShippingCalculationErrorData as bR, type ShippingCalculationErrorDataShippingCalculationErrorOneOf as bS, type GetCheckoutRequest as bT, type GetCheckoutResponse as bU, type GetCheckoutWithAllExtendedFieldsRequest as bV, type GetCheckoutWithAllExtendedFieldsResponse as bW, type GetCheckoutByCartIdRequest as bX, type GetWixCheckoutURLRequest as bY, type GetCheckoutURLRequest as bZ, type UpdateCheckoutRequest as b_, type GiftCard as ba, type AppliedDiscount as bb, type AppliedDiscountDiscountSourceOneOf as bc, type Coupon as bd, type MerchantDiscount as be, type DiscountRule as bf, type DiscountRuleName as bg, type LineItemDiscount as bh, type CustomField as bi, type TaxSummary as bj, type TaxCalculationDetails as bk, type TaxCalculationDetailsCalculationDetailsOneOf as bl, type AutoTaxFallbackCalculationDetails as bm, type AggregatedTaxBreakdown as bn, type CreatedBy as bo, type CreatedByIdOneOf as bp, type MembershipOptions as bq, type Membership as br, type MembershipName as bs, type MembershipPaymentCredits as bt, type InvalidMembership as bu, type SelectedMemberships as bv, type SelectedMembership as bw, type AdditionalFee as bx, type ConversionInfo as by, type Violation as bz, type GetCheckoutURLResponse as c, type RemoveCouponRequest as c0, type RemoveGiftCardRequest as c1, type RemoveOverrideCheckoutUrlRequest as c2, type AddToCheckoutRequest as c3, type RemoveLineItemsRequest as c4, type CreateOrderRequest as c5, type CreateOrderResponseIdOneOf as c6, type PaymentErrorResponseData as c7, type DoublePaymentErrorData as c8, type DoublePaymentErrorDataIdOneOf as c9, type Street as cA, type VatId as cB, type V1ShippingInfo as cC, type V1ShippingInfoDetailsOneOf as cD, type ShipmentDetails as cE, type V1PickupDetails as cF, type PickupAddress as cG, type AppliedCoupon as cH, type V1CustomField as cI, type V1SubscriptionOptionInfo as cJ, type Discount as cK, type ChannelInfo as cL, type V1SubscriptionSettings as cM, type BillingInfo as cN, type Empty as cO, type DomainEvent as cP, type DomainEventBodyOneOf as cQ, type EntityCreatedEvent as cR, type RestoreInfo as cS, type EntityUpdatedEvent as cT, type EntityDeletedEvent as cU, type ActionEvent as cV, type MessageEnvelope as cW, type IdentificationData as cX, type IdentificationDataIdOneOf as cY, type BaseEventMetadata as cZ, type EventMetadata as c_, type RedeemErrorData as ca, type ViolationsList as cb, type CreateOrderAndChargeRequest as cc, type CreateOrderAndChargeResponseIdOneOf as cd, type MarkCheckoutAsCompletedAndRedirectToUrlRequest as ce, type HeadersEntry as cf, type MarkCheckoutAsCompletedRequest as cg, type MarkCheckoutAsCompletedResponse as ch, type UpdateLineItemsQuantityRequest as ci, type GetCheckoutPaymentSettingsRequest as cj, type DeleteCheckoutRequest as ck, type DeleteCheckoutResponse as cl, type SubscriptionCreated as cm, type Subscription as cn, type V1BuyerInfo as co, type V1LineItem as cp, type OptionSelection as cq, type CustomTextFieldSelection as cr, type ChargeDetails as cs, type ProductDetails as ct, type MediaItem as cu, type Totals as cv, type StoreSettings as cw, type Address as cx, type AddressAddressLine1OptionsOneOf as cy, type FullName as cz, type UpdateCheckoutOptions as d, type RemoveGiftCardResponse as e, type RemoveOverrideCheckoutUrlResponse as f, type AddToCheckoutResponse as g, type RemoveLineItemsResponse as h, type CreateOrderOptions as i, type CreateOrderResponse as j, type CreateOrderAndChargeOptions as k, type CreateOrderAndChargeResponse as l, type RawHttpResponse as m, type UpdateLineItemsQuantityResponse as n, type GetCheckoutPaymentSettingsResponse as o, type CheckoutCompletedEnvelope as p, type CheckoutCreatedEnvelope as q, type CheckoutDeletedEnvelope as r, type CheckoutUpdatedEnvelope as s, ItemTypeItemType as t, CommonVatType as u, PickupMethod as v, ChargeType as w, RuleType as x, DiscountType as y, RateType as z };
|
|
@@ -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 GetWixCheckoutURLResponse, c as GetCheckoutURLResponse, U as UpdateCheckout, d as UpdateCheckoutOptions, R as RemoveCouponResponse, e as RemoveGiftCardResponse, f as RemoveOverrideCheckoutUrlResponse, A as AddToCheckoutOptions, g as AddToCheckoutResponse, h as RemoveLineItemsResponse, i as CreateOrderOptions, j as CreateOrderResponse, k as CreateOrderAndChargeOptions, l as CreateOrderAndChargeResponse, m as RawHttpResponse, L as LineItemQuantityUpdate, n as UpdateLineItemsQuantityResponse, o as GetCheckoutPaymentSettingsResponse, p as CheckoutCompletedEnvelope, q as CheckoutCreatedEnvelope, r as CheckoutUpdatedEnvelope } from './ecom-v1-checkout-checkout.universal-
|
|
3
|
-
export {
|
|
2
|
+
import { C as CreateCheckoutOptions, a as Checkout, G as GetCheckoutByCartIdResponse, b as GetWixCheckoutURLResponse, c as GetCheckoutURLResponse, U as UpdateCheckout, d as UpdateCheckoutOptions, R as RemoveCouponResponse, e as RemoveGiftCardResponse, f as RemoveOverrideCheckoutUrlResponse, A as AddToCheckoutOptions, g as AddToCheckoutResponse, h as RemoveLineItemsResponse, i as CreateOrderOptions, j as CreateOrderResponse, k as CreateOrderAndChargeOptions, l as CreateOrderAndChargeResponse, m as RawHttpResponse, L as LineItemQuantityUpdate, n as UpdateLineItemsQuantityResponse, o as GetCheckoutPaymentSettingsResponse, p as CheckoutCompletedEnvelope, q as CheckoutCreatedEnvelope, r as CheckoutDeletedEnvelope, s as CheckoutUpdatedEnvelope } from './ecom-v1-checkout-checkout.universal-o9jU9uir.mjs';
|
|
3
|
+
export { cV as ActionEvent, c3 as AddToCheckoutRequest, bx as AdditionalFee, H as AdditionalFeeSource, cx as Address, cy as AddressAddressLine1OptionsOneOf, aG as AddressLocation, aD as AddressWithContact, bn as AggregatedTaxBreakdown, aE as ApiAddress, aT as ApplicableLineItems, b4 as ApplicationError, cH as AppliedCoupon, bb as AppliedDiscount, bc as AppliedDiscountDiscountSourceOneOf, bm as AutoTaxFallbackCalculationDetails, cZ as BaseEventMetadata, cN as BillingInfo, aZ as BuyerInfo, a_ as BuyerInfoIdOneOf, b0 as CalculationErrors, b1 as CalculationErrorsShippingCalculationErrorOneOf, aR as Carrier, b9 as CarrierError, b8 as CarrierErrors, aV as CarrierServiceOption, au as CatalogOverrideFields, a3 as CatalogReference, cL as ChannelInfo, a0 as ChannelInfoChannelType, E as ChannelType, bI as Charge, cs as ChargeDetails, w as ChargeType, bK as CheckoutMarkedAsCompleted, ae as Color, aI as CommonVatId, u as CommonVatType, by as ConversionInfo, bd as Coupon, bL as CreateCheckoutRequest, bQ as CreateCheckoutResponse, cc as CreateOrderAndChargeRequest, cd as CreateOrderAndChargeResponseIdOneOf, c5 as CreateOrderRequest, c6 as CreateOrderResponseIdOneOf, bo as CreatedBy, bp as CreatedByIdOneOf, bF as CustomContentReference, bi as CustomField, bM as CustomLineItem, bE as CustomSettings, cr as CustomTextFieldSelection, ck as DeleteCheckoutRequest, cl as DeleteCheckoutResponse, aQ as DeliveryAllocation, aL as DeliveryLogistics, aN as DeliveryTimeSlot, aq as Description, a9 as DescriptionLine, ab as DescriptionLineDescriptionLineValueOneOf, ac as DescriptionLineName, D as DescriptionLineType, aa as DescriptionLineValueOneOf, b2 as Details, b3 as DetailsKindOneOf, cK as Discount, $ as DiscountDiscountType, bf as DiscountRule, bg as DiscountRuleName, y as DiscountType, cP as DomainEvent, cQ as DomainEventBodyOneOf, c8 as DoublePaymentErrorData, c9 as DoublePaymentErrorDataIdOneOf, cO as Empty, cR as EntityCreatedEvent, cU as EntityDeletedEvent, cT as EntityUpdatedEvent, c_ as EventMetadata, ay as ExtendedFields, bG as ExternalReference, B as FallbackReason, b6 as FieldViolation, F as FileType, af as FocalPoint, ao as FreeTrialPeriod, aH as FullAddressContactDetails, cz as FullName, bX as GetCheckoutByCartIdRequest, cj as GetCheckoutPaymentSettingsRequest, V as GetCheckoutPaymentSettingsResponsePaymentOption, bT as GetCheckoutRequest, bU as GetCheckoutResponse, bZ as GetCheckoutURLRequest, bV as GetCheckoutWithAllExtendedFieldsRequest, bW as GetCheckoutWithAllExtendedFieldsResponse, bY as GetWixCheckoutURLRequest, ba as GiftCard, aj as Group, cf as HeadersEntry, cX as IdentificationData, cY as IdentificationDataIdOneOf, X as IdentityType, bu as InvalidMembership, ag as ItemAvailabilityInfo, I as ItemAvailabilityStatus, aC as ItemModifier, a6 as ItemTaxFullDetails, ak as ItemType, t as ItemTypeItemType, al as ItemTypeItemTypeDataOneOf, J as JurisdictionType, a2 as LineItem, bh as LineItemDiscount, Y as LineItemType, M as ManualCalculationReason, ce as MarkCheckoutAsCompletedAndRedirectToUrlRequest, cg as MarkCheckoutAsCompletedRequest, ch as MarkCheckoutAsCompletedResponse, cu as MediaItem, Z as MediaItemType, br as Membership, bs as MembershipName, bq as MembershipOptions, bt as MembershipPaymentCredits, be as MerchantDiscount, bP as MerchantDiscountInput, cW as MessageEnvelope, aA as ModifierGroup, a5 as MultiCurrencyPrice, O as NameInLineItem, N as NameInOther, cq as OptionSelection, bC as Other, aY as OtherCharge, c7 as PaymentErrorResponseData, av as PaymentOption, P as PaymentOptionType, ah as PhysicalProperties, cG as PickupAddress, aM as PickupDetails, v as PickupMethod, ad as PlainTextValue, az as Policy, at as PriceDescription, a$ as PriceSummary, ct as ProductDetails, a4 as ProductName, z as RateType, ca as RedeemErrorData, aS as Region, c0 as RemoveCouponRequest, c1 as RemoveGiftCardRequest, c4 as RemoveLineItemsRequest, c2 as RemoveOverrideCheckoutUrlRequest, cS as RestoreInfo, x as RuleType, ai as Scope, ar as SecuredMedia, aK as SelectedCarrierServiceOption, aP as SelectedCarrierServiceOptionOtherCharge, aO as SelectedCarrierServiceOptionPrices, bw as SelectedMembership, bv as SelectedMemberships, as as ServiceProperties, K as Severity, cE as ShipmentDetails, bR as ShippingCalculationErrorData, bS as ShippingCalculationErrorDataShippingCalculationErrorOneOf, aJ as ShippingInfo, aW as ShippingOption, aX as ShippingPrice, aU as ShippingRegion, cw as StoreSettings, cA as Street, aF as StreetAddress, cn as Subscription, bH as SubscriptionCharges, cm as SubscriptionCreated, S as SubscriptionFrequency, am as SubscriptionOptionInfo, an as SubscriptionSettings, Q as SuggestedFix, b7 as SystemError, bA as Target, bD as TargetLineItem, bB as TargetTargetTypeOneOf, a8 as TaxBreakdown, bk as TaxCalculationDetails, bl as TaxCalculationDetailsCalculationDetailsOneOf, a7 as TaxRateBreakdown, bj as TaxSummary, aw as TaxableAddress, ax as TaxableAddressTaxableAddressDataOneOf, T as TaxableAddressType, ap as Title, cv as Totals, aB as TranslatableString, b_ as UpdateCheckoutRequest, b$ as UpdateCheckoutResponse, ci as UpdateLineItemsQuantityRequest, bJ as UpdatedCheckoutMessage, co as V1BuyerInfo, cI as V1CustomField, bO as V1ItemModifier, cp as V1LineItem, bN as V1ModifierGroup, cF as V1PickupDetails, cC as V1ShippingInfo, cD as V1ShippingInfoDetailsOneOf, cJ as V1SubscriptionOptionInfo, cM as V1SubscriptionSettings, b5 as ValidationError, cB as VatId, _ as VatType, bz as Violation, cb as ViolationsList, a1 as WebhookIdentityType, W as WeightUnit } from './ecom-v1-checkout-checkout.universal-o9jU9uir.mjs';
|
|
4
4
|
|
|
5
5
|
declare function createCheckout$1(httpClient: HttpClient): CreateCheckoutSignature;
|
|
6
6
|
interface CreateCheckoutSignature {
|
|
@@ -201,6 +201,7 @@ interface GetCheckoutPaymentSettingsSignature {
|
|
|
201
201
|
}
|
|
202
202
|
declare const onCheckoutCompleted$1: EventDefinition<CheckoutCompletedEnvelope, "wix.ecom.v1.checkout_completed">;
|
|
203
203
|
declare const onCheckoutCreated$1: EventDefinition<CheckoutCreatedEnvelope, "wix.ecom.v1.checkout_created">;
|
|
204
|
+
declare const onCheckoutDeleted$1: EventDefinition<CheckoutDeletedEnvelope, "wix.ecom.v1.checkout_deleted">;
|
|
204
205
|
declare const onCheckoutUpdated$1: EventDefinition<CheckoutUpdatedEnvelope, "wix.ecom.v1.checkout_updated">;
|
|
205
206
|
|
|
206
207
|
declare const createCheckout: MaybeContext<BuildRESTFunction<typeof createCheckout$1> & typeof createCheckout$1>;
|
|
@@ -224,17 +225,20 @@ declare const updateLineItemsQuantity: MaybeContext<BuildRESTFunction<typeof upd
|
|
|
224
225
|
/** @internal */
|
|
225
226
|
declare const getCheckoutPaymentSettings: MaybeContext<BuildRESTFunction<typeof getCheckoutPaymentSettings$1> & typeof getCheckoutPaymentSettings$1>;
|
|
226
227
|
/**
|
|
227
|
-
* Triggered when an order created from this checkout is
|
|
228
|
-
* successfully paid for or when a checkout is marked as completed.
|
|
228
|
+
* Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed.
|
|
229
229
|
*/
|
|
230
230
|
declare const onCheckoutCompleted: BuildEventDefinition<typeof onCheckoutCompleted$1>;
|
|
231
231
|
/**
|
|
232
232
|
* Triggered when a checkout is created.
|
|
233
233
|
*/
|
|
234
234
|
declare const onCheckoutCreated: BuildEventDefinition<typeof onCheckoutCreated$1>;
|
|
235
|
+
/**
|
|
236
|
+
* Triggered when a checkout is deleted.
|
|
237
|
+
*/
|
|
238
|
+
declare const onCheckoutDeleted: BuildEventDefinition<typeof onCheckoutDeleted$1>;
|
|
235
239
|
/**
|
|
236
240
|
* Triggered when a checkout is updated.
|
|
237
241
|
*/
|
|
238
242
|
declare const onCheckoutUpdated: BuildEventDefinition<typeof onCheckoutUpdated$1>;
|
|
239
243
|
|
|
240
|
-
export { AddToCheckoutOptions, AddToCheckoutResponse, Checkout, CheckoutCompletedEnvelope, CheckoutCreatedEnvelope, CheckoutUpdatedEnvelope, CreateCheckoutOptions, CreateOrderAndChargeOptions, CreateOrderAndChargeResponse, CreateOrderOptions, CreateOrderResponse, GetCheckoutByCartIdResponse, GetCheckoutPaymentSettingsResponse, GetCheckoutURLResponse, GetWixCheckoutURLResponse, LineItemQuantityUpdate, RawHttpResponse, RemoveCouponResponse, RemoveGiftCardResponse, RemoveLineItemsResponse, RemoveOverrideCheckoutUrlResponse, UpdateCheckout, UpdateCheckoutOptions, UpdateLineItemsQuantityResponse, addToCheckout, createCheckout, createOrder, createOrderAndCharge, getCheckout, getCheckoutByCartId, getCheckoutPaymentSettings, getCheckoutUrl, getWixCheckoutUrl, markCheckoutAsCompleted, markCheckoutAsCompletedAndRedirectToUrl, onCheckoutCompleted, onCheckoutCreated, onCheckoutUpdated, removeCoupon, removeGiftCard, removeLineItems, removeOverrideCheckoutUrl, updateCheckout, updateLineItemsQuantity };
|
|
244
|
+
export { AddToCheckoutOptions, AddToCheckoutResponse, Checkout, CheckoutCompletedEnvelope, CheckoutCreatedEnvelope, CheckoutDeletedEnvelope, CheckoutUpdatedEnvelope, CreateCheckoutOptions, CreateOrderAndChargeOptions, CreateOrderAndChargeResponse, CreateOrderOptions, CreateOrderResponse, GetCheckoutByCartIdResponse, GetCheckoutPaymentSettingsResponse, GetCheckoutURLResponse, GetWixCheckoutURLResponse, LineItemQuantityUpdate, RawHttpResponse, RemoveCouponResponse, RemoveGiftCardResponse, RemoveLineItemsResponse, RemoveOverrideCheckoutUrlResponse, UpdateCheckout, UpdateCheckoutOptions, UpdateLineItemsQuantityResponse, addToCheckout, createCheckout, createOrder, createOrderAndCharge, getCheckout, getCheckoutByCartId, getCheckoutPaymentSettings, getCheckoutUrl, getWixCheckoutUrl, markCheckoutAsCompleted, markCheckoutAsCompletedAndRedirectToUrl, onCheckoutCompleted, onCheckoutCreated, onCheckoutDeleted, onCheckoutUpdated, removeCoupon, removeGiftCard, removeLineItems, removeOverrideCheckoutUrl, updateCheckout, updateLineItemsQuantity };
|
|
@@ -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 GetWixCheckoutURLResponse, c as GetCheckoutURLResponse, U as UpdateCheckout, d as UpdateCheckoutOptions, R as RemoveCouponResponse, e as RemoveGiftCardResponse, f as RemoveOverrideCheckoutUrlResponse, A as AddToCheckoutOptions, g as AddToCheckoutResponse, h as RemoveLineItemsResponse, i as CreateOrderOptions, j as CreateOrderResponse, k as CreateOrderAndChargeOptions, l as CreateOrderAndChargeResponse, m as RawHttpResponse, L as LineItemQuantityUpdate, n as UpdateLineItemsQuantityResponse, o as GetCheckoutPaymentSettingsResponse, p as CheckoutCompletedEnvelope, q as CheckoutCreatedEnvelope, r as CheckoutUpdatedEnvelope } from './ecom-v1-checkout-checkout.universal-
|
|
3
|
-
export {
|
|
2
|
+
import { C as CreateCheckoutOptions, a as Checkout, G as GetCheckoutByCartIdResponse, b as GetWixCheckoutURLResponse, c as GetCheckoutURLResponse, U as UpdateCheckout, d as UpdateCheckoutOptions, R as RemoveCouponResponse, e as RemoveGiftCardResponse, f as RemoveOverrideCheckoutUrlResponse, A as AddToCheckoutOptions, g as AddToCheckoutResponse, h as RemoveLineItemsResponse, i as CreateOrderOptions, j as CreateOrderResponse, k as CreateOrderAndChargeOptions, l as CreateOrderAndChargeResponse, m as RawHttpResponse, L as LineItemQuantityUpdate, n as UpdateLineItemsQuantityResponse, o as GetCheckoutPaymentSettingsResponse, p as CheckoutCompletedEnvelope, q as CheckoutCreatedEnvelope, r as CheckoutDeletedEnvelope, s as CheckoutUpdatedEnvelope } from './ecom-v1-checkout-checkout.universal-o9jU9uir.js';
|
|
3
|
+
export { cV as ActionEvent, c3 as AddToCheckoutRequest, bx as AdditionalFee, H as AdditionalFeeSource, cx as Address, cy as AddressAddressLine1OptionsOneOf, aG as AddressLocation, aD as AddressWithContact, bn as AggregatedTaxBreakdown, aE as ApiAddress, aT as ApplicableLineItems, b4 as ApplicationError, cH as AppliedCoupon, bb as AppliedDiscount, bc as AppliedDiscountDiscountSourceOneOf, bm as AutoTaxFallbackCalculationDetails, cZ as BaseEventMetadata, cN as BillingInfo, aZ as BuyerInfo, a_ as BuyerInfoIdOneOf, b0 as CalculationErrors, b1 as CalculationErrorsShippingCalculationErrorOneOf, aR as Carrier, b9 as CarrierError, b8 as CarrierErrors, aV as CarrierServiceOption, au as CatalogOverrideFields, a3 as CatalogReference, cL as ChannelInfo, a0 as ChannelInfoChannelType, E as ChannelType, bI as Charge, cs as ChargeDetails, w as ChargeType, bK as CheckoutMarkedAsCompleted, ae as Color, aI as CommonVatId, u as CommonVatType, by as ConversionInfo, bd as Coupon, bL as CreateCheckoutRequest, bQ as CreateCheckoutResponse, cc as CreateOrderAndChargeRequest, cd as CreateOrderAndChargeResponseIdOneOf, c5 as CreateOrderRequest, c6 as CreateOrderResponseIdOneOf, bo as CreatedBy, bp as CreatedByIdOneOf, bF as CustomContentReference, bi as CustomField, bM as CustomLineItem, bE as CustomSettings, cr as CustomTextFieldSelection, ck as DeleteCheckoutRequest, cl as DeleteCheckoutResponse, aQ as DeliveryAllocation, aL as DeliveryLogistics, aN as DeliveryTimeSlot, aq as Description, a9 as DescriptionLine, ab as DescriptionLineDescriptionLineValueOneOf, ac as DescriptionLineName, D as DescriptionLineType, aa as DescriptionLineValueOneOf, b2 as Details, b3 as DetailsKindOneOf, cK as Discount, $ as DiscountDiscountType, bf as DiscountRule, bg as DiscountRuleName, y as DiscountType, cP as DomainEvent, cQ as DomainEventBodyOneOf, c8 as DoublePaymentErrorData, c9 as DoublePaymentErrorDataIdOneOf, cO as Empty, cR as EntityCreatedEvent, cU as EntityDeletedEvent, cT as EntityUpdatedEvent, c_ as EventMetadata, ay as ExtendedFields, bG as ExternalReference, B as FallbackReason, b6 as FieldViolation, F as FileType, af as FocalPoint, ao as FreeTrialPeriod, aH as FullAddressContactDetails, cz as FullName, bX as GetCheckoutByCartIdRequest, cj as GetCheckoutPaymentSettingsRequest, V as GetCheckoutPaymentSettingsResponsePaymentOption, bT as GetCheckoutRequest, bU as GetCheckoutResponse, bZ as GetCheckoutURLRequest, bV as GetCheckoutWithAllExtendedFieldsRequest, bW as GetCheckoutWithAllExtendedFieldsResponse, bY as GetWixCheckoutURLRequest, ba as GiftCard, aj as Group, cf as HeadersEntry, cX as IdentificationData, cY as IdentificationDataIdOneOf, X as IdentityType, bu as InvalidMembership, ag as ItemAvailabilityInfo, I as ItemAvailabilityStatus, aC as ItemModifier, a6 as ItemTaxFullDetails, ak as ItemType, t as ItemTypeItemType, al as ItemTypeItemTypeDataOneOf, J as JurisdictionType, a2 as LineItem, bh as LineItemDiscount, Y as LineItemType, M as ManualCalculationReason, ce as MarkCheckoutAsCompletedAndRedirectToUrlRequest, cg as MarkCheckoutAsCompletedRequest, ch as MarkCheckoutAsCompletedResponse, cu as MediaItem, Z as MediaItemType, br as Membership, bs as MembershipName, bq as MembershipOptions, bt as MembershipPaymentCredits, be as MerchantDiscount, bP as MerchantDiscountInput, cW as MessageEnvelope, aA as ModifierGroup, a5 as MultiCurrencyPrice, O as NameInLineItem, N as NameInOther, cq as OptionSelection, bC as Other, aY as OtherCharge, c7 as PaymentErrorResponseData, av as PaymentOption, P as PaymentOptionType, ah as PhysicalProperties, cG as PickupAddress, aM as PickupDetails, v as PickupMethod, ad as PlainTextValue, az as Policy, at as PriceDescription, a$ as PriceSummary, ct as ProductDetails, a4 as ProductName, z as RateType, ca as RedeemErrorData, aS as Region, c0 as RemoveCouponRequest, c1 as RemoveGiftCardRequest, c4 as RemoveLineItemsRequest, c2 as RemoveOverrideCheckoutUrlRequest, cS as RestoreInfo, x as RuleType, ai as Scope, ar as SecuredMedia, aK as SelectedCarrierServiceOption, aP as SelectedCarrierServiceOptionOtherCharge, aO as SelectedCarrierServiceOptionPrices, bw as SelectedMembership, bv as SelectedMemberships, as as ServiceProperties, K as Severity, cE as ShipmentDetails, bR as ShippingCalculationErrorData, bS as ShippingCalculationErrorDataShippingCalculationErrorOneOf, aJ as ShippingInfo, aW as ShippingOption, aX as ShippingPrice, aU as ShippingRegion, cw as StoreSettings, cA as Street, aF as StreetAddress, cn as Subscription, bH as SubscriptionCharges, cm as SubscriptionCreated, S as SubscriptionFrequency, am as SubscriptionOptionInfo, an as SubscriptionSettings, Q as SuggestedFix, b7 as SystemError, bA as Target, bD as TargetLineItem, bB as TargetTargetTypeOneOf, a8 as TaxBreakdown, bk as TaxCalculationDetails, bl as TaxCalculationDetailsCalculationDetailsOneOf, a7 as TaxRateBreakdown, bj as TaxSummary, aw as TaxableAddress, ax as TaxableAddressTaxableAddressDataOneOf, T as TaxableAddressType, ap as Title, cv as Totals, aB as TranslatableString, b_ as UpdateCheckoutRequest, b$ as UpdateCheckoutResponse, ci as UpdateLineItemsQuantityRequest, bJ as UpdatedCheckoutMessage, co as V1BuyerInfo, cI as V1CustomField, bO as V1ItemModifier, cp as V1LineItem, bN as V1ModifierGroup, cF as V1PickupDetails, cC as V1ShippingInfo, cD as V1ShippingInfoDetailsOneOf, cJ as V1SubscriptionOptionInfo, cM as V1SubscriptionSettings, b5 as ValidationError, cB as VatId, _ as VatType, bz as Violation, cb as ViolationsList, a1 as WebhookIdentityType, W as WeightUnit } from './ecom-v1-checkout-checkout.universal-o9jU9uir.js';
|
|
4
4
|
|
|
5
5
|
declare function createCheckout$1(httpClient: HttpClient): CreateCheckoutSignature;
|
|
6
6
|
interface CreateCheckoutSignature {
|
|
@@ -201,6 +201,7 @@ interface GetCheckoutPaymentSettingsSignature {
|
|
|
201
201
|
}
|
|
202
202
|
declare const onCheckoutCompleted$1: EventDefinition<CheckoutCompletedEnvelope, "wix.ecom.v1.checkout_completed">;
|
|
203
203
|
declare const onCheckoutCreated$1: EventDefinition<CheckoutCreatedEnvelope, "wix.ecom.v1.checkout_created">;
|
|
204
|
+
declare const onCheckoutDeleted$1: EventDefinition<CheckoutDeletedEnvelope, "wix.ecom.v1.checkout_deleted">;
|
|
204
205
|
declare const onCheckoutUpdated$1: EventDefinition<CheckoutUpdatedEnvelope, "wix.ecom.v1.checkout_updated">;
|
|
205
206
|
|
|
206
207
|
declare const createCheckout: MaybeContext<BuildRESTFunction<typeof createCheckout$1> & typeof createCheckout$1>;
|
|
@@ -224,17 +225,20 @@ declare const updateLineItemsQuantity: MaybeContext<BuildRESTFunction<typeof upd
|
|
|
224
225
|
/** @internal */
|
|
225
226
|
declare const getCheckoutPaymentSettings: MaybeContext<BuildRESTFunction<typeof getCheckoutPaymentSettings$1> & typeof getCheckoutPaymentSettings$1>;
|
|
226
227
|
/**
|
|
227
|
-
* Triggered when an order created from this checkout is
|
|
228
|
-
* successfully paid for or when a checkout is marked as completed.
|
|
228
|
+
* Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed.
|
|
229
229
|
*/
|
|
230
230
|
declare const onCheckoutCompleted: BuildEventDefinition<typeof onCheckoutCompleted$1>;
|
|
231
231
|
/**
|
|
232
232
|
* Triggered when a checkout is created.
|
|
233
233
|
*/
|
|
234
234
|
declare const onCheckoutCreated: BuildEventDefinition<typeof onCheckoutCreated$1>;
|
|
235
|
+
/**
|
|
236
|
+
* Triggered when a checkout is deleted.
|
|
237
|
+
*/
|
|
238
|
+
declare const onCheckoutDeleted: BuildEventDefinition<typeof onCheckoutDeleted$1>;
|
|
235
239
|
/**
|
|
236
240
|
* Triggered when a checkout is updated.
|
|
237
241
|
*/
|
|
238
242
|
declare const onCheckoutUpdated: BuildEventDefinition<typeof onCheckoutUpdated$1>;
|
|
239
243
|
|
|
240
|
-
export { AddToCheckoutOptions, AddToCheckoutResponse, Checkout, CheckoutCompletedEnvelope, CheckoutCreatedEnvelope, CheckoutUpdatedEnvelope, CreateCheckoutOptions, CreateOrderAndChargeOptions, CreateOrderAndChargeResponse, CreateOrderOptions, CreateOrderResponse, GetCheckoutByCartIdResponse, GetCheckoutPaymentSettingsResponse, GetCheckoutURLResponse, GetWixCheckoutURLResponse, LineItemQuantityUpdate, RawHttpResponse, RemoveCouponResponse, RemoveGiftCardResponse, RemoveLineItemsResponse, RemoveOverrideCheckoutUrlResponse, UpdateCheckout, UpdateCheckoutOptions, UpdateLineItemsQuantityResponse, addToCheckout, createCheckout, createOrder, createOrderAndCharge, getCheckout, getCheckoutByCartId, getCheckoutPaymentSettings, getCheckoutUrl, getWixCheckoutUrl, markCheckoutAsCompleted, markCheckoutAsCompletedAndRedirectToUrl, onCheckoutCompleted, onCheckoutCreated, onCheckoutUpdated, removeCoupon, removeGiftCard, removeLineItems, removeOverrideCheckoutUrl, updateCheckout, updateLineItemsQuantity };
|
|
244
|
+
export { AddToCheckoutOptions, AddToCheckoutResponse, Checkout, CheckoutCompletedEnvelope, CheckoutCreatedEnvelope, CheckoutDeletedEnvelope, CheckoutUpdatedEnvelope, CreateCheckoutOptions, CreateOrderAndChargeOptions, CreateOrderAndChargeResponse, CreateOrderOptions, CreateOrderResponse, GetCheckoutByCartIdResponse, GetCheckoutPaymentSettingsResponse, GetCheckoutURLResponse, GetWixCheckoutURLResponse, LineItemQuantityUpdate, RawHttpResponse, RemoveCouponResponse, RemoveGiftCardResponse, RemoveLineItemsResponse, RemoveOverrideCheckoutUrlResponse, UpdateCheckout, UpdateCheckoutOptions, UpdateLineItemsQuantityResponse, addToCheckout, createCheckout, createOrder, createOrderAndCharge, getCheckout, getCheckoutByCartId, getCheckoutPaymentSettings, getCheckoutUrl, getWixCheckoutUrl, markCheckoutAsCompleted, markCheckoutAsCompletedAndRedirectToUrl, onCheckoutCompleted, onCheckoutCreated, onCheckoutDeleted, onCheckoutUpdated, removeCoupon, removeGiftCard, removeLineItems, removeOverrideCheckoutUrl, updateCheckout, updateLineItemsQuantity };
|
package/build/internal/index.js
CHANGED
|
@@ -64,6 +64,7 @@ __export(index_exports, {
|
|
|
64
64
|
markCheckoutAsCompletedAndRedirectToUrl: () => markCheckoutAsCompletedAndRedirectToUrl4,
|
|
65
65
|
onCheckoutCompleted: () => onCheckoutCompleted2,
|
|
66
66
|
onCheckoutCreated: () => onCheckoutCreated2,
|
|
67
|
+
onCheckoutDeleted: () => onCheckoutDeleted2,
|
|
67
68
|
onCheckoutUpdated: () => onCheckoutUpdated2,
|
|
68
69
|
removeCoupon: () => removeCoupon4,
|
|
69
70
|
removeGiftCard: () => removeGiftCard4,
|
|
@@ -2626,6 +2627,79 @@ var onCheckoutCreated = (0, import_sdk_types.EventDefinition)(
|
|
|
2626
2627
|
])
|
|
2627
2628
|
)
|
|
2628
2629
|
)();
|
|
2630
|
+
var onCheckoutDeleted = (0, import_sdk_types.EventDefinition)(
|
|
2631
|
+
"wix.ecom.v1.checkout_deleted",
|
|
2632
|
+
true,
|
|
2633
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
2634
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
2635
|
+
{
|
|
2636
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2637
|
+
paths: [
|
|
2638
|
+
{ path: "undefined.createdDate" },
|
|
2639
|
+
{ path: "undefined.updatedDate" },
|
|
2640
|
+
{
|
|
2641
|
+
path: "undefined.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
2642
|
+
},
|
|
2643
|
+
{ path: "undefined.lineItems.serviceProperties.scheduledDate" },
|
|
2644
|
+
{
|
|
2645
|
+
path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
2646
|
+
},
|
|
2647
|
+
{
|
|
2648
|
+
path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
2649
|
+
},
|
|
2650
|
+
{
|
|
2651
|
+
path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
2652
|
+
},
|
|
2653
|
+
{
|
|
2654
|
+
path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
2655
|
+
},
|
|
2656
|
+
{
|
|
2657
|
+
path: "undefined.membershipOptions.eligibleMemberships.expirationDate"
|
|
2658
|
+
},
|
|
2659
|
+
{
|
|
2660
|
+
path: "undefined.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
2661
|
+
},
|
|
2662
|
+
{ path: "undefined.subscriptionCharges.charges.cycleBillingDate" },
|
|
2663
|
+
{ path: "metadata.eventTime" }
|
|
2664
|
+
]
|
|
2665
|
+
},
|
|
2666
|
+
{
|
|
2667
|
+
transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2668
|
+
paths: [{ path: "undefined.lineItems.url" }]
|
|
2669
|
+
},
|
|
2670
|
+
{
|
|
2671
|
+
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
2672
|
+
paths: [
|
|
2673
|
+
{ path: "undefined.lineItems.media" },
|
|
2674
|
+
{ path: "undefined.lineItems.catalogOverrideFields.image" }
|
|
2675
|
+
]
|
|
2676
|
+
},
|
|
2677
|
+
{
|
|
2678
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
2679
|
+
paths: [
|
|
2680
|
+
{ path: "undefined.lineItems.physicalProperties.weight" },
|
|
2681
|
+
{
|
|
2682
|
+
path: "undefined.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
2683
|
+
},
|
|
2684
|
+
{ path: "undefined.appliedDiscounts.merchantDiscount.percentage" }
|
|
2685
|
+
]
|
|
2686
|
+
},
|
|
2687
|
+
{
|
|
2688
|
+
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2689
|
+
paths: [
|
|
2690
|
+
{ path: "undefined.billingInfo.address" },
|
|
2691
|
+
{ path: "undefined.shippingInfo.shippingDestination.address" },
|
|
2692
|
+
{
|
|
2693
|
+
path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2694
|
+
},
|
|
2695
|
+
{
|
|
2696
|
+
path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2697
|
+
}
|
|
2698
|
+
]
|
|
2699
|
+
}
|
|
2700
|
+
])
|
|
2701
|
+
)
|
|
2702
|
+
)();
|
|
2629
2703
|
var onCheckoutUpdated = (0, import_sdk_types.EventDefinition)(
|
|
2630
2704
|
"wix.ecom.v1.checkout_updated",
|
|
2631
2705
|
true,
|
|
@@ -2724,6 +2798,7 @@ var updateLineItemsQuantity4 = /* @__PURE__ */ (0, import_rest_modules3.createRE
|
|
|
2724
2798
|
var getCheckoutPaymentSettings4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getCheckoutPaymentSettings3);
|
|
2725
2799
|
var onCheckoutCompleted2 = (0, import_event_definition_modules.createEventModule)(onCheckoutCompleted);
|
|
2726
2800
|
var onCheckoutCreated2 = (0, import_event_definition_modules.createEventModule)(onCheckoutCreated);
|
|
2801
|
+
var onCheckoutDeleted2 = (0, import_event_definition_modules.createEventModule)(onCheckoutDeleted);
|
|
2727
2802
|
var onCheckoutUpdated2 = (0, import_event_definition_modules.createEventModule)(onCheckoutUpdated);
|
|
2728
2803
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2729
2804
|
0 && (module.exports = {
|
|
@@ -2771,6 +2846,7 @@ var onCheckoutUpdated2 = (0, import_event_definition_modules.createEventModule)(
|
|
|
2771
2846
|
markCheckoutAsCompletedAndRedirectToUrl,
|
|
2772
2847
|
onCheckoutCompleted,
|
|
2773
2848
|
onCheckoutCreated,
|
|
2849
|
+
onCheckoutDeleted,
|
|
2774
2850
|
onCheckoutUpdated,
|
|
2775
2851
|
removeCoupon,
|
|
2776
2852
|
removeGiftCard,
|