import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { CheckoutTemplate, CreateCheckoutTemplateApplicationErrors, UpdateCheckoutTemplate, UpdateCheckoutTemplateApplicationErrors, CreateCheckoutFromTemplateResponse, CreateCheckoutFromTemplateApplicationErrors, RawHttpResponse, CreateAndRedirectToCheckoutApplicationErrors, CheckoutTemplateCreatedEnvelope, CheckoutTemplateDeletedEnvelope, CheckoutTemplateUpdatedEnvelope, CheckoutTemplateUsedEnvelope, CheckoutTemplatesQueryBuilder, CheckoutTemplateQuery, typedQueryCheckoutTemplates } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, Address, AddressLocation, AddressWithContact, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, BaseEventMetadata, BillingSettings, BuyerInfo, BuyerInfoIdOneOf, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, ChargeType, ChargeTypeWithLiterals, Checkout, CheckoutCustomization, CheckoutTemplateQuerySpec, CheckoutTemplateUsed, CheckoutTemplatesQueryResult, Color, CommonQueryWithEntityContext, ConversionInfo, Coupon, CreateAndRedirectToCheckoutRequest, CreateCheckoutFromTemplateRequest, CreateCheckoutTemplateRequest, CreateCheckoutTemplateResponse, CreatedBy, CreatedByIdOneOf, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomContentReference, CustomField, CustomLineItem, CustomSettings, DeleteCheckoutTemplateRequest, DeleteCheckoutTemplateResponse, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, DiscountRule, DiscountRuleName, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FocalPoint, FreeTrialPeriod, FullAddressContactDetails, GetCheckoutTemplateRequest, GetCheckoutTemplateResponse, GiftCard, GiftCardCalculationError, Group, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InvalidMembership, ItemAvailabilityInfo, ItemAvailabilityStatus, ItemAvailabilityStatusWithLiterals, ItemCombination, ItemCombinationLineItem, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, JurisdictionType, JurisdictionTypeWithLiterals, LineItem, LineItemDiscount, ManualCalculationReason, ManualCalculationReasonWithLiterals, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, OtherCharge, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlainTextValue, PlatformFee, PlatformFeeChargeType, PlatformFeeChargeTypeWithLiterals, Policy, PriceDescription, PriceSummary, ProductName, QueryCheckoutTemplatesRequest, QueryCheckoutTemplatesResponse, RateType, RateTypeWithLiterals, Region, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, ServiceProperties, Severity, SeverityWithLiterals, ShippingInfo, ShippingOption, ShippingPrice, ShippingRegion, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, StreetAddress, SubscriptionCharges, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetLineItem, TargetTargetTypeOneOf, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UpdateCheckoutTemplateRequest, UpdateCheckoutTemplateResponse, V1ItemModifier, V1LineItem, V1ModifierGroup, ValidationError, VatId, VatType, VatTypeWithLiterals, Violation, WebClientCustomization, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals, utils } from './index.typings.js'; 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 Create Checkout From Template. * 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: NonNullablePaths): Promise & { __applicationErrorsType?: CreateCheckoutTemplateApplicationErrors; }>; } 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, checkoutTemplate: UpdateCheckoutTemplate): Promise & { __applicationErrorsType?: UpdateCheckoutTemplateApplicationErrors; }>; } 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 createCheckoutFromTemplate$1(httpClient: HttpClient): CreateCheckoutFromTemplateSignature; interface CreateCheckoutFromTemplateSignature { /** * Creates a new checkout based on the checkout template. * * Before using this method, you must have a checkout template available. Create a checkout template with Create Checkout Template. * * 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 & { __applicationErrorsType?: CreateCheckoutFromTemplateApplicationErrors; }>; } 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 method, you must have a checkout template available. Create a checkout template with Create Checkout Template. * * To build a URL that uses this method, 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 Create Checkout From Template. * @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 & { __applicationErrorsType?: CreateAndRedirectToCheckoutApplicationErrors; }>; } declare const onCheckoutTemplateCreated$1: EventDefinition; declare const onCheckoutTemplateDeleted$1: EventDefinition; declare const onCheckoutTemplateUpdated$1: EventDefinition; declare const onCheckoutTemplateUsed$1: EventDefinition; declare function customQueryCheckoutTemplates(httpClient: HttpClient): { (): CheckoutTemplatesQueryBuilder; (query: CheckoutTemplateQuery): ReturnType; }; 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 createCheckoutFromTemplate: MaybeContext & typeof createCheckoutFromTemplate$1>; declare const createAndRedirectToCheckout: MaybeContext & typeof createAndRedirectToCheckout$1>; declare const queryCheckoutTemplates: MaybeContext & typeof customQueryCheckoutTemplates>; /** * Triggered when a checkout template is created. */ declare const onCheckoutTemplateCreated: BuildEventDefinition & typeof onCheckoutTemplateCreated$1; /** * Triggered when a checkout template is deleted. */ declare const onCheckoutTemplateDeleted: BuildEventDefinition & typeof onCheckoutTemplateDeleted$1; /** * Triggered when a checkout template is updated. */ declare const onCheckoutTemplateUpdated: BuildEventDefinition & typeof onCheckoutTemplateUpdated$1; /** * Triggered when a checkout is created from a checkout template. */ declare const onCheckoutTemplateUsed: BuildEventDefinition & typeof onCheckoutTemplateUsed$1; export { CheckoutTemplate, CheckoutTemplateCreatedEnvelope, CheckoutTemplateDeletedEnvelope, CheckoutTemplateQuery, CheckoutTemplateUpdatedEnvelope, CheckoutTemplateUsedEnvelope, CheckoutTemplatesQueryBuilder, CreateAndRedirectToCheckoutApplicationErrors, CreateCheckoutFromTemplateApplicationErrors, CreateCheckoutFromTemplateResponse, CreateCheckoutTemplateApplicationErrors, RawHttpResponse, UpdateCheckoutTemplate, UpdateCheckoutTemplateApplicationErrors, createAndRedirectToCheckout, createCheckoutFromTemplate, createCheckoutTemplate, deleteCheckoutTemplate, getCheckoutTemplate, onCheckoutTemplateCreated, onCheckoutTemplateDeleted, onCheckoutTemplateUpdated, onCheckoutTemplateUsed, queryCheckoutTemplates, updateCheckoutTemplate };