@wix/auto_sdk_ecom_draft-orders 1.0.39 → 1.0.41
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 +65 -23
- package/build/cjs/index.js +1 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{ecom-v1-draft-order-draft-orders.universal-BVXrKSFI.d.ts → index.typings.d.ts} +713 -1
- package/build/cjs/index.typings.js +4958 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2 -1
- package/build/es/index.d.mts +65 -23
- package/build/es/index.mjs +1 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/{ecom-v1-draft-order-draft-orders.universal-BVXrKSFI.d.mts → index.typings.d.mts} +713 -1
- package/build/es/index.typings.mjs +4884 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +2 -1
- package/build/internal/cjs/index.d.ts +65 -23
- package/build/internal/cjs/index.js +1 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{ecom-v1-draft-order-draft-orders.universal-DfcxUgXs.d.ts → index.typings.d.ts} +713 -1
- package/build/internal/cjs/index.typings.js +4958 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/index.d.mts +65 -23
- package/build/internal/es/index.mjs +1 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{ecom-v1-draft-order-draft-orders.universal-DfcxUgXs.d.mts → index.typings.d.mts} +713 -1
- package/build/internal/es/index.typings.mjs +4884 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { CreateDraftOrderResponse, CreateDraftOrderApplicationErrors, CreateEmptyDraftOrderResponse, CreateEmptyDraftOrderApplicationErrors, AddLineItemsToDraftOrderOptions, AddLineItemsToDraftOrderResponse, AddLineItemsToDraftOrderApplicationErrors, LineItemChangeDetails, UpdateLineItemsResponse, UpdateLineItemsApplicationErrors, IdAndApplied, SetDiscountsResponse, SetDiscountsApplicationErrors, CreateCustomDiscountsOptions, CreateCustomDiscountsResponse, CreateCustomDiscountsApplicationErrors, DeleteCustomDiscountsResponse, DeleteCustomDiscountsApplicationErrors, SetAdditionalFeesResponse, SetAdditionalFeesApplicationErrors, CreateCustomAdditionalFeesOptions, CreateCustomAdditionalFeesResponse, CreateCustomAdditionalFeesApplicationErrors, DeleteCustomAdditionalFeesResponse, DeleteCustomAdditionalFeesApplicationErrors, SetShippingInfoOptions, SetShippingInfoResponse, SetShippingInfoApplicationErrors, SetBuyerInfoOptions, SetBuyerInfoResponse, SetBuyerInfoApplicationErrors, SetRecipientInfoOptions, SetRecipientInfoResponse, SetRecipientInfoApplicationErrors, SetBillingInfoOptions, SetBillingInfoResponse, SetBillingInfoApplicationErrors, GetDraftOrderResponse, GetDraftOrderApplicationErrors, GetOrderDraftabilityStatusResponse, CommitDraftOrderOptions, CommitDraftOrderResponse, CommitDraftOrderApplicationErrors, CreateOrderFromDraftOptions, CreateOrderFromDraftResponse, CreateOrderFromDraftApplicationErrors, DeleteDraftOrderApplicationErrors, DraftOrdersQueryBuilder, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateExtendedFieldsApplicationErrors, SetTaxExemptionOptions, SetTaxExemptionResponse, SetTaxExemptionApplicationErrors, SetBusinessLocationOptions, SetBusinessLocationResponse, SetBusinessLocationApplicationErrors, DraftOrderCreatedEnvelope, DraftOrderDeletedEnvelope, DraftOrderUpdatedEnvelope } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, Activity, ActivityContentOneOf, ActivityType, AddLineItemsToDraftOrderRequest, AdditionalFee, AdditionalFeeDetails, AdditionalFeeOption, Address, AddressLocation, AddressWithContact, AdjustmentType, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AppliedDiscountDiscountType, AttributionSource, AuthorizedPaymentCaptured, AuthorizedPaymentCreated, AuthorizedPaymentVoided, Balance, BalanceSummary, BaseEventMetadata, BillingAdjustment, BillingAdjustmentPriceSummary, BillingChangedDetails, BillingDetails, BillingDetailsChangeTypeOneOf, BusinessLocationChangedDetails, BusinessLocationDetails, BusinessLocationDetailsChangeTypeOneOf, BuyerChangedDetails, BuyerDetails, BuyerDetailsChangeTypeOneOf, BuyerInfo, BuyerInfoIdOneOf, CalculatedDraftOrder, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CarrierError, CarrierErrors, CatalogReference, CatalogReferenceLineItem, ChannelInfo, ChannelType, Color, CommitDraftOrderRequest, Coupon, CreateCustomAdditionalFeesRequest, CreateCustomDiscountsRequest, CreateDraftOrderRequest, CreateEmptyDraftOrderRequest, CreateOrderFromDraftRequest, CreatedBy, CreatedByStringOneOf, CreditCardDetails, CurrencyConversionDetails, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomActivity, CustomField, CustomLineItem, DeleteCustomAdditionalFeesRequest, DeleteCustomDiscountsRequest, DeleteDraftOrderRequest, DeleteDraftOrderResponse, DeliveryLogistics, DeliveryTimeSlot, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineValueOneOf, Details, DetailsKindOneOf, DigitalFile, DiscountDetails, DiscountOption, DiscountOptionDiscountAmountOneOf, DiscountReason, DiscountRule, DiscountRuleName, DiscountType, DomainEvent, DomainEventBodyOneOf, DraftOrder, DraftOrderChangesApplied, DraftOrderCommitSettings, DraftOrdersQueryResult, EditingStatus, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReceipt, FieldViolation, FileType, FocalPoint, FreeTrialPeriod, FulfillmentStatus, FulfillmentStatusesAggregate, FullAddressContactDetails, GetDraftOrderRequest, GetOrderDraftabilityStatusRequest, GiftCardPaymentRefund, IdentificationData, IdentificationDataIdOneOf, InventoryUpdate, ItemChangedDetails, ItemDetails, ItemDetailsChangeTypeOneOf, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemType, ItemTypeItemTypeDataOneOf, JurisdictionType, LineItemAmount, LineItemChanges, LineItemDiscount, LineItemExchangeData, LineItemPriceChange, LineItemQuantityChange, LineItemQuantityChangeType, LineItemTaxBreakdown, LineItemTaxInfo, Location, LocationAndQuantity, ManagedAdditionalFee, ManagedDiscount, ManagedLineItem, MembershipPaymentRefund, MerchantComment, MerchantDiscount, MerchantDiscountMerchantDiscountReasonOneOf, MessageEnvelope, ModifierGroup, NewExchangeOrderCreated, NonDraftableReason, Order, OrderChange, OrderChangeValueOneOf, OrderCreateNotifications, OrderCreateSettings, OrderCreatedFromExchange, OrderLineItem, OrderRefunded, OrderStatus, OrderTaxBreakdown, OrderTaxInfo, PaymentCanceled, PaymentCanceledPaymentDetailsOneOf, PaymentDeclined, PaymentDeclinedPaymentDetailsOneOf, PaymentOptionType, PaymentPending, PaymentPendingPaymentDetailsOneOf, PaymentRefundFailed, PaymentRefunded, PaymentStatus, PhysicalProperties, PickupAddress, PickupDetails, PickupDetailsPickupMethod, PickupMethod, PlainTextValue, Price, PriceDescription, PriceSummary, ProductName, QueryDraftOrdersRequest, QueryDraftOrdersResponse, ReceiptCreated, ReceiptCreatedReceiptInfoOneOf, ReceiptSent, ReceiptSentReceiptInfoOneOf, RecipientInfoChangedDetails, RecipientInfoDetails, RecipientInfoDetailsChangeTypeOneOf, RefundInitiated, RefundedAsStoreCredit, RefundedPayment, RefundedPaymentKindOneOf, RegularPayment, RegularPaymentPaymentMethodDetailsOneOf, RegularPaymentRefund, RestoreInfo, RuleType, SavedPaymentMethod, SecuredMedia, SetAdditionalFeesRequest, SetBillingInfoRequest, SetBusinessLocationRequest, SetBuyerInfoRequest, SetDiscountsRequest, SetRecipientInfoRequest, SetShippingInfoRequest, SetTaxExemptionRequest, ShippingChangedDetails, ShippingDetails, ShippingDetailsChangeTypeOneOf, ShippingInformation, ShippingInformationChange, ShippingOption, ShippingPrice, ShippingRegion, SortOrder, Sorting, SourceType, StreetAddress, SubscriptionDescription, SubscriptionFrequency, SubscriptionInfo, SubscriptionSettings, SubscriptionTitle, SystemError, TagList, Tags, TaxDetails, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TotalPriceChange, TranslatableString, TranslatedValue, UpdateExtendedFieldsRequest, UpdateLineItemsRequest, UpdateShippingInfoRequest, UpdateShippingInfoResponse, V1BalanceSummary, V1CreatedBy, V1CreatedByStringOneOf, V1DeliveryLogistics, V1DeliveryLogisticsAddressOneOf, V1DeliveryTimeSlot, V1PickupDetails, V1ShippingInformation, V1ShippingPrice, ValidationError, VatId, VatType, WebhookIdentityType, WeightUnit, WixReceipt } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createDraftOrder$1(httpClient: HttpClient): CreateDraftOrderSignature;
|
|
6
6
|
interface CreateDraftOrderSignature {
|
|
@@ -11,7 +11,9 @@ interface CreateDraftOrderSignature {
|
|
|
11
11
|
* To complete a draft and update the original order, call Commit Draft Order.
|
|
12
12
|
* @param - ID of the order to create a draft for.
|
|
13
13
|
*/
|
|
14
|
-
(orderId: string): Promise<CreateDraftOrderResponse
|
|
14
|
+
(orderId: string): Promise<CreateDraftOrderResponse & {
|
|
15
|
+
__applicationErrorsType?: CreateDraftOrderApplicationErrors | undefined;
|
|
16
|
+
}>;
|
|
15
17
|
}
|
|
16
18
|
declare function createEmptyDraftOrder$1(httpClient: HttpClient): CreateEmptyDraftOrderSignature;
|
|
17
19
|
interface CreateEmptyDraftOrderSignature {
|
|
@@ -20,7 +22,9 @@ interface CreateEmptyDraftOrderSignature {
|
|
|
20
22
|
*
|
|
21
23
|
* After all relevant details are applied, call Create Order From Draft to convert the draft order to a regular order.
|
|
22
24
|
*/
|
|
23
|
-
(): Promise<CreateEmptyDraftOrderResponse
|
|
25
|
+
(): Promise<CreateEmptyDraftOrderResponse & {
|
|
26
|
+
__applicationErrorsType?: CreateEmptyDraftOrderApplicationErrors | undefined;
|
|
27
|
+
}>;
|
|
24
28
|
}
|
|
25
29
|
declare function addLineItemsToDraftOrder$1(httpClient: HttpClient): AddLineItemsToDraftOrderSignature;
|
|
26
30
|
interface AddLineItemsToDraftOrderSignature {
|
|
@@ -28,7 +32,9 @@ interface AddLineItemsToDraftOrderSignature {
|
|
|
28
32
|
* Adds catalog or custom line items to a draft order.
|
|
29
33
|
* @param - Draft order ID.
|
|
30
34
|
*/
|
|
31
|
-
(draftOrderId: string, options?: AddLineItemsToDraftOrderOptions | undefined): Promise<AddLineItemsToDraftOrderResponse
|
|
35
|
+
(draftOrderId: string, options?: AddLineItemsToDraftOrderOptions | undefined): Promise<AddLineItemsToDraftOrderResponse & {
|
|
36
|
+
__applicationErrorsType?: AddLineItemsToDraftOrderApplicationErrors | undefined;
|
|
37
|
+
}>;
|
|
32
38
|
}
|
|
33
39
|
declare function updateLineItems$1(httpClient: HttpClient): UpdateLineItemsSignature;
|
|
34
40
|
interface UpdateLineItemsSignature {
|
|
@@ -43,7 +49,9 @@ interface UpdateLineItemsSignature {
|
|
|
43
49
|
* @param - Draft order ID.
|
|
44
50
|
* @param - Details of changes to apply per line item.
|
|
45
51
|
*/
|
|
46
|
-
(draftOrderId: string, lineItemChanges: LineItemChangeDetails[]): Promise<UpdateLineItemsResponse
|
|
52
|
+
(draftOrderId: string, lineItemChanges: LineItemChangeDetails[]): Promise<UpdateLineItemsResponse & {
|
|
53
|
+
__applicationErrorsType?: UpdateLineItemsApplicationErrors | undefined;
|
|
54
|
+
}>;
|
|
47
55
|
}
|
|
48
56
|
declare function setDiscounts$1(httpClient: HttpClient): SetDiscountsSignature;
|
|
49
57
|
interface SetDiscountsSignature {
|
|
@@ -57,7 +65,9 @@ interface SetDiscountsSignature {
|
|
|
57
65
|
*
|
|
58
66
|
* Any existing discounts that are not passed will not change.
|
|
59
67
|
*/
|
|
60
|
-
(draftOrderId: string, discounts: IdAndApplied[]): Promise<SetDiscountsResponse
|
|
68
|
+
(draftOrderId: string, discounts: IdAndApplied[]): Promise<SetDiscountsResponse & {
|
|
69
|
+
__applicationErrorsType?: SetDiscountsApplicationErrors | undefined;
|
|
70
|
+
}>;
|
|
61
71
|
}
|
|
62
72
|
declare function createCustomDiscounts$1(httpClient: HttpClient): CreateCustomDiscountsSignature;
|
|
63
73
|
interface CreateCustomDiscountsSignature {
|
|
@@ -68,7 +78,9 @@ interface CreateCustomDiscountsSignature {
|
|
|
68
78
|
* To apply them, use Set Discounts.
|
|
69
79
|
* @param - Draft order ID.
|
|
70
80
|
*/
|
|
71
|
-
(draftOrderId: string, options?: CreateCustomDiscountsOptions | undefined): Promise<CreateCustomDiscountsResponse
|
|
81
|
+
(draftOrderId: string, options?: CreateCustomDiscountsOptions | undefined): Promise<CreateCustomDiscountsResponse & {
|
|
82
|
+
__applicationErrorsType?: CreateCustomDiscountsApplicationErrors | undefined;
|
|
83
|
+
}>;
|
|
72
84
|
}
|
|
73
85
|
declare function deleteCustomDiscounts$1(httpClient: HttpClient): DeleteCustomDiscountsSignature;
|
|
74
86
|
interface DeleteCustomDiscountsSignature {
|
|
@@ -77,7 +89,9 @@ interface DeleteCustomDiscountsSignature {
|
|
|
77
89
|
* @param - Draft order ID.
|
|
78
90
|
* @param - IDs of the discounts to remove from the draft order.
|
|
79
91
|
*/
|
|
80
|
-
(draftOrderId: string, discountIds: string[]): Promise<DeleteCustomDiscountsResponse
|
|
92
|
+
(draftOrderId: string, discountIds: string[]): Promise<DeleteCustomDiscountsResponse & {
|
|
93
|
+
__applicationErrorsType?: DeleteCustomDiscountsApplicationErrors | undefined;
|
|
94
|
+
}>;
|
|
81
95
|
}
|
|
82
96
|
declare function setAdditionalFees$1(httpClient: HttpClient): SetAdditionalFeesSignature;
|
|
83
97
|
interface SetAdditionalFeesSignature {
|
|
@@ -91,7 +105,9 @@ interface SetAdditionalFeesSignature {
|
|
|
91
105
|
*
|
|
92
106
|
* Any existing additional fees that are not passed will not change.
|
|
93
107
|
*/
|
|
94
|
-
(draftOrderId: string, additionalFees: IdAndApplied[]): Promise<SetAdditionalFeesResponse
|
|
108
|
+
(draftOrderId: string, additionalFees: IdAndApplied[]): Promise<SetAdditionalFeesResponse & {
|
|
109
|
+
__applicationErrorsType?: SetAdditionalFeesApplicationErrors | undefined;
|
|
110
|
+
}>;
|
|
95
111
|
}
|
|
96
112
|
declare function createCustomAdditionalFees$1(httpClient: HttpClient): CreateCustomAdditionalFeesSignature;
|
|
97
113
|
interface CreateCustomAdditionalFeesSignature {
|
|
@@ -102,7 +118,9 @@ interface CreateCustomAdditionalFeesSignature {
|
|
|
102
118
|
* To apply them, use Set Additional Fees.
|
|
103
119
|
* @param - Draft order ID.
|
|
104
120
|
*/
|
|
105
|
-
(draftOrderId: string, options?: CreateCustomAdditionalFeesOptions | undefined): Promise<CreateCustomAdditionalFeesResponse
|
|
121
|
+
(draftOrderId: string, options?: CreateCustomAdditionalFeesOptions | undefined): Promise<CreateCustomAdditionalFeesResponse & {
|
|
122
|
+
__applicationErrorsType?: CreateCustomAdditionalFeesApplicationErrors | undefined;
|
|
123
|
+
}>;
|
|
106
124
|
}
|
|
107
125
|
declare function deleteCustomAdditionalFees$1(httpClient: HttpClient): DeleteCustomAdditionalFeesSignature;
|
|
108
126
|
interface DeleteCustomAdditionalFeesSignature {
|
|
@@ -111,7 +129,9 @@ interface DeleteCustomAdditionalFeesSignature {
|
|
|
111
129
|
* @param - Draft order ID.
|
|
112
130
|
* @param - IDs of the additional fees to remove from the draft order.
|
|
113
131
|
*/
|
|
114
|
-
(draftOrderId: string, customAdditionalFees: string[]): Promise<DeleteCustomAdditionalFeesResponse
|
|
132
|
+
(draftOrderId: string, customAdditionalFees: string[]): Promise<DeleteCustomAdditionalFeesResponse & {
|
|
133
|
+
__applicationErrorsType?: DeleteCustomAdditionalFeesApplicationErrors | undefined;
|
|
134
|
+
}>;
|
|
115
135
|
}
|
|
116
136
|
declare function setShippingInfo$1(httpClient: HttpClient): SetShippingInfoSignature;
|
|
117
137
|
interface SetShippingInfoSignature {
|
|
@@ -119,7 +139,9 @@ interface SetShippingInfoSignature {
|
|
|
119
139
|
* Sets shipping information on a draft order.
|
|
120
140
|
* @param - Draft order ID.
|
|
121
141
|
*/
|
|
122
|
-
(draftOrderId: string, options?: SetShippingInfoOptions | undefined): Promise<SetShippingInfoResponse
|
|
142
|
+
(draftOrderId: string, options?: SetShippingInfoOptions | undefined): Promise<SetShippingInfoResponse & {
|
|
143
|
+
__applicationErrorsType?: SetShippingInfoApplicationErrors | undefined;
|
|
144
|
+
}>;
|
|
123
145
|
}
|
|
124
146
|
declare function setBuyerInfo$1(httpClient: HttpClient): SetBuyerInfoSignature;
|
|
125
147
|
interface SetBuyerInfoSignature {
|
|
@@ -127,7 +149,9 @@ interface SetBuyerInfoSignature {
|
|
|
127
149
|
* Sets buyer info on a draft order.
|
|
128
150
|
* @param - Draft order ID.
|
|
129
151
|
*/
|
|
130
|
-
(draftOrderId: string, options?: SetBuyerInfoOptions | undefined): Promise<SetBuyerInfoResponse
|
|
152
|
+
(draftOrderId: string, options?: SetBuyerInfoOptions | undefined): Promise<SetBuyerInfoResponse & {
|
|
153
|
+
__applicationErrorsType?: SetBuyerInfoApplicationErrors | undefined;
|
|
154
|
+
}>;
|
|
131
155
|
}
|
|
132
156
|
declare function setRecipientInfo$1(httpClient: HttpClient): SetRecipientInfoSignature;
|
|
133
157
|
interface SetRecipientInfoSignature {
|
|
@@ -135,7 +159,9 @@ interface SetRecipientInfoSignature {
|
|
|
135
159
|
* Sets recipient info on a draft order.
|
|
136
160
|
* @param - Draft order ID.
|
|
137
161
|
*/
|
|
138
|
-
(draftOrderId: string, options?: SetRecipientInfoOptions | undefined): Promise<SetRecipientInfoResponse
|
|
162
|
+
(draftOrderId: string, options?: SetRecipientInfoOptions | undefined): Promise<SetRecipientInfoResponse & {
|
|
163
|
+
__applicationErrorsType?: SetRecipientInfoApplicationErrors | undefined;
|
|
164
|
+
}>;
|
|
139
165
|
}
|
|
140
166
|
declare function setBillingInfo$1(httpClient: HttpClient): SetBillingInfoSignature;
|
|
141
167
|
interface SetBillingInfoSignature {
|
|
@@ -143,7 +169,9 @@ interface SetBillingInfoSignature {
|
|
|
143
169
|
* Sets billing info on a draft order.
|
|
144
170
|
* @param - Draft order ID.
|
|
145
171
|
*/
|
|
146
|
-
(draftOrderId: string, options?: SetBillingInfoOptions | undefined): Promise<SetBillingInfoResponse
|
|
172
|
+
(draftOrderId: string, options?: SetBillingInfoOptions | undefined): Promise<SetBillingInfoResponse & {
|
|
173
|
+
__applicationErrorsType?: SetBillingInfoApplicationErrors | undefined;
|
|
174
|
+
}>;
|
|
147
175
|
}
|
|
148
176
|
declare function getDraftOrder$1(httpClient: HttpClient): GetDraftOrderSignature;
|
|
149
177
|
interface GetDraftOrderSignature {
|
|
@@ -158,7 +186,9 @@ interface GetDraftOrderSignature {
|
|
|
158
186
|
* > **Note:** When retrieving a committed draft order, it **is not recalculated**.
|
|
159
187
|
* @param - Draft order ID.
|
|
160
188
|
*/
|
|
161
|
-
(draftOrderId: string): Promise<GetDraftOrderResponse
|
|
189
|
+
(draftOrderId: string): Promise<GetDraftOrderResponse & {
|
|
190
|
+
__applicationErrorsType?: GetDraftOrderApplicationErrors | undefined;
|
|
191
|
+
}>;
|
|
162
192
|
}
|
|
163
193
|
declare function getOrderDraftabilityStatus$1(httpClient: HttpClient): GetOrderDraftabilityStatusSignature;
|
|
164
194
|
interface GetOrderDraftabilityStatusSignature {
|
|
@@ -184,7 +214,9 @@ interface CommitDraftOrderSignature {
|
|
|
184
214
|
* > + A committed draft order does not allow for further modifications. However, it is kept for reference and can be retrieved.
|
|
185
215
|
* @param - Draft order ID.
|
|
186
216
|
*/
|
|
187
|
-
(draftOrderId: string, options?: CommitDraftOrderOptions | undefined): Promise<CommitDraftOrderResponse
|
|
217
|
+
(draftOrderId: string, options?: CommitDraftOrderOptions | undefined): Promise<CommitDraftOrderResponse & {
|
|
218
|
+
__applicationErrorsType?: CommitDraftOrderApplicationErrors | undefined;
|
|
219
|
+
}>;
|
|
188
220
|
}
|
|
189
221
|
declare function createOrderFromDraft$1(httpClient: HttpClient): CreateOrderFromDraftSignature;
|
|
190
222
|
interface CreateOrderFromDraftSignature {
|
|
@@ -197,7 +229,9 @@ interface CreateOrderFromDraftSignature {
|
|
|
197
229
|
* > + A committed draft order does not allow for further modifications. However, it is kept for reference and can be retrieved.
|
|
198
230
|
* @param - Draft order ID.
|
|
199
231
|
*/
|
|
200
|
-
(draftOrderId: string, options?: CreateOrderFromDraftOptions | undefined): Promise<CreateOrderFromDraftResponse
|
|
232
|
+
(draftOrderId: string, options?: CreateOrderFromDraftOptions | undefined): Promise<CreateOrderFromDraftResponse & {
|
|
233
|
+
__applicationErrorsType?: CreateOrderFromDraftApplicationErrors | undefined;
|
|
234
|
+
}>;
|
|
201
235
|
}
|
|
202
236
|
declare function deleteDraftOrder$1(httpClient: HttpClient): DeleteDraftOrderSignature;
|
|
203
237
|
interface DeleteDraftOrderSignature {
|
|
@@ -207,7 +241,9 @@ interface DeleteDraftOrderSignature {
|
|
|
207
241
|
* Draft orders with status 'COMMITTED' cannot be deleted.
|
|
208
242
|
* @param - Draft order ID.
|
|
209
243
|
*/
|
|
210
|
-
(draftOrderId: string): Promise<void
|
|
244
|
+
(draftOrderId: string): Promise<void & {
|
|
245
|
+
__applicationErrorsType?: DeleteDraftOrderApplicationErrors | undefined;
|
|
246
|
+
}>;
|
|
211
247
|
}
|
|
212
248
|
declare function queryDraftOrders$1(httpClient: HttpClient): QueryDraftOrdersSignature;
|
|
213
249
|
interface QueryDraftOrdersSignature {
|
|
@@ -226,7 +262,9 @@ interface UpdateExtendedFieldsSignature {
|
|
|
226
262
|
* @param - ID of the entity to update.
|
|
227
263
|
* @param - Identifier for the app whose extended fields are being updated.
|
|
228
264
|
*/
|
|
229
|
-
(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse
|
|
265
|
+
(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse & {
|
|
266
|
+
__applicationErrorsType?: UpdateExtendedFieldsApplicationErrors | undefined;
|
|
267
|
+
}>;
|
|
230
268
|
}
|
|
231
269
|
declare function setTaxExemption$1(httpClient: HttpClient): SetTaxExemptionSignature;
|
|
232
270
|
interface SetTaxExemptionSignature {
|
|
@@ -236,7 +274,9 @@ interface SetTaxExemptionSignature {
|
|
|
236
274
|
* A tax exempted draft order ignores taxes during calculation. Tax information will return empty.
|
|
237
275
|
* @param - Draft order ID.
|
|
238
276
|
*/
|
|
239
|
-
(draftOrderId: string, options: SetTaxExemptionOptions): Promise<SetTaxExemptionResponse
|
|
277
|
+
(draftOrderId: string, options: SetTaxExemptionOptions): Promise<SetTaxExemptionResponse & {
|
|
278
|
+
__applicationErrorsType?: SetTaxExemptionApplicationErrors | undefined;
|
|
279
|
+
}>;
|
|
240
280
|
}
|
|
241
281
|
declare function setBusinessLocation$1(httpClient: HttpClient): SetBusinessLocationSignature;
|
|
242
282
|
interface SetBusinessLocationSignature {
|
|
@@ -246,7 +286,9 @@ interface SetBusinessLocationSignature {
|
|
|
246
286
|
* When committed, the order will become associated to a specific business location. This affects who can see and manage this order, and how it is calculated in reports.
|
|
247
287
|
* @param - Draft order ID.
|
|
248
288
|
*/
|
|
249
|
-
(draftOrderId: string, options?: SetBusinessLocationOptions | undefined): Promise<SetBusinessLocationResponse
|
|
289
|
+
(draftOrderId: string, options?: SetBusinessLocationOptions | undefined): Promise<SetBusinessLocationResponse & {
|
|
290
|
+
__applicationErrorsType?: SetBusinessLocationApplicationErrors | undefined;
|
|
291
|
+
}>;
|
|
250
292
|
}
|
|
251
293
|
declare const onDraftOrderCreated$1: EventDefinition<DraftOrderCreatedEnvelope, "wix.ecom.v1.draft_order_created">;
|
|
252
294
|
declare const onDraftOrderDeleted$1: EventDefinition<DraftOrderDeletedEnvelope, "wix.ecom.v1.draft_order_deleted">;
|
package/build/cjs/index.js
CHANGED
|
@@ -4614,6 +4614,7 @@ async function deleteDraftOrder2(draftOrderId) {
|
|
|
4614
4614
|
try {
|
|
4615
4615
|
const result = await httpClient.request(reqOpts);
|
|
4616
4616
|
sideEffects?.onSuccess?.(result);
|
|
4617
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
4617
4618
|
} catch (err) {
|
|
4618
4619
|
const transformedError = (0, import_transform_error.transformError)(
|
|
4619
4620
|
err,
|