import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { C as CheckoutTemplate, a as CheckoutTemplateNonNullableFields, U as UpdateCheckoutTemplate, b as CheckoutTemplatesQueryBuilder, c as CreateCheckoutFromTemplateResponse, d as CreateCheckoutFromTemplateResponseNonNullableFields, R as RawHttpResponse, e as RawHttpResponseNonNullableFields } from './ecom-v1-checkout-template-checkout-templates.universal-CopiSS33.js'; export { bP as ActionEvent, bg as AdditionalFee, A as AdditionalFeeSource, an as Address, ap as AddressLocation, am as AddressWithContact, b6 as AggregatedTaxBreakdown, aC as ApplicableLineItems, aP as ApplicationError, aW as AppliedDiscount, aX as AppliedDiscountDiscountSourceOneOf, b5 as AutoTaxFallbackCalculationDetails, bX as BaseEventMetadata, aI as BuyerInfo, aJ as BuyerInfoIdOneOf, aL as CalculationErrors, aM as CalculationErrorsShippingCalculationErrorOneOf, aA as Carrier, aU as CarrierError, aT as CarrierErrors, aE as CarrierServiceOption, x as CatalogOverrideFields, w as CatalogReference, n as ChannelType, bp as Charge, i as ChargeType, ac as Checkout, t as CheckoutCustomization, bZ as CheckoutTemplateCreatedEnvelope, b_ as CheckoutTemplateDeletedEnvelope, b$ as CheckoutTemplateUpdatedEnvelope, ab as CheckoutTemplateUsed, c0 as CheckoutTemplateUsedEnvelope, c1 as CheckoutTemplatesQueryResult, K as Color, bh as ConversionInfo, aY as Coupon, bH as CreateAndRedirectToCheckoutRequest, bG as CreateCheckoutFromTemplateRequest, bq as CreateCheckoutTemplateRequest, br as CreateCheckoutTemplateResponse, bT as CreateCheckoutTemplateResponseNonNullableFields, b7 as CreatedBy, b8 as CreatedByIdOneOf, bC as CursorPaging, bE as CursorPagingMetadata, bz as CursorQuery, bA as CursorQueryPagingMethodOneOf, bF as Cursors, a9 as CustomContentReference, b1 as CustomField, Q as CustomLineItem, bn as CustomSettings, bw as DeleteCheckoutTemplateRequest, bx as DeleteCheckoutTemplateResponse, az as DeliveryAllocation, au as DeliveryLogistics, aw as DeliveryTimeSlot, a2 as Description, z as DescriptionLine, E as DescriptionLineDescriptionLineValueOneOf, G as DescriptionLineName, D as DescriptionLineType, B as DescriptionLineValueOneOf, aN as Details, aO as DetailsKindOneOf, a_ as DiscountRule, a$ as DiscountRuleName, k as DiscountType, bJ as DomainEvent, bK as DomainEventBodyOneOf, bL as EntityCreatedEvent, bO as EntityDeletedEvent, bN as EntityUpdatedEvent, bY as EventMetadata, a8 as ExtendedFields, aa as ExternalReference, m as FallbackReason, aR as FieldViolation, F as FileType, ai as FocalPoint, a0 as FreeTrialPeriod, aq as FullAddressContactDetails, bs as GetCheckoutTemplateRequest, bt as GetCheckoutTemplateResponse, bU as GetCheckoutTemplateResponseNonNullableFields, aV as GiftCard, al as Group, bI as HeadersEntry, bR as IdentificationData, bS as IdentificationDataIdOneOf, bd as InvalidMembership, aj as ItemAvailabilityInfo, g as ItemAvailabilityStatus, af as ItemTaxFullDetails, Y as ItemType, I as ItemTypeItemType, Z as ItemTypeItemTypeDataOneOf, J as JurisdictionType, ad as LineItem, b0 as LineItemDiscount, M as ManualCalculationReason, ba as Membership, bb as MembershipName, b9 as MembershipOptions, bc as MembershipPaymentCredits, aZ as MerchantDiscount, bQ as MessageEnvelope, ae as MultiCurrencyPrice, p as NameInLineItem, N as NameInOther, bl as Other, aH as OtherCharge, O as PaymentOption, P as PaymentOptionType, L as PhysicalProperties, av as PickupDetails, h as PickupMethod, H as PlainTextValue, a5 as Policy, X as PriceDescription, aK as PriceSummary, y as ProductName, by as QueryCheckoutTemplatesRequest, bD as QueryCheckoutTemplatesResponse, bW as QueryCheckoutTemplatesResponseNonNullableFields, l as RateType, aB as Region, bM as RestoreInfo, j as RuleType, ak as Scope, a3 as SecuredMedia, at as SelectedCarrierServiceOption, ay as SelectedCarrierServiceOptionOtherCharge, ax as SelectedCarrierServiceOptionPrices, bf as SelectedMembership, be as SelectedMemberships, a4 as ServiceProperties, o as Severity, as as ShippingInfo, aF as ShippingOption, aG as ShippingPrice, aD as ShippingRegion, r as SortOrder, bB as Sorting, S as Status, ao as StreetAddress, bo as SubscriptionCharges, f as SubscriptionFrequency, _ as SubscriptionOptionInfo, $ as SubscriptionSettings, q as SuggestedFix, aS as SystemError, bj as Target, bm as TargetLineItem, bk as TargetTargetTypeOneOf, ah as TaxBreakdown, b3 as TaxCalculationDetails, b4 as TaxCalculationDetailsCalculationDetailsOneOf, ag as TaxRateBreakdown, b2 as TaxSummary, a6 as TaxableAddress, a7 as TaxableAddressTaxableAddressDataOneOf, T as TaxableAddressType, a1 as Title, bu as UpdateCheckoutTemplateRequest, bv as UpdateCheckoutTemplateResponse, bV as UpdateCheckoutTemplateResponseNonNullableFields, v as V1LineItem, aQ as ValidationError, ar as VatId, V as VatType, bi as Violation, u as WebClientCustomization, s as WebhookIdentityType, W as WeightUnit } from './ecom-v1-checkout-template-checkout-templates.universal-CopiSS33.js'; import { createEventModule } from '@wix/sdk-runtime/event-definition-modules'; declare function createCheckoutTemplate$1(httpClient: HttpClient): CreateCheckoutTemplateSignature; interface CreateCheckoutTemplateSignature { /** * Creates a checkout template. * * A checkout template is used to create a new checkout that will include predefined information. For example, a single link with * a `checkoutTemplateId` can be shared with customers and each time the link is clicked, a new checkout page will be created * for that customer with certain checkout information already populated. * * The customizable features include the option to allow or to lock coupon codes or gift cards. For example, if a store owner is * using the checkout template to offer a flash sale to their social media followers, they may want to lock the option to apply an * additional coupon on top of the sale being offered. If so, they can set `customization.lockedCoupon` to `true`. * * A checkout can be created with a checkout template by calling `createCheckoutFromTemplate()`. The site may add further customizations to the new checkout and then redirect the customer using the new checkout's `checkoutUrl`. * @param - Checkout template to create. * @returns Created checkout template. */ (checkoutTemplate: CheckoutTemplate): Promise; } declare function getCheckoutTemplate$1(httpClient: HttpClient): GetCheckoutTemplateSignature; interface GetCheckoutTemplateSignature { /** * Retrieves a checkout template. * @param - ID of the checkout template to retrieve. * @returns Retrieved checkout template. */ (checkoutTemplateId: string): Promise; } declare function updateCheckoutTemplate$1(httpClient: HttpClient): UpdateCheckoutTemplateSignature; interface UpdateCheckoutTemplateSignature { /** * Updates a checkout template. * * If the info in a checkout template is updated, only new checkouts created from this template will include the updated items. Checkouts previously * created from this template before the update will not be affected. * @param - Checkout template ID. * @param - Checkout template info to update. * @returns Updated checkout template. */ (_id: string | null, checkoutTemplate: UpdateCheckoutTemplate): Promise; } declare function deleteCheckoutTemplate$1(httpClient: HttpClient): DeleteCheckoutTemplateSignature; interface DeleteCheckoutTemplateSignature { /** * Deletes a checkout template. * * If a checkout template is deleted and a customer attempts to create a checkout with that `checkoutTemplateId` then * the customer will be redirected to the domain site. * @param - ID of the checkout template to delete. */ (checkoutTemplateId: string): Promise; } declare function queryCheckoutTemplates$1(httpClient: HttpClient): QueryCheckoutTemplatesSignature; interface QueryCheckoutTemplatesSignature { /** * Creates a query to retrieve a list of checkout templates. * * The `queryCheckoutTemplates()` function builds a query to retrieve a list of checkout templates and returns a `CheckoutTemplatesQueryBuilder` object. * * The returned object contains the query definition, which is typically used to run the query using the `find()` function. * * You can refine the query by chaining `CheckoutTemplatesQueryBuilder` functions onto the query. `CheckoutTemplatesQueryBuilder` functions enable you to sort, filter, and control the results that `queryCheckoutTemplates()` returns. * * `queryCheckoutTemplates()` runs with the following `CheckoutTemplatesQueryBuilder` default that you can override: * + `ascending("_id")` * * The functions that are chained to `queryCheckoutTemplates()` are applied in the order they are called. For example, if you apply `ascending("status")` and then `ascending("_id")`, the results are sorted first by the `"status"`, and then, if there are multiple results with the same `"status"`, the items are sorted by `"_id"`. * * The following `CheckoutTemplatesQueryBuilder` functions are supported for the `queryCheckoutTemplates()` function. For a full description of the checkout template object, see the object returned for the `items` property in `CheckoutTemplatesQueryResult`. */ (): CheckoutTemplatesQueryBuilder; } declare function createCheckoutFromTemplate$1(httpClient: HttpClient): CreateCheckoutFromTemplateSignature; interface CreateCheckoutFromTemplateSignature { /** * Creates a new checkout based on the checkout template. * * Before using this function, you must have a checkout template available. Create a checkout template with `createCheckoutTemplate()`. * * The customer can be directed to the new checkout using the checkout's `checkoutUrl`. * @param - ID of the checkout template to use to create a checkout from. * @param - ID of the site associated with the checkout template. */ (checkoutTemplateId: string, siteId: string): Promise; } declare function createAndRedirectToCheckout$1(httpClient: HttpClient): CreateAndRedirectToCheckoutSignature; interface CreateAndRedirectToCheckoutSignature { /** * Creates a new checkout based on the checkout template and redirects to the new checkout page. * * Before using this function, you must have a checkout template available. Create a checkout template with `createCheckoutTemplate()`. * * To build a URL that uses this function, follow this format: * `https://www.wixapis.com/ecom/v1/checkout-templates/{checkoutTemplateId}/create-and-redirect-to-checkout?siteId={siteId}` * * To create a checkout but not automatically redirect to the checkout page, use `createCheckoutFromTemplate()`. * @param - ID of the checkout template to use to create a checkout. * @param - ID of the site associated with the checkout template. */ (checkoutTemplateId: string, siteId: string): Promise; } declare const createCheckoutTemplate: MaybeContext & typeof createCheckoutTemplate$1>; declare const getCheckoutTemplate: MaybeContext & typeof getCheckoutTemplate$1>; declare const updateCheckoutTemplate: MaybeContext & typeof updateCheckoutTemplate$1>; declare const deleteCheckoutTemplate: MaybeContext & typeof deleteCheckoutTemplate$1>; declare const queryCheckoutTemplates: MaybeContext & typeof queryCheckoutTemplates$1>; declare const createCheckoutFromTemplate: MaybeContext & typeof createCheckoutFromTemplate$1>; declare const createAndRedirectToCheckout: MaybeContext & typeof createAndRedirectToCheckout$1>; /** */ declare const onCheckoutTemplateCreated: ReturnType>; /** */ declare const onCheckoutTemplateDeleted: ReturnType>; /** */ declare const onCheckoutTemplateUpdated: ReturnType>; /** */ declare const onCheckoutTemplateUsed: ReturnType>; export { CheckoutTemplate, CheckoutTemplateNonNullableFields, CheckoutTemplatesQueryBuilder, CreateCheckoutFromTemplateResponse, CreateCheckoutFromTemplateResponseNonNullableFields, RawHttpResponse, RawHttpResponseNonNullableFields, UpdateCheckoutTemplate, createAndRedirectToCheckout, createCheckoutFromTemplate, createCheckoutTemplate, deleteCheckoutTemplate, getCheckoutTemplate, onCheckoutTemplateCreated, onCheckoutTemplateDeleted, onCheckoutTemplateUpdated, onCheckoutTemplateUsed, queryCheckoutTemplates, updateCheckoutTemplate };