@wix/auto_sdk_ecom_draft-orders 1.0.21 → 1.0.23
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-draft-order-draft-orders.context.d.ts +3 -2
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.context.js +3 -1
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -1
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.http.d.ts +40 -25
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.http.js +153 -26
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -1
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.meta.d.ts +3 -0
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.meta.js +20 -1
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.meta.js.map +1 -1
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.public.d.ts +82 -52
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.public.js +16 -10
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -1
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.types.d.ts +290 -102
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.types.js +23 -9
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -1
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.universal.d.ts +475 -169
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.universal.js +581 -92
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -1
- package/build/es/src/ecom-v1-draft-order-draft-orders.context.d.ts +3 -2
- package/build/es/src/ecom-v1-draft-order-draft-orders.context.js +2 -1
- package/build/es/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -1
- package/build/es/src/ecom-v1-draft-order-draft-orders.http.d.ts +40 -25
- package/build/es/src/ecom-v1-draft-order-draft-orders.http.js +151 -25
- package/build/es/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -1
- package/build/es/src/ecom-v1-draft-order-draft-orders.meta.d.ts +3 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.meta.js +18 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.meta.js.map +1 -1
- package/build/es/src/ecom-v1-draft-order-draft-orders.public.d.ts +82 -52
- package/build/es/src/ecom-v1-draft-order-draft-orders.public.js +14 -9
- package/build/es/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -1
- package/build/es/src/ecom-v1-draft-order-draft-orders.types.d.ts +290 -102
- package/build/es/src/ecom-v1-draft-order-draft-orders.types.js +23 -9
- package/build/es/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -1
- package/build/es/src/ecom-v1-draft-order-draft-orders.universal.d.ts +475 -169
- package/build/es/src/ecom-v1-draft-order-draft-orders.universal.js +578 -91
- package/build/es/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.context.d.ts +3 -2
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.context.js +3 -1
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.http.d.ts +40 -25
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.http.js +153 -26
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.meta.d.ts +3 -0
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.meta.js +20 -1
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.meta.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.public.d.ts +82 -52
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.public.js +16 -10
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.types.d.ts +290 -102
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.types.js +23 -9
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.universal.d.ts +370 -339
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.universal.js +581 -92
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -1
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.context.d.ts +3 -2
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.context.js +2 -1
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -1
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.http.d.ts +40 -25
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.http.js +151 -25
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -1
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.meta.d.ts +3 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.meta.js +18 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.meta.js.map +1 -1
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.public.d.ts +82 -52
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.public.js +14 -9
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -1
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.types.d.ts +290 -102
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.types.js +23 -9
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -1
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.universal.d.ts +370 -339
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.universal.js +578 -91
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createDraftOrder as publicCreateDraftOrder, createEmptyDraftOrder as publicCreateEmptyDraftOrder, addLineItemsToDraftOrder as publicAddLineItemsToDraftOrder, updateLineItems as publicUpdateLineItems, setDiscounts as publicSetDiscounts, createCustomDiscounts as publicCreateCustomDiscounts, deleteCustomDiscounts as publicDeleteCustomDiscounts, setAdditionalFees as publicSetAdditionalFees, createCustomAdditionalFees as publicCreateCustomAdditionalFees, deleteCustomAdditionalFees as publicDeleteCustomAdditionalFees, setShippingInfo as publicSetShippingInfo, setBuyerInfo as publicSetBuyerInfo, setRecipientInfo as publicSetRecipientInfo, setBillingInfo as publicSetBillingInfo, getDraftOrder as publicGetDraftOrder, getOrderDraftabilityStatus as publicGetOrderDraftabilityStatus, commitDraftOrder as publicCommitDraftOrder, createOrderFromDraft as publicCreateOrderFromDraft, deleteDraftOrder as publicDeleteDraftOrder, queryDraftOrders as publicQueryDraftOrders, setTaxExemption as publicSetTaxExemption, setBusinessLocation as publicSetBusinessLocation } from './ecom-v1-draft-order-draft-orders.public.js';
|
|
1
|
+
import { createDraftOrder as publicCreateDraftOrder, createEmptyDraftOrder as publicCreateEmptyDraftOrder, addLineItemsToDraftOrder as publicAddLineItemsToDraftOrder, updateLineItems as publicUpdateLineItems, setDiscounts as publicSetDiscounts, createCustomDiscounts as publicCreateCustomDiscounts, deleteCustomDiscounts as publicDeleteCustomDiscounts, setAdditionalFees as publicSetAdditionalFees, createCustomAdditionalFees as publicCreateCustomAdditionalFees, deleteCustomAdditionalFees as publicDeleteCustomAdditionalFees, setShippingInfo as publicSetShippingInfo, setBuyerInfo as publicSetBuyerInfo, setRecipientInfo as publicSetRecipientInfo, setBillingInfo as publicSetBillingInfo, getDraftOrder as publicGetDraftOrder, getOrderDraftabilityStatus as publicGetOrderDraftabilityStatus, commitDraftOrder as publicCommitDraftOrder, createOrderFromDraft as publicCreateOrderFromDraft, deleteDraftOrder as publicDeleteDraftOrder, queryDraftOrders as publicQueryDraftOrders, updateExtendedFields as publicUpdateExtendedFields, setTaxExemption as publicSetTaxExemption, setBusinessLocation as publicSetBusinessLocation } from './ecom-v1-draft-order-draft-orders.public.js';
|
|
2
2
|
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
3
3
|
export declare const createDraftOrder: MaybeContext<BuildRESTFunction<typeof publicCreateDraftOrder> & typeof publicCreateDraftOrder>;
|
|
4
4
|
export declare const createEmptyDraftOrder: MaybeContext<BuildRESTFunction<typeof publicCreateEmptyDraftOrder> & typeof publicCreateEmptyDraftOrder>;
|
|
@@ -20,7 +20,8 @@ export declare const commitDraftOrder: MaybeContext<BuildRESTFunction<typeof pub
|
|
|
20
20
|
export declare const createOrderFromDraft: MaybeContext<BuildRESTFunction<typeof publicCreateOrderFromDraft> & typeof publicCreateOrderFromDraft>;
|
|
21
21
|
export declare const deleteDraftOrder: MaybeContext<BuildRESTFunction<typeof publicDeleteDraftOrder> & typeof publicDeleteDraftOrder>;
|
|
22
22
|
export declare const queryDraftOrders: MaybeContext<BuildRESTFunction<typeof publicQueryDraftOrders> & typeof publicQueryDraftOrders>;
|
|
23
|
+
export declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof publicUpdateExtendedFields> & typeof publicUpdateExtendedFields>;
|
|
23
24
|
export declare const setTaxExemption: MaybeContext<BuildRESTFunction<typeof publicSetTaxExemption> & typeof publicSetTaxExemption>;
|
|
24
25
|
export declare const setBusinessLocation: MaybeContext<BuildRESTFunction<typeof publicSetBusinessLocation> & typeof publicSetBusinessLocation>;
|
|
25
26
|
export { DescriptionLineType, ItemTypeItemType, PaymentOptionType, JurisdictionType, SubscriptionFrequency, AdjustmentType, TaxableAddressType, VatType, PickupDetailsPickupMethod, SourceType, AppliedDiscountDiscountType, DiscountReason, EditingStatus, WeightUnit, PickupMethod, RuleType, FileType, DiscountType, NonDraftableReason, PaymentStatus, FulfillmentStatus, OrderStatus, LineItemQuantityChangeType, ActivityType, AttributionSource, ChannelType, SortOrder, WebhookIdentityType, } from './ecom-v1-draft-order-draft-orders.universal.js';
|
|
26
|
-
export { DraftOrder, ItemDetails, ItemDetailsChangeTypeOneOf, Price, PriceDescription, OrderLineItem, ProductName, CatalogReference, DescriptionLine, DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, PlainTextValue, Color, FocalPoint, PhysicalProperties, ItemType, ItemTypeItemTypeDataOneOf, ItemTaxFullDetails, LineItemTaxInfo, LineItemTaxBreakdown, DigitalFile, SubscriptionInfo, SubscriptionTitle, SubscriptionDescription, SubscriptionSettings, FreeTrialPeriod, BillingAdjustment, BillingAdjustmentPriceSummary, LocationAndQuantity, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, ExtendedFields, ItemChangedDetails, ShippingDetails, ShippingDetailsChangeTypeOneOf, V1ShippingInformation, V1DeliveryLogistics, V1DeliveryLogisticsAddressOneOf, AddressWithContact, Address, StreetAddress, AddressLocation, FullAddressContactDetails, VatId, V1PickupDetails, PickupAddress, V1DeliveryTimeSlot, V1ShippingPrice, ShippingRegion, ShippingChangedDetails, BuyerInfo, BuyerInfoIdOneOf, AdditionalFeeDetails, AdditionalFee, TaxDetails, DiscountDetails, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, Coupon, MerchantDiscount, MerchantDiscountMerchantDiscountReasonOneOf, DiscountRule, DiscountRuleName, LineItemDiscount, CreatedBy, CreatedByStringOneOf, PriceSummary, TaxSummary, BalanceSummary, Balance, DraftOrderCommitSettings, InventoryUpdate, RecipientInfoDetails, RecipientInfoDetailsChangeTypeOneOf, RecipientInfoChangedDetails, OrderTaxInfo, OrderTaxBreakdown, BuyerDetails, BuyerDetailsChangeTypeOneOf, BuyerChangedDetails, BillingDetails, BillingDetailsChangeTypeOneOf, BillingChangedDetails, BusinessLocationDetails, BusinessLocationDetailsChangeTypeOneOf, Location, BusinessLocationChangedDetails, CreateDraftOrderRequest, CreateDraftOrderResponse, CalculatedDraftOrder, ShippingOption, DeliveryLogistics, PickupDetails, DeliveryTimeSlot, ShippingPrice, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Details, DetailsKindOneOf, ApplicationError, ValidationError, FieldViolation, SystemError, CarrierErrors, CarrierError, CreateEmptyDraftOrderRequest, CreateEmptyDraftOrderResponse, AddLineItemsToDraftOrderRequest, CatalogReferenceLineItem, CustomLineItem, SecuredMedia, AddLineItemsToDraftOrderResponse, UpdateLineItemsRequest, LineItemChangeDetails, UpdateLineItemsResponse, SetDiscountsRequest, IdAndApplied, SetDiscountsResponse, CreateCustomDiscountsRequest, DiscountOption, DiscountOptionDiscountAmountOneOf, CreateCustomDiscountsResponse, DeleteCustomDiscountsRequest, DeleteCustomDiscountsResponse, SetAdditionalFeesRequest, SetAdditionalFeesResponse, CreateCustomAdditionalFeesRequest, AdditionalFeeOption, CreateCustomAdditionalFeesResponse, DeleteCustomAdditionalFeesRequest, DeleteCustomAdditionalFeesResponse, SetShippingInfoRequest, SetShippingInfoResponse, SetBuyerInfoRequest, SetBuyerInfoResponse, SetRecipientInfoRequest, SetRecipientInfoResponse, SetBillingInfoRequest, SetBillingInfoResponse, UpdateShippingInfoRequest, UpdateShippingInfoResponse, GetDraftOrderRequest, GetDraftOrderResponse, GetOrderDraftabilityStatusRequest, GetOrderDraftabilityStatusResponse, CommitDraftOrderRequest, CommitDraftOrderResponse, Order, CurrencyConversionDetails, Activity, ActivityContentOneOf, CustomActivity, MerchantComment, OrderRefunded, OrderCreatedFromExchange, NewExchangeOrderCreated, LineItemExchangeData, DraftOrderChangesApplied, OrderChange, OrderChangeValueOneOf, LineItemChanges, LineItemQuantityChange, LineItemPriceChange, ManagedLineItem, ManagedDiscount, TranslatedValue, LineItemAmount, ManagedAdditionalFee, TotalPriceChange, ShippingInformationChange, ShippingInformation, SavedPaymentMethod, AuthorizedPaymentCreated, AuthorizedPaymentCaptured, AuthorizedPaymentVoided, RefundInitiated, RefundedPayment, RefundedPaymentKindOneOf, RegularPaymentRefund, GiftCardPaymentRefund, MembershipPaymentRefund, PaymentRefunded, PaymentRefundFailed, RefundedAsStoreCredit, PaymentPending, PaymentPendingPaymentDetailsOneOf, RegularPayment, RegularPaymentPaymentMethodDetailsOneOf, CreditCardDetails, PaymentCanceled, PaymentCanceledPaymentDetailsOneOf, PaymentDeclined, PaymentDeclinedPaymentDetailsOneOf, ReceiptCreated, ReceiptCreatedReceiptInfoOneOf, WixReceipt, ExternalReceipt, ReceiptSent, ReceiptSentReceiptInfoOneOf, V1CreatedBy, V1CreatedByStringOneOf, ChannelInfo, CustomField, V1BalanceSummary, FulfillmentStatusesAggregate, Tags, TagList, CreateOrderFromDraftRequest, OrderCreateSettings, OrderCreateNotifications, CreateOrderFromDraftResponse, DeleteDraftOrderRequest, DeleteDraftOrderResponse, QueryDraftOrdersRequest, CursorQuery, CursorQueryPagingMethodOneOf, Sorting, CursorPaging, QueryDraftOrdersResponse, CursorPagingMetadata, Cursors, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, SetTaxExemptionRequest, SetTaxExemptionResponse,
|
|
27
|
+
export { DraftOrder, ItemDetails, ItemDetailsChangeTypeOneOf, Price, PriceDescription, OrderLineItem, ProductName, CatalogReference, DescriptionLine, DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, PlainTextValue, Color, FocalPoint, PhysicalProperties, ItemType, ItemTypeItemTypeDataOneOf, ItemTaxFullDetails, LineItemTaxInfo, LineItemTaxBreakdown, DigitalFile, SubscriptionInfo, SubscriptionTitle, SubscriptionDescription, SubscriptionSettings, FreeTrialPeriod, BillingAdjustment, BillingAdjustmentPriceSummary, LocationAndQuantity, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, ExtendedFields, ItemChangedDetails, ShippingDetails, ShippingDetailsChangeTypeOneOf, V1ShippingInformation, V1DeliveryLogistics, V1DeliveryLogisticsAddressOneOf, AddressWithContact, Address, StreetAddress, AddressLocation, FullAddressContactDetails, VatId, V1PickupDetails, PickupAddress, V1DeliveryTimeSlot, V1ShippingPrice, ShippingRegion, ShippingChangedDetails, BuyerInfo, BuyerInfoIdOneOf, AdditionalFeeDetails, AdditionalFee, TaxDetails, DiscountDetails, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, Coupon, MerchantDiscount, MerchantDiscountMerchantDiscountReasonOneOf, DiscountRule, DiscountRuleName, LineItemDiscount, CreatedBy, CreatedByStringOneOf, PriceSummary, TaxSummary, BalanceSummary, Balance, DraftOrderCommitSettings, InventoryUpdate, RecipientInfoDetails, RecipientInfoDetailsChangeTypeOneOf, RecipientInfoChangedDetails, OrderTaxInfo, OrderTaxBreakdown, BuyerDetails, BuyerDetailsChangeTypeOneOf, BuyerChangedDetails, BillingDetails, BillingDetailsChangeTypeOneOf, BillingChangedDetails, BusinessLocationDetails, BusinessLocationDetailsChangeTypeOneOf, Location, BusinessLocationChangedDetails, CreateDraftOrderRequest, CreateDraftOrderResponse, CalculatedDraftOrder, ShippingOption, DeliveryLogistics, PickupDetails, DeliveryTimeSlot, ShippingPrice, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Details, DetailsKindOneOf, ApplicationError, ValidationError, FieldViolation, SystemError, CarrierErrors, CarrierError, CreateEmptyDraftOrderRequest, CreateEmptyDraftOrderResponse, AddLineItemsToDraftOrderRequest, CatalogReferenceLineItem, CustomLineItem, SecuredMedia, AddLineItemsToDraftOrderResponse, UpdateLineItemsRequest, LineItemChangeDetails, UpdateLineItemsResponse, SetDiscountsRequest, IdAndApplied, SetDiscountsResponse, CreateCustomDiscountsRequest, DiscountOption, DiscountOptionDiscountAmountOneOf, CreateCustomDiscountsResponse, DeleteCustomDiscountsRequest, DeleteCustomDiscountsResponse, SetAdditionalFeesRequest, SetAdditionalFeesResponse, CreateCustomAdditionalFeesRequest, AdditionalFeeOption, CreateCustomAdditionalFeesResponse, DeleteCustomAdditionalFeesRequest, DeleteCustomAdditionalFeesResponse, SetShippingInfoRequest, SetShippingInfoResponse, SetBuyerInfoRequest, SetBuyerInfoResponse, SetRecipientInfoRequest, SetRecipientInfoResponse, SetBillingInfoRequest, SetBillingInfoResponse, UpdateShippingInfoRequest, UpdateShippingInfoResponse, GetDraftOrderRequest, GetDraftOrderResponse, GetOrderDraftabilityStatusRequest, GetOrderDraftabilityStatusResponse, CommitDraftOrderRequest, CommitDraftOrderResponse, Order, CurrencyConversionDetails, Activity, ActivityContentOneOf, CustomActivity, MerchantComment, OrderRefunded, OrderCreatedFromExchange, NewExchangeOrderCreated, LineItemExchangeData, DraftOrderChangesApplied, OrderChange, OrderChangeValueOneOf, LineItemChanges, LineItemQuantityChange, LineItemPriceChange, ManagedLineItem, ManagedDiscount, TranslatedValue, LineItemAmount, ManagedAdditionalFee, TotalPriceChange, ShippingInformationChange, ShippingInformation, SavedPaymentMethod, AuthorizedPaymentCreated, AuthorizedPaymentCaptured, AuthorizedPaymentVoided, RefundInitiated, RefundedPayment, RefundedPaymentKindOneOf, RegularPaymentRefund, GiftCardPaymentRefund, MembershipPaymentRefund, PaymentRefunded, PaymentRefundFailed, RefundedAsStoreCredit, PaymentPending, PaymentPendingPaymentDetailsOneOf, RegularPayment, RegularPaymentPaymentMethodDetailsOneOf, CreditCardDetails, PaymentCanceled, PaymentCanceledPaymentDetailsOneOf, PaymentDeclined, PaymentDeclinedPaymentDetailsOneOf, ReceiptCreated, ReceiptCreatedReceiptInfoOneOf, WixReceipt, ExternalReceipt, ReceiptSent, ReceiptSentReceiptInfoOneOf, V1CreatedBy, V1CreatedByStringOneOf, ChannelInfo, CustomField, V1BalanceSummary, FulfillmentStatusesAggregate, Tags, TagList, CreateOrderFromDraftRequest, OrderCreateSettings, OrderCreateNotifications, CreateOrderFromDraftResponse, DeleteDraftOrderRequest, DeleteDraftOrderResponse, QueryDraftOrdersRequest, CursorQuery, CursorQueryPagingMethodOneOf, Sorting, CursorPaging, QueryDraftOrdersResponse, CursorPagingMetadata, Cursors, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, SetTaxExemptionRequest, SetTaxExemptionResponse, SetBusinessLocationRequest, SetBusinessLocationResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, AddLineItemsToDraftOrderOptions, CreateCustomDiscountsOptions, CreateCustomAdditionalFeesOptions, SetShippingInfoOptions, SetBuyerInfoOptions, SetRecipientInfoOptions, SetBillingInfoOptions, CommitDraftOrderOptions, CreateOrderFromDraftOptions, DraftOrdersQueryResult, DraftOrdersQueryBuilder, UpdateExtendedFieldsOptions, SetTaxExemptionOptions, SetBusinessLocationOptions, } from './ecom-v1-draft-order-draft-orders.universal.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SortOrder = exports.ChannelType = exports.AttributionSource = exports.ActivityType = exports.LineItemQuantityChangeType = exports.OrderStatus = exports.FulfillmentStatus = exports.PaymentStatus = exports.NonDraftableReason = exports.DiscountType = exports.FileType = exports.RuleType = exports.PickupMethod = exports.WeightUnit = exports.EditingStatus = exports.DiscountReason = exports.AppliedDiscountDiscountType = exports.SourceType = exports.PickupDetailsPickupMethod = exports.VatType = exports.TaxableAddressType = exports.AdjustmentType = exports.SubscriptionFrequency = exports.JurisdictionType = exports.PaymentOptionType = exports.ItemTypeItemType = exports.DescriptionLineType = exports.setBusinessLocation = exports.setTaxExemption = exports.updateExtendedFields = exports.queryDraftOrders = exports.deleteDraftOrder = exports.createOrderFromDraft = exports.commitDraftOrder = exports.getOrderDraftabilityStatus = exports.getDraftOrder = exports.setBillingInfo = exports.setRecipientInfo = exports.setBuyerInfo = exports.setShippingInfo = exports.deleteCustomAdditionalFees = exports.createCustomAdditionalFees = exports.setAdditionalFees = exports.deleteCustomDiscounts = exports.createCustomDiscounts = exports.setDiscounts = exports.updateLineItems = exports.addLineItemsToDraftOrder = exports.createEmptyDraftOrder = exports.createDraftOrder = void 0;
|
|
4
|
+
exports.WebhookIdentityType = void 0;
|
|
4
5
|
const ecom_v1_draft_order_draft_orders_public_js_1 = require("./ecom-v1-draft-order-draft-orders.public.js");
|
|
5
6
|
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
7
|
exports.createDraftOrder = (0, rest_modules_1.createRESTModule)(ecom_v1_draft_order_draft_orders_public_js_1.createDraftOrder);
|
|
@@ -23,6 +24,7 @@ exports.commitDraftOrder = (0, rest_modules_1.createRESTModule)(ecom_v1_draft_or
|
|
|
23
24
|
exports.createOrderFromDraft = (0, rest_modules_1.createRESTModule)(ecom_v1_draft_order_draft_orders_public_js_1.createOrderFromDraft);
|
|
24
25
|
exports.deleteDraftOrder = (0, rest_modules_1.createRESTModule)(ecom_v1_draft_order_draft_orders_public_js_1.deleteDraftOrder);
|
|
25
26
|
exports.queryDraftOrders = (0, rest_modules_1.createRESTModule)(ecom_v1_draft_order_draft_orders_public_js_1.queryDraftOrders);
|
|
27
|
+
exports.updateExtendedFields = (0, rest_modules_1.createRESTModule)(ecom_v1_draft_order_draft_orders_public_js_1.updateExtendedFields);
|
|
26
28
|
exports.setTaxExemption = (0, rest_modules_1.createRESTModule)(ecom_v1_draft_order_draft_orders_public_js_1.setTaxExemption);
|
|
27
29
|
exports.setBusinessLocation = (0, rest_modules_1.createRESTModule)(ecom_v1_draft_order_draft_orders_public_js_1.setBusinessLocation);
|
|
28
30
|
var ecom_v1_draft_order_draft_orders_universal_js_1 = require("./ecom-v1-draft-order-draft-orders.universal.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-draft-order-draft-orders.context.js","sourceRoot":"","sources":["../../../src/ecom-v1-draft-order-draft-orders.context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ecom-v1-draft-order-draft-orders.context.js","sourceRoot":"","sources":["../../../src/ecom-v1-draft-order-draft-orders.context.ts"],"names":[],"mappings":";;;;AAAA,6GAwBsD;AACtD,gEAAiE;AAGpD,QAAA,gBAAgB,GAGX,IAAA,+BAAgB,EAAC,6DAAsB,CAAC,CAAC;AAC9C,QAAA,qBAAqB,GAGhB,IAAA,+BAAgB,EAAC,kEAA2B,CAAC,CAAC;AACnD,QAAA,wBAAwB,GAGnB,IAAA,+BAAgB,EAAC,qEAA8B,CAAC,CAAC;AACtD,QAAA,eAAe,GAEV,IAAA,+BAAgB,EAAC,4DAAqB,CAAC,CAAC;AAC7C,QAAA,YAAY,GAEP,IAAA,+BAAgB,EAAC,yDAAkB,CAAC,CAAC;AAC1C,QAAA,qBAAqB,GAGhB,IAAA,+BAAgB,EAAC,kEAA2B,CAAC,CAAC;AACnD,QAAA,qBAAqB,GAGhB,IAAA,+BAAgB,EAAC,kEAA2B,CAAC,CAAC;AACnD,QAAA,iBAAiB,GAGZ,IAAA,+BAAgB,EAAC,8DAAuB,CAAC,CAAC;AAC/C,QAAA,0BAA0B,GAGrB,IAAA,+BAAgB,EAAC,uEAAgC,CAAC,CAAC;AACxD,QAAA,0BAA0B,GAGrB,IAAA,+BAAgB,EAAC,uEAAgC,CAAC,CAAC;AACxD,QAAA,eAAe,GAEV,IAAA,+BAAgB,EAAC,4DAAqB,CAAC,CAAC;AAC7C,QAAA,YAAY,GAEP,IAAA,+BAAgB,EAAC,yDAAkB,CAAC,CAAC;AAC1C,QAAA,gBAAgB,GAGX,IAAA,+BAAgB,EAAC,6DAAsB,CAAC,CAAC;AAC9C,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,2DAAoB,CAAC,CAAC;AAC5C,QAAA,aAAa,GAER,IAAA,+BAAgB,EAAC,0DAAmB,CAAC,CAAC;AAC3C,QAAA,0BAA0B,GAGrB,IAAA,+BAAgB,EAAC,uEAAgC,CAAC,CAAC;AACxD,QAAA,gBAAgB,GAGX,IAAA,+BAAgB,EAAC,6DAAsB,CAAC,CAAC;AAC9C,QAAA,oBAAoB,GAGf,IAAA,+BAAgB,EAAC,iEAA0B,CAAC,CAAC;AAClD,QAAA,gBAAgB,GAGX,IAAA,+BAAgB,EAAC,6DAAsB,CAAC,CAAC;AAC9C,QAAA,gBAAgB,GAGX,IAAA,+BAAgB,EAAC,6DAAsB,CAAC,CAAC;AAC9C,QAAA,oBAAoB,GAGf,IAAA,+BAAgB,EAAC,iEAA0B,CAAC,CAAC;AAClD,QAAA,eAAe,GAEV,IAAA,+BAAgB,EAAC,4DAAqB,CAAC,CAAC;AAC7C,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,gEAAyB,CAAC,CAAC;AAE9D,iHA6ByD;AA5BvD,oJAAA,mBAAmB,OAAA;AACnB,iJAAA,gBAAgB,OAAA;AAChB,kJAAA,iBAAiB,OAAA;AACjB,iJAAA,gBAAgB,OAAA;AAChB,sJAAA,qBAAqB,OAAA;AACrB,+IAAA,cAAc,OAAA;AACd,mJAAA,kBAAkB,OAAA;AAClB,wIAAA,OAAO,OAAA;AACP,0JAAA,yBAAyB,OAAA;AACzB,2IAAA,UAAU,OAAA;AACV,4JAAA,2BAA2B,OAAA;AAC3B,+IAAA,cAAc,OAAA;AACd,8IAAA,aAAa,OAAA;AACb,2IAAA,UAAU,OAAA;AACV,6IAAA,YAAY,OAAA;AACZ,yIAAA,QAAQ,OAAA;AACR,yIAAA,QAAQ,OAAA;AACR,6IAAA,YAAY,OAAA;AACZ,mJAAA,kBAAkB,OAAA;AAClB,8IAAA,aAAa,OAAA;AACb,kJAAA,iBAAiB,OAAA;AACjB,4IAAA,WAAW,OAAA;AACX,2JAAA,0BAA0B,OAAA;AAC1B,6IAAA,YAAY,OAAA;AACZ,kJAAA,iBAAiB,OAAA;AACjB,4IAAA,WAAW,OAAA;AACX,0IAAA,SAAS,OAAA;AACT,oJAAA,mBAAmB,OAAA"}
|
|
@@ -3,7 +3,7 @@ import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
|
3
3
|
* Creates or gets a draft order.
|
|
4
4
|
*
|
|
5
5
|
* When passing the ID of an order that is already in draft, the existing draft order will be returned.
|
|
6
|
-
* To complete a draft and update the order, call
|
|
6
|
+
* To complete a draft and update the order, call Commit Draft Order([REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/draft-orders/commit-draft-order) | [SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/draft-orders/commit-draft-order)).
|
|
7
7
|
*/
|
|
8
8
|
export declare function createDraftOrder(payload: object): RequestOptionsFactory<any>;
|
|
9
9
|
/** Creates an empty draft order. */
|
|
@@ -21,61 +21,74 @@ export declare function addLineItemsToDraftOrder(payload: object): RequestOption
|
|
|
21
21
|
*/
|
|
22
22
|
export declare function updateLineItems(payload: object): RequestOptionsFactory<any>;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Applies or unapplies discounts on a draft order.
|
|
25
25
|
*
|
|
26
|
-
*
|
|
26
|
+
* Unapplied discounts are still part of draft order, but do not affect balance.
|
|
27
|
+
* Existing discounts, not mentioned in request, will keep their current state.
|
|
27
28
|
*/
|
|
28
29
|
export declare function setDiscounts(payload: object): RequestOptionsFactory<any>;
|
|
29
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Create custom discounts on a draft order.
|
|
32
|
+
*
|
|
33
|
+
* Newly added discounts are unapplied by default.
|
|
34
|
+
* To apply them, use Set Discounts ([REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/draft-orders/set-discounts) | [SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/draft-orders/set-discounts)).
|
|
35
|
+
*/
|
|
30
36
|
export declare function createCustomDiscounts(payload: object): RequestOptionsFactory<any>;
|
|
31
37
|
/** Remove custom discounts from the order. */
|
|
32
38
|
export declare function deleteCustomDiscounts(payload: object): RequestOptionsFactory<any>;
|
|
33
39
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
40
|
+
* Applies or unapplies additional fees on a draft order.
|
|
41
|
+
*
|
|
42
|
+
* Unapplied fees are still part of draft order, but do not affect balance.
|
|
43
|
+
* Existing additional fees, not mentioned in request, will keep their current state.
|
|
36
44
|
*/
|
|
37
45
|
export declare function setAdditionalFees(payload: object): RequestOptionsFactory<any>;
|
|
38
46
|
/**
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
47
|
+
* Creates custom additional fees on a draft order.
|
|
48
|
+
*
|
|
49
|
+
* Newly added additional fees are unapplied by default.
|
|
50
|
+
* To apply them, use Set Additional Fees ([REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/draft-orders/set-additional-fees) | [SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/draft-orders/set-additional-fees)).
|
|
42
51
|
*/
|
|
43
52
|
export declare function createCustomAdditionalFees(payload: object): RequestOptionsFactory<any>;
|
|
44
53
|
/** Remove custom additional fees from the order. */
|
|
45
54
|
export declare function deleteCustomAdditionalFees(payload: object): RequestOptionsFactory<any>;
|
|
46
|
-
/** Sets shipping
|
|
55
|
+
/** Sets shipping information on a draft order. */
|
|
47
56
|
export declare function setShippingInfo(payload: object): RequestOptionsFactory<any>;
|
|
48
|
-
/** Sets buyer info
|
|
57
|
+
/** Sets buyer info on a draft order. */
|
|
49
58
|
export declare function setBuyerInfo(payload: object): RequestOptionsFactory<any>;
|
|
50
|
-
/** Sets recipient info
|
|
59
|
+
/** Sets recipient info on a draft order. */
|
|
51
60
|
export declare function setRecipientInfo(payload: object): RequestOptionsFactory<any>;
|
|
52
|
-
/** Sets billing info
|
|
61
|
+
/** Sets billing info on a draft order. */
|
|
53
62
|
export declare function setBillingInfo(payload: object): RequestOptionsFactory<any>;
|
|
54
63
|
/**
|
|
55
|
-
*
|
|
56
|
-
*
|
|
64
|
+
* Gets a draft order.
|
|
65
|
+
*
|
|
66
|
+
* Draft order is recalculated and contains latest tax and totals (unless already committed).
|
|
57
67
|
* Automatic discounts and automatic additional fees will reflect the latest prices and eligibility.
|
|
58
68
|
* Calculation will be based on current draft order content - items, shipping info and eligible discounts and additional fees.
|
|
59
|
-
* When
|
|
69
|
+
* When retrieving an already committed draft, it's not recalculated and contains data calculated during commit.
|
|
60
70
|
*/
|
|
61
71
|
export declare function getDraftOrder(payload: object): RequestOptionsFactory<any>;
|
|
62
|
-
/** Checks whether a draft can be created for this order */
|
|
72
|
+
/** Checks whether a draft can be created for this order. */
|
|
63
73
|
export declare function getOrderDraftabilityStatus(payload: object): RequestOptionsFactory<any>;
|
|
64
74
|
/**
|
|
65
|
-
* Commit latest changes to the baseline order and control
|
|
75
|
+
* Commit latest changes to the baseline order and control which side-effects are executed.
|
|
76
|
+
*
|
|
66
77
|
* Commit cannot be undone or reverted.
|
|
67
|
-
*
|
|
78
|
+
* Committed draft will become closed for further modifications, however it's kept for reference and can be retrieved.
|
|
68
79
|
*/
|
|
69
80
|
export declare function commitDraftOrder(payload: object): RequestOptionsFactory<any>;
|
|
70
81
|
/**
|
|
71
|
-
*
|
|
82
|
+
* Creates a new order while specifying which side-effects are executed.
|
|
83
|
+
*
|
|
72
84
|
* Commit cannot be undone or reverted.
|
|
73
|
-
*
|
|
85
|
+
* Committed draft will become closed for further modifications, however it's kept for reference and can be retrieved.
|
|
74
86
|
*/
|
|
75
87
|
export declare function createOrderFromDraft(payload: object): RequestOptionsFactory<any>;
|
|
76
88
|
/**
|
|
77
|
-
*
|
|
78
|
-
*
|
|
89
|
+
* Deletes a draft order along with all its pending changes.
|
|
90
|
+
*
|
|
91
|
+
* Draft orders in status 'COMMITTED' cannot be deleted.
|
|
79
92
|
*/
|
|
80
93
|
export declare function deleteDraftOrder(payload: object): RequestOptionsFactory<any>;
|
|
81
94
|
/**
|
|
@@ -91,7 +104,9 @@ export declare function deleteDraftOrder(payload: object): RequestOptionsFactory
|
|
|
91
104
|
* To learn how to query draft orders, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
92
105
|
*/
|
|
93
106
|
export declare function queryDraftOrders(payload: object): RequestOptionsFactory<any>;
|
|
94
|
-
/**
|
|
107
|
+
/** Updates extended fields on a draft order. */
|
|
108
|
+
export declare function updateExtendedFields(payload: object): RequestOptionsFactory<any>;
|
|
109
|
+
/** Sets tax exemption on a draft order. */
|
|
95
110
|
export declare function setTaxExemption(payload: object): RequestOptionsFactory<any>;
|
|
96
|
-
/** Sets business location
|
|
111
|
+
/** Sets business location on a draft order. */
|
|
97
112
|
export declare function setBusinessLocation(payload: object): RequestOptionsFactory<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setBusinessLocation = exports.setTaxExemption = exports.queryDraftOrders = exports.deleteDraftOrder = exports.createOrderFromDraft = exports.commitDraftOrder = exports.getOrderDraftabilityStatus = exports.getDraftOrder = exports.setBillingInfo = exports.setRecipientInfo = exports.setBuyerInfo = exports.setShippingInfo = exports.deleteCustomAdditionalFees = exports.createCustomAdditionalFees = exports.setAdditionalFees = exports.deleteCustomDiscounts = exports.createCustomDiscounts = exports.setDiscounts = exports.updateLineItems = exports.addLineItemsToDraftOrder = exports.createEmptyDraftOrder = exports.createDraftOrder = void 0;
|
|
3
|
+
exports.setBusinessLocation = exports.setTaxExemption = exports.updateExtendedFields = exports.queryDraftOrders = exports.deleteDraftOrder = exports.createOrderFromDraft = exports.commitDraftOrder = exports.getOrderDraftabilityStatus = exports.getDraftOrder = exports.setBillingInfo = exports.setRecipientInfo = exports.setBuyerInfo = exports.setShippingInfo = exports.deleteCustomAdditionalFees = exports.createCustomAdditionalFees = exports.setAdditionalFees = exports.deleteCustomDiscounts = exports.createCustomDiscounts = exports.setDiscounts = exports.updateLineItems = exports.addLineItemsToDraftOrder = exports.createEmptyDraftOrder = exports.createDraftOrder = void 0;
|
|
4
4
|
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
5
5
|
const float_1 = require("@wix/sdk-runtime/transformations/float");
|
|
6
6
|
const float_2 = require("@wix/sdk-runtime/transformations/float");
|
|
@@ -38,7 +38,7 @@ const PACKAGE_NAME = '@wix/auto_sdk_ecom_draft-orders';
|
|
|
38
38
|
* Creates or gets a draft order.
|
|
39
39
|
*
|
|
40
40
|
* When passing the ID of an order that is already in draft, the existing draft order will be returned.
|
|
41
|
-
* To complete a draft and update the order, call
|
|
41
|
+
* To complete a draft and update the order, call Commit Draft Order([REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/draft-orders/commit-draft-order) | [SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/draft-orders/commit-draft-order)).
|
|
42
42
|
*/
|
|
43
43
|
function createDraftOrder(payload) {
|
|
44
44
|
function __createDraftOrder({ host }) {
|
|
@@ -606,9 +606,10 @@ function updateLineItems(payload) {
|
|
|
606
606
|
}
|
|
607
607
|
exports.updateLineItems = updateLineItems;
|
|
608
608
|
/**
|
|
609
|
-
*
|
|
609
|
+
* Applies or unapplies discounts on a draft order.
|
|
610
610
|
*
|
|
611
|
-
*
|
|
611
|
+
* Unapplied discounts are still part of draft order, but do not affect balance.
|
|
612
|
+
* Existing discounts, not mentioned in request, will keep their current state.
|
|
612
613
|
*/
|
|
613
614
|
function setDiscounts(payload) {
|
|
614
615
|
function __setDiscounts({ host }) {
|
|
@@ -745,7 +746,12 @@ function setDiscounts(payload) {
|
|
|
745
746
|
return __setDiscounts;
|
|
746
747
|
}
|
|
747
748
|
exports.setDiscounts = setDiscounts;
|
|
748
|
-
/**
|
|
749
|
+
/**
|
|
750
|
+
* Create custom discounts on a draft order.
|
|
751
|
+
*
|
|
752
|
+
* Newly added discounts are unapplied by default.
|
|
753
|
+
* To apply them, use Set Discounts ([REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/draft-orders/set-discounts) | [SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/draft-orders/set-discounts)).
|
|
754
|
+
*/
|
|
749
755
|
function createCustomDiscounts(payload) {
|
|
750
756
|
function __createCustomDiscounts({ host }) {
|
|
751
757
|
const metadata = {
|
|
@@ -1018,8 +1024,10 @@ function deleteCustomDiscounts(payload) {
|
|
|
1018
1024
|
}
|
|
1019
1025
|
exports.deleteCustomDiscounts = deleteCustomDiscounts;
|
|
1020
1026
|
/**
|
|
1021
|
-
*
|
|
1022
|
-
*
|
|
1027
|
+
* Applies or unapplies additional fees on a draft order.
|
|
1028
|
+
*
|
|
1029
|
+
* Unapplied fees are still part of draft order, but do not affect balance.
|
|
1030
|
+
* Existing additional fees, not mentioned in request, will keep their current state.
|
|
1023
1031
|
*/
|
|
1024
1032
|
function setAdditionalFees(payload) {
|
|
1025
1033
|
function __setAdditionalFees({ host }) {
|
|
@@ -1157,9 +1165,10 @@ function setAdditionalFees(payload) {
|
|
|
1157
1165
|
}
|
|
1158
1166
|
exports.setAdditionalFees = setAdditionalFees;
|
|
1159
1167
|
/**
|
|
1160
|
-
*
|
|
1161
|
-
*
|
|
1162
|
-
*
|
|
1168
|
+
* Creates custom additional fees on a draft order.
|
|
1169
|
+
*
|
|
1170
|
+
* Newly added additional fees are unapplied by default.
|
|
1171
|
+
* To apply them, use Set Additional Fees ([REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/draft-orders/set-additional-fees) | [SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/draft-orders/set-additional-fees)).
|
|
1163
1172
|
*/
|
|
1164
1173
|
function createCustomAdditionalFees(payload) {
|
|
1165
1174
|
function __createCustomAdditionalFees({ host }) {
|
|
@@ -1432,7 +1441,7 @@ function deleteCustomAdditionalFees(payload) {
|
|
|
1432
1441
|
return __deleteCustomAdditionalFees;
|
|
1433
1442
|
}
|
|
1434
1443
|
exports.deleteCustomAdditionalFees = deleteCustomAdditionalFees;
|
|
1435
|
-
/** Sets shipping
|
|
1444
|
+
/** Sets shipping information on a draft order. */
|
|
1436
1445
|
function setShippingInfo(payload) {
|
|
1437
1446
|
function __setShippingInfo({ host }) {
|
|
1438
1447
|
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
@@ -1595,7 +1604,7 @@ function setShippingInfo(payload) {
|
|
|
1595
1604
|
return __setShippingInfo;
|
|
1596
1605
|
}
|
|
1597
1606
|
exports.setShippingInfo = setShippingInfo;
|
|
1598
|
-
/** Sets buyer info
|
|
1607
|
+
/** Sets buyer info on a draft order. */
|
|
1599
1608
|
function setBuyerInfo(payload) {
|
|
1600
1609
|
function __setBuyerInfo({ host }) {
|
|
1601
1610
|
const metadata = {
|
|
@@ -1731,7 +1740,7 @@ function setBuyerInfo(payload) {
|
|
|
1731
1740
|
return __setBuyerInfo;
|
|
1732
1741
|
}
|
|
1733
1742
|
exports.setBuyerInfo = setBuyerInfo;
|
|
1734
|
-
/** Sets recipient info
|
|
1743
|
+
/** Sets recipient info on a draft order. */
|
|
1735
1744
|
function setRecipientInfo(payload) {
|
|
1736
1745
|
function __setRecipientInfo({ host }) {
|
|
1737
1746
|
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
@@ -1876,7 +1885,7 @@ function setRecipientInfo(payload) {
|
|
|
1876
1885
|
return __setRecipientInfo;
|
|
1877
1886
|
}
|
|
1878
1887
|
exports.setRecipientInfo = setRecipientInfo;
|
|
1879
|
-
/** Sets billing info
|
|
1888
|
+
/** Sets billing info on a draft order. */
|
|
1880
1889
|
function setBillingInfo(payload) {
|
|
1881
1890
|
function __setBillingInfo({ host }) {
|
|
1882
1891
|
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
@@ -2022,11 +2031,12 @@ function setBillingInfo(payload) {
|
|
|
2022
2031
|
}
|
|
2023
2032
|
exports.setBillingInfo = setBillingInfo;
|
|
2024
2033
|
/**
|
|
2025
|
-
*
|
|
2026
|
-
*
|
|
2034
|
+
* Gets a draft order.
|
|
2035
|
+
*
|
|
2036
|
+
* Draft order is recalculated and contains latest tax and totals (unless already committed).
|
|
2027
2037
|
* Automatic discounts and automatic additional fees will reflect the latest prices and eligibility.
|
|
2028
2038
|
* Calculation will be based on current draft order content - items, shipping info and eligible discounts and additional fees.
|
|
2029
|
-
* When
|
|
2039
|
+
* When retrieving an already committed draft, it's not recalculated and contains data calculated during commit.
|
|
2030
2040
|
*/
|
|
2031
2041
|
function getDraftOrder(payload) {
|
|
2032
2042
|
function __getDraftOrder({ host }) {
|
|
@@ -2174,7 +2184,7 @@ function getDraftOrder(payload) {
|
|
|
2174
2184
|
return __getDraftOrder;
|
|
2175
2185
|
}
|
|
2176
2186
|
exports.getDraftOrder = getDraftOrder;
|
|
2177
|
-
/** Checks whether a draft can be created for this order */
|
|
2187
|
+
/** Checks whether a draft can be created for this order. */
|
|
2178
2188
|
function getOrderDraftabilityStatus(payload) {
|
|
2179
2189
|
function __getOrderDraftabilityStatus({ host }) {
|
|
2180
2190
|
const metadata = {
|
|
@@ -2195,9 +2205,10 @@ function getOrderDraftabilityStatus(payload) {
|
|
|
2195
2205
|
}
|
|
2196
2206
|
exports.getOrderDraftabilityStatus = getOrderDraftabilityStatus;
|
|
2197
2207
|
/**
|
|
2198
|
-
* Commit latest changes to the baseline order and control
|
|
2208
|
+
* Commit latest changes to the baseline order and control which side-effects are executed.
|
|
2209
|
+
*
|
|
2199
2210
|
* Commit cannot be undone or reverted.
|
|
2200
|
-
*
|
|
2211
|
+
* Committed draft will become closed for further modifications, however it's kept for reference and can be retrieved.
|
|
2201
2212
|
*/
|
|
2202
2213
|
function commitDraftOrder(payload) {
|
|
2203
2214
|
function __commitDraftOrder({ host }) {
|
|
@@ -2364,9 +2375,10 @@ function commitDraftOrder(payload) {
|
|
|
2364
2375
|
}
|
|
2365
2376
|
exports.commitDraftOrder = commitDraftOrder;
|
|
2366
2377
|
/**
|
|
2367
|
-
*
|
|
2378
|
+
* Creates a new order while specifying which side-effects are executed.
|
|
2379
|
+
*
|
|
2368
2380
|
* Commit cannot be undone or reverted.
|
|
2369
|
-
*
|
|
2381
|
+
* Committed draft will become closed for further modifications, however it's kept for reference and can be retrieved.
|
|
2370
2382
|
*/
|
|
2371
2383
|
function createOrderFromDraft(payload) {
|
|
2372
2384
|
function __createOrderFromDraft({ host }) {
|
|
@@ -2527,8 +2539,9 @@ function createOrderFromDraft(payload) {
|
|
|
2527
2539
|
}
|
|
2528
2540
|
exports.createOrderFromDraft = createOrderFromDraft;
|
|
2529
2541
|
/**
|
|
2530
|
-
*
|
|
2531
|
-
*
|
|
2542
|
+
* Deletes a draft order along with all its pending changes.
|
|
2543
|
+
*
|
|
2544
|
+
* Draft orders in status 'COMMITTED' cannot be deleted.
|
|
2532
2545
|
*/
|
|
2533
2546
|
function deleteDraftOrder(payload) {
|
|
2534
2547
|
function __deleteDraftOrder({ host }) {
|
|
@@ -2676,7 +2689,121 @@ function queryDraftOrders(payload) {
|
|
|
2676
2689
|
return __queryDraftOrders;
|
|
2677
2690
|
}
|
|
2678
2691
|
exports.queryDraftOrders = queryDraftOrders;
|
|
2679
|
-
/**
|
|
2692
|
+
/** Updates extended fields on a draft order. */
|
|
2693
|
+
function updateExtendedFields(payload) {
|
|
2694
|
+
function __updateExtendedFields({ host }) {
|
|
2695
|
+
const metadata = {
|
|
2696
|
+
entityFqdn: 'wix.ecom.v1.draft_order',
|
|
2697
|
+
method: 'POST',
|
|
2698
|
+
methodFqn: 'com.wix.ecom.orders.draft.v1.DraftOrders.UpdateExtendedFields',
|
|
2699
|
+
packageName: PACKAGE_NAME,
|
|
2700
|
+
url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({
|
|
2701
|
+
protoPath: '/v1/draft-orders/{id}/update-extended-fields',
|
|
2702
|
+
data: payload,
|
|
2703
|
+
host,
|
|
2704
|
+
}),
|
|
2705
|
+
data: payload,
|
|
2706
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
2707
|
+
{
|
|
2708
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
2709
|
+
paths: [
|
|
2710
|
+
{ path: 'draftOrder.createdDate' },
|
|
2711
|
+
{ path: 'draftOrder.updatedDate' },
|
|
2712
|
+
{ path: 'draftOrder.lineItems.lineItem.image.urlExpirationDate' },
|
|
2713
|
+
{
|
|
2714
|
+
path: 'draftOrder.lineItems.lineItem.digitalFile.expirationDate',
|
|
2715
|
+
},
|
|
2716
|
+
{
|
|
2717
|
+
path: 'draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',
|
|
2718
|
+
},
|
|
2719
|
+
{
|
|
2720
|
+
path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',
|
|
2721
|
+
},
|
|
2722
|
+
{
|
|
2723
|
+
path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',
|
|
2724
|
+
},
|
|
2725
|
+
{
|
|
2726
|
+
path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',
|
|
2727
|
+
},
|
|
2728
|
+
{
|
|
2729
|
+
path: 'draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',
|
|
2730
|
+
},
|
|
2731
|
+
{
|
|
2732
|
+
path: 'draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',
|
|
2733
|
+
},
|
|
2734
|
+
{
|
|
2735
|
+
path: 'draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',
|
|
2736
|
+
},
|
|
2737
|
+
],
|
|
2738
|
+
},
|
|
2739
|
+
{
|
|
2740
|
+
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
2741
|
+
paths: [
|
|
2742
|
+
{ path: 'draftOrder.lineItems.lineItem.image.focalPoint.x' },
|
|
2743
|
+
{ path: 'draftOrder.lineItems.lineItem.image.focalPoint.y' },
|
|
2744
|
+
{
|
|
2745
|
+
path: 'draftOrder.lineItems.lineItem.physicalProperties.weight',
|
|
2746
|
+
},
|
|
2747
|
+
{
|
|
2748
|
+
path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',
|
|
2749
|
+
},
|
|
2750
|
+
{
|
|
2751
|
+
path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',
|
|
2752
|
+
},
|
|
2753
|
+
{
|
|
2754
|
+
path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',
|
|
2755
|
+
},
|
|
2756
|
+
{
|
|
2757
|
+
path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',
|
|
2758
|
+
},
|
|
2759
|
+
{
|
|
2760
|
+
path: 'draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',
|
|
2761
|
+
},
|
|
2762
|
+
{
|
|
2763
|
+
path: 'draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',
|
|
2764
|
+
},
|
|
2765
|
+
{
|
|
2766
|
+
path: 'draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',
|
|
2767
|
+
},
|
|
2768
|
+
{
|
|
2769
|
+
path: 'draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',
|
|
2770
|
+
},
|
|
2771
|
+
{ path: 'draftOrder.billingInfo.address.geocode.latitude' },
|
|
2772
|
+
{ path: 'draftOrder.billingInfo.address.geocode.longitude' },
|
|
2773
|
+
{
|
|
2774
|
+
path: 'draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',
|
|
2775
|
+
},
|
|
2776
|
+
{
|
|
2777
|
+
path: 'draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',
|
|
2778
|
+
},
|
|
2779
|
+
{
|
|
2780
|
+
path: 'draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',
|
|
2781
|
+
},
|
|
2782
|
+
{
|
|
2783
|
+
path: 'draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',
|
|
2784
|
+
},
|
|
2785
|
+
{
|
|
2786
|
+
path: 'draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',
|
|
2787
|
+
},
|
|
2788
|
+
{
|
|
2789
|
+
path: 'draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',
|
|
2790
|
+
},
|
|
2791
|
+
{
|
|
2792
|
+
path: 'draftOrder.billingDetails.billingInfo.address.geocode.latitude',
|
|
2793
|
+
},
|
|
2794
|
+
{
|
|
2795
|
+
path: 'draftOrder.billingDetails.billingInfo.address.geocode.longitude',
|
|
2796
|
+
},
|
|
2797
|
+
],
|
|
2798
|
+
},
|
|
2799
|
+
]),
|
|
2800
|
+
};
|
|
2801
|
+
return metadata;
|
|
2802
|
+
}
|
|
2803
|
+
return __updateExtendedFields;
|
|
2804
|
+
}
|
|
2805
|
+
exports.updateExtendedFields = updateExtendedFields;
|
|
2806
|
+
/** Sets tax exemption on a draft order. */
|
|
2680
2807
|
function setTaxExemption(payload) {
|
|
2681
2808
|
function __setTaxExemption({ host }) {
|
|
2682
2809
|
const metadata = {
|
|
@@ -2812,7 +2939,7 @@ function setTaxExemption(payload) {
|
|
|
2812
2939
|
return __setTaxExemption;
|
|
2813
2940
|
}
|
|
2814
2941
|
exports.setTaxExemption = setTaxExemption;
|
|
2815
|
-
/** Sets business location
|
|
2942
|
+
/** Sets business location on a draft order. */
|
|
2816
2943
|
function setBusinessLocation(payload) {
|
|
2817
2944
|
function __setBusinessLocation({ host }) {
|
|
2818
2945
|
const metadata = {
|