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, M as MarkOrderAsPaidResponse, e as MarkOrderAsPaidResponseNonNullableFields, B as BulkMarkOrdersAsPaidResponse, f as BulkMarkOrdersAsPaidResponseNonNullableFields, g as GetRefundabilityStatusResponse, h as GetRefundabilityStatusResponseNonNullableFields, i as PaymentCollectionCreatePaymentGatewayOrderOptions, C as CreatePaymentGatewayOrderResponse, j as CreatePaymentGatewayOrderResponseNonNullableFields, k as ChargeMembershipsOptions, l as PaymentRefund, T as TriggerRefundOptions, m as TriggerRefundResponse, n as TriggerRefundResponseNonNullableFields, V as VoidAuthorizedPaymentsResponse, o as VoidAuthorizedPaymentsResponseNonNullableFields, p as PaymentCapture, q as CaptureAuthorizedPaymentsResponse, r as CaptureAuthorizedPaymentsResponseNonNullableFields, O as Order, s as OrderNonNullableFields, S as SearchOrdersOptions, t as SearchOrdersResponse, u as SearchOrdersResponseNonNullableFields, v as CreateOrderOptions, U as UpdateOrder, w as MaskedOrder, x as BulkUpdateOrdersOptions, y as BulkUpdateOrdersResponse, z as BulkUpdateOrdersResponseNonNullableFields, A as CommitDeltasOptions, D as CommitDeltasResponse, E as CommitDeltasResponseNonNullableFields, F as UpdateOrderLineItemIdentifiers, H as UpdateOrderLineItem, I as UpdateOrderLineItemResponse, J as UpdateOrderLineItemResponseNonNullableFields, K as PublicActivity, L as AddActivityResponse, N as AddActivityResponseNonNullableFields, Q as UpdateActivityIdentifiers, R as UpdateActivityResponse, W as UpdateActivityResponseNonNullableFields, X as DeleteActivityIdentifiers, Y as DeleteActivityResponse, Z as DeleteActivityResponseNonNullableFields, _ as CancelOrderOptions, $ as CancelOrderResponse, a0 as CancelOrderResponseNonNullableFields, a1 as OrderStatus, a2 as UpdateOrderStatusResponse, a3 as UpdateOrderStatusResponseNonNullableFields, a4 as AggregateOrdersOptions, a5 as AggregateOrdersResponse, a6 as BulkUpdateOrderTagsOptions, a7 as BulkUpdateOrderTagsResponse, a8 as BulkUpdateOrderTagsResponseNonNullableFields } from './ecom-v1-order-orders.universal-ovFHIn7G.js'; export { dK as ActionEvent, ax as ActionType, bJ as Activity, bK as ActivityContentOneOf, an as ActivityType, gA as AddActivitiesRequest, gB as AddActivitiesResponse, gy as AddActivityRequest, gb as AddInternalActivityRequest, gx as AddInternalActivityResponse, cB as AdditionalFee, fF as AdditionalFeeDelta, fG as AdditionalFeeDeltaDeltaOneOf, dx as AdditionalFeeRefund, bl as Address, hr as AddressDescription, bn as AddressLocation, bk as AddressWithContact, h8 as AggregateOrdersRequest, dz as AggregatedRefundSummary, cR as App, eO as ApplicationError, bB as AppliedDiscount, fD as AppliedDiscountDelta, fE as AppliedDiscountDeltaDeltaOneOf, bC as AppliedDiscountDiscountSourceOneOf, fO as ArchiveOrderRequest, fP as ArchiveOrderResponse, ao as AttributionSource, di as AuthorizationActionFailureDetails, dh as AuthorizationCapture, au as AuthorizationCaptureStatus, dg as AuthorizationDetails, dj as AuthorizationVoid, av as AuthorizationVoidStatus, c5 as AuthorizedPaymentCaptured, c4 as AuthorizedPaymentCreated, c6 as AuthorizedPaymentVoided, cA as Balance, cz as BalanceSummary, hX as BaseEventMetadata, e0 as BatchOfTriggerReindexOrderRequest, hB as BigDecimalWrapper, eP as BulkActionMetadata, fS as BulkArchiveOrdersByFilterRequest, fT as BulkArchiveOrdersByFilterResponse, fQ as BulkArchiveOrdersRequest, fR as BulkArchiveOrdersResponse, gR as BulkMarkAsFulfilledByFilterRequest, gS as BulkMarkAsFulfilledByFilterResponse, gP as BulkMarkAsFulfilledRequest, gQ as BulkMarkAsFulfilledResponse, gX as BulkMarkAsUnfulfilledByFilterRequest, gY as BulkMarkAsUnfulfilledByFilterResponse, gV as BulkMarkAsUnfulfilledRequest, gW as BulkMarkAsUnfulfilledResponse, eL as BulkMarkOrdersAsPaidRequest, eM as BulkOrderResult, e7 as BulkSendBuyerPickupConfirmationEmailsRequest, e8 as BulkSendBuyerPickupConfirmationEmailsResponse, eb as BulkSendBuyerShippingConfirmationEmailsRequest, ec as BulkSendBuyerShippingConfirmationEmailsResponse, gZ as BulkSetBusinessLocationRequest, g_ as BulkSetBusinessLocationResponse, g$ as BulkSetBusinessLocationResult, fY as BulkUnArchiveOrdersByFilterRequest, fZ as BulkUnArchiveOrdersByFilterResponse, fW as BulkUnArchiveOrdersRequest, fX as BulkUnArchiveOrdersResponse, hc as BulkUpdateOrderTagsRequest, hd as BulkUpdateOrderTagsResult, fs as BulkUpdateOrdersRequest, bh as BuyerInfo, bi as BuyerInfoIdOneOf, f$ as BuyerInfoUpdate, f2 as CalculateRefundItemRequest, f4 as CalculateRefundItemResponse, f1 as CalculateRefundRequest, f3 as CalculateRefundResponse, hL as CalculatedTax, hK as CalculatedTaxes, hj as Cancel, gJ as CancelOrderRequest, f6 as CaptureAuthorizedPaymentsRequest, aW as CatalogReference, cx as ChannelInfo, ap as ChannelType, eV as ChargeMembershipsRequest, eY as ChargeMembershipsResponse, f7 as ChargeSavedPaymentMethodRequest, f8 as ChargeSavedPaymentMethodResponse, eU as ChargedBy, b0 as Color, ft as CommitDeltasRequest, fK as CommittedDiffs, fL as CommittedDiffsShippingUpdateInfoOneOf, hu as CommonAddress, hv as CommonAddressStreetOneOf, ht as Company, hi as Complete, fb as ContinueSideEffectsFlowInLegacyData, bD as Coupon, fm as CreateOrderRequest, fp as CreateOrderResponse, hV as CreateOrderResponseNonNullableFields, eT as CreatePaymentGatewayOrderRequest, cv as CreatedBy, cw as CreatedByStringOneOf, ck as CreditCardDetails, df as CreditCardPaymentMethodDetails, d1 as CursorPaging, fl as CursorPagingMetadata, fj as CursorSearch, fk as CursorSearchPagingMethodOneOf, d4 as Cursors, bL as CustomActivity, cy as CustomField, aQ as CustomFieldGroup, hQ as CustomFieldValue, ho as Customer, ha as DecrementData, h9 as DecrementItemsQuantityRequest, hb as DecrementItemsQuantityResponse, eF as DelayedCaptureSettings, gD as DeleteActivityRequest, dT as DeleteByFilterOperation, dS as DeleteByIdsOperation, br as DeliveryLogistics, bs as DeliveryLogisticsAddressOneOf, bv as DeliveryTimeSlot, aL as DeltaPaymentOptionType, hS as Deposit, aS as DepositType, aX as DescriptionLine, aZ as DescriptionLineDescriptionLineValueOneOf, a_ as DescriptionLineName, a9 as DescriptionLineType, aY as DescriptionLineValueOneOf, f9 as DiffmatokyPayload, b8 as DigitalFile, hI as Discount, hJ as DiscountOneDiscountTypeOneOf, al as DiscountReason, bG as DiscountRule, bH as DiscountRuleName, ak as DiscountType, dE as DomainEvent, dF as DomainEventBodyOneOf, gj as DownloadLinkSent, bR as DraftOrderChangesApplied, fH as DraftOrderCommitSettings, fu as DraftOrderDiffs, fx as DraftOrderDiffsBillingUpdateInfoOneOf, fw as DraftOrderDiffsBuyerUpdateInfoOneOf, fy as DraftOrderDiffsRecipientUpdateInfoOneOf, fv as DraftOrderDiffsShippingUpdateInfoOneOf, eG as Duration, aE as DurationUnit, hp as Email, gs as EmailEdited, d$ as Empty, dG as EntityCreatedEvent, dJ as EntityDeletedEvent, dI as EntityUpdatedEvent, fa as ErrorInformation, hY as EventMetadata, bg as ExtendedFields, cs as ExternalReceipt, dq as ExternalReceiptInfo, cV as ExternalUriMapping, b1 as FocalPoint, bb as FreeTrialPeriod, gq as FulfillerEmailSent, ag as FulfillmentStatus, gO as FulfillmentStatusUpdated, cC as FulfillmentStatusesAggregate, bo as FullAddressContactDetails, cO as GetMetasiteDataRequest, cP as GetMetasiteDataResponse, d5 as GetOrderForMetasiteRequest, d6 as GetOrderForMetasiteResponse, fd as GetOrderRequest, fe as GetOrderResponse, hU as GetOrderResponseNonNullableFields, eH as GetPaymentCollectabilityStatusRequest, eQ as GetRefundabilityStatusRequest, h6 as GetShipmentsRequest, h7 as GetShipmentsResponse, dl as GiftCardPaymentDetails, cb as GiftCardPaymentRefund, cU as HtmlApplication, hm as IdAndVersion, dM as IdentificationData, dN as IdentificationDataIdOneOf, fc as IndexingMessage, gc as InternalActivity, gd as InternalActivityContentOneOf, dQ as InternalDocument, dU as InternalDocumentUpdateByFilterOperation, dR as InternalDocumentUpdateOperation, cY as InternalQueryOrdersRequest, ff as InternalQueryOrdersResponse, dV as InternalUpdateExistingOperation, aM as InventoryAction, fI as InventoryUpdateDetails, go as InvoiceAdded, hy as InvoiceDates, hP as InvoiceDynamicPriceTotals, hn as InvoiceFields, gp as InvoiceSent, hl as InvoiceSentEvent, aT as InvoiceStatus, hN as InvoicesPayment, fC as ItemChangedDetails, eN as ItemMetadata, b5 as ItemTaxFullDetails, b3 as ItemType, aa as ItemTypeItemType, b4 as ItemTypeItemTypeDataOneOf, hH as ItemizedFee, ac as JurisdictionType, hA as LineItem, b_ as LineItemAmount, bU as LineItemChanges, fM as LineItemDelta, fN as LineItemDeltaDeltaOneOf, bI as LineItemDiscount, bQ as LineItemExchangeData, hE as LineItemMetaData, bW as LineItemPriceChange, bV as LineItemQuantityChange, am as LineItemQuantityChangeType, dw as LineItemRefund, dB as LineItemRefundSummary, hC as LineItemTax, b7 as LineItemTaxBreakdown, b6 as LineItemTaxInfo, gF as LineItemUpdate, hz as LineItems, d7 as ListOrderTransactionsForMetasiteRequest, d8 as ListOrderTransactionsForMetasiteResponse, hF as Locale, cF as Location, bd as LocationAndQuantity, b$ as ManagedAdditionalFee, bY as ManagedDiscount, bX as ManagedLineItem, aI as ManuallyRefundableReason, gM as MarkAsFulfilledRequest, gN as MarkAsFulfilledResponse, gT as MarkAsUnfulfilledRequest, gU as MarkAsUnfulfilledResponse, eK as MarkOrderAsPaidRequest, gH as MarkOrderAsSeenByHumanRequest, gI as MarkOrderAsSeenByHumanResponse, g9 as MaskedOrderLineItem, eW as MembershipChargeItem, dn as MembershipName, dm as MembershipPaymentDetails, cc as MembershipPaymentRefund, ay as MembershipPaymentStatus, bM as MerchantComment, bE as MerchantDiscount, bF as MerchantDiscountMerchantDiscountReasonOneOf, dL as MessageEnvelope, hO as MetaData, cQ as MetaSite, cT as MetaTag, ar as Namespace, bP as NewExchangeOrderCreated, aH as NonRefundableReason, aK as OrderApprovalStrategy, cJ as OrderApproved, hZ as OrderApprovedEnvelope, gi as OrderCanceled, h$ as OrderCanceledEnvelope, gK as OrderCanceledEventOrderCanceled, bS as OrderChange, bT as OrderChangeValueOneOf, fo as OrderCreateNotifications, i0 as OrderCreatedEnvelope, bO as OrderCreatedFromExchange, fn as OrderCreationSettings, fJ as OrderDeltasCommitted, gg as OrderFulfilled, cM as OrderItemsRestocked, aU as OrderLineItem, fB as OrderLineItemChangedDetails, gh as OrderNotFulfilled, gf as OrderPaid, gu as OrderPartiallyPaid, gv as OrderPending, ge as OrderPlaced, bN as OrderRefunded, gw as OrderRejected, cL as OrderRejectedEventOrderRejected, bA as OrderTaxBreakdown, bz as OrderTaxInfo, d9 as OrderTransactions, h_ as OrderUpdatedEnvelope, cK as OrdersExperiments, da as Payment, cl as PaymentCanceled, cm as PaymentCanceledPaymentDetailsOneOf, aF as PaymentCollectabilityStatus, cn as PaymentDeclined, co as PaymentDeclinedPaymentDetailsOneOf, ab as PaymentOptionType, db as PaymentPaymentDetailsOneOf, cg as PaymentPending, ch as PaymentPendingPaymentDetailsOneOf, dc as PaymentReceiptInfoOneOf, ce as PaymentRefundFailed, cd as PaymentRefunded, af as PaymentStatus, cI as PaymentStatusUpdated, hM as Payments, hs as Phone, b2 as PhysicalProperties, bu as PickupAddress, bt as PickupDetails, aj as PickupMethod, gt as PickupReadyEmailSent, aN as Placement, a$ as PlainTextValue, d0 as PlatformPaging, d3 as PlatformPagingMetadata, cZ as PlatformQuery, c_ as PlatformQueryPagingMethodOneOf, eD as PreparePaymentCollectionRequest, ev as PreviewBuyerConfirmationEmailRequest, ew as PreviewBuyerConfirmationEmailResponse, et as PreviewBuyerPaymentsReceivedEmailRequest, eu as PreviewBuyerPaymentsReceivedEmailResponse, ex as PreviewBuyerPickupConfirmationEmailRequest, ey as PreviewBuyerPickupConfirmationEmailResponse, ep as PreviewCancelEmailRequest, eq as PreviewCancelEmailResponse, er as PreviewCancelRefundEmailRequest, es as PreviewCancelRefundEmailResponse, el as PreviewEmailByTypeRequest, em as PreviewEmailByTypeResponse, aC as PreviewEmailType, en as PreviewRefundEmailRequest, eo as PreviewRefundEmailResponse, eB as PreviewResendDownloadLinksEmailRequest, eC as PreviewResendDownloadLinksEmailResponse, ez as PreviewShippingConfirmationEmailRequest, eA as PreviewShippingConfirmationEmailResponse, bc as PriceDescription, bj as PriceSummary, aV as ProductName, gz as PublicActivityContentOneOf, fg as QueryOrderRequest, fh as QueryOrderResponse, cX as QueryOrdersForMetasiteRequest, d2 as QueryOrdersForMetasiteResponse, hq as QuotesAddress, aw as Reason, cp as ReceiptCreated, cq as ReceiptCreatedReceiptInfoOneOf, ct as ReceiptSent, cu as ReceiptSentReceiptInfoOneOf, eI as RecordManuallyCollectedPaymentRequest, eJ as RecordManuallyCollectedPaymentResponse, eE as RedirectUrls, dr as Refund, du as RefundDetails, c7 as RefundInitiated, dv as RefundItem, dA as RefundItemsBreakdown, e_ as RefundSideEffects, az as RefundStatus, dt as RefundStatusInfo, ds as RefundTransaction, eR as Refundability, eS as RefundabilityAdditionalRefundabilityInfoOneOf, aG as RefundableStatus, cf as RefundedAsStoreCredit, c8 as RefundedPayment, c9 as RefundedPaymentKindOneOf, ci as RegularPayment, dd as RegularPaymentDetails, de as RegularPaymentDetailsPaymentMethodDetailsOneOf, cj as RegularPaymentPaymentMethodDetailsOneOf, ca as RegularPaymentRefund, hk as Reschedule, e$ as RestockInfo, f0 as RestockItem, aJ as RestockType, dH as RestoreInfo, c3 as SavedPaymentMethod, aD as ScheduledAction, fi as SearchOrdersRequest, e1 as SendBuyerConfirmationEmailRequest, e2 as SendBuyerConfirmationEmailResponse, e3 as SendBuyerPaymentsReceivedEmailRequest, e4 as SendBuyerPaymentsReceivedEmailResponse, e5 as SendBuyerPickupConfirmationEmailRequest, e6 as SendBuyerPickupConfirmationEmailResponse, e9 as SendBuyerShippingConfirmationEmailRequest, ea as SendBuyerShippingConfirmationEmailResponse, ef as SendCancelRefundEmailRequest, eg as SendCancelRefundEmailResponse, ed as SendMerchantOrderReceivedNotificationRequest, ee as SendMerchantOrderReceivedNotificationResponse, ej as SendMerchantOrderReceivedPushRequest, ek as SendMerchantOrderReceivedPushResponse, eh as SendRefundEmailRequest, ei as SendRefundEmailResponse, cS as SeoData, eX as ServiceProperties, gr as ShippingAddressEdited, gn as ShippingConfirmationEmailSent, c2 as ShippingInformation, c1 as ShippingInformationChange, bw as ShippingPrice, dy as ShippingRefund, bx as ShippingRegion, cH as SnapshotMessage, as as SortOrder, c$ as Sorting, hD as Source, aP as SourceType, hx as StandardDetails, aq as State, bm as StreetAddress, hw as Subdivision, aO as SubdivisionType, ad as SubscriptionFrequency, b9 as SubscriptionInfo, ba as SubscriptionSettings, cE as TagList, cD as Tags, he as Task, hg as TaskAction, hh as TaskActionActionOneOf, hf as TaskKey, by as TaxSummary, be as TaxableAddress, bf as TaxableAddressTaxableAddressDataOneOf, ae as TaxableAddressType, hG as TotalPrice, c0 as TotalPriceChange, gm as TrackingLinkAdded, gk as TrackingNumberAdded, gl as TrackingNumberEdited, at as TransactionStatus, bZ as TranslatedValue, eZ as TriggerRefundRequest, cG as TriggerReindexOrderRequest, dZ as TriggerReindexRequest, d_ as TriggerReindexResponse, hT as TriggerSideEffectsFromLegacyData, fU as UnArchiveOrderRequest, fV as UnArchiveOrderResponse, gC as UpdateActivityRequest, g5 as UpdateBillingContactDetailsRequest, g6 as UpdateBillingContactDetailsResponse, g1 as UpdateBuyerEmailRequest, g2 as UpdateBuyerEmailResponse, f_ as UpdateBuyerInfoRequest, g0 as UpdateBuyerInfoResponse, dO as UpdateInternalDocumentsEvent, dP as UpdateInternalDocumentsEventOperationOneOf, gE as UpdateLineItemsDescriptionLinesRequest, gG as UpdateLineItemsDescriptionLinesResponse, g7 as UpdateOrderLineItemRequest, g8 as UpdateOrderLineItemsRequest, ga as UpdateOrderLineItemsResponse, fq as UpdateOrderRequest, fr as UpdateOrderResponse, hW as UpdateOrderResponseNonNullableFields, g3 as UpdateOrderShippingAddressRequest, g4 as UpdateOrderShippingAddressResponse, gL as UpdateOrderStatusRequest, dC as UpsertRefundRequest, dD as UpsertRefundResponse, cW as UserDataResponse, h2 as V1BulkMarkOrdersAsPaidRequest, h3 as V1BulkMarkOrdersAsPaidResponse, h4 as V1CreatePaymentGatewayOrderRequest, h5 as V1CreatePaymentGatewayOrderResponse, fz as V1LineItemDelta, fA as V1LineItemDeltaDeltaOneOf, h0 as V1MarkOrderAsPaidRequest, h1 as V1MarkOrderAsPaidResponse, cN as V1RestockItem, dk as V1ScheduledAction, bq as V1ShippingInformation, hR as Value, aR as ValueType, bp as VatId, ai as VatType, dX as VersionedDeleteByIdsOperation, dY as VersionedDocumentId, dW as VersionedDocumentUpdateOperation, aB as VersioningMode, f5 as VoidAuthorizedPaymentsRequest, aA as WebhookIdentityType, ah as WeightUnit, cr as WixReceipt, dp as WixReceiptInfo } from './ecom-v1-order-orders.universal-ovFHIn7G.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; } /** @internal */ declare function recordManuallyCollectedPayment$1(httpClient: HttpClient): RecordManuallyCollectedPaymentSignature; interface RecordManuallyCollectedPaymentSignature { /** * Records and approves new manual payment with provided custom amount on given order. * Existing pending payments are ignored. * Custom amount is expected to be less or equal remaining amount to be paid on order (affected by approved payments, refunds and gift card payments) * @param - Order ID. * @param - Amount to be recorded as approved manual payment for given order */ (orderId: string, amount: Price): Promise; } /** @internal */ declare function paymentCollectionMarkOrderAsPaid$1(httpClient: HttpClient): PaymentCollectionMarkOrderAsPaidSignature; interface PaymentCollectionMarkOrderAsPaidSignature { /** * Marks the order as paid. `order.paymentStatus` field *eventually* changes to `PAID`. * In case the order already has an offline payment transaction associated with it * (usually when manual payment method is chosen at checkout) - This transaction will become approved. * In case the order has no payment transactions associated with it * (usually when the item is set to be paid offline after checkout or when an order is created from the backoffice) - A payment transaction * will be created and approved. * @param - Ecom order ID. */ (ecomOrderId: string): Promise; } /** @internal */ declare function paymentCollectionBulkMarkOrdersAsPaid$1(httpClient: HttpClient): PaymentCollectionBulkMarkOrdersAsPaidSignature; interface PaymentCollectionBulkMarkOrdersAsPaidSignature { /** * Marks multiple orders as paid. `order.paymentStatus` field *eventually* changes to `PAID`. * @param - IDs of orders to mark as paid. */ (ecomOrderIds: string[]): Promise; } /** @internal */ declare function getRefundabilityStatus$1(httpClient: HttpClient): GetRefundabilityStatusSignature; interface GetRefundabilityStatusSignature { /** * Checks whether this order can be refunded. * @param - Order ID. */ (ecomOrderId: string): Promise; } /** @internal */ declare function paymentCollectionCreatePaymentGatewayOrder$1(httpClient: HttpClient): PaymentCollectionCreatePaymentGatewayOrderSignature; interface PaymentCollectionCreatePaymentGatewayOrderSignature { /** * Call this endpoint to create an order in the payment gateway system. The amount of the order would be either: * 1. An explicit amount provided in the request, or; * 2. If an explicit amount is not provided - the remaining amount to complete the payment of that eCom order. * As a result, an ID of the created payment gateway order would be returned. * You can then use Wix Payments APIs to approve that order or collect payment, which will eventually change the eCom order state (e.g mark it as paid). * @param - Ecom order ID. */ (ecomOrderId: string, options?: PaymentCollectionCreatePaymentGatewayOrderOptions | undefined): Promise; } /** @internal */ declare function chargeMemberships$1(httpClient: HttpClient): ChargeMembershipsSignature; interface ChargeMembershipsSignature { /** * @param - Order ID. * @param - The member id. Do not attempt to get it from the request context, since in some cases the caller is not a member * but a user which is using the membership on behalf of the a member */ (ecomOrderId: string, memberId: string, options?: ChargeMembershipsOptions | undefined): Promise; } /** @internal */ declare function triggerRefund$1(httpClient: HttpClient): TriggerRefundSignature; interface TriggerRefundSignature { /** * Calls corresponding payment providers and creates refund transactions for requested payments. * Updates order transactions based on refund results. * For requested payments with `TriggerRefundRequest.payments.external_refund = true` will not call payment providers and * will only update order transactions. * @param - The order this refund related to * @param - Refund operations information */ (ecomOrderId: string, payments: PaymentRefund[], options?: TriggerRefundOptions | undefined): 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; } /** @internal */ declare function commitDeltas$1(httpClient: HttpClient): CommitDeltasSignature; interface CommitDeltasSignature { /** @param - Order id to be updated */ (_id: string, options?: CommitDeltasOptions | undefined): Promise; } /** @internal */ declare function updateOrderLineItem$1(httpClient: HttpClient): UpdateOrderLineItemSignature; interface UpdateOrderLineItemSignature { /** @deprecated */ (identifiers: UpdateOrderLineItemIdentifiers, lineItem: UpdateOrderLineItem): Promise; } /** @internal */ declare function addActivity$1(httpClient: HttpClient): AddActivitySignature; interface AddActivitySignature { /** * Adds a merchant comment to an order. * > **Note:** Activities with type CustomActivity not supported * @param - Order ID. * @param - Activity info. * @deprecated */ (_id: string, activity: PublicActivity): Promise; } /** @internal */ declare function updateActivity$1(httpClient: HttpClient): UpdateActivitySignature; interface UpdateActivitySignature { /** * Updates an order's activity. * @param - Activity info. */ (identifiers: UpdateActivityIdentifiers, activity: PublicActivity): Promise; } /** @internal */ declare function deleteActivity$1(httpClient: HttpClient): DeleteActivitySignature; interface DeleteActivitySignature { /** * Delete's an order's activity. * * Only custom activities and merchant comments can be deleted. */ (identifiers: DeleteActivityIdentifiers): 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; } /** @internal */ declare function updateOrderStatus$1(httpClient: HttpClient): UpdateOrderStatusSignature; interface UpdateOrderStatusSignature { /** * Updates order status. * * >CANCELED and REJECTED are final statuses. Update from either of those will fail. * >Updates into INITIALIZED are not supported. * * Approving order: * APPROVED status can be set while order has one of [INITIALIZED, PENDING] statuses. * * Approving an order which was created with CreateOrderRequest.settings.order_approval_strategy = PAYMENT_METHOD_SAVED * will cause an error. * * Setting PENDING status: * Only orders in INITIALIZED status can be updated into PENDING. * @param - Order ID. * @param - New order status. */ (orderId: string, status: OrderStatus): Promise; } /** @internal */ declare function aggregateOrders$1(httpClient: HttpClient): AggregateOrdersSignature; interface AggregateOrdersSignature { /** */ (options?: AggregateOrdersOptions | 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>; /** @internal */ declare const recordManuallyCollectedPayment: MaybeContext & typeof recordManuallyCollectedPayment$1>; /** @internal */ declare const paymentCollectionMarkOrderAsPaid: MaybeContext & typeof paymentCollectionMarkOrderAsPaid$1>; /** @internal */ declare const paymentCollectionBulkMarkOrdersAsPaid: MaybeContext & typeof paymentCollectionBulkMarkOrdersAsPaid$1>; /** @internal */ declare const getRefundabilityStatus: MaybeContext & typeof getRefundabilityStatus$1>; /** @internal */ declare const paymentCollectionCreatePaymentGatewayOrder: MaybeContext & typeof paymentCollectionCreatePaymentGatewayOrder$1>; /** @internal */ declare const chargeMemberships: MaybeContext & typeof chargeMemberships$1>; /** @internal */ declare const triggerRefund: MaybeContext & typeof triggerRefund$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>; /** @internal */ declare const commitDeltas: MaybeContext & typeof commitDeltas$1>; /** @internal */ declare const updateOrderLineItem: MaybeContext & typeof updateOrderLineItem$1>; /** @internal */ declare const addActivity: MaybeContext & typeof addActivity$1>; /** @internal */ declare const updateActivity: MaybeContext & typeof updateActivity$1>; /** @internal */ declare const deleteActivity: MaybeContext & typeof deleteActivity$1>; declare const cancelOrder: MaybeContext & typeof cancelOrder$1>; /** @internal */ declare const updateOrderStatus: MaybeContext & typeof updateOrderStatus$1>; /** @internal */ declare const aggregateOrders: MaybeContext & typeof aggregateOrders$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 { AddActivityResponse, AddActivityResponseNonNullableFields, AggregateOrdersOptions, AggregateOrdersResponse, BulkMarkOrdersAsPaidResponse, BulkMarkOrdersAsPaidResponseNonNullableFields, BulkUpdateOrderTagsOptions, BulkUpdateOrderTagsResponse, BulkUpdateOrderTagsResponseNonNullableFields, BulkUpdateOrdersOptions, BulkUpdateOrdersResponse, BulkUpdateOrdersResponseNonNullableFields, CancelOrderOptions, CancelOrderResponse, CancelOrderResponseNonNullableFields, CaptureAuthorizedPaymentsResponse, CaptureAuthorizedPaymentsResponseNonNullableFields, ChargeMembershipsOptions, CommitDeltasOptions, CommitDeltasResponse, CommitDeltasResponseNonNullableFields, CreateOrderOptions, CreatePaymentGatewayOrderResponse, CreatePaymentGatewayOrderResponseNonNullableFields, DeleteActivityIdentifiers, DeleteActivityResponse, DeleteActivityResponseNonNullableFields, GetPaymentCollectabilityStatusResponse, GetPaymentCollectabilityStatusResponseNonNullableFields, GetRefundabilityStatusResponse, GetRefundabilityStatusResponseNonNullableFields, MarkOrderAsPaidResponse, MarkOrderAsPaidResponseNonNullableFields, MaskedOrder, Order, OrderNonNullableFields, OrderStatus, PaymentCapture, PaymentCollectionCreatePaymentGatewayOrderOptions, PaymentRefund, PreparePaymentCollectionOptions, PreparePaymentCollectionResponse, PreparePaymentCollectionResponseNonNullableFields, Price, PublicActivity, SearchOrdersOptions, SearchOrdersResponse, SearchOrdersResponseNonNullableFields, TriggerRefundOptions, TriggerRefundResponse, TriggerRefundResponseNonNullableFields, UpdateActivityIdentifiers, UpdateActivityResponse, UpdateActivityResponseNonNullableFields, UpdateOrder, UpdateOrderLineItem, UpdateOrderLineItemIdentifiers, UpdateOrderLineItemResponse, UpdateOrderLineItemResponseNonNullableFields, UpdateOrderStatusResponse, UpdateOrderStatusResponseNonNullableFields, VoidAuthorizedPaymentsResponse, VoidAuthorizedPaymentsResponseNonNullableFields, addActivity, aggregateOrders, bulkUpdateOrderTags, bulkUpdateOrders, cancelOrder, captureAuthorizedPayments, chargeMemberships, commitDeltas, createOrder, deleteActivity, getOrder, getPaymentCollectabilityStatus, getRefundabilityStatus, onOrderApproved, onOrderCanceled, onOrderCreated, onOrderUpdated, paymentCollectionBulkMarkOrdersAsPaid, paymentCollectionCreatePaymentGatewayOrder, paymentCollectionMarkOrderAsPaid, preparePaymentCollection, recordManuallyCollectedPayment, searchOrders, triggerRefund, updateActivity, updateOrder, updateOrderLineItem, updateOrderStatus, voidAuthorizedPayments };