@wix/auto_sdk_ecom_draft-orders 1.0.19 → 1.0.21
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/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.context.d.ts +26 -0
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.context.js +57 -0
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -0
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.http.d.ts +97 -0
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.http.js +2951 -0
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -0
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.meta.d.ts +60 -0
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.meta.js +446 -0
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.meta.js.map +1 -0
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.public.d.ts +209 -0
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.public.js +168 -0
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -0
- package/build/{ecom-v1-draft-order-draft-orders.universal-Ch0BEnrn.d.mts → cjs/src/ecom-v1-draft-order-draft-orders.types.d.ts} +336 -429
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.types.js +360 -0
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -0
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.universal.d.ts +4055 -0
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.universal.js +1899 -0
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.context.d.ts +26 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.context.js +26 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.http.d.ts +97 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.http.js +2926 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.meta.d.ts +60 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.meta.js +398 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.meta.js.map +1 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.public.d.ts +209 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.public.js +114 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -0
- package/build/{ecom-v1-draft-order-draft-orders.universal-Ch0BEnrn.d.ts → es/src/ecom-v1-draft-order-draft-orders.types.d.ts} +336 -429
- package/build/es/src/ecom-v1-draft-order-draft-orders.types.js +357 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.universal.d.ts +4055 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.universal.js +1851 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.context.d.ts +26 -0
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.context.js +57 -0
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.http.d.ts +97 -0
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.http.js +2951 -0
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.meta.d.ts +60 -0
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.meta.js +446 -0
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.meta.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.public.d.ts +209 -0
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.public.js +168 -0
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -0
- package/build/internal/{ecom-v1-draft-order-draft-orders.universal-B5CD1SEk.d.mts → cjs/src/ecom-v1-draft-order-draft-orders.types.d.ts} +336 -889
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.types.js +360 -0
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.universal.d.ts +4515 -0
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.universal.js +1899 -0
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.context.d.ts +26 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.context.js +26 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.http.d.ts +97 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.http.js +2926 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.meta.d.ts +60 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.meta.js +398 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.meta.js.map +1 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.public.d.ts +209 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.public.js +114 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -0
- package/build/internal/{ecom-v1-draft-order-draft-orders.universal-B5CD1SEk.d.ts → es/src/ecom-v1-draft-order-draft-orders.types.d.ts} +336 -889
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.types.js +357 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.universal.d.ts +4515 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.universal.js +1851 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/index.d.mts +0 -232
- package/build/index.d.ts +0 -232
- package/build/index.js +0 -4593
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -4520
- package/build/index.mjs.map +0 -1
- package/build/internal/index.d.mts +0 -232
- package/build/internal/index.d.ts +0 -232
- package/build/internal/index.js +0 -4593
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -4520
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -2751
- package/build/internal/meta.d.ts +0 -2751
- package/build/internal/meta.js +0 -3323
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -3275
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -2751
- package/build/meta.d.ts +0 -2751
- package/build/meta.js +0 -3323
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -3275
- package/build/meta.mjs.map +0 -1
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { C as CreateDraftOrderResponse, a as CreateEmptyDraftOrderResponse, A as AddLineItemsToDraftOrderOptions, b as AddLineItemsToDraftOrderResponse, U as UpdateLineItemsOptions, c as UpdateLineItemsResponse, I as IdAndApplied, S as SetDiscountsResponse, d as CreateCustomDiscountsOptions, e as CreateCustomDiscountsResponse, D as DeleteCustomDiscountsResponse, f as SetAdditionalFeesResponse, g as CreateCustomAdditionalFeesOptions, h as CreateCustomAdditionalFeesResponse, i as DeleteCustomAdditionalFeesResponse, G as GetDraftOrderResponse, j as GetOrderDraftabilityStatusResponse, k as CommitDraftOrderOptions, l as CommitDraftOrderResponse, m as DraftOrdersQueryBuilder } from './ecom-v1-draft-order-draft-orders.universal-B5CD1SEk.mjs';
|
|
3
|
-
export { dp as ActionEvent, c2 as Activity, c3 as ActivityContentOneOf, z as ActivityType, bA as AddLineItemsToDraftOrderRequest, aM as AdditionalFee, aL as AdditionalFeeDetails, bN as AdditionalFeeOption, ay as Address, aA as AddressLocation, ax as AddressWithContact, q as AdjustmentType, bt as ApplicationError, aP as AppliedDiscount, aQ as AppliedDiscountDiscountSourceOneOf, t as AppliedDiscountDiscountType, B as AttributionSource, cq as AuthorizedPaymentCaptured, cp as AuthorizedPaymentCreated, cr as AuthorizedPaymentVoided, b0 as Balance, a$ as BalanceSummary, al as BillingAdjustment, am as BillingAdjustmentPriceSummary, bd as BillingChangedDetails, bb as BillingDetails, bc as BillingDetailsChangeTypeOneOf, bh as BusinessLocationChangedDetails, be as BusinessLocationDetails, bf as BusinessLocationDetailsChangeTypeOneOf, ba as BuyerChangedDetails, b8 as BuyerDetails, b9 as BuyerDetailsChangeTypeOneOf, aJ as BuyerInfo, aK as BuyerInfoIdOneOf, bj as CalculatedDraftOrder, bp as CalculationErrors, bq as CalculationErrorsShippingCalculationErrorOneOf, by as CarrierError, bx as CarrierErrors, a1 as CatalogReference, bB as CatalogReferenceLineItem, cS as ChannelInfo, H as ChannelType, a7 as Color, b$ as CommitDraftOrderRequest, aR as Coupon, bM as CreateCustomAdditionalFeesRequest, bH as CreateCustomDiscountsRequest, bi as CreateDraftOrderRequest, bz as CreateEmptyDraftOrderRequest, cY as CreateOrderFromDraftRequest, c$ as CreateOrderFromDraftResponse, aX as CreatedBy, aY as CreatedByStringOneOf, cF as CreditCardDetails, c1 as CurrencyConversionDetails, d6 as CursorPaging, d8 as CursorPagingMetadata, d3 as CursorQuery, d4 as CursorQueryPagingMethodOneOf, d9 as Cursors, c4 as CustomActivity, cT as CustomField, bC as CustomLineItem, bO as DeleteCustomAdditionalFeesRequest, bK as DeleteCustomDiscountsRequest, d0 as DeleteDraftOrderRequest, d1 as DeleteDraftOrderResponse, bl as DeliveryLogistics, bn as DeliveryTimeSlot, a2 as DescriptionLine, a4 as DescriptionLineDescriptionLineValueOneOf, a5 as DescriptionLineName, n as DescriptionLineType, a3 as DescriptionLineValueOneOf, br as Details, bs as DetailsKindOneOf, af as DigitalFile, aO as DiscountDetails, bI as DiscountOption, bJ as DiscountOptionDiscountAmountOneOf, u as DiscountReason, aU as DiscountRule, aV as DiscountRuleName, w as DiscountType, di as DomainEvent, dj as DomainEventBodyOneOf, Q as DraftOrder, ca as DraftOrderChangesApplied, b1 as DraftOrderCommitSettings, dt as DraftOrdersQueryResult, E as EditingStatus, dk as EntityCreatedEvent, dn as EntityDeletedEvent, dm as EntityUpdatedEvent, aq as ExtendedFields, cN as ExternalReceipt, bv as FieldViolation, F as FileType, a8 as FocalPoint, ak as FreeTrialPeriod, y as FulfillmentStatus, cV as FulfillmentStatusesAggregate, aB as FullAddressContactDetails, de as GetDraftEditabilityStatusRequest, df as GetDraftEditabilityStatusResponse, bZ as GetDraftOrderRequest, b_ as GetOrderDraftabilityStatusRequest, cw as GiftCardPaymentRefund, dr as IdentificationData, ds as IdentificationDataIdOneOf, b2 as InventoryUpdate, ar as ItemChangedDetails, X as ItemDetails, Y as ItemDetailsChangeTypeOneOf, ac as ItemTaxFullDetails, aa as ItemType, o as ItemTypeItemType, ab as ItemTypeItemTypeDataOneOf, J as JurisdictionType, cj as LineItemAmount, bF as LineItemChangeDetails, cd as LineItemChanges, aW as LineItemDiscount, c9 as LineItemExchangeData, cf as LineItemPriceChange, ce as LineItemQuantityChange, L as LineItemQuantityChangeType, ae as LineItemTaxBreakdown, ad as LineItemTaxInfo, bg as Location, an as LocationAndQuantity, ck as ManagedAdditionalFee, ch as ManagedDiscount, cg as ManagedLineItem, cx as MembershipPaymentRefund, c5 as MerchantComment, aS as MerchantDiscount, aT as MerchantDiscountMerchantDiscountReasonOneOf, dq as MessageEnvelope, c8 as NewExchangeOrderCreated, N as NonDraftableReason, c0 as Order, cb as OrderChange, cc as OrderChangeValueOneOf, c_ as OrderCreateNotifications, cZ as OrderCreateSettings, c7 as OrderCreatedFromExchange, $ as OrderLineItem, c6 as OrderRefunded, O as OrderStatus, b7 as OrderTaxBreakdown, b6 as OrderTaxInfo, cG as PaymentCanceled, cH as PaymentCanceledPaymentDetailsOneOf, cI as PaymentDeclined, cJ as PaymentDeclinedPaymentDetailsOneOf, P as PaymentOptionType, cB as PaymentPending, cC as PaymentPendingPaymentDetailsOneOf, cz as PaymentRefundFailed, cy as PaymentRefunded, x as PaymentStatus, a9 as PhysicalProperties, aE as PickupAddress, bm as PickupDetails, r as PickupDetailsPickupMethod, v as PickupMethod, a6 as PlainTextValue, Z as Price, _ as PriceDescription, aZ as PriceSummary, a0 as ProductName, d2 as QueryDraftOrdersRequest, d7 as QueryDraftOrdersResponse, cK as ReceiptCreated, cL as ReceiptCreatedReceiptInfoOneOf, cO as ReceiptSent, cP as ReceiptSentReceiptInfoOneOf, b5 as RecipientInfoChangedDetails, b3 as RecipientInfoDetails, b4 as RecipientInfoDetailsChangeTypeOneOf, cs as RefundInitiated, cA as RefundedAsStoreCredit, ct as RefundedPayment, cu as RefundedPaymentKindOneOf, cD as RegularPayment, cE as RegularPaymentPaymentMethodDetailsOneOf, cv as RegularPaymentRefund, dl as RestoreInfo, R as RuleType, co as SavedPaymentMethod, bD as SecuredMedia, bL as SetAdditionalFeesRequest, bV as SetBillingInfoRequest, bW as SetBillingInfoResponse, dg as SetBusinessLocationRequest, dh as SetBusinessLocationResponse, bR as SetBuyerInfoRequest, bS as SetBuyerInfoResponse, bG as SetDiscountsRequest, bT as SetRecipientInfoRequest, bU as SetRecipientInfoResponse, bP as SetShippingInfoRequest, bQ as SetShippingInfoResponse, dc as SetTaxExemptionRequest, dd as SetTaxExemptionResponse, aI as ShippingChangedDetails, as as ShippingDetails, at as ShippingDetailsChangeTypeOneOf, cn as ShippingInformation, cm as ShippingInformationChange, bk as ShippingOption, bo as ShippingPrice, aH as ShippingRegion, K as SortOrder, d5 as Sorting, s as SourceType, az as StreetAddress, ai as SubscriptionDescription, p as SubscriptionFrequency, ag as SubscriptionInfo, aj as SubscriptionSettings, ah as SubscriptionTitle, bw as SystemError, cX as TagList, cW as Tags, aN as TaxDetails, a_ as TaxSummary, ao as TaxableAddress, ap as TaxableAddressTaxableAddressDataOneOf, T as TaxableAddressType, cl as TotalPriceChange, ci as TranslatedValue, da as UpdateExtendedFieldsRequest, db as UpdateExtendedFieldsResponse, bE as UpdateLineItemsRequest, bX as UpdateShippingInfoRequest, bY as UpdateShippingInfoResponse, cU as V1BalanceSummary, cQ as V1CreatedBy, cR as V1CreatedByStringOneOf, av as V1DeliveryLogistics, aw as V1DeliveryLogisticsAddressOneOf, aF as V1DeliveryTimeSlot, aD as V1PickupDetails, au as V1ShippingInformation, aG as V1ShippingPrice, bu as ValidationError, aC as VatId, V as VatType, M as WebhookIdentityType, W as WeightUnit, cM as WixReceipt } from './ecom-v1-draft-order-draft-orders.universal-B5CD1SEk.mjs';
|
|
4
|
-
|
|
5
|
-
declare function createDraftOrder$1(httpClient: HttpClient): CreateDraftOrderSignature;
|
|
6
|
-
interface CreateDraftOrderSignature {
|
|
7
|
-
/**
|
|
8
|
-
* Creates or gets a draft order.
|
|
9
|
-
*
|
|
10
|
-
* When passing the ID of an order that is already in draft, the existing draft order will be returned.
|
|
11
|
-
* To complete a draft and update the order, call [Commit Draft Order](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/draft-orders/commit-draft-order).
|
|
12
|
-
* @param - To create a draft from existing order, provide its id. Otherwise, an empty draft will be created.
|
|
13
|
-
*/
|
|
14
|
-
(orderId: string): Promise<CreateDraftOrderResponse>;
|
|
15
|
-
}
|
|
16
|
-
declare function createEmptyDraftOrder$1(httpClient: HttpClient): CreateEmptyDraftOrderSignature;
|
|
17
|
-
interface CreateEmptyDraftOrderSignature {
|
|
18
|
-
/**
|
|
19
|
-
* Creates an empty draft order.
|
|
20
|
-
*/
|
|
21
|
-
(): Promise<CreateEmptyDraftOrderResponse>;
|
|
22
|
-
}
|
|
23
|
-
declare function addLineItemsToDraftOrder$1(httpClient: HttpClient): AddLineItemsToDraftOrderSignature;
|
|
24
|
-
interface AddLineItemsToDraftOrderSignature {
|
|
25
|
-
/**
|
|
26
|
-
* Adds line items to a draft order.
|
|
27
|
-
* @param - The draft order id
|
|
28
|
-
*/
|
|
29
|
-
(draftOrderId: string, options?: AddLineItemsToDraftOrderOptions | undefined): Promise<AddLineItemsToDraftOrderResponse>;
|
|
30
|
-
}
|
|
31
|
-
declare function updateLineItems$1(httpClient: HttpClient): UpdateLineItemsSignature;
|
|
32
|
-
interface UpdateLineItemsSignature {
|
|
33
|
-
/**
|
|
34
|
-
* Updates a draft order's line items.
|
|
35
|
-
*
|
|
36
|
-
* Using this API, you can update a line item's quantity, price, and description.
|
|
37
|
-
* > **Notes:**
|
|
38
|
-
* > + Passing a quantity of `0` will remove the line item.
|
|
39
|
-
* > + Price cannot be updated for line items with `paymentOption: MEMBERSHIP`.
|
|
40
|
-
* > + Quantity cannot be decreased fulfilled line items. To get fulfillment information, pass the order ID to [List Fulfillments For Single Order](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/order-fulfillments/list-fulfillments-for-single-order).
|
|
41
|
-
* @param - The draft order id
|
|
42
|
-
*/
|
|
43
|
-
(draftOrderId: string, options?: UpdateLineItemsOptions | undefined): Promise<UpdateLineItemsResponse>;
|
|
44
|
-
}
|
|
45
|
-
declare function setDiscounts$1(httpClient: HttpClient): SetDiscountsSignature;
|
|
46
|
-
interface SetDiscountsSignature {
|
|
47
|
-
/**
|
|
48
|
-
* Sets and enables or disables discounts on a draft order.
|
|
49
|
-
*
|
|
50
|
-
* Any discounts not passed will not change.
|
|
51
|
-
* @param - The draft order id
|
|
52
|
-
* @param - The discount ids to opt-in. all existing discounts not listed are to be opted-out.
|
|
53
|
-
*/
|
|
54
|
-
(draftOrderId: string, discounts: IdAndApplied[]): Promise<SetDiscountsResponse>;
|
|
55
|
-
}
|
|
56
|
-
declare function createCustomDiscounts$1(httpClient: HttpClient): CreateCustomDiscountsSignature;
|
|
57
|
-
interface CreateCustomDiscountsSignature {
|
|
58
|
-
/**
|
|
59
|
-
* Adds merchant discounts to the order.
|
|
60
|
-
* @param - The draft order id
|
|
61
|
-
*/
|
|
62
|
-
(draftOrderId: string, options?: CreateCustomDiscountsOptions | undefined): Promise<CreateCustomDiscountsResponse>;
|
|
63
|
-
}
|
|
64
|
-
declare function deleteCustomDiscounts$1(httpClient: HttpClient): DeleteCustomDiscountsSignature;
|
|
65
|
-
interface DeleteCustomDiscountsSignature {
|
|
66
|
-
/**
|
|
67
|
-
* Remove custom discounts from the order.
|
|
68
|
-
* @param - The draft order id
|
|
69
|
-
* @param - The discounts to remove
|
|
70
|
-
*/
|
|
71
|
-
(draftOrderId: string, discountIds: string[]): Promise<DeleteCustomDiscountsResponse>;
|
|
72
|
-
}
|
|
73
|
-
declare function setAdditionalFees$1(httpClient: HttpClient): SetAdditionalFeesSignature;
|
|
74
|
-
interface SetAdditionalFeesSignature {
|
|
75
|
-
/**
|
|
76
|
-
* Set which additional fees existing on the draft order are to be opt-in.
|
|
77
|
-
* All existing additional fees not provided on the call are opted-out.
|
|
78
|
-
* @param - The draft order id
|
|
79
|
-
* @param - The additional fees ids to opt-in. all existing additional fees not listed are to be opted-out
|
|
80
|
-
*/
|
|
81
|
-
(draftOrderId: string, additionalFees: IdAndApplied[]): Promise<SetAdditionalFeesResponse>;
|
|
82
|
-
}
|
|
83
|
-
declare function createCustomAdditionalFees$1(httpClient: HttpClient): CreateCustomAdditionalFeesSignature;
|
|
84
|
-
interface CreateCustomAdditionalFeesSignature {
|
|
85
|
-
/**
|
|
86
|
-
* Create custom additional fees to the order.
|
|
87
|
-
* added additional fees are by default opted-out.
|
|
88
|
-
* To opt-in them, please call SetAdditionalFees with the added additional fee ids.
|
|
89
|
-
* @param - The draft order id
|
|
90
|
-
*/
|
|
91
|
-
(draftOrderId: string, options?: CreateCustomAdditionalFeesOptions | undefined): Promise<CreateCustomAdditionalFeesResponse>;
|
|
92
|
-
}
|
|
93
|
-
declare function deleteCustomAdditionalFees$1(httpClient: HttpClient): DeleteCustomAdditionalFeesSignature;
|
|
94
|
-
interface DeleteCustomAdditionalFeesSignature {
|
|
95
|
-
/**
|
|
96
|
-
* Remove custom additional fees from the order.
|
|
97
|
-
* @param - The draft order id
|
|
98
|
-
* @param - The additional fees to remove
|
|
99
|
-
*/
|
|
100
|
-
(draftOrderId: string, customAdditionalFees: string[]): Promise<DeleteCustomAdditionalFeesResponse>;
|
|
101
|
-
}
|
|
102
|
-
declare function setShippingInfo$1(httpClient: HttpClient): SetShippingInfoSignature;
|
|
103
|
-
interface SetShippingInfoSignature {
|
|
104
|
-
/**
|
|
105
|
-
* Sets shipping info to a draft order.
|
|
106
|
-
*/
|
|
107
|
-
(): Promise<void>;
|
|
108
|
-
}
|
|
109
|
-
declare function setBuyerInfo$1(httpClient: HttpClient): SetBuyerInfoSignature;
|
|
110
|
-
interface SetBuyerInfoSignature {
|
|
111
|
-
/**
|
|
112
|
-
* Sets buyer info to a draft order.
|
|
113
|
-
*/
|
|
114
|
-
(): Promise<void>;
|
|
115
|
-
}
|
|
116
|
-
declare function setRecipientInfo$1(httpClient: HttpClient): SetRecipientInfoSignature;
|
|
117
|
-
interface SetRecipientInfoSignature {
|
|
118
|
-
/**
|
|
119
|
-
* Sets recipient info to a draft order.
|
|
120
|
-
*/
|
|
121
|
-
(): Promise<void>;
|
|
122
|
-
}
|
|
123
|
-
declare function setBillingInfo$1(httpClient: HttpClient): SetBillingInfoSignature;
|
|
124
|
-
interface SetBillingInfoSignature {
|
|
125
|
-
/**
|
|
126
|
-
* Sets billing info to a draft order.
|
|
127
|
-
*/
|
|
128
|
-
(): Promise<void>;
|
|
129
|
-
}
|
|
130
|
-
declare function getDraftOrder$1(httpClient: HttpClient): GetDraftOrderSignature;
|
|
131
|
-
interface GetDraftOrderSignature {
|
|
132
|
-
/**
|
|
133
|
-
* Get an order.
|
|
134
|
-
* When order is in draft status, it's re-estimated and return with latest tax and totals
|
|
135
|
-
* Automatic discounts and automatic additional fees will reflect the latest prices and eligibility.
|
|
136
|
-
* Calculation will be based on current draft order content - items, shipping info and eligible discounts and additional fees.
|
|
137
|
-
* When order is in committed status, it's returned with it's calculation at the moment it was committed.
|
|
138
|
-
* @param - The draft order id
|
|
139
|
-
*/
|
|
140
|
-
(draftOrderId: string): Promise<GetDraftOrderResponse>;
|
|
141
|
-
}
|
|
142
|
-
declare function getOrderDraftabilityStatus$1(httpClient: HttpClient): GetOrderDraftabilityStatusSignature;
|
|
143
|
-
interface GetOrderDraftabilityStatusSignature {
|
|
144
|
-
/**
|
|
145
|
-
* Checks whether a draft can be created for this order
|
|
146
|
-
* @param - Order ID.
|
|
147
|
-
*/
|
|
148
|
-
(orderId: string): Promise<GetOrderDraftabilityStatusResponse>;
|
|
149
|
-
}
|
|
150
|
-
declare function commitDraftOrder$1(httpClient: HttpClient): CommitDraftOrderSignature;
|
|
151
|
-
interface CommitDraftOrderSignature {
|
|
152
|
-
/**
|
|
153
|
-
* Commit latest changes to the baseline order and control what side-effects will be applied.
|
|
154
|
-
* Commit cannot be undone or reverted.
|
|
155
|
-
* Order-edit become closed for editing, however it's kept for reference and can be retrieved.
|
|
156
|
-
* @param - The draft order id
|
|
157
|
-
*/
|
|
158
|
-
(draftOrderId: string, options?: CommitDraftOrderOptions | undefined): Promise<CommitDraftOrderResponse>;
|
|
159
|
-
}
|
|
160
|
-
declare function createOrderFromDraft$1(httpClient: HttpClient): CreateOrderFromDraftSignature;
|
|
161
|
-
interface CreateOrderFromDraftSignature {
|
|
162
|
-
/**
|
|
163
|
-
* Create new order and control what side-effects will be applied
|
|
164
|
-
* Commit cannot be undone or reverted.
|
|
165
|
-
* Order-edit become closed for editing, however it's kept for reference and can be retrieved.
|
|
166
|
-
*/
|
|
167
|
-
(): Promise<void>;
|
|
168
|
-
}
|
|
169
|
-
declare function deleteDraftOrder$1(httpClient: HttpClient): DeleteDraftOrderSignature;
|
|
170
|
-
interface DeleteDraftOrderSignature {
|
|
171
|
-
/**
|
|
172
|
-
* Delete order-edit entity with all pending changes.
|
|
173
|
-
* Order-edit in status 'COMMITTED' cannot be deleted.
|
|
174
|
-
* @param - The draft order id
|
|
175
|
-
*/
|
|
176
|
-
(draftOrderId: string): Promise<void>;
|
|
177
|
-
}
|
|
178
|
-
declare function queryDraftOrders$1(httpClient: HttpClient): QueryDraftOrdersSignature;
|
|
179
|
-
interface QueryDraftOrdersSignature {
|
|
180
|
-
/**
|
|
181
|
-
* Retrieves a list of draft orders given the provided paging, filtering, and sorting. Up to 100 draft orders can be returned per request.
|
|
182
|
-
*
|
|
183
|
-
* Refer to the table below for supported fields, filters, and sorting:
|
|
184
|
-
* | **Property** | **Supported Filters & Sorting** | **Sortable** |
|
|
185
|
-
* |----------------|---------------------------------------------------------------------------------|--------------|
|
|
186
|
-
* | `_createdDate` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`, `lt()`, `le()`, `gt()`, `ge()` | Sortable |
|
|
187
|
-
* | `_updatedDate` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`, `lt()`, `le()`, `gt()`, `ge()` | Sortable |
|
|
188
|
-
* | `status` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()` | Sortable |
|
|
189
|
-
* | `orderId` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`, `startsWith()` | |
|
|
190
|
-
* To learn how to query draft orders, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
191
|
-
*/
|
|
192
|
-
(): DraftOrdersQueryBuilder;
|
|
193
|
-
}
|
|
194
|
-
declare function setTaxExemption$1(httpClient: HttpClient): SetTaxExemptionSignature;
|
|
195
|
-
interface SetTaxExemptionSignature {
|
|
196
|
-
/**
|
|
197
|
-
* Sets tax exemption to a draft order.
|
|
198
|
-
*/
|
|
199
|
-
(): Promise<void>;
|
|
200
|
-
}
|
|
201
|
-
declare function setBusinessLocation$1(httpClient: HttpClient): SetBusinessLocationSignature;
|
|
202
|
-
interface SetBusinessLocationSignature {
|
|
203
|
-
/**
|
|
204
|
-
* Sets business location to a draft order.
|
|
205
|
-
*/
|
|
206
|
-
(): Promise<void>;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
declare const createDraftOrder: MaybeContext<BuildRESTFunction<typeof createDraftOrder$1> & typeof createDraftOrder$1>;
|
|
210
|
-
declare const createEmptyDraftOrder: MaybeContext<BuildRESTFunction<typeof createEmptyDraftOrder$1> & typeof createEmptyDraftOrder$1>;
|
|
211
|
-
declare const addLineItemsToDraftOrder: MaybeContext<BuildRESTFunction<typeof addLineItemsToDraftOrder$1> & typeof addLineItemsToDraftOrder$1>;
|
|
212
|
-
declare const updateLineItems: MaybeContext<BuildRESTFunction<typeof updateLineItems$1> & typeof updateLineItems$1>;
|
|
213
|
-
declare const setDiscounts: MaybeContext<BuildRESTFunction<typeof setDiscounts$1> & typeof setDiscounts$1>;
|
|
214
|
-
declare const createCustomDiscounts: MaybeContext<BuildRESTFunction<typeof createCustomDiscounts$1> & typeof createCustomDiscounts$1>;
|
|
215
|
-
declare const deleteCustomDiscounts: MaybeContext<BuildRESTFunction<typeof deleteCustomDiscounts$1> & typeof deleteCustomDiscounts$1>;
|
|
216
|
-
declare const setAdditionalFees: MaybeContext<BuildRESTFunction<typeof setAdditionalFees$1> & typeof setAdditionalFees$1>;
|
|
217
|
-
declare const createCustomAdditionalFees: MaybeContext<BuildRESTFunction<typeof createCustomAdditionalFees$1> & typeof createCustomAdditionalFees$1>;
|
|
218
|
-
declare const deleteCustomAdditionalFees: MaybeContext<BuildRESTFunction<typeof deleteCustomAdditionalFees$1> & typeof deleteCustomAdditionalFees$1>;
|
|
219
|
-
declare const setShippingInfo: MaybeContext<BuildRESTFunction<typeof setShippingInfo$1> & typeof setShippingInfo$1>;
|
|
220
|
-
declare const setBuyerInfo: MaybeContext<BuildRESTFunction<typeof setBuyerInfo$1> & typeof setBuyerInfo$1>;
|
|
221
|
-
declare const setRecipientInfo: MaybeContext<BuildRESTFunction<typeof setRecipientInfo$1> & typeof setRecipientInfo$1>;
|
|
222
|
-
declare const setBillingInfo: MaybeContext<BuildRESTFunction<typeof setBillingInfo$1> & typeof setBillingInfo$1>;
|
|
223
|
-
declare const getDraftOrder: MaybeContext<BuildRESTFunction<typeof getDraftOrder$1> & typeof getDraftOrder$1>;
|
|
224
|
-
declare const getOrderDraftabilityStatus: MaybeContext<BuildRESTFunction<typeof getOrderDraftabilityStatus$1> & typeof getOrderDraftabilityStatus$1>;
|
|
225
|
-
declare const commitDraftOrder: MaybeContext<BuildRESTFunction<typeof commitDraftOrder$1> & typeof commitDraftOrder$1>;
|
|
226
|
-
declare const createOrderFromDraft: MaybeContext<BuildRESTFunction<typeof createOrderFromDraft$1> & typeof createOrderFromDraft$1>;
|
|
227
|
-
declare const deleteDraftOrder: MaybeContext<BuildRESTFunction<typeof deleteDraftOrder$1> & typeof deleteDraftOrder$1>;
|
|
228
|
-
declare const queryDraftOrders: MaybeContext<BuildRESTFunction<typeof queryDraftOrders$1> & typeof queryDraftOrders$1>;
|
|
229
|
-
declare const setTaxExemption: MaybeContext<BuildRESTFunction<typeof setTaxExemption$1> & typeof setTaxExemption$1>;
|
|
230
|
-
declare const setBusinessLocation: MaybeContext<BuildRESTFunction<typeof setBusinessLocation$1> & typeof setBusinessLocation$1>;
|
|
231
|
-
|
|
232
|
-
export { AddLineItemsToDraftOrderOptions, AddLineItemsToDraftOrderResponse, CommitDraftOrderOptions, CommitDraftOrderResponse, CreateCustomAdditionalFeesOptions, CreateCustomAdditionalFeesResponse, CreateCustomDiscountsOptions, CreateCustomDiscountsResponse, CreateDraftOrderResponse, CreateEmptyDraftOrderResponse, DeleteCustomAdditionalFeesResponse, DeleteCustomDiscountsResponse, DraftOrdersQueryBuilder, GetDraftOrderResponse, GetOrderDraftabilityStatusResponse, IdAndApplied, SetAdditionalFeesResponse, SetDiscountsResponse, UpdateLineItemsOptions, UpdateLineItemsResponse, addLineItemsToDraftOrder, commitDraftOrder, createCustomAdditionalFees, createCustomDiscounts, createDraftOrder, createEmptyDraftOrder, createOrderFromDraft, deleteCustomAdditionalFees, deleteCustomDiscounts, deleteDraftOrder, getDraftOrder, getOrderDraftabilityStatus, queryDraftOrders, setAdditionalFees, setBillingInfo, setBusinessLocation, setBuyerInfo, setDiscounts, setRecipientInfo, setShippingInfo, setTaxExemption, updateLineItems };
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { C as CreateDraftOrderResponse, a as CreateEmptyDraftOrderResponse, A as AddLineItemsToDraftOrderOptions, b as AddLineItemsToDraftOrderResponse, U as UpdateLineItemsOptions, c as UpdateLineItemsResponse, I as IdAndApplied, S as SetDiscountsResponse, d as CreateCustomDiscountsOptions, e as CreateCustomDiscountsResponse, D as DeleteCustomDiscountsResponse, f as SetAdditionalFeesResponse, g as CreateCustomAdditionalFeesOptions, h as CreateCustomAdditionalFeesResponse, i as DeleteCustomAdditionalFeesResponse, G as GetDraftOrderResponse, j as GetOrderDraftabilityStatusResponse, k as CommitDraftOrderOptions, l as CommitDraftOrderResponse, m as DraftOrdersQueryBuilder } from './ecom-v1-draft-order-draft-orders.universal-B5CD1SEk.js';
|
|
3
|
-
export { dp as ActionEvent, c2 as Activity, c3 as ActivityContentOneOf, z as ActivityType, bA as AddLineItemsToDraftOrderRequest, aM as AdditionalFee, aL as AdditionalFeeDetails, bN as AdditionalFeeOption, ay as Address, aA as AddressLocation, ax as AddressWithContact, q as AdjustmentType, bt as ApplicationError, aP as AppliedDiscount, aQ as AppliedDiscountDiscountSourceOneOf, t as AppliedDiscountDiscountType, B as AttributionSource, cq as AuthorizedPaymentCaptured, cp as AuthorizedPaymentCreated, cr as AuthorizedPaymentVoided, b0 as Balance, a$ as BalanceSummary, al as BillingAdjustment, am as BillingAdjustmentPriceSummary, bd as BillingChangedDetails, bb as BillingDetails, bc as BillingDetailsChangeTypeOneOf, bh as BusinessLocationChangedDetails, be as BusinessLocationDetails, bf as BusinessLocationDetailsChangeTypeOneOf, ba as BuyerChangedDetails, b8 as BuyerDetails, b9 as BuyerDetailsChangeTypeOneOf, aJ as BuyerInfo, aK as BuyerInfoIdOneOf, bj as CalculatedDraftOrder, bp as CalculationErrors, bq as CalculationErrorsShippingCalculationErrorOneOf, by as CarrierError, bx as CarrierErrors, a1 as CatalogReference, bB as CatalogReferenceLineItem, cS as ChannelInfo, H as ChannelType, a7 as Color, b$ as CommitDraftOrderRequest, aR as Coupon, bM as CreateCustomAdditionalFeesRequest, bH as CreateCustomDiscountsRequest, bi as CreateDraftOrderRequest, bz as CreateEmptyDraftOrderRequest, cY as CreateOrderFromDraftRequest, c$ as CreateOrderFromDraftResponse, aX as CreatedBy, aY as CreatedByStringOneOf, cF as CreditCardDetails, c1 as CurrencyConversionDetails, d6 as CursorPaging, d8 as CursorPagingMetadata, d3 as CursorQuery, d4 as CursorQueryPagingMethodOneOf, d9 as Cursors, c4 as CustomActivity, cT as CustomField, bC as CustomLineItem, bO as DeleteCustomAdditionalFeesRequest, bK as DeleteCustomDiscountsRequest, d0 as DeleteDraftOrderRequest, d1 as DeleteDraftOrderResponse, bl as DeliveryLogistics, bn as DeliveryTimeSlot, a2 as DescriptionLine, a4 as DescriptionLineDescriptionLineValueOneOf, a5 as DescriptionLineName, n as DescriptionLineType, a3 as DescriptionLineValueOneOf, br as Details, bs as DetailsKindOneOf, af as DigitalFile, aO as DiscountDetails, bI as DiscountOption, bJ as DiscountOptionDiscountAmountOneOf, u as DiscountReason, aU as DiscountRule, aV as DiscountRuleName, w as DiscountType, di as DomainEvent, dj as DomainEventBodyOneOf, Q as DraftOrder, ca as DraftOrderChangesApplied, b1 as DraftOrderCommitSettings, dt as DraftOrdersQueryResult, E as EditingStatus, dk as EntityCreatedEvent, dn as EntityDeletedEvent, dm as EntityUpdatedEvent, aq as ExtendedFields, cN as ExternalReceipt, bv as FieldViolation, F as FileType, a8 as FocalPoint, ak as FreeTrialPeriod, y as FulfillmentStatus, cV as FulfillmentStatusesAggregate, aB as FullAddressContactDetails, de as GetDraftEditabilityStatusRequest, df as GetDraftEditabilityStatusResponse, bZ as GetDraftOrderRequest, b_ as GetOrderDraftabilityStatusRequest, cw as GiftCardPaymentRefund, dr as IdentificationData, ds as IdentificationDataIdOneOf, b2 as InventoryUpdate, ar as ItemChangedDetails, X as ItemDetails, Y as ItemDetailsChangeTypeOneOf, ac as ItemTaxFullDetails, aa as ItemType, o as ItemTypeItemType, ab as ItemTypeItemTypeDataOneOf, J as JurisdictionType, cj as LineItemAmount, bF as LineItemChangeDetails, cd as LineItemChanges, aW as LineItemDiscount, c9 as LineItemExchangeData, cf as LineItemPriceChange, ce as LineItemQuantityChange, L as LineItemQuantityChangeType, ae as LineItemTaxBreakdown, ad as LineItemTaxInfo, bg as Location, an as LocationAndQuantity, ck as ManagedAdditionalFee, ch as ManagedDiscount, cg as ManagedLineItem, cx as MembershipPaymentRefund, c5 as MerchantComment, aS as MerchantDiscount, aT as MerchantDiscountMerchantDiscountReasonOneOf, dq as MessageEnvelope, c8 as NewExchangeOrderCreated, N as NonDraftableReason, c0 as Order, cb as OrderChange, cc as OrderChangeValueOneOf, c_ as OrderCreateNotifications, cZ as OrderCreateSettings, c7 as OrderCreatedFromExchange, $ as OrderLineItem, c6 as OrderRefunded, O as OrderStatus, b7 as OrderTaxBreakdown, b6 as OrderTaxInfo, cG as PaymentCanceled, cH as PaymentCanceledPaymentDetailsOneOf, cI as PaymentDeclined, cJ as PaymentDeclinedPaymentDetailsOneOf, P as PaymentOptionType, cB as PaymentPending, cC as PaymentPendingPaymentDetailsOneOf, cz as PaymentRefundFailed, cy as PaymentRefunded, x as PaymentStatus, a9 as PhysicalProperties, aE as PickupAddress, bm as PickupDetails, r as PickupDetailsPickupMethod, v as PickupMethod, a6 as PlainTextValue, Z as Price, _ as PriceDescription, aZ as PriceSummary, a0 as ProductName, d2 as QueryDraftOrdersRequest, d7 as QueryDraftOrdersResponse, cK as ReceiptCreated, cL as ReceiptCreatedReceiptInfoOneOf, cO as ReceiptSent, cP as ReceiptSentReceiptInfoOneOf, b5 as RecipientInfoChangedDetails, b3 as RecipientInfoDetails, b4 as RecipientInfoDetailsChangeTypeOneOf, cs as RefundInitiated, cA as RefundedAsStoreCredit, ct as RefundedPayment, cu as RefundedPaymentKindOneOf, cD as RegularPayment, cE as RegularPaymentPaymentMethodDetailsOneOf, cv as RegularPaymentRefund, dl as RestoreInfo, R as RuleType, co as SavedPaymentMethod, bD as SecuredMedia, bL as SetAdditionalFeesRequest, bV as SetBillingInfoRequest, bW as SetBillingInfoResponse, dg as SetBusinessLocationRequest, dh as SetBusinessLocationResponse, bR as SetBuyerInfoRequest, bS as SetBuyerInfoResponse, bG as SetDiscountsRequest, bT as SetRecipientInfoRequest, bU as SetRecipientInfoResponse, bP as SetShippingInfoRequest, bQ as SetShippingInfoResponse, dc as SetTaxExemptionRequest, dd as SetTaxExemptionResponse, aI as ShippingChangedDetails, as as ShippingDetails, at as ShippingDetailsChangeTypeOneOf, cn as ShippingInformation, cm as ShippingInformationChange, bk as ShippingOption, bo as ShippingPrice, aH as ShippingRegion, K as SortOrder, d5 as Sorting, s as SourceType, az as StreetAddress, ai as SubscriptionDescription, p as SubscriptionFrequency, ag as SubscriptionInfo, aj as SubscriptionSettings, ah as SubscriptionTitle, bw as SystemError, cX as TagList, cW as Tags, aN as TaxDetails, a_ as TaxSummary, ao as TaxableAddress, ap as TaxableAddressTaxableAddressDataOneOf, T as TaxableAddressType, cl as TotalPriceChange, ci as TranslatedValue, da as UpdateExtendedFieldsRequest, db as UpdateExtendedFieldsResponse, bE as UpdateLineItemsRequest, bX as UpdateShippingInfoRequest, bY as UpdateShippingInfoResponse, cU as V1BalanceSummary, cQ as V1CreatedBy, cR as V1CreatedByStringOneOf, av as V1DeliveryLogistics, aw as V1DeliveryLogisticsAddressOneOf, aF as V1DeliveryTimeSlot, aD as V1PickupDetails, au as V1ShippingInformation, aG as V1ShippingPrice, bu as ValidationError, aC as VatId, V as VatType, M as WebhookIdentityType, W as WeightUnit, cM as WixReceipt } from './ecom-v1-draft-order-draft-orders.universal-B5CD1SEk.js';
|
|
4
|
-
|
|
5
|
-
declare function createDraftOrder$1(httpClient: HttpClient): CreateDraftOrderSignature;
|
|
6
|
-
interface CreateDraftOrderSignature {
|
|
7
|
-
/**
|
|
8
|
-
* Creates or gets a draft order.
|
|
9
|
-
*
|
|
10
|
-
* When passing the ID of an order that is already in draft, the existing draft order will be returned.
|
|
11
|
-
* To complete a draft and update the order, call [Commit Draft Order](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/draft-orders/commit-draft-order).
|
|
12
|
-
* @param - To create a draft from existing order, provide its id. Otherwise, an empty draft will be created.
|
|
13
|
-
*/
|
|
14
|
-
(orderId: string): Promise<CreateDraftOrderResponse>;
|
|
15
|
-
}
|
|
16
|
-
declare function createEmptyDraftOrder$1(httpClient: HttpClient): CreateEmptyDraftOrderSignature;
|
|
17
|
-
interface CreateEmptyDraftOrderSignature {
|
|
18
|
-
/**
|
|
19
|
-
* Creates an empty draft order.
|
|
20
|
-
*/
|
|
21
|
-
(): Promise<CreateEmptyDraftOrderResponse>;
|
|
22
|
-
}
|
|
23
|
-
declare function addLineItemsToDraftOrder$1(httpClient: HttpClient): AddLineItemsToDraftOrderSignature;
|
|
24
|
-
interface AddLineItemsToDraftOrderSignature {
|
|
25
|
-
/**
|
|
26
|
-
* Adds line items to a draft order.
|
|
27
|
-
* @param - The draft order id
|
|
28
|
-
*/
|
|
29
|
-
(draftOrderId: string, options?: AddLineItemsToDraftOrderOptions | undefined): Promise<AddLineItemsToDraftOrderResponse>;
|
|
30
|
-
}
|
|
31
|
-
declare function updateLineItems$1(httpClient: HttpClient): UpdateLineItemsSignature;
|
|
32
|
-
interface UpdateLineItemsSignature {
|
|
33
|
-
/**
|
|
34
|
-
* Updates a draft order's line items.
|
|
35
|
-
*
|
|
36
|
-
* Using this API, you can update a line item's quantity, price, and description.
|
|
37
|
-
* > **Notes:**
|
|
38
|
-
* > + Passing a quantity of `0` will remove the line item.
|
|
39
|
-
* > + Price cannot be updated for line items with `paymentOption: MEMBERSHIP`.
|
|
40
|
-
* > + Quantity cannot be decreased fulfilled line items. To get fulfillment information, pass the order ID to [List Fulfillments For Single Order](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/order-fulfillments/list-fulfillments-for-single-order).
|
|
41
|
-
* @param - The draft order id
|
|
42
|
-
*/
|
|
43
|
-
(draftOrderId: string, options?: UpdateLineItemsOptions | undefined): Promise<UpdateLineItemsResponse>;
|
|
44
|
-
}
|
|
45
|
-
declare function setDiscounts$1(httpClient: HttpClient): SetDiscountsSignature;
|
|
46
|
-
interface SetDiscountsSignature {
|
|
47
|
-
/**
|
|
48
|
-
* Sets and enables or disables discounts on a draft order.
|
|
49
|
-
*
|
|
50
|
-
* Any discounts not passed will not change.
|
|
51
|
-
* @param - The draft order id
|
|
52
|
-
* @param - The discount ids to opt-in. all existing discounts not listed are to be opted-out.
|
|
53
|
-
*/
|
|
54
|
-
(draftOrderId: string, discounts: IdAndApplied[]): Promise<SetDiscountsResponse>;
|
|
55
|
-
}
|
|
56
|
-
declare function createCustomDiscounts$1(httpClient: HttpClient): CreateCustomDiscountsSignature;
|
|
57
|
-
interface CreateCustomDiscountsSignature {
|
|
58
|
-
/**
|
|
59
|
-
* Adds merchant discounts to the order.
|
|
60
|
-
* @param - The draft order id
|
|
61
|
-
*/
|
|
62
|
-
(draftOrderId: string, options?: CreateCustomDiscountsOptions | undefined): Promise<CreateCustomDiscountsResponse>;
|
|
63
|
-
}
|
|
64
|
-
declare function deleteCustomDiscounts$1(httpClient: HttpClient): DeleteCustomDiscountsSignature;
|
|
65
|
-
interface DeleteCustomDiscountsSignature {
|
|
66
|
-
/**
|
|
67
|
-
* Remove custom discounts from the order.
|
|
68
|
-
* @param - The draft order id
|
|
69
|
-
* @param - The discounts to remove
|
|
70
|
-
*/
|
|
71
|
-
(draftOrderId: string, discountIds: string[]): Promise<DeleteCustomDiscountsResponse>;
|
|
72
|
-
}
|
|
73
|
-
declare function setAdditionalFees$1(httpClient: HttpClient): SetAdditionalFeesSignature;
|
|
74
|
-
interface SetAdditionalFeesSignature {
|
|
75
|
-
/**
|
|
76
|
-
* Set which additional fees existing on the draft order are to be opt-in.
|
|
77
|
-
* All existing additional fees not provided on the call are opted-out.
|
|
78
|
-
* @param - The draft order id
|
|
79
|
-
* @param - The additional fees ids to opt-in. all existing additional fees not listed are to be opted-out
|
|
80
|
-
*/
|
|
81
|
-
(draftOrderId: string, additionalFees: IdAndApplied[]): Promise<SetAdditionalFeesResponse>;
|
|
82
|
-
}
|
|
83
|
-
declare function createCustomAdditionalFees$1(httpClient: HttpClient): CreateCustomAdditionalFeesSignature;
|
|
84
|
-
interface CreateCustomAdditionalFeesSignature {
|
|
85
|
-
/**
|
|
86
|
-
* Create custom additional fees to the order.
|
|
87
|
-
* added additional fees are by default opted-out.
|
|
88
|
-
* To opt-in them, please call SetAdditionalFees with the added additional fee ids.
|
|
89
|
-
* @param - The draft order id
|
|
90
|
-
*/
|
|
91
|
-
(draftOrderId: string, options?: CreateCustomAdditionalFeesOptions | undefined): Promise<CreateCustomAdditionalFeesResponse>;
|
|
92
|
-
}
|
|
93
|
-
declare function deleteCustomAdditionalFees$1(httpClient: HttpClient): DeleteCustomAdditionalFeesSignature;
|
|
94
|
-
interface DeleteCustomAdditionalFeesSignature {
|
|
95
|
-
/**
|
|
96
|
-
* Remove custom additional fees from the order.
|
|
97
|
-
* @param - The draft order id
|
|
98
|
-
* @param - The additional fees to remove
|
|
99
|
-
*/
|
|
100
|
-
(draftOrderId: string, customAdditionalFees: string[]): Promise<DeleteCustomAdditionalFeesResponse>;
|
|
101
|
-
}
|
|
102
|
-
declare function setShippingInfo$1(httpClient: HttpClient): SetShippingInfoSignature;
|
|
103
|
-
interface SetShippingInfoSignature {
|
|
104
|
-
/**
|
|
105
|
-
* Sets shipping info to a draft order.
|
|
106
|
-
*/
|
|
107
|
-
(): Promise<void>;
|
|
108
|
-
}
|
|
109
|
-
declare function setBuyerInfo$1(httpClient: HttpClient): SetBuyerInfoSignature;
|
|
110
|
-
interface SetBuyerInfoSignature {
|
|
111
|
-
/**
|
|
112
|
-
* Sets buyer info to a draft order.
|
|
113
|
-
*/
|
|
114
|
-
(): Promise<void>;
|
|
115
|
-
}
|
|
116
|
-
declare function setRecipientInfo$1(httpClient: HttpClient): SetRecipientInfoSignature;
|
|
117
|
-
interface SetRecipientInfoSignature {
|
|
118
|
-
/**
|
|
119
|
-
* Sets recipient info to a draft order.
|
|
120
|
-
*/
|
|
121
|
-
(): Promise<void>;
|
|
122
|
-
}
|
|
123
|
-
declare function setBillingInfo$1(httpClient: HttpClient): SetBillingInfoSignature;
|
|
124
|
-
interface SetBillingInfoSignature {
|
|
125
|
-
/**
|
|
126
|
-
* Sets billing info to a draft order.
|
|
127
|
-
*/
|
|
128
|
-
(): Promise<void>;
|
|
129
|
-
}
|
|
130
|
-
declare function getDraftOrder$1(httpClient: HttpClient): GetDraftOrderSignature;
|
|
131
|
-
interface GetDraftOrderSignature {
|
|
132
|
-
/**
|
|
133
|
-
* Get an order.
|
|
134
|
-
* When order is in draft status, it's re-estimated and return with latest tax and totals
|
|
135
|
-
* Automatic discounts and automatic additional fees will reflect the latest prices and eligibility.
|
|
136
|
-
* Calculation will be based on current draft order content - items, shipping info and eligible discounts and additional fees.
|
|
137
|
-
* When order is in committed status, it's returned with it's calculation at the moment it was committed.
|
|
138
|
-
* @param - The draft order id
|
|
139
|
-
*/
|
|
140
|
-
(draftOrderId: string): Promise<GetDraftOrderResponse>;
|
|
141
|
-
}
|
|
142
|
-
declare function getOrderDraftabilityStatus$1(httpClient: HttpClient): GetOrderDraftabilityStatusSignature;
|
|
143
|
-
interface GetOrderDraftabilityStatusSignature {
|
|
144
|
-
/**
|
|
145
|
-
* Checks whether a draft can be created for this order
|
|
146
|
-
* @param - Order ID.
|
|
147
|
-
*/
|
|
148
|
-
(orderId: string): Promise<GetOrderDraftabilityStatusResponse>;
|
|
149
|
-
}
|
|
150
|
-
declare function commitDraftOrder$1(httpClient: HttpClient): CommitDraftOrderSignature;
|
|
151
|
-
interface CommitDraftOrderSignature {
|
|
152
|
-
/**
|
|
153
|
-
* Commit latest changes to the baseline order and control what side-effects will be applied.
|
|
154
|
-
* Commit cannot be undone or reverted.
|
|
155
|
-
* Order-edit become closed for editing, however it's kept for reference and can be retrieved.
|
|
156
|
-
* @param - The draft order id
|
|
157
|
-
*/
|
|
158
|
-
(draftOrderId: string, options?: CommitDraftOrderOptions | undefined): Promise<CommitDraftOrderResponse>;
|
|
159
|
-
}
|
|
160
|
-
declare function createOrderFromDraft$1(httpClient: HttpClient): CreateOrderFromDraftSignature;
|
|
161
|
-
interface CreateOrderFromDraftSignature {
|
|
162
|
-
/**
|
|
163
|
-
* Create new order and control what side-effects will be applied
|
|
164
|
-
* Commit cannot be undone or reverted.
|
|
165
|
-
* Order-edit become closed for editing, however it's kept for reference and can be retrieved.
|
|
166
|
-
*/
|
|
167
|
-
(): Promise<void>;
|
|
168
|
-
}
|
|
169
|
-
declare function deleteDraftOrder$1(httpClient: HttpClient): DeleteDraftOrderSignature;
|
|
170
|
-
interface DeleteDraftOrderSignature {
|
|
171
|
-
/**
|
|
172
|
-
* Delete order-edit entity with all pending changes.
|
|
173
|
-
* Order-edit in status 'COMMITTED' cannot be deleted.
|
|
174
|
-
* @param - The draft order id
|
|
175
|
-
*/
|
|
176
|
-
(draftOrderId: string): Promise<void>;
|
|
177
|
-
}
|
|
178
|
-
declare function queryDraftOrders$1(httpClient: HttpClient): QueryDraftOrdersSignature;
|
|
179
|
-
interface QueryDraftOrdersSignature {
|
|
180
|
-
/**
|
|
181
|
-
* Retrieves a list of draft orders given the provided paging, filtering, and sorting. Up to 100 draft orders can be returned per request.
|
|
182
|
-
*
|
|
183
|
-
* Refer to the table below for supported fields, filters, and sorting:
|
|
184
|
-
* | **Property** | **Supported Filters & Sorting** | **Sortable** |
|
|
185
|
-
* |----------------|---------------------------------------------------------------------------------|--------------|
|
|
186
|
-
* | `_createdDate` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`, `lt()`, `le()`, `gt()`, `ge()` | Sortable |
|
|
187
|
-
* | `_updatedDate` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`, `lt()`, `le()`, `gt()`, `ge()` | Sortable |
|
|
188
|
-
* | `status` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()` | Sortable |
|
|
189
|
-
* | `orderId` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`, `startsWith()` | |
|
|
190
|
-
* To learn how to query draft orders, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
191
|
-
*/
|
|
192
|
-
(): DraftOrdersQueryBuilder;
|
|
193
|
-
}
|
|
194
|
-
declare function setTaxExemption$1(httpClient: HttpClient): SetTaxExemptionSignature;
|
|
195
|
-
interface SetTaxExemptionSignature {
|
|
196
|
-
/**
|
|
197
|
-
* Sets tax exemption to a draft order.
|
|
198
|
-
*/
|
|
199
|
-
(): Promise<void>;
|
|
200
|
-
}
|
|
201
|
-
declare function setBusinessLocation$1(httpClient: HttpClient): SetBusinessLocationSignature;
|
|
202
|
-
interface SetBusinessLocationSignature {
|
|
203
|
-
/**
|
|
204
|
-
* Sets business location to a draft order.
|
|
205
|
-
*/
|
|
206
|
-
(): Promise<void>;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
declare const createDraftOrder: MaybeContext<BuildRESTFunction<typeof createDraftOrder$1> & typeof createDraftOrder$1>;
|
|
210
|
-
declare const createEmptyDraftOrder: MaybeContext<BuildRESTFunction<typeof createEmptyDraftOrder$1> & typeof createEmptyDraftOrder$1>;
|
|
211
|
-
declare const addLineItemsToDraftOrder: MaybeContext<BuildRESTFunction<typeof addLineItemsToDraftOrder$1> & typeof addLineItemsToDraftOrder$1>;
|
|
212
|
-
declare const updateLineItems: MaybeContext<BuildRESTFunction<typeof updateLineItems$1> & typeof updateLineItems$1>;
|
|
213
|
-
declare const setDiscounts: MaybeContext<BuildRESTFunction<typeof setDiscounts$1> & typeof setDiscounts$1>;
|
|
214
|
-
declare const createCustomDiscounts: MaybeContext<BuildRESTFunction<typeof createCustomDiscounts$1> & typeof createCustomDiscounts$1>;
|
|
215
|
-
declare const deleteCustomDiscounts: MaybeContext<BuildRESTFunction<typeof deleteCustomDiscounts$1> & typeof deleteCustomDiscounts$1>;
|
|
216
|
-
declare const setAdditionalFees: MaybeContext<BuildRESTFunction<typeof setAdditionalFees$1> & typeof setAdditionalFees$1>;
|
|
217
|
-
declare const createCustomAdditionalFees: MaybeContext<BuildRESTFunction<typeof createCustomAdditionalFees$1> & typeof createCustomAdditionalFees$1>;
|
|
218
|
-
declare const deleteCustomAdditionalFees: MaybeContext<BuildRESTFunction<typeof deleteCustomAdditionalFees$1> & typeof deleteCustomAdditionalFees$1>;
|
|
219
|
-
declare const setShippingInfo: MaybeContext<BuildRESTFunction<typeof setShippingInfo$1> & typeof setShippingInfo$1>;
|
|
220
|
-
declare const setBuyerInfo: MaybeContext<BuildRESTFunction<typeof setBuyerInfo$1> & typeof setBuyerInfo$1>;
|
|
221
|
-
declare const setRecipientInfo: MaybeContext<BuildRESTFunction<typeof setRecipientInfo$1> & typeof setRecipientInfo$1>;
|
|
222
|
-
declare const setBillingInfo: MaybeContext<BuildRESTFunction<typeof setBillingInfo$1> & typeof setBillingInfo$1>;
|
|
223
|
-
declare const getDraftOrder: MaybeContext<BuildRESTFunction<typeof getDraftOrder$1> & typeof getDraftOrder$1>;
|
|
224
|
-
declare const getOrderDraftabilityStatus: MaybeContext<BuildRESTFunction<typeof getOrderDraftabilityStatus$1> & typeof getOrderDraftabilityStatus$1>;
|
|
225
|
-
declare const commitDraftOrder: MaybeContext<BuildRESTFunction<typeof commitDraftOrder$1> & typeof commitDraftOrder$1>;
|
|
226
|
-
declare const createOrderFromDraft: MaybeContext<BuildRESTFunction<typeof createOrderFromDraft$1> & typeof createOrderFromDraft$1>;
|
|
227
|
-
declare const deleteDraftOrder: MaybeContext<BuildRESTFunction<typeof deleteDraftOrder$1> & typeof deleteDraftOrder$1>;
|
|
228
|
-
declare const queryDraftOrders: MaybeContext<BuildRESTFunction<typeof queryDraftOrders$1> & typeof queryDraftOrders$1>;
|
|
229
|
-
declare const setTaxExemption: MaybeContext<BuildRESTFunction<typeof setTaxExemption$1> & typeof setTaxExemption$1>;
|
|
230
|
-
declare const setBusinessLocation: MaybeContext<BuildRESTFunction<typeof setBusinessLocation$1> & typeof setBusinessLocation$1>;
|
|
231
|
-
|
|
232
|
-
export { AddLineItemsToDraftOrderOptions, AddLineItemsToDraftOrderResponse, CommitDraftOrderOptions, CommitDraftOrderResponse, CreateCustomAdditionalFeesOptions, CreateCustomAdditionalFeesResponse, CreateCustomDiscountsOptions, CreateCustomDiscountsResponse, CreateDraftOrderResponse, CreateEmptyDraftOrderResponse, DeleteCustomAdditionalFeesResponse, DeleteCustomDiscountsResponse, DraftOrdersQueryBuilder, GetDraftOrderResponse, GetOrderDraftabilityStatusResponse, IdAndApplied, SetAdditionalFeesResponse, SetDiscountsResponse, UpdateLineItemsOptions, UpdateLineItemsResponse, addLineItemsToDraftOrder, commitDraftOrder, createCustomAdditionalFees, createCustomDiscounts, createDraftOrder, createEmptyDraftOrder, createOrderFromDraft, deleteCustomAdditionalFees, deleteCustomDiscounts, deleteDraftOrder, getDraftOrder, getOrderDraftabilityStatus, queryDraftOrders, setAdditionalFees, setBillingInfo, setBusinessLocation, setBuyerInfo, setDiscounts, setRecipientInfo, setShippingInfo, setTaxExemption, updateLineItems };
|