@wix/auto_sdk_ecom_orders 1.0.32 → 1.0.34
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/{cjs/src/ecom-v1-order-orders.types.d.ts → ecom-v1-order-orders.universal-UflOyGzD.d.mts} +1109 -637
- package/build/{es/src/ecom-v1-order-orders.types.d.ts → ecom-v1-order-orders.universal-UflOyGzD.d.ts} +1109 -637
- package/build/index.d.mts +212 -0
- package/build/index.d.ts +212 -0
- package/build/index.js +3504 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +3401 -0
- package/build/index.mjs.map +1 -0
- package/build/{cjs/src/ecom-v1-order-orders.universal.d.ts → internal/ecom-v1-order-orders.universal-DkzM7BQ-.d.mts} +957 -1005
- package/build/{es/src/ecom-v1-order-orders.universal.d.ts → internal/ecom-v1-order-orders.universal-DkzM7BQ-.d.ts} +957 -1005
- package/build/internal/index.d.mts +391 -0
- package/build/internal/index.d.ts +391 -0
- package/build/internal/index.js +3504 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +3401 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +3192 -0
- package/build/internal/meta.d.ts +3192 -0
- package/build/internal/meta.js +1941 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +1890 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +3192 -0
- package/build/meta.d.ts +3192 -0
- package/build/meta.js +1941 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +1890 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-orders.context.d.ts +0 -34
- package/build/cjs/src/ecom-v1-order-orders.context.js +0 -117
- package/build/cjs/src/ecom-v1-order-orders.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-orders.http.d.ts +0 -200
- package/build/cjs/src/ecom-v1-order-orders.http.js +0 -1610
- package/build/cjs/src/ecom-v1-order-orders.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-orders.meta.d.ts +0 -78
- package/build/cjs/src/ecom-v1-order-orders.meta.js +0 -503
- package/build/cjs/src/ecom-v1-order-orders.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-orders.public.d.ts +0 -189
- package/build/cjs/src/ecom-v1-order-orders.public.js +0 -382
- package/build/cjs/src/ecom-v1-order-orders.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-orders.types.js +0 -652
- package/build/cjs/src/ecom-v1-order-orders.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-orders.universal.js +0 -2322
- package/build/cjs/src/ecom-v1-order-orders.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/ecom-v1-order-orders.context.d.ts +0 -34
- package/build/es/src/ecom-v1-order-orders.context.js +0 -62
- package/build/es/src/ecom-v1-order-orders.context.js.map +0 -1
- package/build/es/src/ecom-v1-order-orders.http.d.ts +0 -200
- package/build/es/src/ecom-v1-order-orders.http.js +0 -1582
- package/build/es/src/ecom-v1-order-orders.http.js.map +0 -1
- package/build/es/src/ecom-v1-order-orders.meta.d.ts +0 -78
- package/build/es/src/ecom-v1-order-orders.meta.js +0 -452
- package/build/es/src/ecom-v1-order-orders.meta.js.map +0 -1
- package/build/es/src/ecom-v1-order-orders.public.d.ts +0 -189
- package/build/es/src/ecom-v1-order-orders.public.js +0 -302
- package/build/es/src/ecom-v1-order-orders.public.js.map +0 -1
- package/build/es/src/ecom-v1-order-orders.types.js +0 -648
- package/build/es/src/ecom-v1-order-orders.types.js.map +0 -1
- package/build/es/src/ecom-v1-order-orders.universal.js +0 -2270
- package/build/es/src/ecom-v1-order-orders.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-order-orders.context.d.ts +0 -62
- package/build/internal/cjs/src/ecom-v1-order-orders.context.js +0 -117
- package/build/internal/cjs/src/ecom-v1-order-orders.context.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-order-orders.http.d.ts +0 -200
- package/build/internal/cjs/src/ecom-v1-order-orders.http.js +0 -1610
- package/build/internal/cjs/src/ecom-v1-order-orders.http.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-order-orders.meta.d.ts +0 -78
- package/build/internal/cjs/src/ecom-v1-order-orders.meta.js +0 -503
- package/build/internal/cjs/src/ecom-v1-order-orders.meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-order-orders.public.d.ts +0 -340
- package/build/internal/cjs/src/ecom-v1-order-orders.public.js +0 -382
- package/build/internal/cjs/src/ecom-v1-order-orders.public.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-order-orders.types.d.ts +0 -6096
- package/build/internal/cjs/src/ecom-v1-order-orders.types.js +0 -652
- package/build/internal/cjs/src/ecom-v1-order-orders.types.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-order-orders.universal.d.ts +0 -7782
- package/build/internal/cjs/src/ecom-v1-order-orders.universal.js +0 -2322
- package/build/internal/cjs/src/ecom-v1-order-orders.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/ecom-v1-order-orders.context.d.ts +0 -62
- package/build/internal/es/src/ecom-v1-order-orders.context.js +0 -62
- package/build/internal/es/src/ecom-v1-order-orders.context.js.map +0 -1
- package/build/internal/es/src/ecom-v1-order-orders.http.d.ts +0 -200
- package/build/internal/es/src/ecom-v1-order-orders.http.js +0 -1582
- package/build/internal/es/src/ecom-v1-order-orders.http.js.map +0 -1
- package/build/internal/es/src/ecom-v1-order-orders.meta.d.ts +0 -78
- package/build/internal/es/src/ecom-v1-order-orders.meta.js +0 -452
- package/build/internal/es/src/ecom-v1-order-orders.meta.js.map +0 -1
- package/build/internal/es/src/ecom-v1-order-orders.public.d.ts +0 -340
- package/build/internal/es/src/ecom-v1-order-orders.public.js +0 -302
- package/build/internal/es/src/ecom-v1-order-orders.public.js.map +0 -1
- package/build/internal/es/src/ecom-v1-order-orders.types.d.ts +0 -6096
- package/build/internal/es/src/ecom-v1-order-orders.types.js +0 -648
- package/build/internal/es/src/ecom-v1-order-orders.types.js.map +0 -1
- package/build/internal/es/src/ecom-v1-order-orders.universal.d.ts +0 -7782
- package/build/internal/es/src/ecom-v1-order-orders.universal.js +0 -2270
- package/build/internal/es/src/ecom-v1-order-orders.universal.js.map +0 -1
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { P as Price, a as PreparePaymentCollectionOptions, b as PreparePaymentCollectionResponse, G as GetPaymentCollectabilityStatusResponse, V as VoidAuthorizedPaymentsResponse, c as PaymentCapture, C as CaptureAuthorizedPaymentsResponse, O as Order, S as SearchOrdersOptions, d as SearchOrdersResponse, e as CreateOrderOptions, U as UpdateOrder, M as MaskedOrder, B as BulkUpdateOrdersOptions, f as BulkUpdateOrdersResponse, g as CancelOrderOptions, h as CancelOrderResponse, i as BulkUpdateOrderTagsOptions, j as BulkUpdateOrderTagsResponse } from './ecom-v1-order-orders.universal-UflOyGzD.mjs';
|
|
3
|
+
export { dn as ActionEvent, X as ActionType, ba as Activity, bb as ActivityContentOneOf, s as ActivityType, gc as AddActivitiesRequest, gd as AddActivitiesResponse, g8 as AddActivityRequest, gb as AddActivityResponse, fN as AddInternalActivityRequest, g7 as AddInternalActivityResponse, c2 as AdditionalFee, fd as AdditionalFeeDelta, fe as AdditionalFeeDeltaDeltaOneOf, cJ as AdditionalFeeRefund, aO as Address, h7 as AddressDescription, aQ as AddressLocation, aN as AddressWithContact, A as AdjustmentType, hO as AggregateOrdersOptions, gP as AggregateOrdersRequest, gQ as AggregateOrdersResponse, d6 as AggregatedRefundSummary, a0 as AnimationDetection, e9 as App, cq as ApplicationError, b2 as AppliedDiscount, fb as AppliedDiscountDelta, fc as AppliedDiscountDeltaDeltaOneOf, b3 as AppliedDiscountDiscountSourceOneOf, fn as ArchiveOrderRequest, fo as ArchiveOrderResponse, t as AttributionSource, cY as AuthorizationActionFailureDetails, cX as AuthorizationCapture, H as AuthorizationCaptureStatus, cW as AuthorizationDetails, cZ as AuthorizationVoid, K as AuthorizationVoidStatus, by as AuthorizedPaymentCaptured, bx as AuthorizedPaymentCreated, bz as AuthorizedPaymentVoided, c1 as Balance, c0 as BalanceSummary, hA as BaseEventMetadata, eI as BatchOfTriggerReindexOrderRequest, hh as BigDecimalWrapper, aC as BillingAdjustment, aD as BillingAdjustmentPriceSummary, cr 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, cm as BulkMarkOrdersAsPaidRequest, cn as BulkMarkOrdersAsPaidResponse, co as BulkOrderResult, dA as BulkSendBuyerPickupConfirmationEmailsRequest, dB as BulkSendBuyerPickupConfirmationEmailsResponse, dE as BulkSendBuyerShippingConfirmationEmailsRequest, dF 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, aJ as BuyerInfo, aK as BuyerInfoIdOneOf, fA as BuyerInfoUpdate, da as CalculateRefundItemRequest, dc as CalculateRefundItemResponse, d9 as CalculateRefundRequest, db as CalculateRefundResponse, hr as CalculatedTax, hq as CalculatedTaxes, g$ as Cancel, gn as CancelOrderRequest, de as CaptureAuthorizedPaymentsRequest, ai as CatalogReference, b_ as ChannelInfo, u as ChannelType, hH as ChargeMembershipsOptions, cz as ChargeMembershipsRequest, cD as ChargeMembershipsResponse, df as ChargeSavedPaymentMethodRequest, dg as ChargeSavedPaymentMethodResponse, cx as ChargedBy, ao as Color, hJ as CommitDeltasOptions, f1 as CommitDeltasRequest, fh as CommitDeltasResponse, fj as CommittedDiffs, fk as CommittedDiffsShippingUpdateInfoOneOf, ha as CommonAddress, hb as CommonAddressStreetOneOf, h9 as Company, g_ as Complete, eL as ContinueSideEffectsFlowInLegacyData, b4 as Coupon, eW as CreateOrderRequest, eZ as CreateOrderResponse, cw as CreatePaymentGatewayOrderRequest, cy as CreatePaymentGatewayOrderResponse, bY as CreatedBy, bZ as CreatedByStringOneOf, bN as CreditCardDetails, cV as CreditCardPaymentMethodDetails, aL as CurrencyConversionDetails, el as CursorPaging, eV as CursorPagingMetadata, eT as CursorSearch, eU as CursorSearchPagingMethodOneOf, eo as Cursors, bc as CustomActivity, b$ as CustomField, ac as CustomFieldGroup, hw as CustomFieldValue, h4 as Customer, gS as DecrementData, gR as DecrementItemsQuantityRequest, gT as DecrementItemsQuantityResponse, ce as DelayedCaptureSettings, hN as DeleteActivityIdentifiers, gg as DeleteActivityRequest, gh as DeleteActivityResponse, eA as DeleteByFilterOperation, ez as DeleteByIdsOperation, aU as DeliveryLogistics, aV as DeliveryLogisticsAddressOneOf, aY as DeliveryTimeSlot, a7 as DeltaPaymentOptionType, hy as Deposit, ae as DepositType, aj as DescriptionLine, al as DescriptionLineDescriptionLineValueOneOf, am as DescriptionLineName, D as DescriptionLineType, ak as DescriptionLineValueOneOf, eJ as DiffmatokyPayload, aw as DigitalFile, ho as Discount, hp as DiscountOneDiscountTypeOneOf, r as DiscountReason, b7 as DiscountRule, b8 as DiscountRuleName, q as DiscountType, dh as DomainEvent, di as DomainEventBodyOneOf, fV as DownloadLinkSent, bi as DraftOrderChangesApplied, ff as DraftOrderCommitSettings, f2 as DraftOrderDiffs, f5 as DraftOrderDiffsBillingUpdateInfoOneOf, f4 as DraftOrderDiffsBuyerUpdateInfoOneOf, f6 as DraftOrderDiffsRecipientUpdateInfoOneOf, f3 as DraftOrderDiffsShippingUpdateInfoOneOf, cf as Duration, w as DurationUnit, h5 as Email, g2 as EmailEdited, dp as Empty, dj as EntityCreatedEvent, dm as EntityDeletedEvent, dl as EntityUpdatedEvent, eK as ErrorInformation, hB as EventMetadata, aI as ExtendedFields, bV as ExternalReceipt, d2 as ExternalReceiptInfo, ed as ExternalUriMapping, ap as FocalPoint, aB as FreeTrialPeriod, g0 as FulfillerEmailSent, F as FulfillmentStatus, gt as FulfillmentStatusUpdated, c3 as FulfillmentStatusesAggregate, aR as FullAddressContactDetails, e6 as GetMetasiteDataRequest, e7 as GetMetasiteDataResponse, ep as GetOrderForMetasiteRequest, eq as GetOrderForMetasiteResponse, eN as GetOrderRequest, eO as GetOrderResponse, cg as GetPaymentCollectabilityStatusRequest, cs as GetRefundabilityStatusRequest, ct as GetRefundabilityStatusResponse, gN as GetShipmentsRequest, gO as GetShipmentsResponse, c$ as GiftCardPaymentDetails, bE as GiftCardPaymentRefund, ec as HtmlApplication, h2 as IdAndVersion, dr as IdentificationData, ds as IdentificationDataIdOneOf, dt as ImageContent, eM as IndexingMessage, fO as InternalActivity, fP as InternalActivityContentOneOf, ex as InternalDocument, eB as InternalDocumentUpdateByFilterOperation, ey as InternalDocumentUpdateOperation, eg as InternalQueryOrdersRequest, eP as InternalQueryOrdersResponse, eC as InternalUpdateExistingOperation, a8 as InventoryAction, fg as InventoryUpdateDetails, f_ as InvoiceAdded, he as InvoiceDates, hv as InvoiceDynamicPriceTotals, h3 as InvoiceFields, f$ as InvoiceSent, h1 as InvoiceSentEvent, af as InvoiceStatus, ht as InvoicesPayment, fa as ItemChangedDetails, cp as ItemMetadata, at as ItemTaxFullDetails, ar as ItemType, I as ItemTypeItemType, as as ItemTypeItemTypeDataOneOf, hn as ItemizedFee, J as JurisdictionType, hg as LineItem, br as LineItemAmount, bl as LineItemChanges, fl as LineItemDelta, fm as LineItemDeltaDeltaOneOf, b9 as LineItemDiscount, bh as LineItemExchangeData, hk as LineItemMetaData, bn as LineItemPriceChange, bm as LineItemQuantityChange, L as LineItemQuantityChangeType, cI as LineItemRefund, d8 as LineItemRefundSummary, hi as LineItemTax, av as LineItemTaxBreakdown, au as LineItemTaxInfo, gj as LineItemUpdate, hf as LineItems, er as ListOrderTransactionsForMetasiteRequest, es as ListOrderTransactionsForMetasiteResponse, hl as Locale, c6 as Location, aF as LocationAndQuantity, bs as ManagedAdditionalFee, bp as ManagedDiscount, bo as ManagedLineItem, y as ManuallyRefundableReason, gr as MarkAsFulfilledRequest, gs as MarkAsFulfilledResponse, gy as MarkAsUnfulfilledRequest, gz as MarkAsUnfulfilledResponse, cj as MarkOrderAsPaidRequest, ck as MarkOrderAsPaidResponse, gl as MarkOrderAsSeenByHumanRequest, gm as MarkOrderAsSeenByHumanResponse, fL as MaskedOrderLineItem, cA as MembershipChargeItem, cB as MembershipName, d0 as MembershipPaymentDetails, bF as MembershipPaymentRefund, Y as MembershipPaymentStatus, bd as MerchantComment, b5 as MerchantDiscount, b6 as MerchantDiscountMerchantDiscountReasonOneOf, dq as MessageEnvelope, hu as MetaData, e8 as MetaSite, eb as MetaTag, a3 as Namespace, bg as NewExchangeOrderCreated, N as NonRefundableReason, a6 as OrderApprovalStrategy, c7 as OrderApproved, hC as OrderApprovedEnvelope, fU as OrderCanceled, hE as OrderCanceledEnvelope, go as OrderCanceledEventOrderCanceled, bj as OrderChange, bk as OrderChangeValueOneOf, eY as OrderCreateNotifications, hF as OrderCreatedEnvelope, bf as OrderCreatedFromExchange, eX as OrderCreationSettings, fi as OrderDeltasCommitted, fS as OrderFulfilled, ca as OrderItemsRestocked, ag as OrderLineItem, f9 as OrderLineItemChangedDetails, fT as OrderNotFulfilled, fR as OrderPaid, g4 as OrderPartiallyPaid, g5 as OrderPending, fQ as OrderPlaced, be as OrderRefunded, g6 as OrderRejected, c9 as OrderRejectedEventOrderRejected, p as OrderStatus, b1 as OrderTaxBreakdown, b0 as OrderTaxInfo, cP as OrderTransactions, hD as OrderUpdatedEnvelope, c8 as OrdersExperiments, cQ as Payment, bO as PaymentCanceled, bP as PaymentCanceledPaymentDetailsOneOf, x as PaymentCollectabilityStatus, hG as PaymentCollectionCreatePaymentGatewayOrderOptions, bQ as PaymentDeclined, bR as PaymentDeclinedPaymentDetailsOneOf, k as PaymentOptionType, cR as PaymentPaymentDetailsOneOf, bJ as PaymentPending, bK as PaymentPendingPaymentDetailsOneOf, cS as PaymentReceiptInfoOneOf, cF as PaymentRefund, bH as PaymentRefundFailed, bG as PaymentRefunded, m as PaymentStatus, cl as PaymentStatusUpdated, hs as Payments, h8 as Phone, aq as PhysicalProperties, aX as PickupAddress, aW as PickupDetails, o as PickupMethod, g3 as PickupReadyEmailSent, a9 as Placement, an as PlainTextValue, ek as PlatformPaging, en as PlatformPagingMetadata, eh as PlatformQuery, ei as PlatformQueryPagingMethodOneOf, cc as PreparePaymentCollectionRequest, dY as PreviewBuyerConfirmationEmailRequest, dZ as PreviewBuyerConfirmationEmailResponse, dW as PreviewBuyerPaymentsReceivedEmailRequest, dX as PreviewBuyerPaymentsReceivedEmailResponse, d_ as PreviewBuyerPickupConfirmationEmailRequest, d$ as PreviewBuyerPickupConfirmationEmailResponse, dS as PreviewCancelEmailRequest, dT as PreviewCancelEmailResponse, dU as PreviewCancelRefundEmailRequest, dV as PreviewCancelRefundEmailResponse, dO as PreviewEmailByTypeRequest, dP as PreviewEmailByTypeResponse, a1 as PreviewEmailType, dQ as PreviewRefundEmailRequest, dR as PreviewRefundEmailResponse, e2 as PreviewResendDownloadLinksEmailRequest, e3 as PreviewResendDownloadLinksEmailResponse, e0 as PreviewShippingConfirmationEmailRequest, e1 as PreviewShippingConfirmationEmailResponse, aE as PriceDescription, aM as PriceSummary, ah as ProductName, g9 as PublicActivity, ga as PublicActivityContentOneOf, eQ as QueryOrderRequest, eR as QueryOrderResponse, ef as QueryOrdersForMetasiteRequest, em as QueryOrdersForMetasiteResponse, h6 as QuotesAddress, Q as Reason, bS as ReceiptCreated, bT as ReceiptCreatedReceiptInfoOneOf, bW as ReceiptSent, bX as ReceiptSentReceiptInfoOneOf, ch as RecordManuallyCollectedPaymentRequest, ci as RecordManuallyCollectedPaymentResponse, cd as RedirectUrls, d3 as Refund, cG as RefundDetails, bA as RefundInitiated, cH as RefundItem, d7 as RefundItemsBreakdown, cL as RefundSideEffects, Z as RefundStatus, d5 as RefundStatusInfo, d4 as RefundTransaction, cu as Refundability, cv as RefundabilityAdditionalRefundabilityInfoOneOf, R as RefundableStatus, bI as RefundedAsStoreCredit, bB as RefundedPayment, bC as RefundedPaymentKindOneOf, bL as RegularPayment, cT as RegularPaymentDetails, cU as RegularPaymentDetailsPaymentMethodDetailsOneOf, bM as RegularPaymentPaymentMethodDetailsOneOf, bD as RegularPaymentRefund, h0 as Reschedule, cM as RestockInfo, cN as RestockItem, z as RestockType, dk as RestoreInfo, bw as SavedPaymentMethod, v as ScheduledAction, eS as SearchOrdersRequest, du as SendBuyerConfirmationEmailRequest, dv as SendBuyerConfirmationEmailResponse, dw as SendBuyerPaymentsReceivedEmailRequest, dx as SendBuyerPaymentsReceivedEmailResponse, dy as SendBuyerPickupConfirmationEmailRequest, dz as SendBuyerPickupConfirmationEmailResponse, dC as SendBuyerShippingConfirmationEmailRequest, dD as SendBuyerShippingConfirmationEmailResponse, dI as SendCancelRefundEmailRequest, dJ as SendCancelRefundEmailResponse, dG as SendMerchantOrderReceivedNotificationRequest, dH as SendMerchantOrderReceivedNotificationResponse, dM as SendMerchantOrderReceivedPushRequest, dN as SendMerchantOrderReceivedPushResponse, dK as SendRefundEmailRequest, dL as SendRefundEmailResponse, ea as SeoData, cC as ServiceProperties, g1 as ShippingAddressEdited, fZ as ShippingConfirmationEmailSent, bv as ShippingInformation, bu as ShippingInformationChange, aZ as ShippingPrice, cK as ShippingRefund, a_ as ShippingRegion, e5 as SnapshotMessage, a4 as SortOrder, ej as Sorting, hj as Source, ab as SourceType, hd as StandardDetails, a2 as State, aP as StreetAddress, hc as Subdivision, aa as SubdivisionType, az as SubscriptionDescription, l as SubscriptionFrequency, ax as SubscriptionInfo, aA as SubscriptionSettings, ay as SubscriptionTitle, c5 as TagList, c4 as Tags, gW as Task, gY as TaskAction, gZ as TaskActionActionOneOf, gX as TaskKey, a$ as TaxSummary, aG as TaxableAddress, aH as TaxableAddressTaxableAddressDataOneOf, T as TaxableAddressType, $ as TextDetection, hm as TotalPrice, bt as TotalPriceChange, fY as TrackingLinkAdded, fW as TrackingNumberAdded, fX as TrackingNumberEdited, E as TransactionStatus, bq as TranslatedValue, hI as TriggerRefundOptions, cE as TriggerRefundRequest, cO as TriggerRefundResponse, e4 as TriggerReindexOrderRequest, eG as TriggerReindexRequest, eH as TriggerReindexResponse, hz as TriggerSideEffectsFromLegacyData, ft as UnArchiveOrderRequest, fu as UnArchiveOrderResponse, hM as UpdateActivityIdentifiers, ge as UpdateActivityRequest, gf as UpdateActivityResponse, fG as UpdateBillingContactDetailsRequest, fH as UpdateBillingContactDetailsResponse, fC as UpdateBuyerEmailRequest, fD as UpdateBuyerEmailResponse, fz as UpdateBuyerInfoRequest, fB as UpdateBuyerInfoResponse, ev as UpdateInternalDocumentsEvent, ew as UpdateInternalDocumentsEventOperationOneOf, gi as UpdateLineItemsDescriptionLinesRequest, gk as UpdateLineItemsDescriptionLinesResponse, hL as UpdateOrderLineItem, hK as UpdateOrderLineItemIdentifiers, fI as UpdateOrderLineItemRequest, fJ as UpdateOrderLineItemResponse, fK as UpdateOrderLineItemsRequest, fM as UpdateOrderLineItemsResponse, e_ as UpdateOrderRequest, e$ as UpdateOrderResponse, fE as UpdateOrderShippingAddressRequest, fF as UpdateOrderShippingAddressResponse, gp as UpdateOrderStatusRequest, gq as UpdateOrderStatusResponse, et as UpsertRefundRequest, eu as UpsertRefundResponse, ee 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, cb as V1RestockItem, c_ as V1ScheduledAction, aT as V1ShippingInformation, hx as Value, ad as ValueType, aS as VatId, n as VatType, eE as VersionedDeleteByIdsOperation, eF as VersionedDocumentId, eD as VersionedDocumentUpdateOperation, a5 as VersioningMode, dd as VoidAuthorizedPaymentsRequest, _ as WebhookIdentityType, W as WeightUnit, bU as WixReceipt, d1 as WixReceiptInfo } from './ecom-v1-order-orders.universal-UflOyGzD.mjs';
|
|
4
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
5
|
+
|
|
6
|
+
declare function preparePaymentCollection$1(httpClient: HttpClient): PreparePaymentCollectionSignature;
|
|
7
|
+
interface PreparePaymentCollectionSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Prepares payment collection for given ecom order. This is the first of 2-step process of payment collection.
|
|
10
|
+
* Here we ensure that payment collection is possible for given order and store and prepare payment gateway order for future charge.
|
|
11
|
+
* 2nd step is an actual charge of prepared payment gateway order. This could be done either
|
|
12
|
+
* via Wix-Cashier's API (https://bo.wix.com/wix-docs/rest/wix-cashier/pay/charge/charge-for-order)
|
|
13
|
+
* or using Cashier Payments Widget (https://github.com/wix-private/cashier-client/tree/master/packages/cashier-payments-widget)
|
|
14
|
+
* @param - Ecom order ID.
|
|
15
|
+
* @param - Amount to collect
|
|
16
|
+
*/
|
|
17
|
+
(ecomOrderId: string, amount: Price, options?: PreparePaymentCollectionOptions | undefined): Promise<PreparePaymentCollectionResponse>;
|
|
18
|
+
}
|
|
19
|
+
declare function getPaymentCollectabilityStatus$1(httpClient: HttpClient): GetPaymentCollectabilityStatusSignature;
|
|
20
|
+
interface GetPaymentCollectabilityStatusSignature {
|
|
21
|
+
/**
|
|
22
|
+
* Provides payment collectability status for given order. If payment collection is possible
|
|
23
|
+
* response will contain collectable amount for given ecom order. If not - response will contain
|
|
24
|
+
* reason why payment collection is not possible.
|
|
25
|
+
* @param - Ecom order ID.
|
|
26
|
+
*/
|
|
27
|
+
(ecomOrderId: string): Promise<GetPaymentCollectabilityStatusResponse>;
|
|
28
|
+
}
|
|
29
|
+
declare function voidAuthorizedPayments$1(httpClient: HttpClient): VoidAuthorizedPaymentsSignature;
|
|
30
|
+
interface VoidAuthorizedPaymentsSignature {
|
|
31
|
+
/**
|
|
32
|
+
* Void authorized payments
|
|
33
|
+
* Transaction statuses for related payments will be updated in async way
|
|
34
|
+
* @param - Wix eCommerce order ID
|
|
35
|
+
* @param - Payment IDs
|
|
36
|
+
*/
|
|
37
|
+
(ecomOrderId: string, paymentIds: string[]): Promise<VoidAuthorizedPaymentsResponse>;
|
|
38
|
+
}
|
|
39
|
+
declare function captureAuthorizedPayments$1(httpClient: HttpClient): CaptureAuthorizedPaymentsSignature;
|
|
40
|
+
interface CaptureAuthorizedPaymentsSignature {
|
|
41
|
+
/**
|
|
42
|
+
* Capture authorized payments
|
|
43
|
+
* Transaction statuses for related payments will be updated in async way
|
|
44
|
+
* @param - Wix eCommerce order ID
|
|
45
|
+
* @param - Capture payments information
|
|
46
|
+
*/
|
|
47
|
+
(ecomOrderId: string, payments: PaymentCapture[]): Promise<CaptureAuthorizedPaymentsResponse>;
|
|
48
|
+
}
|
|
49
|
+
declare function getOrder$1(httpClient: HttpClient): GetOrderSignature;
|
|
50
|
+
interface GetOrderSignature {
|
|
51
|
+
/**
|
|
52
|
+
* Retrieves an order.
|
|
53
|
+
*
|
|
54
|
+
*
|
|
55
|
+
* The `getOrder()` function returns a Promise that resolves when the specified order is retrieved.
|
|
56
|
+
*
|
|
57
|
+
* 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).
|
|
58
|
+
* @param - ID of the order to retrieve.
|
|
59
|
+
* @returns Fulfilled - The requested order.
|
|
60
|
+
*/
|
|
61
|
+
(_id: string): Promise<Order>;
|
|
62
|
+
}
|
|
63
|
+
declare function searchOrders$1(httpClient: HttpClient): SearchOrdersSignature;
|
|
64
|
+
interface SearchOrdersSignature {
|
|
65
|
+
/**
|
|
66
|
+
* Retrieves a list of orders, given the provided paging, filtering, and sorting.
|
|
67
|
+
*
|
|
68
|
+
*
|
|
69
|
+
* Search Orders runs with these defaults, which you can override:
|
|
70
|
+
*
|
|
71
|
+
* - `createdDate` is sorted in `DESC` order
|
|
72
|
+
* - `cursorPaging.limit` is `100`
|
|
73
|
+
* - `filter: {"status": {"$ne": "INITIALIZED"}}` - other order statuses can be queried, but orders with `status: "INITIALIZED"` are never returned
|
|
74
|
+
*
|
|
75
|
+
* 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).
|
|
76
|
+
*
|
|
77
|
+
* To learn about working with _Search_ endpoints, see
|
|
78
|
+
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language), and
|
|
79
|
+
* [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
80
|
+
*/
|
|
81
|
+
(options?: SearchOrdersOptions | undefined): Promise<SearchOrdersResponse>;
|
|
82
|
+
}
|
|
83
|
+
declare function createOrder$1(httpClient: HttpClient): CreateOrderSignature;
|
|
84
|
+
interface CreateOrderSignature {
|
|
85
|
+
/**
|
|
86
|
+
* Creates an order.
|
|
87
|
+
*
|
|
88
|
+
*
|
|
89
|
+
* The `createOrder()` function returns a Promise that resolves when the order is created.
|
|
90
|
+
*
|
|
91
|
+
* > **Notes:**
|
|
92
|
+
* > + If an item is digital - `lineItems[i].itemType.preset: DIGITAL` - then `lineItems[i].digitalFile` must be provided.
|
|
93
|
+
* > + If `lineItems[i].id` is passed, it must be either a valid GUID, or empty.
|
|
94
|
+
* @param - Order info.
|
|
95
|
+
* @returns Newly created order.
|
|
96
|
+
*/
|
|
97
|
+
(order: Order, options?: CreateOrderOptions | undefined): Promise<Order>;
|
|
98
|
+
}
|
|
99
|
+
declare function updateOrder$1(httpClient: HttpClient): UpdateOrderSignature;
|
|
100
|
+
interface UpdateOrderSignature {
|
|
101
|
+
/**
|
|
102
|
+
* Updates an order.
|
|
103
|
+
*
|
|
104
|
+
*
|
|
105
|
+
* The `updateOrder()` function returns a Promise that resolves when the specified order's information is updated.
|
|
106
|
+
*
|
|
107
|
+
* Currently, the following fields can be updated:
|
|
108
|
+
* + `order.buyerInfo.email`
|
|
109
|
+
* + `order.buyerLanguage`
|
|
110
|
+
* + `order.weightUnit`
|
|
111
|
+
* + `order.billingInfo.address`
|
|
112
|
+
* + `order.billingInfo.contactDetails`
|
|
113
|
+
* + `order.archived`
|
|
114
|
+
* + `order.attributionSource`
|
|
115
|
+
* + `order.seenByAHuman`
|
|
116
|
+
* + `order.recipientInfo.address`
|
|
117
|
+
* + `order.recipientInfo.contactDetails`
|
|
118
|
+
* + `order.shippingInfo.logistics.shippingDestination.address`
|
|
119
|
+
* + `order.shippingInfo.logistics.shippingDestination.contactDetails`
|
|
120
|
+
*
|
|
121
|
+
* To update a field's value, include the new value in the `order` object in the method parameters.
|
|
122
|
+
* To remove a field's value, pass `null`.
|
|
123
|
+
*
|
|
124
|
+
* > **Note:** Removing `buyerInfo` or `contactDetails` fields results in an error.
|
|
125
|
+
*
|
|
126
|
+
* To update an order's payment status, use [`updatePaymentStatus( )`](https://www.wix.com/velo/reference/wix-ecom-backend/ordertransactions/updatepaymentstatus).
|
|
127
|
+
* @param - Order ID.
|
|
128
|
+
* @returns Newly created order.
|
|
129
|
+
*/
|
|
130
|
+
(_id: string, order: UpdateOrder): Promise<Order>;
|
|
131
|
+
}
|
|
132
|
+
declare function bulkUpdateOrders$1(httpClient: HttpClient): BulkUpdateOrdersSignature;
|
|
133
|
+
interface BulkUpdateOrdersSignature {
|
|
134
|
+
/**
|
|
135
|
+
* Updates up to 100 orders.
|
|
136
|
+
*
|
|
137
|
+
*
|
|
138
|
+
* The `bulkUpdateOrders()` function returns a Promise that resolves when the specified orders' information is updated.
|
|
139
|
+
*
|
|
140
|
+
* Currently, the following fields can be updated:
|
|
141
|
+
* + `order.buyerInfo.email`
|
|
142
|
+
* + `order.buyerLanguage`
|
|
143
|
+
* + `order.weightUnit`
|
|
144
|
+
* + `order.billingInfo.address`
|
|
145
|
+
* + `order.billingInfo.contactDetails`
|
|
146
|
+
* + `order.archived`
|
|
147
|
+
* + `order.attributionSource`
|
|
148
|
+
* + `order.seenByAHuman`
|
|
149
|
+
* + `order.recipientInfo.address`
|
|
150
|
+
* + `order.recipientInfo.contactDetails`
|
|
151
|
+
* + `order.shippingInfo.logistics.shippingDestination.address`
|
|
152
|
+
* + `order.shippingInfo.logistics.shippingDestination.contactDetails`
|
|
153
|
+
*
|
|
154
|
+
* To update a field's value, include the new value in the `orders.order` object in the method parameters.
|
|
155
|
+
* To remove a field's value, pass `null`.
|
|
156
|
+
*
|
|
157
|
+
* > **Note:** Removing `buyerInfo` or `contactDetails` fields results in an error.
|
|
158
|
+
*
|
|
159
|
+
* To update an order's payment status, use [`updatePaymentStatus( )`](https://www.wix.com/velo/reference/wix-ecom-backend/ordertransactions/updatepaymentstatus).
|
|
160
|
+
* @param - Orders to update.
|
|
161
|
+
*/
|
|
162
|
+
(orders: MaskedOrder[], options?: BulkUpdateOrdersOptions | undefined): Promise<BulkUpdateOrdersResponse>;
|
|
163
|
+
}
|
|
164
|
+
declare function cancelOrder$1(httpClient: HttpClient): CancelOrderSignature;
|
|
165
|
+
interface CancelOrderSignature {
|
|
166
|
+
/**
|
|
167
|
+
* Cancels an order.
|
|
168
|
+
*
|
|
169
|
+
*
|
|
170
|
+
* The `cancelOrder()` function returns a Promise that resolves when the specified order is canceled and the `order.status` field changes to `CANCELED`.
|
|
171
|
+
* @param - Order ID.
|
|
172
|
+
*/
|
|
173
|
+
(_id: string, options?: CancelOrderOptions | undefined): Promise<CancelOrderResponse>;
|
|
174
|
+
}
|
|
175
|
+
declare function bulkUpdateOrderTags$1(httpClient: HttpClient): BulkUpdateOrderTagsSignature;
|
|
176
|
+
interface BulkUpdateOrderTagsSignature {
|
|
177
|
+
/**
|
|
178
|
+
* Synchronously update tags on multiple orders, by list of order IDs.
|
|
179
|
+
*
|
|
180
|
+
* > **Note:** If the same tag is passed to both the `assignTags` and `unassignTags` fields, it will be assigned.
|
|
181
|
+
* @param - IDs of orders to update tags for.
|
|
182
|
+
*/
|
|
183
|
+
(orderIds: string[], options?: BulkUpdateOrderTagsOptions | undefined): Promise<BulkUpdateOrderTagsResponse>;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
declare const preparePaymentCollection: MaybeContext<BuildRESTFunction<typeof preparePaymentCollection$1> & typeof preparePaymentCollection$1>;
|
|
187
|
+
declare const getPaymentCollectabilityStatus: MaybeContext<BuildRESTFunction<typeof getPaymentCollectabilityStatus$1> & typeof getPaymentCollectabilityStatus$1>;
|
|
188
|
+
declare const voidAuthorizedPayments: MaybeContext<BuildRESTFunction<typeof voidAuthorizedPayments$1> & typeof voidAuthorizedPayments$1>;
|
|
189
|
+
declare const captureAuthorizedPayments: MaybeContext<BuildRESTFunction<typeof captureAuthorizedPayments$1> & typeof captureAuthorizedPayments$1>;
|
|
190
|
+
declare const getOrder: MaybeContext<BuildRESTFunction<typeof getOrder$1> & typeof getOrder$1>;
|
|
191
|
+
declare const searchOrders: MaybeContext<BuildRESTFunction<typeof searchOrders$1> & typeof searchOrders$1>;
|
|
192
|
+
declare const createOrder: MaybeContext<BuildRESTFunction<typeof createOrder$1> & typeof createOrder$1>;
|
|
193
|
+
declare const updateOrder: MaybeContext<BuildRESTFunction<typeof updateOrder$1> & typeof updateOrder$1>;
|
|
194
|
+
declare const bulkUpdateOrders: MaybeContext<BuildRESTFunction<typeof bulkUpdateOrders$1> & typeof bulkUpdateOrders$1>;
|
|
195
|
+
declare const cancelOrder: MaybeContext<BuildRESTFunction<typeof cancelOrder$1> & typeof cancelOrder$1>;
|
|
196
|
+
declare const bulkUpdateOrderTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateOrderTags$1> & typeof bulkUpdateOrderTags$1>;
|
|
197
|
+
/** */
|
|
198
|
+
declare const onOrderApproved: ReturnType<typeof createEventModule<typeof publicOnOrderApproved>>;
|
|
199
|
+
/** */
|
|
200
|
+
declare const onOrderUpdated: ReturnType<typeof createEventModule<typeof publicOnOrderUpdated>>;
|
|
201
|
+
/**
|
|
202
|
+
* Triggered when an order is canceled.
|
|
203
|
+
* 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).
|
|
204
|
+
*/
|
|
205
|
+
declare const onOrderCanceled: ReturnType<typeof createEventModule<typeof publicOnOrderCanceled>>;
|
|
206
|
+
/**
|
|
207
|
+
* Triggered when an order is created.
|
|
208
|
+
* Learn more about [webhook payload structure](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/orders/order-object-conversion#webhook-conversion-table).
|
|
209
|
+
*/
|
|
210
|
+
declare const onOrderCreated: ReturnType<typeof createEventModule<typeof publicOnOrderCreated>>;
|
|
211
|
+
|
|
212
|
+
export { BulkUpdateOrderTagsOptions, BulkUpdateOrderTagsResponse, BulkUpdateOrdersOptions, BulkUpdateOrdersResponse, CancelOrderOptions, CancelOrderResponse, CaptureAuthorizedPaymentsResponse, CreateOrderOptions, GetPaymentCollectabilityStatusResponse, MaskedOrder, Order, PaymentCapture, PreparePaymentCollectionOptions, PreparePaymentCollectionResponse, Price, SearchOrdersOptions, SearchOrdersResponse, UpdateOrder, VoidAuthorizedPaymentsResponse, bulkUpdateOrderTags, bulkUpdateOrders, cancelOrder, captureAuthorizedPayments, createOrder, getOrder, getPaymentCollectabilityStatus, onOrderApproved, onOrderCanceled, onOrderCreated, onOrderUpdated, preparePaymentCollection, searchOrders, updateOrder, voidAuthorizedPayments };
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { P as Price, a as PreparePaymentCollectionOptions, b as PreparePaymentCollectionResponse, G as GetPaymentCollectabilityStatusResponse, V as VoidAuthorizedPaymentsResponse, c as PaymentCapture, C as CaptureAuthorizedPaymentsResponse, O as Order, S as SearchOrdersOptions, d as SearchOrdersResponse, e as CreateOrderOptions, U as UpdateOrder, M as MaskedOrder, B as BulkUpdateOrdersOptions, f as BulkUpdateOrdersResponse, g as CancelOrderOptions, h as CancelOrderResponse, i as BulkUpdateOrderTagsOptions, j as BulkUpdateOrderTagsResponse } from './ecom-v1-order-orders.universal-UflOyGzD.js';
|
|
3
|
+
export { dn as ActionEvent, X as ActionType, ba as Activity, bb as ActivityContentOneOf, s as ActivityType, gc as AddActivitiesRequest, gd as AddActivitiesResponse, g8 as AddActivityRequest, gb as AddActivityResponse, fN as AddInternalActivityRequest, g7 as AddInternalActivityResponse, c2 as AdditionalFee, fd as AdditionalFeeDelta, fe as AdditionalFeeDeltaDeltaOneOf, cJ as AdditionalFeeRefund, aO as Address, h7 as AddressDescription, aQ as AddressLocation, aN as AddressWithContact, A as AdjustmentType, hO as AggregateOrdersOptions, gP as AggregateOrdersRequest, gQ as AggregateOrdersResponse, d6 as AggregatedRefundSummary, a0 as AnimationDetection, e9 as App, cq as ApplicationError, b2 as AppliedDiscount, fb as AppliedDiscountDelta, fc as AppliedDiscountDeltaDeltaOneOf, b3 as AppliedDiscountDiscountSourceOneOf, fn as ArchiveOrderRequest, fo as ArchiveOrderResponse, t as AttributionSource, cY as AuthorizationActionFailureDetails, cX as AuthorizationCapture, H as AuthorizationCaptureStatus, cW as AuthorizationDetails, cZ as AuthorizationVoid, K as AuthorizationVoidStatus, by as AuthorizedPaymentCaptured, bx as AuthorizedPaymentCreated, bz as AuthorizedPaymentVoided, c1 as Balance, c0 as BalanceSummary, hA as BaseEventMetadata, eI as BatchOfTriggerReindexOrderRequest, hh as BigDecimalWrapper, aC as BillingAdjustment, aD as BillingAdjustmentPriceSummary, cr 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, cm as BulkMarkOrdersAsPaidRequest, cn as BulkMarkOrdersAsPaidResponse, co as BulkOrderResult, dA as BulkSendBuyerPickupConfirmationEmailsRequest, dB as BulkSendBuyerPickupConfirmationEmailsResponse, dE as BulkSendBuyerShippingConfirmationEmailsRequest, dF 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, aJ as BuyerInfo, aK as BuyerInfoIdOneOf, fA as BuyerInfoUpdate, da as CalculateRefundItemRequest, dc as CalculateRefundItemResponse, d9 as CalculateRefundRequest, db as CalculateRefundResponse, hr as CalculatedTax, hq as CalculatedTaxes, g$ as Cancel, gn as CancelOrderRequest, de as CaptureAuthorizedPaymentsRequest, ai as CatalogReference, b_ as ChannelInfo, u as ChannelType, hH as ChargeMembershipsOptions, cz as ChargeMembershipsRequest, cD as ChargeMembershipsResponse, df as ChargeSavedPaymentMethodRequest, dg as ChargeSavedPaymentMethodResponse, cx as ChargedBy, ao as Color, hJ as CommitDeltasOptions, f1 as CommitDeltasRequest, fh as CommitDeltasResponse, fj as CommittedDiffs, fk as CommittedDiffsShippingUpdateInfoOneOf, ha as CommonAddress, hb as CommonAddressStreetOneOf, h9 as Company, g_ as Complete, eL as ContinueSideEffectsFlowInLegacyData, b4 as Coupon, eW as CreateOrderRequest, eZ as CreateOrderResponse, cw as CreatePaymentGatewayOrderRequest, cy as CreatePaymentGatewayOrderResponse, bY as CreatedBy, bZ as CreatedByStringOneOf, bN as CreditCardDetails, cV as CreditCardPaymentMethodDetails, aL as CurrencyConversionDetails, el as CursorPaging, eV as CursorPagingMetadata, eT as CursorSearch, eU as CursorSearchPagingMethodOneOf, eo as Cursors, bc as CustomActivity, b$ as CustomField, ac as CustomFieldGroup, hw as CustomFieldValue, h4 as Customer, gS as DecrementData, gR as DecrementItemsQuantityRequest, gT as DecrementItemsQuantityResponse, ce as DelayedCaptureSettings, hN as DeleteActivityIdentifiers, gg as DeleteActivityRequest, gh as DeleteActivityResponse, eA as DeleteByFilterOperation, ez as DeleteByIdsOperation, aU as DeliveryLogistics, aV as DeliveryLogisticsAddressOneOf, aY as DeliveryTimeSlot, a7 as DeltaPaymentOptionType, hy as Deposit, ae as DepositType, aj as DescriptionLine, al as DescriptionLineDescriptionLineValueOneOf, am as DescriptionLineName, D as DescriptionLineType, ak as DescriptionLineValueOneOf, eJ as DiffmatokyPayload, aw as DigitalFile, ho as Discount, hp as DiscountOneDiscountTypeOneOf, r as DiscountReason, b7 as DiscountRule, b8 as DiscountRuleName, q as DiscountType, dh as DomainEvent, di as DomainEventBodyOneOf, fV as DownloadLinkSent, bi as DraftOrderChangesApplied, ff as DraftOrderCommitSettings, f2 as DraftOrderDiffs, f5 as DraftOrderDiffsBillingUpdateInfoOneOf, f4 as DraftOrderDiffsBuyerUpdateInfoOneOf, f6 as DraftOrderDiffsRecipientUpdateInfoOneOf, f3 as DraftOrderDiffsShippingUpdateInfoOneOf, cf as Duration, w as DurationUnit, h5 as Email, g2 as EmailEdited, dp as Empty, dj as EntityCreatedEvent, dm as EntityDeletedEvent, dl as EntityUpdatedEvent, eK as ErrorInformation, hB as EventMetadata, aI as ExtendedFields, bV as ExternalReceipt, d2 as ExternalReceiptInfo, ed as ExternalUriMapping, ap as FocalPoint, aB as FreeTrialPeriod, g0 as FulfillerEmailSent, F as FulfillmentStatus, gt as FulfillmentStatusUpdated, c3 as FulfillmentStatusesAggregate, aR as FullAddressContactDetails, e6 as GetMetasiteDataRequest, e7 as GetMetasiteDataResponse, ep as GetOrderForMetasiteRequest, eq as GetOrderForMetasiteResponse, eN as GetOrderRequest, eO as GetOrderResponse, cg as GetPaymentCollectabilityStatusRequest, cs as GetRefundabilityStatusRequest, ct as GetRefundabilityStatusResponse, gN as GetShipmentsRequest, gO as GetShipmentsResponse, c$ as GiftCardPaymentDetails, bE as GiftCardPaymentRefund, ec as HtmlApplication, h2 as IdAndVersion, dr as IdentificationData, ds as IdentificationDataIdOneOf, dt as ImageContent, eM as IndexingMessage, fO as InternalActivity, fP as InternalActivityContentOneOf, ex as InternalDocument, eB as InternalDocumentUpdateByFilterOperation, ey as InternalDocumentUpdateOperation, eg as InternalQueryOrdersRequest, eP as InternalQueryOrdersResponse, eC as InternalUpdateExistingOperation, a8 as InventoryAction, fg as InventoryUpdateDetails, f_ as InvoiceAdded, he as InvoiceDates, hv as InvoiceDynamicPriceTotals, h3 as InvoiceFields, f$ as InvoiceSent, h1 as InvoiceSentEvent, af as InvoiceStatus, ht as InvoicesPayment, fa as ItemChangedDetails, cp as ItemMetadata, at as ItemTaxFullDetails, ar as ItemType, I as ItemTypeItemType, as as ItemTypeItemTypeDataOneOf, hn as ItemizedFee, J as JurisdictionType, hg as LineItem, br as LineItemAmount, bl as LineItemChanges, fl as LineItemDelta, fm as LineItemDeltaDeltaOneOf, b9 as LineItemDiscount, bh as LineItemExchangeData, hk as LineItemMetaData, bn as LineItemPriceChange, bm as LineItemQuantityChange, L as LineItemQuantityChangeType, cI as LineItemRefund, d8 as LineItemRefundSummary, hi as LineItemTax, av as LineItemTaxBreakdown, au as LineItemTaxInfo, gj as LineItemUpdate, hf as LineItems, er as ListOrderTransactionsForMetasiteRequest, es as ListOrderTransactionsForMetasiteResponse, hl as Locale, c6 as Location, aF as LocationAndQuantity, bs as ManagedAdditionalFee, bp as ManagedDiscount, bo as ManagedLineItem, y as ManuallyRefundableReason, gr as MarkAsFulfilledRequest, gs as MarkAsFulfilledResponse, gy as MarkAsUnfulfilledRequest, gz as MarkAsUnfulfilledResponse, cj as MarkOrderAsPaidRequest, ck as MarkOrderAsPaidResponse, gl as MarkOrderAsSeenByHumanRequest, gm as MarkOrderAsSeenByHumanResponse, fL as MaskedOrderLineItem, cA as MembershipChargeItem, cB as MembershipName, d0 as MembershipPaymentDetails, bF as MembershipPaymentRefund, Y as MembershipPaymentStatus, bd as MerchantComment, b5 as MerchantDiscount, b6 as MerchantDiscountMerchantDiscountReasonOneOf, dq as MessageEnvelope, hu as MetaData, e8 as MetaSite, eb as MetaTag, a3 as Namespace, bg as NewExchangeOrderCreated, N as NonRefundableReason, a6 as OrderApprovalStrategy, c7 as OrderApproved, hC as OrderApprovedEnvelope, fU as OrderCanceled, hE as OrderCanceledEnvelope, go as OrderCanceledEventOrderCanceled, bj as OrderChange, bk as OrderChangeValueOneOf, eY as OrderCreateNotifications, hF as OrderCreatedEnvelope, bf as OrderCreatedFromExchange, eX as OrderCreationSettings, fi as OrderDeltasCommitted, fS as OrderFulfilled, ca as OrderItemsRestocked, ag as OrderLineItem, f9 as OrderLineItemChangedDetails, fT as OrderNotFulfilled, fR as OrderPaid, g4 as OrderPartiallyPaid, g5 as OrderPending, fQ as OrderPlaced, be as OrderRefunded, g6 as OrderRejected, c9 as OrderRejectedEventOrderRejected, p as OrderStatus, b1 as OrderTaxBreakdown, b0 as OrderTaxInfo, cP as OrderTransactions, hD as OrderUpdatedEnvelope, c8 as OrdersExperiments, cQ as Payment, bO as PaymentCanceled, bP as PaymentCanceledPaymentDetailsOneOf, x as PaymentCollectabilityStatus, hG as PaymentCollectionCreatePaymentGatewayOrderOptions, bQ as PaymentDeclined, bR as PaymentDeclinedPaymentDetailsOneOf, k as PaymentOptionType, cR as PaymentPaymentDetailsOneOf, bJ as PaymentPending, bK as PaymentPendingPaymentDetailsOneOf, cS as PaymentReceiptInfoOneOf, cF as PaymentRefund, bH as PaymentRefundFailed, bG as PaymentRefunded, m as PaymentStatus, cl as PaymentStatusUpdated, hs as Payments, h8 as Phone, aq as PhysicalProperties, aX as PickupAddress, aW as PickupDetails, o as PickupMethod, g3 as PickupReadyEmailSent, a9 as Placement, an as PlainTextValue, ek as PlatformPaging, en as PlatformPagingMetadata, eh as PlatformQuery, ei as PlatformQueryPagingMethodOneOf, cc as PreparePaymentCollectionRequest, dY as PreviewBuyerConfirmationEmailRequest, dZ as PreviewBuyerConfirmationEmailResponse, dW as PreviewBuyerPaymentsReceivedEmailRequest, dX as PreviewBuyerPaymentsReceivedEmailResponse, d_ as PreviewBuyerPickupConfirmationEmailRequest, d$ as PreviewBuyerPickupConfirmationEmailResponse, dS as PreviewCancelEmailRequest, dT as PreviewCancelEmailResponse, dU as PreviewCancelRefundEmailRequest, dV as PreviewCancelRefundEmailResponse, dO as PreviewEmailByTypeRequest, dP as PreviewEmailByTypeResponse, a1 as PreviewEmailType, dQ as PreviewRefundEmailRequest, dR as PreviewRefundEmailResponse, e2 as PreviewResendDownloadLinksEmailRequest, e3 as PreviewResendDownloadLinksEmailResponse, e0 as PreviewShippingConfirmationEmailRequest, e1 as PreviewShippingConfirmationEmailResponse, aE as PriceDescription, aM as PriceSummary, ah as ProductName, g9 as PublicActivity, ga as PublicActivityContentOneOf, eQ as QueryOrderRequest, eR as QueryOrderResponse, ef as QueryOrdersForMetasiteRequest, em as QueryOrdersForMetasiteResponse, h6 as QuotesAddress, Q as Reason, bS as ReceiptCreated, bT as ReceiptCreatedReceiptInfoOneOf, bW as ReceiptSent, bX as ReceiptSentReceiptInfoOneOf, ch as RecordManuallyCollectedPaymentRequest, ci as RecordManuallyCollectedPaymentResponse, cd as RedirectUrls, d3 as Refund, cG as RefundDetails, bA as RefundInitiated, cH as RefundItem, d7 as RefundItemsBreakdown, cL as RefundSideEffects, Z as RefundStatus, d5 as RefundStatusInfo, d4 as RefundTransaction, cu as Refundability, cv as RefundabilityAdditionalRefundabilityInfoOneOf, R as RefundableStatus, bI as RefundedAsStoreCredit, bB as RefundedPayment, bC as RefundedPaymentKindOneOf, bL as RegularPayment, cT as RegularPaymentDetails, cU as RegularPaymentDetailsPaymentMethodDetailsOneOf, bM as RegularPaymentPaymentMethodDetailsOneOf, bD as RegularPaymentRefund, h0 as Reschedule, cM as RestockInfo, cN as RestockItem, z as RestockType, dk as RestoreInfo, bw as SavedPaymentMethod, v as ScheduledAction, eS as SearchOrdersRequest, du as SendBuyerConfirmationEmailRequest, dv as SendBuyerConfirmationEmailResponse, dw as SendBuyerPaymentsReceivedEmailRequest, dx as SendBuyerPaymentsReceivedEmailResponse, dy as SendBuyerPickupConfirmationEmailRequest, dz as SendBuyerPickupConfirmationEmailResponse, dC as SendBuyerShippingConfirmationEmailRequest, dD as SendBuyerShippingConfirmationEmailResponse, dI as SendCancelRefundEmailRequest, dJ as SendCancelRefundEmailResponse, dG as SendMerchantOrderReceivedNotificationRequest, dH as SendMerchantOrderReceivedNotificationResponse, dM as SendMerchantOrderReceivedPushRequest, dN as SendMerchantOrderReceivedPushResponse, dK as SendRefundEmailRequest, dL as SendRefundEmailResponse, ea as SeoData, cC as ServiceProperties, g1 as ShippingAddressEdited, fZ as ShippingConfirmationEmailSent, bv as ShippingInformation, bu as ShippingInformationChange, aZ as ShippingPrice, cK as ShippingRefund, a_ as ShippingRegion, e5 as SnapshotMessage, a4 as SortOrder, ej as Sorting, hj as Source, ab as SourceType, hd as StandardDetails, a2 as State, aP as StreetAddress, hc as Subdivision, aa as SubdivisionType, az as SubscriptionDescription, l as SubscriptionFrequency, ax as SubscriptionInfo, aA as SubscriptionSettings, ay as SubscriptionTitle, c5 as TagList, c4 as Tags, gW as Task, gY as TaskAction, gZ as TaskActionActionOneOf, gX as TaskKey, a$ as TaxSummary, aG as TaxableAddress, aH as TaxableAddressTaxableAddressDataOneOf, T as TaxableAddressType, $ as TextDetection, hm as TotalPrice, bt as TotalPriceChange, fY as TrackingLinkAdded, fW as TrackingNumberAdded, fX as TrackingNumberEdited, E as TransactionStatus, bq as TranslatedValue, hI as TriggerRefundOptions, cE as TriggerRefundRequest, cO as TriggerRefundResponse, e4 as TriggerReindexOrderRequest, eG as TriggerReindexRequest, eH as TriggerReindexResponse, hz as TriggerSideEffectsFromLegacyData, ft as UnArchiveOrderRequest, fu as UnArchiveOrderResponse, hM as UpdateActivityIdentifiers, ge as UpdateActivityRequest, gf as UpdateActivityResponse, fG as UpdateBillingContactDetailsRequest, fH as UpdateBillingContactDetailsResponse, fC as UpdateBuyerEmailRequest, fD as UpdateBuyerEmailResponse, fz as UpdateBuyerInfoRequest, fB as UpdateBuyerInfoResponse, ev as UpdateInternalDocumentsEvent, ew as UpdateInternalDocumentsEventOperationOneOf, gi as UpdateLineItemsDescriptionLinesRequest, gk as UpdateLineItemsDescriptionLinesResponse, hL as UpdateOrderLineItem, hK as UpdateOrderLineItemIdentifiers, fI as UpdateOrderLineItemRequest, fJ as UpdateOrderLineItemResponse, fK as UpdateOrderLineItemsRequest, fM as UpdateOrderLineItemsResponse, e_ as UpdateOrderRequest, e$ as UpdateOrderResponse, fE as UpdateOrderShippingAddressRequest, fF as UpdateOrderShippingAddressResponse, gp as UpdateOrderStatusRequest, gq as UpdateOrderStatusResponse, et as UpsertRefundRequest, eu as UpsertRefundResponse, ee 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, cb as V1RestockItem, c_ as V1ScheduledAction, aT as V1ShippingInformation, hx as Value, ad as ValueType, aS as VatId, n as VatType, eE as VersionedDeleteByIdsOperation, eF as VersionedDocumentId, eD as VersionedDocumentUpdateOperation, a5 as VersioningMode, dd as VoidAuthorizedPaymentsRequest, _ as WebhookIdentityType, W as WeightUnit, bU as WixReceipt, d1 as WixReceiptInfo } from './ecom-v1-order-orders.universal-UflOyGzD.js';
|
|
4
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
5
|
+
|
|
6
|
+
declare function preparePaymentCollection$1(httpClient: HttpClient): PreparePaymentCollectionSignature;
|
|
7
|
+
interface PreparePaymentCollectionSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Prepares payment collection for given ecom order. This is the first of 2-step process of payment collection.
|
|
10
|
+
* Here we ensure that payment collection is possible for given order and store and prepare payment gateway order for future charge.
|
|
11
|
+
* 2nd step is an actual charge of prepared payment gateway order. This could be done either
|
|
12
|
+
* via Wix-Cashier's API (https://bo.wix.com/wix-docs/rest/wix-cashier/pay/charge/charge-for-order)
|
|
13
|
+
* or using Cashier Payments Widget (https://github.com/wix-private/cashier-client/tree/master/packages/cashier-payments-widget)
|
|
14
|
+
* @param - Ecom order ID.
|
|
15
|
+
* @param - Amount to collect
|
|
16
|
+
*/
|
|
17
|
+
(ecomOrderId: string, amount: Price, options?: PreparePaymentCollectionOptions | undefined): Promise<PreparePaymentCollectionResponse>;
|
|
18
|
+
}
|
|
19
|
+
declare function getPaymentCollectabilityStatus$1(httpClient: HttpClient): GetPaymentCollectabilityStatusSignature;
|
|
20
|
+
interface GetPaymentCollectabilityStatusSignature {
|
|
21
|
+
/**
|
|
22
|
+
* Provides payment collectability status for given order. If payment collection is possible
|
|
23
|
+
* response will contain collectable amount for given ecom order. If not - response will contain
|
|
24
|
+
* reason why payment collection is not possible.
|
|
25
|
+
* @param - Ecom order ID.
|
|
26
|
+
*/
|
|
27
|
+
(ecomOrderId: string): Promise<GetPaymentCollectabilityStatusResponse>;
|
|
28
|
+
}
|
|
29
|
+
declare function voidAuthorizedPayments$1(httpClient: HttpClient): VoidAuthorizedPaymentsSignature;
|
|
30
|
+
interface VoidAuthorizedPaymentsSignature {
|
|
31
|
+
/**
|
|
32
|
+
* Void authorized payments
|
|
33
|
+
* Transaction statuses for related payments will be updated in async way
|
|
34
|
+
* @param - Wix eCommerce order ID
|
|
35
|
+
* @param - Payment IDs
|
|
36
|
+
*/
|
|
37
|
+
(ecomOrderId: string, paymentIds: string[]): Promise<VoidAuthorizedPaymentsResponse>;
|
|
38
|
+
}
|
|
39
|
+
declare function captureAuthorizedPayments$1(httpClient: HttpClient): CaptureAuthorizedPaymentsSignature;
|
|
40
|
+
interface CaptureAuthorizedPaymentsSignature {
|
|
41
|
+
/**
|
|
42
|
+
* Capture authorized payments
|
|
43
|
+
* Transaction statuses for related payments will be updated in async way
|
|
44
|
+
* @param - Wix eCommerce order ID
|
|
45
|
+
* @param - Capture payments information
|
|
46
|
+
*/
|
|
47
|
+
(ecomOrderId: string, payments: PaymentCapture[]): Promise<CaptureAuthorizedPaymentsResponse>;
|
|
48
|
+
}
|
|
49
|
+
declare function getOrder$1(httpClient: HttpClient): GetOrderSignature;
|
|
50
|
+
interface GetOrderSignature {
|
|
51
|
+
/**
|
|
52
|
+
* Retrieves an order.
|
|
53
|
+
*
|
|
54
|
+
*
|
|
55
|
+
* The `getOrder()` function returns a Promise that resolves when the specified order is retrieved.
|
|
56
|
+
*
|
|
57
|
+
* 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).
|
|
58
|
+
* @param - ID of the order to retrieve.
|
|
59
|
+
* @returns Fulfilled - The requested order.
|
|
60
|
+
*/
|
|
61
|
+
(_id: string): Promise<Order>;
|
|
62
|
+
}
|
|
63
|
+
declare function searchOrders$1(httpClient: HttpClient): SearchOrdersSignature;
|
|
64
|
+
interface SearchOrdersSignature {
|
|
65
|
+
/**
|
|
66
|
+
* Retrieves a list of orders, given the provided paging, filtering, and sorting.
|
|
67
|
+
*
|
|
68
|
+
*
|
|
69
|
+
* Search Orders runs with these defaults, which you can override:
|
|
70
|
+
*
|
|
71
|
+
* - `createdDate` is sorted in `DESC` order
|
|
72
|
+
* - `cursorPaging.limit` is `100`
|
|
73
|
+
* - `filter: {"status": {"$ne": "INITIALIZED"}}` - other order statuses can be queried, but orders with `status: "INITIALIZED"` are never returned
|
|
74
|
+
*
|
|
75
|
+
* 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).
|
|
76
|
+
*
|
|
77
|
+
* To learn about working with _Search_ endpoints, see
|
|
78
|
+
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language), and
|
|
79
|
+
* [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
80
|
+
*/
|
|
81
|
+
(options?: SearchOrdersOptions | undefined): Promise<SearchOrdersResponse>;
|
|
82
|
+
}
|
|
83
|
+
declare function createOrder$1(httpClient: HttpClient): CreateOrderSignature;
|
|
84
|
+
interface CreateOrderSignature {
|
|
85
|
+
/**
|
|
86
|
+
* Creates an order.
|
|
87
|
+
*
|
|
88
|
+
*
|
|
89
|
+
* The `createOrder()` function returns a Promise that resolves when the order is created.
|
|
90
|
+
*
|
|
91
|
+
* > **Notes:**
|
|
92
|
+
* > + If an item is digital - `lineItems[i].itemType.preset: DIGITAL` - then `lineItems[i].digitalFile` must be provided.
|
|
93
|
+
* > + If `lineItems[i].id` is passed, it must be either a valid GUID, or empty.
|
|
94
|
+
* @param - Order info.
|
|
95
|
+
* @returns Newly created order.
|
|
96
|
+
*/
|
|
97
|
+
(order: Order, options?: CreateOrderOptions | undefined): Promise<Order>;
|
|
98
|
+
}
|
|
99
|
+
declare function updateOrder$1(httpClient: HttpClient): UpdateOrderSignature;
|
|
100
|
+
interface UpdateOrderSignature {
|
|
101
|
+
/**
|
|
102
|
+
* Updates an order.
|
|
103
|
+
*
|
|
104
|
+
*
|
|
105
|
+
* The `updateOrder()` function returns a Promise that resolves when the specified order's information is updated.
|
|
106
|
+
*
|
|
107
|
+
* Currently, the following fields can be updated:
|
|
108
|
+
* + `order.buyerInfo.email`
|
|
109
|
+
* + `order.buyerLanguage`
|
|
110
|
+
* + `order.weightUnit`
|
|
111
|
+
* + `order.billingInfo.address`
|
|
112
|
+
* + `order.billingInfo.contactDetails`
|
|
113
|
+
* + `order.archived`
|
|
114
|
+
* + `order.attributionSource`
|
|
115
|
+
* + `order.seenByAHuman`
|
|
116
|
+
* + `order.recipientInfo.address`
|
|
117
|
+
* + `order.recipientInfo.contactDetails`
|
|
118
|
+
* + `order.shippingInfo.logistics.shippingDestination.address`
|
|
119
|
+
* + `order.shippingInfo.logistics.shippingDestination.contactDetails`
|
|
120
|
+
*
|
|
121
|
+
* To update a field's value, include the new value in the `order` object in the method parameters.
|
|
122
|
+
* To remove a field's value, pass `null`.
|
|
123
|
+
*
|
|
124
|
+
* > **Note:** Removing `buyerInfo` or `contactDetails` fields results in an error.
|
|
125
|
+
*
|
|
126
|
+
* To update an order's payment status, use [`updatePaymentStatus( )`](https://www.wix.com/velo/reference/wix-ecom-backend/ordertransactions/updatepaymentstatus).
|
|
127
|
+
* @param - Order ID.
|
|
128
|
+
* @returns Newly created order.
|
|
129
|
+
*/
|
|
130
|
+
(_id: string, order: UpdateOrder): Promise<Order>;
|
|
131
|
+
}
|
|
132
|
+
declare function bulkUpdateOrders$1(httpClient: HttpClient): BulkUpdateOrdersSignature;
|
|
133
|
+
interface BulkUpdateOrdersSignature {
|
|
134
|
+
/**
|
|
135
|
+
* Updates up to 100 orders.
|
|
136
|
+
*
|
|
137
|
+
*
|
|
138
|
+
* The `bulkUpdateOrders()` function returns a Promise that resolves when the specified orders' information is updated.
|
|
139
|
+
*
|
|
140
|
+
* Currently, the following fields can be updated:
|
|
141
|
+
* + `order.buyerInfo.email`
|
|
142
|
+
* + `order.buyerLanguage`
|
|
143
|
+
* + `order.weightUnit`
|
|
144
|
+
* + `order.billingInfo.address`
|
|
145
|
+
* + `order.billingInfo.contactDetails`
|
|
146
|
+
* + `order.archived`
|
|
147
|
+
* + `order.attributionSource`
|
|
148
|
+
* + `order.seenByAHuman`
|
|
149
|
+
* + `order.recipientInfo.address`
|
|
150
|
+
* + `order.recipientInfo.contactDetails`
|
|
151
|
+
* + `order.shippingInfo.logistics.shippingDestination.address`
|
|
152
|
+
* + `order.shippingInfo.logistics.shippingDestination.contactDetails`
|
|
153
|
+
*
|
|
154
|
+
* To update a field's value, include the new value in the `orders.order` object in the method parameters.
|
|
155
|
+
* To remove a field's value, pass `null`.
|
|
156
|
+
*
|
|
157
|
+
* > **Note:** Removing `buyerInfo` or `contactDetails` fields results in an error.
|
|
158
|
+
*
|
|
159
|
+
* To update an order's payment status, use [`updatePaymentStatus( )`](https://www.wix.com/velo/reference/wix-ecom-backend/ordertransactions/updatepaymentstatus).
|
|
160
|
+
* @param - Orders to update.
|
|
161
|
+
*/
|
|
162
|
+
(orders: MaskedOrder[], options?: BulkUpdateOrdersOptions | undefined): Promise<BulkUpdateOrdersResponse>;
|
|
163
|
+
}
|
|
164
|
+
declare function cancelOrder$1(httpClient: HttpClient): CancelOrderSignature;
|
|
165
|
+
interface CancelOrderSignature {
|
|
166
|
+
/**
|
|
167
|
+
* Cancels an order.
|
|
168
|
+
*
|
|
169
|
+
*
|
|
170
|
+
* The `cancelOrder()` function returns a Promise that resolves when the specified order is canceled and the `order.status` field changes to `CANCELED`.
|
|
171
|
+
* @param - Order ID.
|
|
172
|
+
*/
|
|
173
|
+
(_id: string, options?: CancelOrderOptions | undefined): Promise<CancelOrderResponse>;
|
|
174
|
+
}
|
|
175
|
+
declare function bulkUpdateOrderTags$1(httpClient: HttpClient): BulkUpdateOrderTagsSignature;
|
|
176
|
+
interface BulkUpdateOrderTagsSignature {
|
|
177
|
+
/**
|
|
178
|
+
* Synchronously update tags on multiple orders, by list of order IDs.
|
|
179
|
+
*
|
|
180
|
+
* > **Note:** If the same tag is passed to both the `assignTags` and `unassignTags` fields, it will be assigned.
|
|
181
|
+
* @param - IDs of orders to update tags for.
|
|
182
|
+
*/
|
|
183
|
+
(orderIds: string[], options?: BulkUpdateOrderTagsOptions | undefined): Promise<BulkUpdateOrderTagsResponse>;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
declare const preparePaymentCollection: MaybeContext<BuildRESTFunction<typeof preparePaymentCollection$1> & typeof preparePaymentCollection$1>;
|
|
187
|
+
declare const getPaymentCollectabilityStatus: MaybeContext<BuildRESTFunction<typeof getPaymentCollectabilityStatus$1> & typeof getPaymentCollectabilityStatus$1>;
|
|
188
|
+
declare const voidAuthorizedPayments: MaybeContext<BuildRESTFunction<typeof voidAuthorizedPayments$1> & typeof voidAuthorizedPayments$1>;
|
|
189
|
+
declare const captureAuthorizedPayments: MaybeContext<BuildRESTFunction<typeof captureAuthorizedPayments$1> & typeof captureAuthorizedPayments$1>;
|
|
190
|
+
declare const getOrder: MaybeContext<BuildRESTFunction<typeof getOrder$1> & typeof getOrder$1>;
|
|
191
|
+
declare const searchOrders: MaybeContext<BuildRESTFunction<typeof searchOrders$1> & typeof searchOrders$1>;
|
|
192
|
+
declare const createOrder: MaybeContext<BuildRESTFunction<typeof createOrder$1> & typeof createOrder$1>;
|
|
193
|
+
declare const updateOrder: MaybeContext<BuildRESTFunction<typeof updateOrder$1> & typeof updateOrder$1>;
|
|
194
|
+
declare const bulkUpdateOrders: MaybeContext<BuildRESTFunction<typeof bulkUpdateOrders$1> & typeof bulkUpdateOrders$1>;
|
|
195
|
+
declare const cancelOrder: MaybeContext<BuildRESTFunction<typeof cancelOrder$1> & typeof cancelOrder$1>;
|
|
196
|
+
declare const bulkUpdateOrderTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateOrderTags$1> & typeof bulkUpdateOrderTags$1>;
|
|
197
|
+
/** */
|
|
198
|
+
declare const onOrderApproved: ReturnType<typeof createEventModule<typeof publicOnOrderApproved>>;
|
|
199
|
+
/** */
|
|
200
|
+
declare const onOrderUpdated: ReturnType<typeof createEventModule<typeof publicOnOrderUpdated>>;
|
|
201
|
+
/**
|
|
202
|
+
* Triggered when an order is canceled.
|
|
203
|
+
* 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).
|
|
204
|
+
*/
|
|
205
|
+
declare const onOrderCanceled: ReturnType<typeof createEventModule<typeof publicOnOrderCanceled>>;
|
|
206
|
+
/**
|
|
207
|
+
* Triggered when an order is created.
|
|
208
|
+
* Learn more about [webhook payload structure](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/orders/order-object-conversion#webhook-conversion-table).
|
|
209
|
+
*/
|
|
210
|
+
declare const onOrderCreated: ReturnType<typeof createEventModule<typeof publicOnOrderCreated>>;
|
|
211
|
+
|
|
212
|
+
export { BulkUpdateOrderTagsOptions, BulkUpdateOrderTagsResponse, BulkUpdateOrdersOptions, BulkUpdateOrdersResponse, CancelOrderOptions, CancelOrderResponse, CaptureAuthorizedPaymentsResponse, CreateOrderOptions, GetPaymentCollectabilityStatusResponse, MaskedOrder, Order, PaymentCapture, PreparePaymentCollectionOptions, PreparePaymentCollectionResponse, Price, SearchOrdersOptions, SearchOrdersResponse, UpdateOrder, VoidAuthorizedPaymentsResponse, bulkUpdateOrderTags, bulkUpdateOrders, cancelOrder, captureAuthorizedPayments, createOrder, getOrder, getPaymentCollectabilityStatus, onOrderApproved, onOrderCanceled, onOrderCreated, onOrderUpdated, preparePaymentCollection, searchOrders, updateOrder, voidAuthorizedPayments };
|