import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { P as Price, a as PreparePaymentCollectionOptions, b as PreparePaymentCollectionResponse, c as PreparePaymentCollectionResponseNonNullableFields, G as GetPaymentCollectabilityStatusResponse, d as GetPaymentCollectabilityStatusResponseNonNullableFields, V as VoidAuthorizedPaymentsResponse, e as VoidAuthorizedPaymentsResponseNonNullableFields, f as PaymentCapture, C as CaptureAuthorizedPaymentsResponse, g as CaptureAuthorizedPaymentsResponseNonNullableFields, O as Order, h as OrderNonNullableFields, S as SearchOrdersOptions, i as SearchOrdersResponse, j as SearchOrdersResponseNonNullableFields, k as CreateOrderOptions, U as UpdateOrder, M as MaskedOrder, B as BulkUpdateOrdersOptions, l as BulkUpdateOrdersResponse, m as BulkUpdateOrdersResponseNonNullableFields, n as CancelOrderOptions, o as CancelOrderResponse, p as CancelOrderResponseNonNullableFields, q as BulkUpdateOrderTagsOptions, r as BulkUpdateOrderTagsResponse, s as BulkUpdateOrderTagsResponseNonNullableFields } from './ecom-v1-order-orders.universal-8q9wiFhk.js'; export { db as ActionEvent, $ as ActionType, bb as Activity, bc as ActivityContentOneOf, E as ActivityType, gc as AddActivitiesRequest, gd as AddActivitiesResponse, g8 as AddActivityRequest, gb as AddActivityResponse, hK as AddActivityResponseNonNullableFields, fN as AddInternalActivityRequest, g7 as AddInternalActivityResponse, c3 as AdditionalFee, fd as AdditionalFeeDelta, fe as AdditionalFeeDeltaDeltaOneOf, c_ as AdditionalFeeRefund, aP as Address, h7 as AddressDescription, aR as AddressLocation, aO as AddressWithContact, i0 as AggregateOrdersOptions, gP as AggregateOrdersRequest, gQ as AggregateOrdersResponse, d0 as AggregatedRefundSummary, cj as App, ei as ApplicationError, b3 as AppliedDiscount, fb as AppliedDiscountDelta, fc as AppliedDiscountDeltaDeltaOneOf, b4 as AppliedDiscountDiscountSourceOneOf, fn as ArchiveOrderRequest, fo as ArchiveOrderResponse, H as AttributionSource, cM as AuthorizationActionFailureDetails, cL as AuthorizationCapture, Y as AuthorizationCaptureStatus, cK as AuthorizationDetails, cN as AuthorizationVoid, Z as AuthorizationVoidStatus, bz as AuthorizedPaymentCaptured, by as AuthorizedPaymentCreated, bA as AuthorizedPaymentVoided, c2 as Balance, c1 as BalanceSummary, hO as BaseEventMetadata, du as BatchOfTriggerReindexOrderRequest, hh as BigDecimalWrapper, ej as BulkActionMetadata, fr as BulkArchiveOrdersByFilterRequest, fs as BulkArchiveOrdersByFilterResponse, fp as BulkArchiveOrdersRequest, fq as BulkArchiveOrdersResponse, gw as BulkMarkAsFulfilledByFilterRequest, gx as BulkMarkAsFulfilledByFilterResponse, gu as BulkMarkAsFulfilledRequest, gv as BulkMarkAsFulfilledResponse, gC as BulkMarkAsUnfulfilledByFilterRequest, gD as BulkMarkAsUnfulfilledByFilterResponse, gA as BulkMarkAsUnfulfilledRequest, gB as BulkMarkAsUnfulfilledResponse, ee as BulkMarkOrdersAsPaidRequest, ef as BulkMarkOrdersAsPaidResponse, hB as BulkMarkOrdersAsPaidResponseNonNullableFields, eg as BulkOrderResult, dB as BulkSendBuyerPickupConfirmationEmailsRequest, dC as BulkSendBuyerPickupConfirmationEmailsResponse, dF as BulkSendBuyerShippingConfirmationEmailsRequest, dG as BulkSendBuyerShippingConfirmationEmailsResponse, gE as BulkSetBusinessLocationRequest, gF as BulkSetBusinessLocationResponse, gG as BulkSetBusinessLocationResult, fx as BulkUnArchiveOrdersByFilterRequest, fy as BulkUnArchiveOrdersByFilterResponse, fv as BulkUnArchiveOrdersRequest, fw as BulkUnArchiveOrdersResponse, gU as BulkUpdateOrderTagsRequest, gV as BulkUpdateOrderTagsResult, f0 as BulkUpdateOrdersRequest, aL as BuyerInfo, aM as BuyerInfoIdOneOf, fA as BuyerInfoUpdate, eC as CalculateRefundItemRequest, eE as CalculateRefundItemResponse, eB as CalculateRefundRequest, eD as CalculateRefundResponse, hr as CalculatedTax, hq as CalculatedTaxes, g$ as Cancel, gn as CancelOrderRequest, eG as CaptureAuthorizedPaymentsRequest, ao as CatalogReference, b$ as ChannelInfo, K as ChannelType, hV as ChargeMembershipsOptions, er as ChargeMembershipsRequest, eu as ChargeMembershipsResponse, eH as ChargeSavedPaymentMethodRequest, eI as ChargeSavedPaymentMethodResponse, ep as ChargedBy, au as Color, hX as CommitDeltasOptions, f1 as CommitDeltasRequest, fh as CommitDeltasResponse, hI as CommitDeltasResponseNonNullableFields, fj as CommittedDiffs, fk as CommittedDiffsShippingUpdateInfoOneOf, ha as CommonAddress, hb as CommonAddressStreetOneOf, h9 as Company, g_ as Complete, eL as ContinueSideEffectsFlowInLegacyData, b5 as Coupon, eW as CreateOrderRequest, eZ as CreateOrderResponse, hG as CreateOrderResponseNonNullableFields, eo as CreatePaymentGatewayOrderRequest, eq as CreatePaymentGatewayOrderResponse, hD as CreatePaymentGatewayOrderResponseNonNullableFields, bZ as CreatedBy, b_ as CreatedByStringOneOf, bO as CreditCardDetails, cJ as CreditCardPaymentMethodDetails, cv as CursorPaging, eV as CursorPagingMetadata, eT as CursorSearch, eU as CursorSearchPagingMethodOneOf, cy as Cursors, bd as CustomActivity, c0 as CustomField, ai as CustomFieldGroup, hw as CustomFieldValue, h4 as Customer, gS as DecrementData, gR as DecrementItemsQuantityRequest, gT as DecrementItemsQuantityResponse, e7 as DelayedCaptureSettings, h$ as DeleteActivityIdentifiers, gg as DeleteActivityRequest, gh as DeleteActivityResponse, hM as DeleteActivityResponseNonNullableFields, dk as DeleteByFilterOperation, dj as DeleteByIdsOperation, aV as DeliveryLogistics, aW as DeliveryLogisticsAddressOneOf, aZ as DeliveryTimeSlot, ad as DeltaPaymentOptionType, hy as Deposit, ak as DepositType, ap as DescriptionLine, ar as DescriptionLineDescriptionLineValueOneOf, as as DescriptionLineName, D as DescriptionLineType, aq as DescriptionLineValueOneOf, eJ as DiffmatokyPayload, aC as DigitalFile, ho as Discount, hp as DiscountOneDiscountTypeOneOf, A as DiscountReason, b8 as DiscountRule, b9 as DiscountRuleName, z as DiscountType, d5 as DomainEvent, d6 as DomainEventBodyOneOf, fV as DownloadLinkSent, bj as DraftOrderChangesApplied, ff as DraftOrderCommitSettings, f2 as DraftOrderDiffs, f5 as DraftOrderDiffsBillingUpdateInfoOneOf, f4 as DraftOrderDiffsBuyerUpdateInfoOneOf, f6 as DraftOrderDiffsRecipientUpdateInfoOneOf, f3 as DraftOrderDiffsShippingUpdateInfoOneOf, e8 as Duration, a6 as DurationUnit, h5 as Email, g2 as EmailEdited, dt as Empty, d7 as EntityCreatedEvent, da as EntityDeletedEvent, d9 as EntityUpdatedEvent, eK as ErrorInformation, hP as EventMetadata, aK as ExtendedFields, bW as ExternalReceipt, cT as ExternalReceiptInfo, cn as ExternalUriMapping, av as FocalPoint, aF as FreeTrialPeriod, g0 as FulfillerEmailSent, F as FulfillmentStatus, gt as FulfillmentStatusUpdated, c4 as FulfillmentStatusesAggregate, aS as FullAddressContactDetails, cg as GetMetasiteDataRequest, ch as GetMetasiteDataResponse, cz as GetOrderForMetasiteRequest, cA as GetOrderForMetasiteResponse, eN as GetOrderRequest, eO as GetOrderResponse, hF as GetOrderResponseNonNullableFields, e9 as GetPaymentCollectabilityStatusRequest, ek as GetRefundabilityStatusRequest, el as GetRefundabilityStatusResponse, hC as GetRefundabilityStatusResponseNonNullableFields, gN as GetShipmentsRequest, gO as GetShipmentsResponse, cP as GiftCardPaymentDetails, bF as GiftCardPaymentRefund, cm as HtmlApplication, h2 as IdAndVersion, dd as IdentificationData, de as IdentificationDataIdOneOf, eM as IndexingMessage, fO as InternalActivity, fP as InternalActivityContentOneOf, dh as InternalDocument, dl as InternalDocumentUpdateByFilterOperation, di as InternalDocumentUpdateOperation, cq as InternalQueryOrdersRequest, eP as InternalQueryOrdersResponse, dm as InternalUpdateExistingOperation, ae as InventoryAction, fg as InventoryUpdateDetails, f_ as InvoiceAdded, he as InvoiceDates, hv as InvoiceDynamicPriceTotals, h3 as InvoiceFields, f$ as InvoiceSent, h1 as InvoiceSentEvent, al as InvoiceStatus, ht as InvoicesPayment, fa as ItemChangedDetails, eh as ItemMetadata, az as ItemTaxFullDetails, ax as ItemType, I as ItemTypeItemType, ay as ItemTypeItemTypeDataOneOf, hn as ItemizedFee, J as JurisdictionType, hg as LineItem, bs as LineItemAmount, bm as LineItemChanges, fl as LineItemDelta, fm as LineItemDeltaDeltaOneOf, ba as LineItemDiscount, bi as LineItemExchangeData, hk as LineItemMetaData, bo as LineItemPriceChange, bn as LineItemQuantityChange, L as LineItemQuantityChangeType, cZ as LineItemRefund, d2 as LineItemRefundSummary, hi as LineItemTax, aB as LineItemTaxBreakdown, aA as LineItemTaxInfo, gj as LineItemUpdate, hf as LineItems, cB as ListOrderTransactionsForMetasiteRequest, cC as ListOrderTransactionsForMetasiteResponse, hl as Locale, c7 as Location, aH as LocationAndQuantity, bt as ManagedAdditionalFee, bq as ManagedDiscount, bp as ManagedLineItem, aa as ManuallyRefundableReason, gr as MarkAsFulfilledRequest, gs as MarkAsFulfilledResponse, gy as MarkAsUnfulfilledRequest, gz as MarkAsUnfulfilledResponse, ec as MarkOrderAsPaidRequest, ed as MarkOrderAsPaidResponse, hA as MarkOrderAsPaidResponseNonNullableFields, gl as MarkOrderAsSeenByHumanRequest, gm as MarkOrderAsSeenByHumanResponse, fL as MaskedOrderLineItem, es as MembershipChargeItem, cR as MembershipName, cQ as MembershipPaymentDetails, bG as MembershipPaymentRefund, a0 as MembershipPaymentStatus, be as MerchantComment, b6 as MerchantDiscount, b7 as MerchantDiscountMerchantDiscountReasonOneOf, dc as MessageEnvelope, hu as MetaData, ci as MetaSite, cl as MetaTag, Q as Namespace, bh as NewExchangeOrderCreated, a9 as NonRefundableReason, ac as OrderApprovalStrategy, cb as OrderApproved, hQ as OrderApprovedEnvelope, fU as OrderCanceled, hS as OrderCanceledEnvelope, go as OrderCanceledEventOrderCanceled, bk as OrderChange, bl as OrderChangeValueOneOf, eY as OrderCreateNotifications, hT as OrderCreatedEnvelope, bg as OrderCreatedFromExchange, eX as OrderCreationSettings, fi as OrderDeltasCommitted, fS as OrderFulfilled, ce as OrderItemsRestocked, am as OrderLineItem, f9 as OrderLineItemChangedDetails, fT as OrderNotFulfilled, fR as OrderPaid, g4 as OrderPartiallyPaid, g5 as OrderPending, fQ as OrderPlaced, bf as OrderRefunded, g6 as OrderRejected, cd as OrderRejectedEventOrderRejected, y as OrderStatus, b2 as OrderTaxBreakdown, b1 as OrderTaxInfo, cD as OrderTransactions, hR as OrderUpdatedEnvelope, cc as OrdersExperiments, cE as Payment, bP as PaymentCanceled, bQ as PaymentCanceledPaymentDetailsOneOf, a7 as PaymentCollectabilityStatus, hU as PaymentCollectionCreatePaymentGatewayOrderOptions, bR as PaymentDeclined, bS as PaymentDeclinedPaymentDetailsOneOf, t as PaymentOptionType, cF as PaymentPaymentDetailsOneOf, bK as PaymentPending, bL as PaymentPendingPaymentDetailsOneOf, cG as PaymentReceiptInfoOneOf, ew as PaymentRefund, bI as PaymentRefundFailed, bH as PaymentRefunded, v as PaymentStatus, ca as PaymentStatusUpdated, hs as Payments, h8 as Phone, aw as PhysicalProperties, aY as PickupAddress, aX as PickupDetails, x as PickupMethod, g3 as PickupReadyEmailSent, af as Placement, at as PlainTextValue, cu as PlatformPaging, cx as PlatformPagingMetadata, cr as PlatformQuery, cs as PlatformQueryPagingMethodOneOf, e5 as PreparePaymentCollectionRequest, dZ as PreviewBuyerConfirmationEmailRequest, d_ as PreviewBuyerConfirmationEmailResponse, dX as PreviewBuyerPaymentsReceivedEmailRequest, dY as PreviewBuyerPaymentsReceivedEmailResponse, d$ as PreviewBuyerPickupConfirmationEmailRequest, e0 as PreviewBuyerPickupConfirmationEmailResponse, dT as PreviewCancelEmailRequest, dU as PreviewCancelEmailResponse, dV as PreviewCancelRefundEmailRequest, dW as PreviewCancelRefundEmailResponse, dP as PreviewEmailByTypeRequest, dQ as PreviewEmailByTypeResponse, a4 as PreviewEmailType, dR as PreviewRefundEmailRequest, dS as PreviewRefundEmailResponse, e3 as PreviewResendDownloadLinksEmailRequest, e4 as PreviewResendDownloadLinksEmailResponse, e1 as PreviewShippingConfirmationEmailRequest, e2 as PreviewShippingConfirmationEmailResponse, aG as PriceDescription, aN as PriceSummary, an as ProductName, g9 as PublicActivity, ga as PublicActivityContentOneOf, eQ as QueryOrderRequest, eR as QueryOrderResponse, cp as QueryOrdersForMetasiteRequest, cw as QueryOrdersForMetasiteResponse, h6 as QuotesAddress, _ as Reason, bT as ReceiptCreated, bU as ReceiptCreatedReceiptInfoOneOf, bX as ReceiptSent, bY as ReceiptSentReceiptInfoOneOf, ea as RecordManuallyCollectedPaymentRequest, eb as RecordManuallyCollectedPaymentResponse, e6 as RedirectUrls, cU as Refund, cX as RefundDetails, bB as RefundInitiated, cY as RefundItem, d1 as RefundItemsBreakdown, ex as RefundSideEffects, a1 as RefundStatus, cW as RefundStatusInfo, cV as RefundTransaction, em as Refundability, en as RefundabilityAdditionalRefundabilityInfoOneOf, a8 as RefundableStatus, bJ as RefundedAsStoreCredit, bC as RefundedPayment, bD as RefundedPaymentKindOneOf, bM as RegularPayment, cH as RegularPaymentDetails, cI as RegularPaymentDetailsPaymentMethodDetailsOneOf, bN as RegularPaymentPaymentMethodDetailsOneOf, bE as RegularPaymentRefund, h0 as Reschedule, ey as RestockInfo, ez as RestockItem, ab as RestockType, d8 as RestoreInfo, bx as SavedPaymentMethod, a5 as ScheduledAction, eS as SearchOrdersRequest, dv as SendBuyerConfirmationEmailRequest, dw as SendBuyerConfirmationEmailResponse, dx as SendBuyerPaymentsReceivedEmailRequest, dy as SendBuyerPaymentsReceivedEmailResponse, dz as SendBuyerPickupConfirmationEmailRequest, dA as SendBuyerPickupConfirmationEmailResponse, dD as SendBuyerShippingConfirmationEmailRequest, dE as SendBuyerShippingConfirmationEmailResponse, dJ as SendCancelRefundEmailRequest, dK as SendCancelRefundEmailResponse, dH as SendMerchantOrderReceivedNotificationRequest, dI as SendMerchantOrderReceivedNotificationResponse, dN as SendMerchantOrderReceivedPushRequest, dO as SendMerchantOrderReceivedPushResponse, dL as SendRefundEmailRequest, dM as SendRefundEmailResponse, ck as SeoData, et as ServiceProperties, g1 as ShippingAddressEdited, fZ as ShippingConfirmationEmailSent, bw as ShippingInformation, bv as ShippingInformationChange, a_ as ShippingPrice, c$ as ShippingRefund, a$ as ShippingRegion, c9 as SnapshotMessage, R as SortOrder, ct as Sorting, hj as Source, ah as SourceType, hd as StandardDetails, N as State, aQ as StreetAddress, hc as Subdivision, ag as SubdivisionType, u as SubscriptionFrequency, aD as SubscriptionInfo, aE as SubscriptionSettings, c6 as TagList, c5 as Tags, gW as Task, gY as TaskAction, gZ as TaskActionActionOneOf, gX as TaskKey, b0 as TaxSummary, aI as TaxableAddress, aJ as TaxableAddressTaxableAddressDataOneOf, T as TaxableAddressType, hm as TotalPrice, bu as TotalPriceChange, fY as TrackingLinkAdded, fW as TrackingNumberAdded, fX as TrackingNumberEdited, X as TransactionStatus, br as TranslatedValue, hW as TriggerRefundOptions, ev as TriggerRefundRequest, eA as TriggerRefundResponse, hE as TriggerRefundResponseNonNullableFields, c8 as TriggerReindexOrderRequest, dr as TriggerReindexRequest, ds as TriggerReindexResponse, hz as TriggerSideEffectsFromLegacyData, ft as UnArchiveOrderRequest, fu as UnArchiveOrderResponse, h_ as UpdateActivityIdentifiers, ge as UpdateActivityRequest, gf as UpdateActivityResponse, hL as UpdateActivityResponseNonNullableFields, fG as UpdateBillingContactDetailsRequest, fH as UpdateBillingContactDetailsResponse, fC as UpdateBuyerEmailRequest, fD as UpdateBuyerEmailResponse, fz as UpdateBuyerInfoRequest, fB as UpdateBuyerInfoResponse, df as UpdateInternalDocumentsEvent, dg as UpdateInternalDocumentsEventOperationOneOf, gi as UpdateLineItemsDescriptionLinesRequest, gk as UpdateLineItemsDescriptionLinesResponse, hZ as UpdateOrderLineItem, hY as UpdateOrderLineItemIdentifiers, fI as UpdateOrderLineItemRequest, fJ as UpdateOrderLineItemResponse, hJ as UpdateOrderLineItemResponseNonNullableFields, fK as UpdateOrderLineItemsRequest, fM as UpdateOrderLineItemsResponse, e_ as UpdateOrderRequest, e$ as UpdateOrderResponse, hH as UpdateOrderResponseNonNullableFields, fE as UpdateOrderShippingAddressRequest, fF as UpdateOrderShippingAddressResponse, gp as UpdateOrderStatusRequest, gq as UpdateOrderStatusResponse, hN as UpdateOrderStatusResponseNonNullableFields, d3 as UpsertRefundRequest, d4 as UpsertRefundResponse, co as UserDataResponse, gJ as V1BulkMarkOrdersAsPaidRequest, gK as V1BulkMarkOrdersAsPaidResponse, gL as V1CreatePaymentGatewayOrderRequest, gM as V1CreatePaymentGatewayOrderResponse, f7 as V1LineItemDelta, f8 as V1LineItemDeltaDeltaOneOf, gH as V1MarkOrderAsPaidRequest, gI as V1MarkOrderAsPaidResponse, cf as V1RestockItem, cO as V1ScheduledAction, aU as V1ShippingInformation, hx as Value, aj as ValueType, aT as VatId, w as VatType, dp as VersionedDeleteByIdsOperation, dq as VersionedDocumentId, dn as VersionedDocumentUpdateOperation, a3 as VersioningMode, eF as VoidAuthorizedPaymentsRequest, a2 as WebhookIdentityType, W as WeightUnit, bV as WixReceipt, cS as WixReceiptInfo } from './ecom-v1-order-orders.universal-8q9wiFhk.js'; import { createEventModule } from '@wix/sdk-runtime/event-definition-modules'; declare function preparePaymentCollection$1(httpClient: HttpClient): PreparePaymentCollectionSignature; interface PreparePaymentCollectionSignature { /** * Prepares payment collection for given ecom order. This is the first of 2-step process of payment collection. * Here we ensure that payment collection is possible for given order and store and prepare payment gateway order for future charge. * 2nd step is an actual charge of prepared payment gateway order. This could be done either * via Wix-Cashier's API (https://bo.wix.com/wix-docs/rest/wix-cashier/pay/charge/charge-for-order) * or using Cashier Payments Widget (https://github.com/wix-private/cashier-client/tree/master/packages/cashier-payments-widget) * @param - Ecom order ID. * @param - Amount to collect */ (ecomOrderId: string, amount: Price, options?: PreparePaymentCollectionOptions | undefined): Promise; } declare function getPaymentCollectabilityStatus$1(httpClient: HttpClient): GetPaymentCollectabilityStatusSignature; interface GetPaymentCollectabilityStatusSignature { /** * Provides payment collectability status for given order. If payment collection is possible * response will contain collectable amount for given ecom order. If not - response will contain * reason why payment collection is not possible. * @param - Ecom order ID. */ (ecomOrderId: string): Promise; } declare function voidAuthorizedPayments$1(httpClient: HttpClient): VoidAuthorizedPaymentsSignature; interface VoidAuthorizedPaymentsSignature { /** * Void authorized payments * Transaction statuses for related payments will be updated in async way * @param - Wix eCommerce order ID * @param - Payment IDs */ (ecomOrderId: string, paymentIds: string[]): Promise; } declare function captureAuthorizedPayments$1(httpClient: HttpClient): CaptureAuthorizedPaymentsSignature; interface CaptureAuthorizedPaymentsSignature { /** * Capture authorized payments * Transaction statuses for related payments will be updated in async way * @param - Wix eCommerce order ID * @param - Capture payments information */ (ecomOrderId: string, payments: PaymentCapture[]): Promise; } declare function getOrder$1(httpClient: HttpClient): GetOrderSignature; interface GetOrderSignature { /** * Retrieves an order. * * * The `getOrder()` function returns a Promise that resolves when the specified order is retrieved. * * To retrieve an order's payment and refund details, including amounts, payment methods, and payment statuses, pass the order ID to [`listTransactionsForSingleOrder( )`](https://www.wix.com/velo/reference/wix-ecom-backend/ordertransactions/listtransactionsforsingleorder). * @param - ID of the order to retrieve. * @returns Fulfilled - The requested order. */ (_id: string): Promise; } declare function searchOrders$1(httpClient: HttpClient): SearchOrdersSignature; interface SearchOrdersSignature { /** * Retrieves a list of orders, given the provided paging, filtering, and sorting. * * * Search Orders runs with these defaults, which you can override: * * - `createdDate` is sorted in `DESC` order * - `cursorPaging.limit` is `100` * - `filter: {"status": {"$ne": "INITIALIZED"}}` - other order statuses can be queried, but orders with `status: "INITIALIZED"` are never returned * * For field support for filters and sorting, see [Orders: Supported Filters and Sorting](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/orders/supported-filters-and-sorting). * * To learn about working with _Search_ endpoints, see * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language), and * [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging). */ (options?: SearchOrdersOptions | undefined): Promise; } declare function createOrder$1(httpClient: HttpClient): CreateOrderSignature; interface CreateOrderSignature { /** * Creates an order. * * * The `createOrder()` function returns a Promise that resolves when the order is created. * * > **Notes:** * > + If an item is digital - `lineItems[i].itemType.preset: DIGITAL` - then `lineItems[i].digitalFile` must be provided. * > + If `lineItems[i].id` is passed, it must be either a valid GUID, or empty. * @param - Order info. * @returns Newly created order. */ (order: Order, options?: CreateOrderOptions | undefined): Promise; } declare function updateOrder$1(httpClient: HttpClient): UpdateOrderSignature; interface UpdateOrderSignature { /** * Updates an order. * * * The `updateOrder()` function returns a Promise that resolves when the specified order's information is updated. * * Currently, the following fields can be updated: * + `order.buyerInfo.email` * + `order.buyerLanguage` * + `order.weightUnit` * + `order.billingInfo.address` * + `order.billingInfo.contactDetails` * + `order.archived` * + `order.attributionSource` * + `order.seenByAHuman` * + `order.recipientInfo.address` * + `order.recipientInfo.contactDetails` * + `order.shippingInfo.logistics.shippingDestination.address` * + `order.shippingInfo.logistics.shippingDestination.contactDetails` * * To update a field's value, include the new value in the `order` object in the method parameters. * To remove a field's value, pass `null`. * * > **Note:** Removing `buyerInfo` or `contactDetails` fields results in an error. * * To update an order's payment status, use [`updatePaymentStatus( )`](https://www.wix.com/velo/reference/wix-ecom-backend/ordertransactions/updatepaymentstatus). * @param - Order ID. * @returns Newly created order. */ (_id: string | null, order: UpdateOrder): Promise; } declare function bulkUpdateOrders$1(httpClient: HttpClient): BulkUpdateOrdersSignature; interface BulkUpdateOrdersSignature { /** * Updates up to 100 orders. * * * The `bulkUpdateOrders()` function returns a Promise that resolves when the specified orders' information is updated. * * Currently, the following fields can be updated: * + `order.buyerInfo.email` * + `order.buyerLanguage` * + `order.weightUnit` * + `order.billingInfo.address` * + `order.billingInfo.contactDetails` * + `order.archived` * + `order.attributionSource` * + `order.seenByAHuman` * + `order.recipientInfo.address` * + `order.recipientInfo.contactDetails` * + `order.shippingInfo.logistics.shippingDestination.address` * + `order.shippingInfo.logistics.shippingDestination.contactDetails` * * To update a field's value, include the new value in the `orders.order` object in the method parameters. * To remove a field's value, pass `null`. * * > **Note:** Removing `buyerInfo` or `contactDetails` fields results in an error. * * To update an order's payment status, use [`updatePaymentStatus( )`](https://www.wix.com/velo/reference/wix-ecom-backend/ordertransactions/updatepaymentstatus). * @param - Orders to update. */ (orders: MaskedOrder[], options?: BulkUpdateOrdersOptions | undefined): Promise; } declare function cancelOrder$1(httpClient: HttpClient): CancelOrderSignature; interface CancelOrderSignature { /** * Cancels an order. * * * The `cancelOrder()` function returns a Promise that resolves when the specified order is canceled and the `order.status` field changes to `CANCELED`. * @param - Order ID. */ (_id: string, options?: CancelOrderOptions | undefined): Promise; } declare function bulkUpdateOrderTags$1(httpClient: HttpClient): BulkUpdateOrderTagsSignature; interface BulkUpdateOrderTagsSignature { /** * Synchronously update tags on multiple orders, by list of order ids * A tag that appears both in the list of assign and unassign tags, will be assigned * @param - IDs of orders to update tags for. */ (orderIds: string[], options?: BulkUpdateOrderTagsOptions | undefined): Promise; } declare const preparePaymentCollection: MaybeContext & typeof preparePaymentCollection$1>; declare const getPaymentCollectabilityStatus: MaybeContext & typeof getPaymentCollectabilityStatus$1>; declare const voidAuthorizedPayments: MaybeContext & typeof voidAuthorizedPayments$1>; declare const captureAuthorizedPayments: MaybeContext & typeof captureAuthorizedPayments$1>; declare const getOrder: MaybeContext & typeof getOrder$1>; declare const searchOrders: MaybeContext & typeof searchOrders$1>; declare const createOrder: MaybeContext & typeof createOrder$1>; declare const updateOrder: MaybeContext & typeof updateOrder$1>; declare const bulkUpdateOrders: MaybeContext & typeof bulkUpdateOrders$1>; declare const cancelOrder: MaybeContext & typeof cancelOrder$1>; declare const bulkUpdateOrderTags: MaybeContext & typeof bulkUpdateOrderTags$1>; /** */ declare const onOrderApproved: ReturnType>; /** */ declare const onOrderUpdated: ReturnType>; /** * Triggered when an order is canceled. * Learn more about [eCommerce webhook payload structure](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/orders/order-object-conversion#webhook-conversion-table). */ declare const onOrderCanceled: ReturnType>; /** * Triggered when an order is created. * Learn more about [webhook payload structure](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/orders/order-object-conversion#webhook-conversion-table). */ declare const onOrderCreated: ReturnType>; export { BulkUpdateOrderTagsOptions, BulkUpdateOrderTagsResponse, BulkUpdateOrderTagsResponseNonNullableFields, BulkUpdateOrdersOptions, BulkUpdateOrdersResponse, BulkUpdateOrdersResponseNonNullableFields, CancelOrderOptions, CancelOrderResponse, CancelOrderResponseNonNullableFields, CaptureAuthorizedPaymentsResponse, CaptureAuthorizedPaymentsResponseNonNullableFields, CreateOrderOptions, GetPaymentCollectabilityStatusResponse, GetPaymentCollectabilityStatusResponseNonNullableFields, MaskedOrder, Order, OrderNonNullableFields, PaymentCapture, PreparePaymentCollectionOptions, PreparePaymentCollectionResponse, PreparePaymentCollectionResponseNonNullableFields, Price, SearchOrdersOptions, SearchOrdersResponse, SearchOrdersResponseNonNullableFields, UpdateOrder, VoidAuthorizedPaymentsResponse, VoidAuthorizedPaymentsResponseNonNullableFields, bulkUpdateOrderTags, bulkUpdateOrders, cancelOrder, captureAuthorizedPayments, createOrder, getOrder, getPaymentCollectabilityStatus, onOrderApproved, onOrderCanceled, onOrderCreated, onOrderUpdated, preparePaymentCollection, searchOrders, updateOrder, voidAuthorizedPayments };