@wix/auto_sdk_ecom_checkout 1.0.38 → 1.0.40
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 → cjs/ecom-v1-checkout-checkout.universal-BWJwZODy.d.ts} +8 -5
- package/build/{index.d.ts → cjs/index.d.ts} +9 -5
- package/build/{internal → cjs}/index.js +76 -0
- package/build/cjs/index.js.map +1 -0
- package/build/{meta.d.ts → cjs/meta.d.ts} +1 -1
- package/build/{ecom-v1-checkout-checkout.universal-DEDRvPML.d.ts → es/ecom-v1-checkout-checkout.universal-BWJwZODy.d.mts} +8 -5
- package/build/{index.d.mts → es/index.d.mts} +9 -5
- package/build/{internal → es}/index.mjs +75 -0
- package/build/es/index.mjs.map +1 -0
- package/build/{meta.d.mts → es/meta.d.mts} +1 -1
- package/build/es/package.json +3 -0
- package/build/internal/{ecom-v1-checkout-checkout.universal-CirtPjnM.d.mts → cjs/ecom-v1-checkout-checkout.universal-o9jU9uir.d.ts} +8 -5
- package/build/internal/{index.d.ts → cjs/index.d.ts} +9 -5
- package/build/{index.js → internal/cjs/index.js} +76 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/{meta.d.ts → cjs/meta.d.ts} +1 -1
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/{ecom-v1-checkout-checkout.universal-CirtPjnM.d.ts → es/ecom-v1-checkout-checkout.universal-o9jU9uir.d.mts} +8 -5
- package/build/internal/{index.d.mts → es/index.d.mts} +9 -5
- package/build/{index.mjs → internal/es/index.mjs} +75 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/{meta.d.mts → es/meta.d.mts} +1 -1
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +10 -10
- package/build/index.js.map +0 -1
- package/build/index.mjs.map +0 -1
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs.map +0 -1
- package/build/meta.js.map +0 -1
- package/build/meta.mjs.map +0 -1
- /package/build/{internal → cjs}/meta.js +0 -0
- /package/build/{internal → cjs}/meta.js.map +0 -0
- /package/build/{internal → es}/meta.mjs +0 -0
- /package/build/{internal → es}/meta.mjs.map +0 -0
- /package/build/{meta.js → internal/cjs/meta.js} +0 -0
- /package/build/{meta.mjs → internal/es/meta.mjs} +0 -0
|
@@ -2167,6 +2167,10 @@ interface UpdatedCheckoutMessage {
|
|
|
2167
2167
|
/** Updated checkout. */
|
|
2168
2168
|
updatedCheckout?: Checkout;
|
|
2169
2169
|
}
|
|
2170
|
+
/** Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed. */
|
|
2171
|
+
interface CheckoutMarkedAsCompleted {
|
|
2172
|
+
checkout?: Checkout;
|
|
2173
|
+
}
|
|
2170
2174
|
interface CreateCheckoutRequest {
|
|
2171
2175
|
/** Checkout information. */
|
|
2172
2176
|
checkoutInfo?: Checkout;
|
|
@@ -2719,10 +2723,6 @@ interface MarkCheckoutAsCompletedRequest {
|
|
|
2719
2723
|
}
|
|
2720
2724
|
interface MarkCheckoutAsCompletedResponse {
|
|
2721
2725
|
}
|
|
2722
|
-
/** Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed. */
|
|
2723
|
-
interface CheckoutMarkedAsCompleted {
|
|
2724
|
-
checkout?: Checkout;
|
|
2725
|
-
}
|
|
2726
2726
|
interface UpdateLineItemsQuantityRequest {
|
|
2727
2727
|
/**
|
|
2728
2728
|
* Checkout ID.
|
|
@@ -3590,6 +3590,9 @@ interface CheckoutCreatedEnvelope {
|
|
|
3590
3590
|
entity: Checkout;
|
|
3591
3591
|
metadata: EventMetadata;
|
|
3592
3592
|
}
|
|
3593
|
+
interface CheckoutDeletedEnvelope {
|
|
3594
|
+
metadata: EventMetadata;
|
|
3595
|
+
}
|
|
3593
3596
|
interface CheckoutUpdatedEnvelope {
|
|
3594
3597
|
entity: Checkout;
|
|
3595
3598
|
metadata: EventMetadata;
|
|
@@ -3891,4 +3894,4 @@ interface CreateOrderAndChargeOptions {
|
|
|
3891
3894
|
delayCapture?: boolean;
|
|
3892
3895
|
}
|
|
3893
3896
|
|
|
3894
|
-
export { type
|
|
3897
|
+
export { type CatalogReference as $, type AddToCheckoutOptions as A, NameInLineItem as B, type CreateCheckoutOptions as C, DescriptionLineType as D, SuggestedFix as E, FileType as F, type GetCheckoutByCartIdResponse as G, GetCheckoutPaymentSettingsResponsePaymentOption as H, ItemAvailabilityStatus as I, JurisdictionType as J, IdentityType as K, type LineItemQuantityUpdate as L, ManualCalculationReason as M, NameInOther as N, LineItemType as O, PaymentOptionType as P, MediaItemType as Q, type RemoveCouponResponse as R, SubscriptionFrequency as S, TaxableAddressType as T, type UpdateCheckout as U, VatType as V, WeightUnit as W, DiscountDiscountType as X, ChannelInfoChannelType as Y, WebhookIdentityType as Z, type LineItem as _, type Checkout as a, type DetailsKindOneOf as a$, type ProductName as a0, type MultiCurrencyPrice as a1, type ItemTaxFullDetails as a2, type TaxRateBreakdown as a3, type TaxBreakdown as a4, type DescriptionLine as a5, type DescriptionLineValueOneOf as a6, type DescriptionLineDescriptionLineValueOneOf as a7, type DescriptionLineName as a8, type PlainTextValue as a9, type ApiAddress as aA, type StreetAddress as aB, type AddressLocation as aC, type FullAddressContactDetails as aD, type CommonVatId as aE, type ShippingInfo as aF, type SelectedCarrierServiceOption as aG, type DeliveryLogistics as aH, type PickupDetails as aI, type DeliveryTimeSlot as aJ, type SelectedCarrierServiceOptionPrices as aK, type SelectedCarrierServiceOptionOtherCharge as aL, type DeliveryAllocation as aM, type Carrier as aN, type Region as aO, type ApplicableLineItems as aP, type ShippingRegion as aQ, type CarrierServiceOption as aR, type ShippingOption as aS, type ShippingPrice as aT, type OtherCharge as aU, type BuyerInfo as aV, type BuyerInfoIdOneOf as aW, type PriceSummary as aX, type CalculationErrors as aY, type CalculationErrorsShippingCalculationErrorOneOf as aZ, type Details as a_, type Color as aa, type FocalPoint as ab, type ItemAvailabilityInfo as ac, type PhysicalProperties as ad, type Scope as ae, type Group as af, type ItemType as ag, type ItemTypeItemTypeDataOneOf as ah, type SubscriptionOptionInfo as ai, type SubscriptionSettings as aj, type FreeTrialPeriod as ak, type Title as al, type Description as am, type SecuredMedia as an, type ServiceProperties as ao, type PriceDescription as ap, type CatalogOverrideFields as aq, type PaymentOption as ar, type TaxableAddress as as, type TaxableAddressTaxableAddressDataOneOf as at, type ExtendedFields as au, type Policy as av, type ModifierGroup as aw, type TranslatableString as ax, type ItemModifier as ay, type AddressWithContact as az, type GetCheckoutURLResponse as b, type RemoveOverrideCheckoutUrlRequest as b$, type ApplicationError as b0, type ValidationError as b1, type FieldViolation as b2, type SystemError as b3, type CarrierErrors as b4, type CarrierError as b5, type GiftCard as b6, type AppliedDiscount as b7, type AppliedDiscountDiscountSourceOneOf as b8, type Coupon as b9, type CustomSettings as bA, type CustomContentReference as bB, type ExternalReference as bC, type SubscriptionCharges as bD, type Charge as bE, type UpdatedCheckoutMessage as bF, type CheckoutMarkedAsCompleted as bG, type CreateCheckoutRequest as bH, type CustomLineItem as bI, type V1ModifierGroup as bJ, type V1ItemModifier as bK, type MerchantDiscountInput as bL, type CreateCheckoutResponse as bM, type ShippingCalculationErrorData as bN, type ShippingCalculationErrorDataShippingCalculationErrorOneOf as bO, type GetCheckoutRequest as bP, type GetCheckoutResponse as bQ, type GetCheckoutWithAllExtendedFieldsRequest as bR, type GetCheckoutWithAllExtendedFieldsResponse as bS, type GetCheckoutByCartIdRequest as bT, type GetWixCheckoutURLRequest as bU, type GetWixCheckoutURLResponse as bV, type GetCheckoutURLRequest as bW, type UpdateCheckoutRequest as bX, type UpdateCheckoutResponse as bY, type RemoveCouponRequest as bZ, type RemoveGiftCardRequest as b_, type MerchantDiscount as ba, type DiscountRule as bb, type DiscountRuleName as bc, type LineItemDiscount as bd, type CustomField as be, type TaxSummary as bf, type TaxCalculationDetails as bg, type TaxCalculationDetailsCalculationDetailsOneOf as bh, type AutoTaxFallbackCalculationDetails as bi, type AggregatedTaxBreakdown as bj, type CreatedBy as bk, type CreatedByIdOneOf as bl, type MembershipOptions as bm, type Membership as bn, type MembershipName as bo, type MembershipPaymentCredits as bp, type InvalidMembership as bq, type SelectedMemberships as br, type SelectedMembership as bs, type AdditionalFee as bt, type ConversionInfo as bu, type Violation as bv, type Target as bw, type TargetTargetTypeOneOf as bx, type Other as by, type TargetLineItem as bz, type UpdateCheckoutOptions as c, type AddToCheckoutRequest as c0, type RemoveLineItemsRequest as c1, type CreateOrderRequest as c2, type CreateOrderResponseIdOneOf as c3, type PaymentErrorResponseData as c4, type DoublePaymentErrorData as c5, type DoublePaymentErrorDataIdOneOf as c6, type RedeemErrorData as c7, type ViolationsList as c8, type CreateOrderAndChargeRequest as c9, type VatId as cA, type V1ShippingInfo as cB, type V1ShippingInfoDetailsOneOf as cC, type ShipmentDetails as cD, type V1PickupDetails as cE, type PickupAddress as cF, type AppliedCoupon as cG, type V1CustomField as cH, type V1SubscriptionOptionInfo as cI, type Discount as cJ, type ChannelInfo as cK, type V1SubscriptionSettings as cL, type BillingInfo as cM, type Empty as cN, type DomainEvent as cO, type DomainEventBodyOneOf as cP, type EntityCreatedEvent as cQ, type RestoreInfo as cR, type EntityUpdatedEvent as cS, type EntityDeletedEvent as cT, type ActionEvent as cU, type MessageEnvelope as cV, type IdentificationData as cW, type IdentificationDataIdOneOf as cX, type BaseEventMetadata as cY, type EventMetadata as cZ, type CreateOrderAndChargeOptions as c_, type CreateOrderAndChargeResponse as ca, type CreateOrderAndChargeResponseIdOneOf as cb, type MarkCheckoutAsCompletedAndRedirectToUrlRequest as cc, type HeadersEntry as cd, type MarkCheckoutAsCompletedRequest as ce, type MarkCheckoutAsCompletedResponse as cf, type UpdateLineItemsQuantityRequest as cg, type GetCheckoutPaymentSettingsRequest as ch, type GetCheckoutPaymentSettingsResponse as ci, type DeleteCheckoutRequest as cj, type DeleteCheckoutResponse as ck, type SubscriptionCreated as cl, type Subscription as cm, type V1BuyerInfo as cn, type V1LineItem as co, type OptionSelection as cp, type CustomTextFieldSelection as cq, type ChargeDetails as cr, type ProductDetails as cs, type MediaItem as ct, type Totals as cu, type StoreSettings as cv, type Address as cw, type AddressAddressLine1OptionsOneOf as cx, type FullName as cy, type Street as cz, type RemoveGiftCardResponse as d, type RemoveOverrideCheckoutUrlResponse as e, type AddToCheckoutResponse as f, type RemoveLineItemsResponse as g, type CreateOrderOptions as h, type CreateOrderResponse as i, type RawHttpResponse as j, type UpdateLineItemsQuantityResponse as k, type CheckoutCompletedEnvelope as l, type CheckoutCreatedEnvelope as m, type CheckoutDeletedEnvelope as n, type CheckoutUpdatedEnvelope as o, ItemTypeItemType as p, CommonVatType as q, PickupMethod as r, ChargeType as s, RuleType as t, DiscountType as u, RateType as v, FallbackReason as w, ChannelType as x, AdditionalFeeSource as y, Severity 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 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 CheckoutUpdatedEnvelope } from './ecom-v1-checkout-checkout.universal-
|
|
3
|
-
export {
|
|
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';
|
|
4
4
|
|
|
5
5
|
declare function createCheckout$1(httpClient: HttpClient): CreateCheckoutSignature;
|
|
6
6
|
interface CreateCheckoutSignature {
|
|
@@ -177,6 +177,7 @@ interface UpdateLineItemsQuantitySignature {
|
|
|
177
177
|
}
|
|
178
178
|
declare const onCheckoutCompleted$1: EventDefinition<CheckoutCompletedEnvelope, "wix.ecom.v1.checkout_completed">;
|
|
179
179
|
declare const onCheckoutCreated$1: EventDefinition<CheckoutCreatedEnvelope, "wix.ecom.v1.checkout_created">;
|
|
180
|
+
declare const onCheckoutDeleted$1: EventDefinition<CheckoutDeletedEnvelope, "wix.ecom.v1.checkout_deleted">;
|
|
180
181
|
declare const onCheckoutUpdated$1: EventDefinition<CheckoutUpdatedEnvelope, "wix.ecom.v1.checkout_updated">;
|
|
181
182
|
|
|
182
183
|
declare const createCheckout: MaybeContext<BuildRESTFunction<typeof createCheckout$1> & typeof createCheckout$1>;
|
|
@@ -194,17 +195,20 @@ declare const markCheckoutAsCompletedAndRedirectToUrl: MaybeContext<BuildRESTFun
|
|
|
194
195
|
declare const markCheckoutAsCompleted: MaybeContext<BuildRESTFunction<typeof markCheckoutAsCompleted$1> & typeof markCheckoutAsCompleted$1>;
|
|
195
196
|
declare const updateLineItemsQuantity: MaybeContext<BuildRESTFunction<typeof updateLineItemsQuantity$1> & typeof updateLineItemsQuantity$1>;
|
|
196
197
|
/**
|
|
197
|
-
* Triggered when an order created from this checkout is
|
|
198
|
-
* successfully paid for or when a checkout is marked as completed.
|
|
198
|
+
* Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed.
|
|
199
199
|
*/
|
|
200
200
|
declare const onCheckoutCompleted: BuildEventDefinition<typeof onCheckoutCompleted$1>;
|
|
201
201
|
/**
|
|
202
202
|
* Triggered when a checkout is created.
|
|
203
203
|
*/
|
|
204
204
|
declare const onCheckoutCreated: BuildEventDefinition<typeof onCheckoutCreated$1>;
|
|
205
|
+
/**
|
|
206
|
+
* Triggered when a checkout is deleted.
|
|
207
|
+
*/
|
|
208
|
+
declare const onCheckoutDeleted: BuildEventDefinition<typeof onCheckoutDeleted$1>;
|
|
205
209
|
/**
|
|
206
210
|
* Triggered when a checkout is updated.
|
|
207
211
|
*/
|
|
208
212
|
declare const onCheckoutUpdated: BuildEventDefinition<typeof onCheckoutUpdated$1>;
|
|
209
213
|
|
|
210
|
-
export { AddToCheckoutOptions, AddToCheckoutResponse, Checkout, CheckoutCompletedEnvelope, CheckoutCreatedEnvelope, CheckoutUpdatedEnvelope, CreateCheckoutOptions, CreateOrderOptions, CreateOrderResponse, GetCheckoutByCartIdResponse, GetCheckoutURLResponse, LineItemQuantityUpdate, RawHttpResponse, RemoveCouponResponse, RemoveGiftCardResponse, RemoveLineItemsResponse, RemoveOverrideCheckoutUrlResponse, UpdateCheckout, UpdateCheckoutOptions, UpdateLineItemsQuantityResponse, addToCheckout, createCheckout, createOrder, getCheckout, getCheckoutByCartId, getCheckoutUrl, markCheckoutAsCompleted, markCheckoutAsCompletedAndRedirectToUrl, onCheckoutCompleted, onCheckoutCreated, onCheckoutUpdated, removeCoupon, removeGiftCard, removeLineItems, removeOverrideCheckoutUrl, updateCheckout, updateLineItemsQuantity };
|
|
214
|
+
export { AddToCheckoutOptions, AddToCheckoutResponse, Checkout, CheckoutCompletedEnvelope, CheckoutCreatedEnvelope, CheckoutDeletedEnvelope, CheckoutUpdatedEnvelope, CreateCheckoutOptions, CreateOrderOptions, CreateOrderResponse, GetCheckoutByCartIdResponse, GetCheckoutURLResponse, LineItemQuantityUpdate, RawHttpResponse, RemoveCouponResponse, RemoveGiftCardResponse, RemoveLineItemsResponse, RemoveOverrideCheckoutUrlResponse, UpdateCheckout, UpdateCheckoutOptions, UpdateLineItemsQuantityResponse, addToCheckout, createCheckout, createOrder, getCheckout, getCheckoutByCartId, getCheckoutUrl, markCheckoutAsCompleted, markCheckoutAsCompletedAndRedirectToUrl, onCheckoutCompleted, onCheckoutCreated, onCheckoutDeleted, onCheckoutUpdated, removeCoupon, removeGiftCard, removeLineItems, removeOverrideCheckoutUrl, updateCheckout, updateLineItemsQuantity };
|
|
@@ -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,
|