@wix/auto_sdk_ecom_draft-orders 1.0.23 → 1.0.25

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.
Files changed (61) hide show
  1. package/build/cjs/src/ecom-v1-draft-order-draft-orders.context.d.ts +17 -1
  2. package/build/cjs/src/ecom-v1-draft-order-draft-orders.context.js +18 -2
  3. package/build/cjs/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -1
  4. package/build/cjs/src/ecom-v1-draft-order-draft-orders.http.d.ts +54 -34
  5. package/build/cjs/src/ecom-v1-draft-order-draft-orders.http.js +54 -34
  6. package/build/cjs/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -1
  7. package/build/cjs/src/ecom-v1-draft-order-draft-orders.public.d.ts +62 -43
  8. package/build/cjs/src/ecom-v1-draft-order-draft-orders.public.js +213 -2
  9. package/build/cjs/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -1
  10. package/build/cjs/src/ecom-v1-draft-order-draft-orders.types.d.ts +207 -86
  11. package/build/cjs/src/ecom-v1-draft-order-draft-orders.types.js +11 -7
  12. package/build/cjs/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -1
  13. package/build/cjs/src/ecom-v1-draft-order-draft-orders.universal.d.ts +457 -136
  14. package/build/cjs/src/ecom-v1-draft-order-draft-orders.universal.js +115 -47
  15. package/build/cjs/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -1
  16. package/build/es/src/ecom-v1-draft-order-draft-orders.context.d.ts +17 -1
  17. package/build/es/src/ecom-v1-draft-order-draft-orders.context.js +16 -0
  18. package/build/es/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -1
  19. package/build/es/src/ecom-v1-draft-order-draft-orders.http.d.ts +54 -34
  20. package/build/es/src/ecom-v1-draft-order-draft-orders.http.js +54 -34
  21. package/build/es/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -1
  22. package/build/es/src/ecom-v1-draft-order-draft-orders.public.d.ts +62 -43
  23. package/build/es/src/ecom-v1-draft-order-draft-orders.public.js +211 -0
  24. package/build/es/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -1
  25. package/build/es/src/ecom-v1-draft-order-draft-orders.types.d.ts +207 -86
  26. package/build/es/src/ecom-v1-draft-order-draft-orders.types.js +11 -7
  27. package/build/es/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -1
  28. package/build/es/src/ecom-v1-draft-order-draft-orders.universal.d.ts +457 -136
  29. package/build/es/src/ecom-v1-draft-order-draft-orders.universal.js +115 -47
  30. package/build/es/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -1
  31. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.context.d.ts +17 -1
  32. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.context.js +18 -2
  33. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -1
  34. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.http.d.ts +54 -34
  35. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.http.js +54 -34
  36. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -1
  37. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.public.d.ts +62 -43
  38. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.public.js +213 -2
  39. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -1
  40. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.types.d.ts +207 -86
  41. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.types.js +11 -7
  42. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -1
  43. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.universal.d.ts +459 -137
  44. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.universal.js +115 -47
  45. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -1
  46. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.context.d.ts +17 -1
  47. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.context.js +16 -0
  48. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -1
  49. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.http.d.ts +54 -34
  50. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.http.js +54 -34
  51. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -1
  52. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.public.d.ts +62 -43
  53. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.public.js +211 -0
  54. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -1
  55. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.types.d.ts +207 -86
  56. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.types.js +11 -7
  57. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -1
  58. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.universal.d.ts +459 -137
  59. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.universal.js +115 -47
  60. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -1
  61. package/package.json +4 -4
@@ -1,16 +1,16 @@
1
- import { HttpClient } from '@wix/sdk-types';
2
- import { AddLineItemsToDraftOrderOptions, AddLineItemsToDraftOrderResponse, CommitDraftOrderOptions, CommitDraftOrderResponse, CreateCustomAdditionalFeesOptions, CreateCustomAdditionalFeesResponse, CreateCustomDiscountsOptions, CreateCustomDiscountsResponse, CreateDraftOrderResponse, CreateEmptyDraftOrderResponse, CreateOrderFromDraftOptions, CreateOrderFromDraftResponse, DeleteCustomAdditionalFeesResponse, DeleteCustomDiscountsResponse, DraftOrdersQueryBuilder, GetDraftOrderResponse, GetOrderDraftabilityStatusResponse, IdAndApplied, LineItemChangeDetails, SetAdditionalFeesResponse, SetBillingInfoOptions, SetBillingInfoResponse, SetBusinessLocationOptions, SetBusinessLocationResponse, SetBuyerInfoOptions, SetBuyerInfoResponse, SetDiscountsResponse, SetRecipientInfoOptions, SetRecipientInfoResponse, SetShippingInfoOptions, SetShippingInfoResponse, SetTaxExemptionOptions, SetTaxExemptionResponse, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateLineItemsResponse } from './ecom-v1-draft-order-draft-orders.universal.js';
1
+ import { EventDefinition, HttpClient } from '@wix/sdk-types';
2
+ import { AddLineItemsToDraftOrderOptions, AddLineItemsToDraftOrderResponse, CommitDraftOrderOptions, CommitDraftOrderResponse, CreateCustomAdditionalFeesOptions, CreateCustomAdditionalFeesResponse, CreateCustomDiscountsOptions, CreateCustomDiscountsResponse, CreateDraftOrderResponse, CreateEmptyDraftOrderResponse, CreateOrderFromDraftOptions, CreateOrderFromDraftResponse, DeleteCustomAdditionalFeesResponse, DeleteCustomDiscountsResponse, DraftOrderCreatedEnvelope, DraftOrderDeletedEnvelope, DraftOrderUpdatedEnvelope, DraftOrdersQueryBuilder, GetDraftOrderResponse, GetOrderDraftabilityStatusResponse, IdAndApplied, LineItemChangeDetails, SetAdditionalFeesResponse, SetBillingInfoOptions, SetBillingInfoResponse, SetBusinessLocationOptions, SetBusinessLocationResponse, SetBuyerInfoOptions, SetBuyerInfoResponse, SetDiscountsResponse, SetRecipientInfoOptions, SetRecipientInfoResponse, SetShippingInfoOptions, SetShippingInfoResponse, SetTaxExemptionOptions, SetTaxExemptionResponse, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateLineItemsResponse } from './ecom-v1-draft-order-draft-orders.universal.js';
3
3
  export declare const __metadata: {
4
4
  PACKAGE_NAME: string;
5
5
  };
6
6
  export declare function createDraftOrder(httpClient: HttpClient): CreateDraftOrderSignature;
7
7
  interface CreateDraftOrderSignature {
8
8
  /**
9
- * Creates or gets a draft order.
9
+ * Creates or retrieves a draft order based on the specified order ID.
10
10
  *
11
- * When passing the ID of an order that is already in draft, the existing draft order will be returned.
12
- * 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)).
13
- * @param - Existing order ID to create draft from.
11
+ * When passing the ID of an order that is already in draft, the existing draft order is returned.
12
+ * To complete a draft and update the original order, call Commit Draft Order.
13
+ * @param - ID of the order to create a draft for.
14
14
  */
15
15
  (orderId: string): Promise<CreateDraftOrderResponse>;
16
16
  }
@@ -18,13 +18,15 @@ export declare function createEmptyDraftOrder(httpClient: HttpClient): CreateEmp
18
18
  interface CreateEmptyDraftOrderSignature {
19
19
  /**
20
20
  * Creates an empty draft order.
21
+ *
22
+ * After all relevant details are applied, call Create Order From Draft to convert the draft order to a regular order.
21
23
  */
22
24
  (): Promise<CreateEmptyDraftOrderResponse>;
23
25
  }
24
26
  export declare function addLineItemsToDraftOrder(httpClient: HttpClient): AddLineItemsToDraftOrderSignature;
25
27
  interface AddLineItemsToDraftOrderSignature {
26
28
  /**
27
- * Adds line items to a draft order.
29
+ * Adds catalog or custom line items to a draft order.
28
30
  * @param - Draft order ID.
29
31
  */
30
32
  (draftOrderId: string, options?: AddLineItemsToDraftOrderOptions | undefined): Promise<AddLineItemsToDraftOrderResponse>;
@@ -34,11 +36,11 @@ interface UpdateLineItemsSignature {
34
36
  /**
35
37
  * Updates a draft order's line items.
36
38
  *
37
- * Using this API, you can update a line item's quantity, price, and description.
39
+ * You can update a line item's quantity, price, and description.
38
40
  * > **Notes:**
39
- * > + Passing a quantity of `0` will remove the line item.
41
+ * > + Specifying a quantity of `0` will remove the line item.
40
42
  * > + Price cannot be updated for line items with `paymentOption: MEMBERSHIP`.
41
- * > + 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).
43
+ * > + Quantity cannot be decreased for fulfilled line items. To retrieve fulfillment information, specify the order ID when calling List Fulfillments For Single Order ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/order-fulfillments/list-fulfillments-for-single-order) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/order-fulfillments/list-fulfillments-for-single-order)).
42
44
  * @param - Draft order ID.
43
45
  * @param - Details of changes to apply per line item.
44
46
  */
@@ -49,21 +51,22 @@ interface SetDiscountsSignature {
49
51
  /**
50
52
  * Applies or unapplies discounts on a draft order.
51
53
  *
52
- * Unapplied discounts are still part of draft order, but do not affect balance.
53
- * Existing discounts, not mentioned in request, will keep their current state.
54
+ * Unapplied discounts are still part of the draft order, but do not affect balance.
55
+ * Existing discounts that are not passed in the request will keep their current state.
54
56
  * @param - Draft order ID.
55
- * @param - Discount IDs to apply/unapply.
56
- * Existing discounts, not mentioned in request, will keep their current state.
57
+ * @param - Discounts to set on the draft order.
58
+ *
59
+ * Any existing discounts that are not passed will not change.
57
60
  */
58
61
  (draftOrderId: string, discounts: IdAndApplied[]): Promise<SetDiscountsResponse>;
59
62
  }
60
63
  export declare function createCustomDiscounts(httpClient: HttpClient): CreateCustomDiscountsSignature;
61
64
  interface CreateCustomDiscountsSignature {
62
65
  /**
63
- * Create custom discounts on a draft order.
66
+ * Creates custom discounts.
64
67
  *
65
- * Newly added discounts are unapplied by default.
66
- * 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)).
68
+ * Newly created discounts are unapplied by default.
69
+ * To apply them, use Set Discounts.
67
70
  * @param - Draft order ID.
68
71
  */
69
72
  (draftOrderId: string, options?: CreateCustomDiscountsOptions | undefined): Promise<CreateCustomDiscountsResponse>;
@@ -71,9 +74,9 @@ interface CreateCustomDiscountsSignature {
71
74
  export declare function deleteCustomDiscounts(httpClient: HttpClient): DeleteCustomDiscountsSignature;
72
75
  interface DeleteCustomDiscountsSignature {
73
76
  /**
74
- * Remove custom discounts from the order.
77
+ * Removes custom discounts from a draft order.
75
78
  * @param - Draft order ID.
76
- * @param - Ids of discounts to remove.
79
+ * @param - IDs of the discounts to remove from the draft order.
77
80
  */
78
81
  (draftOrderId: string, discountIds: string[]): Promise<DeleteCustomDiscountsResponse>;
79
82
  }
@@ -82,11 +85,12 @@ interface SetAdditionalFeesSignature {
82
85
  /**
83
86
  * Applies or unapplies additional fees on a draft order.
84
87
  *
85
- * Unapplied fees are still part of draft order, but do not affect balance.
86
- * Existing additional fees, not mentioned in request, will keep their current state.
88
+ * Additional fees that are not applied are still part of the draft order, but do not affect balance.
89
+ * Existing additional fees that are not passed in the request will keep their current state.
87
90
  * @param - Draft order ID.
88
- * @param - Additional fee IDs to apply/unapply.
89
- * Existing additional fees, not mentioned in this list, will keep their current state.
91
+ * @param - Additional fees to set on the draft order.
92
+ *
93
+ * Any existing additional fees that are not passed will not change.
90
94
  */
91
95
  (draftOrderId: string, additionalFees: IdAndApplied[]): Promise<SetAdditionalFeesResponse>;
92
96
  }
@@ -95,8 +99,8 @@ interface CreateCustomAdditionalFeesSignature {
95
99
  /**
96
100
  * Creates custom additional fees on a draft order.
97
101
  *
98
- * Newly added additional fees are unapplied by default.
99
- * 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)).
102
+ * Newly created additional fees are not applied by default.
103
+ * To apply them, use Set Additional Fees.
100
104
  * @param - Draft order ID.
101
105
  */
102
106
  (draftOrderId: string, options?: CreateCustomAdditionalFeesOptions | undefined): Promise<CreateCustomAdditionalFeesResponse>;
@@ -104,9 +108,9 @@ interface CreateCustomAdditionalFeesSignature {
104
108
  export declare function deleteCustomAdditionalFees(httpClient: HttpClient): DeleteCustomAdditionalFeesSignature;
105
109
  interface DeleteCustomAdditionalFeesSignature {
106
110
  /**
107
- * Remove custom additional fees from the order.
111
+ * Removes custom additional fees from a draft order.
108
112
  * @param - Draft order ID.
109
- * @param - Ids of additional fees to remove.
113
+ * @param - IDs of the additional fees to remove from the draft order.
110
114
  */
111
115
  (draftOrderId: string, customAdditionalFees: string[]): Promise<DeleteCustomAdditionalFeesResponse>;
112
116
  }
@@ -145,12 +149,14 @@ interface SetBillingInfoSignature {
145
149
  export declare function getDraftOrder(httpClient: HttpClient): GetDraftOrderSignature;
146
150
  interface GetDraftOrderSignature {
147
151
  /**
148
- * Gets a draft order.
152
+ * Retrieves a draft order.
149
153
  *
150
- * Draft order is recalculated and contains latest tax and totals (unless already committed).
151
- * Automatic discounts and automatic additional fees will reflect the latest prices and eligibility.
152
- * Calculation will be based on current draft order content - items, shipping info and eligible discounts and additional fees.
153
- * When retrieving an already committed draft, it's not recalculated and contains data calculated during commit.
154
+ * The retrieved draft order contains the latest calculations:
155
+ * + Line items, shipping details, and buyer information.
156
+ * + Tax details and price totals.
157
+ * + Automatic discounts and automatic additional fees, along with updated eligibility.
158
+ *
159
+ * > **Note:** When retrieving a committed draft order, it **is not recalculated**.
154
160
  * @param - Draft order ID.
155
161
  */
156
162
  (draftOrderId: string): Promise<GetDraftOrderResponse>;
@@ -158,18 +164,21 @@ interface GetDraftOrderSignature {
158
164
  export declare function getOrderDraftabilityStatus(httpClient: HttpClient): GetOrderDraftabilityStatusSignature;
159
165
  interface GetOrderDraftabilityStatusSignature {
160
166
  /**
161
- * Checks whether a draft can be created for this order.
162
- * @param - Order Id.
167
+ * Checks whether a draft can be created for an order.
168
+ * @param - Order ID.
163
169
  */
164
170
  (orderId: string): Promise<GetOrderDraftabilityStatusResponse>;
165
171
  }
166
172
  export declare function commitDraftOrder(httpClient: HttpClient): CommitDraftOrderSignature;
167
173
  interface CommitDraftOrderSignature {
168
174
  /**
169
- * Commit latest changes to the baseline order and control which side-effects are executed.
175
+ * Finalizes a draft order and applies its modifications to the associated order.
176
+ * You can also control which side-effects are executed on commit.
170
177
  *
171
- * Commit cannot be undone or reverted.
172
- * Committed draft will become closed for further modifications, however it's kept for reference and can be retrieved.
178
+ * > **Notes:**
179
+ * > + The draft order's status is set to `COMMITTED`.
180
+ * > + Commiting a draft order cannot be undone or reverted.
181
+ * > + A committed draft order does not allow for further modifications. However, it is kept for reference and can be retrieved.
173
182
  * @param - Draft order ID.
174
183
  */
175
184
  (draftOrderId: string, options?: CommitDraftOrderOptions | undefined): Promise<CommitDraftOrderResponse>;
@@ -177,10 +186,12 @@ interface CommitDraftOrderSignature {
177
186
  export declare function createOrderFromDraft(httpClient: HttpClient): CreateOrderFromDraftSignature;
178
187
  interface CreateOrderFromDraftSignature {
179
188
  /**
180
- * Creates a new order while specifying which side-effects are executed.
189
+ * Creates a new order from a draft, while specifying which side-effects are executed.
181
190
  *
182
- * Commit cannot be undone or reverted.
183
- * Committed draft will become closed for further modifications, however it's kept for reference and can be retrieved.
191
+ * > **Notes:**
192
+ * > + The draft order's status is set to `COMMITTED`.
193
+ * > + Commiting a draft order cannot be undone or reverted.
194
+ * > + A committed draft order does not allow for further modifications. However, it is kept for reference and can be retrieved.
184
195
  * @param - Draft order ID.
185
196
  */
186
197
  (draftOrderId: string, options?: CreateOrderFromDraftOptions | undefined): Promise<CreateOrderFromDraftResponse>;
@@ -190,7 +201,7 @@ interface DeleteDraftOrderSignature {
190
201
  /**
191
202
  * Deletes a draft order along with all its pending changes.
192
203
  *
193
- * Draft orders in status 'COMMITTED' cannot be deleted.
204
+ * Draft orders with status 'COMMITTED' cannot be deleted.
194
205
  * @param - Draft order ID.
195
206
  */
196
207
  (draftOrderId: string): Promise<void>;
@@ -207,6 +218,7 @@ interface QueryDraftOrdersSignature {
207
218
  * | `_updatedDate` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`, `lt()`, `le()`, `gt()`, `ge()` | Sortable |
208
219
  * | `status` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()` | Sortable |
209
220
  * | `orderId` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`, `startsWith()` | |
221
+ *
210
222
  * To learn how to query draft orders, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
211
223
  */
212
224
  (): DraftOrdersQueryBuilder;
@@ -223,7 +235,9 @@ interface UpdateExtendedFieldsSignature {
223
235
  export declare function setTaxExemption(httpClient: HttpClient): SetTaxExemptionSignature;
224
236
  interface SetTaxExemptionSignature {
225
237
  /**
226
- * Sets tax exemption on a draft order.
238
+ * Sets whether a draft order is tax-exempt.
239
+ *
240
+ * A tax exempted draft order ignores taxes during calculation. Tax information will return empty.
227
241
  * @param - Draft order ID.
228
242
  */
229
243
  (draftOrderId: string, options: SetTaxExemptionOptions): Promise<SetTaxExemptionResponse>;
@@ -232,8 +246,13 @@ export declare function setBusinessLocation(httpClient: HttpClient): SetBusiness
232
246
  interface SetBusinessLocationSignature {
233
247
  /**
234
248
  * Sets business location on a draft order.
249
+ *
250
+ * 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.
235
251
  * @param - Draft order ID.
236
252
  */
237
253
  (draftOrderId: string, options?: SetBusinessLocationOptions | undefined): Promise<SetBusinessLocationResponse>;
238
254
  }
239
- export { ActionEvent, Activity, ActivityContentOneOf, ActivityType, AddLineItemsToDraftOrderOptions, AddLineItemsToDraftOrderRequest, AddLineItemsToDraftOrderResponse, AdditionalFee, AdditionalFeeDetails, AdditionalFeeOption, Address, AddressLocation, AddressWithContact, AdjustmentType, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AppliedDiscountDiscountType, AttributionSource, AuthorizedPaymentCaptured, AuthorizedPaymentCreated, AuthorizedPaymentVoided, Balance, BalanceSummary, BillingAdjustment, BillingAdjustmentPriceSummary, BillingChangedDetails, BillingDetails, BillingDetailsChangeTypeOneOf, BusinessLocationChangedDetails, BusinessLocationDetails, BusinessLocationDetailsChangeTypeOneOf, BuyerChangedDetails, BuyerDetails, BuyerDetailsChangeTypeOneOf, BuyerInfo, BuyerInfoIdOneOf, CalculatedDraftOrder, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CarrierError, CarrierErrors, CatalogReference, CatalogReferenceLineItem, ChannelInfo, ChannelType, Color, CommitDraftOrderOptions, CommitDraftOrderRequest, CommitDraftOrderResponse, Coupon, CreateCustomAdditionalFeesOptions, CreateCustomAdditionalFeesRequest, CreateCustomAdditionalFeesResponse, CreateCustomDiscountsOptions, CreateCustomDiscountsRequest, CreateCustomDiscountsResponse, CreateDraftOrderRequest, CreateDraftOrderResponse, CreateEmptyDraftOrderRequest, CreateEmptyDraftOrderResponse, CreateOrderFromDraftOptions, CreateOrderFromDraftRequest, CreateOrderFromDraftResponse, CreatedBy, CreatedByStringOneOf, CreditCardDetails, CurrencyConversionDetails, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomActivity, CustomField, CustomLineItem, DeleteCustomAdditionalFeesRequest, DeleteCustomAdditionalFeesResponse, DeleteCustomDiscountsRequest, DeleteCustomDiscountsResponse, DeleteDraftOrderRequest, DeleteDraftOrderResponse, DeliveryLogistics, DeliveryTimeSlot, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineValueOneOf, Details, DetailsKindOneOf, DigitalFile, DiscountDetails, DiscountOption, DiscountOptionDiscountAmountOneOf, DiscountReason, DiscountRule, DiscountRuleName, DiscountType, DomainEvent, DomainEventBodyOneOf, DraftOrder, DraftOrderChangesApplied, DraftOrderCommitSettings, DraftOrdersQueryBuilder, DraftOrdersQueryResult, EditingStatus, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, ExternalReceipt, FieldViolation, FileType, FocalPoint, FreeTrialPeriod, FulfillmentStatus, FulfillmentStatusesAggregate, FullAddressContactDetails, GetDraftOrderRequest, GetDraftOrderResponse, GetOrderDraftabilityStatusRequest, GetOrderDraftabilityStatusResponse, GiftCardPaymentRefund, IdAndApplied, IdentificationData, IdentificationDataIdOneOf, InventoryUpdate, ItemChangedDetails, ItemDetails, ItemDetailsChangeTypeOneOf, ItemTaxFullDetails, ItemType, ItemTypeItemType, ItemTypeItemTypeDataOneOf, JurisdictionType, LineItemAmount, LineItemChangeDetails, LineItemChanges, LineItemDiscount, LineItemExchangeData, LineItemPriceChange, LineItemQuantityChange, LineItemQuantityChangeType, LineItemTaxBreakdown, LineItemTaxInfo, Location, LocationAndQuantity, ManagedAdditionalFee, ManagedDiscount, ManagedLineItem, MembershipPaymentRefund, MerchantComment, MerchantDiscount, MerchantDiscountMerchantDiscountReasonOneOf, MessageEnvelope, 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, SetAdditionalFeesResponse, SetBillingInfoOptions, SetBillingInfoRequest, SetBillingInfoResponse, SetBusinessLocationOptions, SetBusinessLocationRequest, SetBusinessLocationResponse, SetBuyerInfoOptions, SetBuyerInfoRequest, SetBuyerInfoResponse, SetDiscountsRequest, SetDiscountsResponse, SetRecipientInfoOptions, SetRecipientInfoRequest, SetRecipientInfoResponse, SetShippingInfoOptions, SetShippingInfoRequest, SetShippingInfoResponse, SetTaxExemptionOptions, SetTaxExemptionRequest, SetTaxExemptionResponse, 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, TranslatedValue, UpdateExtendedFieldsOptions, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, UpdateLineItemsRequest, UpdateLineItemsResponse, UpdateShippingInfoRequest, UpdateShippingInfoResponse, V1BalanceSummary, V1CreatedBy, V1CreatedByStringOneOf, V1DeliveryLogistics, V1DeliveryLogisticsAddressOneOf, V1DeliveryTimeSlot, V1PickupDetails, V1ShippingInformation, V1ShippingPrice, ValidationError, VatId, VatType, WebhookIdentityType, WeightUnit, WixReceipt, } from './ecom-v1-draft-order-draft-orders.universal.js';
255
+ export declare const onDraftOrderCreated: EventDefinition<DraftOrderCreatedEnvelope, "wix.ecom.v1.draft_order_created">;
256
+ export declare const onDraftOrderDeleted: EventDefinition<DraftOrderDeletedEnvelope, "wix.ecom.v1.draft_order_deleted">;
257
+ export declare const onDraftOrderUpdated: EventDefinition<DraftOrderUpdatedEnvelope, "wix.ecom.v1.draft_order_updated">;
258
+ export { ActionEvent, Activity, ActivityContentOneOf, ActivityType, AddLineItemsToDraftOrderOptions, AddLineItemsToDraftOrderRequest, AddLineItemsToDraftOrderResponse, 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, CommitDraftOrderOptions, CommitDraftOrderRequest, CommitDraftOrderResponse, Coupon, CreateCustomAdditionalFeesOptions, CreateCustomAdditionalFeesRequest, CreateCustomAdditionalFeesResponse, CreateCustomDiscountsOptions, CreateCustomDiscountsRequest, CreateCustomDiscountsResponse, CreateDraftOrderRequest, CreateDraftOrderResponse, CreateEmptyDraftOrderRequest, CreateEmptyDraftOrderResponse, CreateOrderFromDraftOptions, CreateOrderFromDraftRequest, CreateOrderFromDraftResponse, CreatedBy, CreatedByStringOneOf, CreditCardDetails, CurrencyConversionDetails, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomActivity, CustomField, CustomLineItem, DeleteCustomAdditionalFeesRequest, DeleteCustomAdditionalFeesResponse, DeleteCustomDiscountsRequest, DeleteCustomDiscountsResponse, DeleteDraftOrderRequest, DeleteDraftOrderResponse, DeliveryLogistics, DeliveryTimeSlot, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineValueOneOf, Details, DetailsKindOneOf, DigitalFile, DiscountDetails, DiscountOption, DiscountOptionDiscountAmountOneOf, DiscountReason, DiscountRule, DiscountRuleName, DiscountType, DomainEvent, DomainEventBodyOneOf, DraftOrder, DraftOrderChangesApplied, DraftOrderCommitSettings, DraftOrderCreatedEnvelope, DraftOrderDeletedEnvelope, DraftOrderUpdatedEnvelope, DraftOrdersQueryBuilder, DraftOrdersQueryResult, EditingStatus, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReceipt, FieldViolation, FileType, FocalPoint, FreeTrialPeriod, FulfillmentStatus, FulfillmentStatusesAggregate, FullAddressContactDetails, GetDraftOrderRequest, GetDraftOrderResponse, GetOrderDraftabilityStatusRequest, GetOrderDraftabilityStatusResponse, GiftCardPaymentRefund, IdAndApplied, IdentificationData, IdentificationDataIdOneOf, InventoryUpdate, ItemChangedDetails, ItemDetails, ItemDetailsChangeTypeOneOf, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemType, ItemTypeItemTypeDataOneOf, JurisdictionType, LineItemAmount, LineItemChangeDetails, 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, SetAdditionalFeesResponse, SetBillingInfoOptions, SetBillingInfoRequest, SetBillingInfoResponse, SetBusinessLocationOptions, SetBusinessLocationRequest, SetBusinessLocationResponse, SetBuyerInfoOptions, SetBuyerInfoRequest, SetBuyerInfoResponse, SetDiscountsRequest, SetDiscountsResponse, SetRecipientInfoOptions, SetRecipientInfoRequest, SetRecipientInfoResponse, SetShippingInfoOptions, SetShippingInfoRequest, SetShippingInfoResponse, SetTaxExemptionOptions, SetTaxExemptionRequest, SetTaxExemptionResponse, 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, UpdateExtendedFieldsOptions, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, UpdateLineItemsRequest, UpdateLineItemsResponse, UpdateShippingInfoRequest, UpdateShippingInfoResponse, V1BalanceSummary, V1CreatedBy, V1CreatedByStringOneOf, V1DeliveryLogistics, V1DeliveryLogisticsAddressOneOf, V1DeliveryTimeSlot, V1PickupDetails, V1ShippingInformation, V1ShippingPrice, ValidationError, VatId, VatType, WebhookIdentityType, WeightUnit, WixReceipt, } from './ecom-v1-draft-order-draft-orders.universal.js';
@@ -1,7 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VatType = exports.TaxableAddressType = exports.SubscriptionFrequency = exports.SourceType = exports.SortOrder = exports.RuleType = exports.PickupMethod = exports.PickupDetailsPickupMethod = exports.PaymentStatus = exports.PaymentOptionType = exports.OrderStatus = exports.NonDraftableReason = exports.LineItemQuantityChangeType = exports.JurisdictionType = exports.ItemTypeItemType = exports.FulfillmentStatus = exports.FileType = exports.EditingStatus = exports.DiscountType = exports.DiscountReason = exports.DescriptionLineType = exports.ChannelType = exports.AttributionSource = exports.AppliedDiscountDiscountType = exports.AdjustmentType = exports.ActivityType = 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 = exports.__metadata = void 0;
4
- exports.WeightUnit = exports.WebhookIdentityType = void 0;
3
+ exports.SourceType = exports.SortOrder = exports.RuleType = exports.PickupMethod = exports.PickupDetailsPickupMethod = exports.PaymentStatus = exports.PaymentOptionType = exports.OrderStatus = exports.NonDraftableReason = exports.LineItemQuantityChangeType = exports.JurisdictionType = exports.ItemTypeItemType = exports.FulfillmentStatus = exports.FileType = exports.EditingStatus = exports.DiscountType = exports.DiscountReason = exports.DescriptionLineType = exports.ChannelType = exports.AttributionSource = exports.AppliedDiscountDiscountType = exports.AdjustmentType = exports.ActivityType = exports.onDraftOrderUpdated = exports.onDraftOrderDeleted = exports.onDraftOrderCreated = 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 = exports.__metadata = void 0;
4
+ exports.WeightUnit = exports.WebhookIdentityType = exports.VatType = exports.TaxableAddressType = exports.SubscriptionFrequency = void 0;
5
+ const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
6
+ const address_1 = require("@wix/sdk-runtime/transformations/address");
7
+ const float_1 = require("@wix/sdk-runtime/transformations/float");
8
+ const image_1 = require("@wix/sdk-runtime/transformations/image");
9
+ const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
10
+ const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
11
+ const sdk_types_1 = require("@wix/sdk-types");
5
12
  const ecom_v1_draft_order_draft_orders_universal_js_1 = require("./ecom-v1-draft-order-draft-orders.universal.js");
6
13
  exports.__metadata = { PACKAGE_NAME: '@wix/ecom' };
7
14
  function createDraftOrder(httpClient) {
@@ -142,6 +149,210 @@ function setBusinessLocation(httpClient) {
142
149
  { httpClient });
143
150
  }
144
151
  exports.setBusinessLocation = setBusinessLocation;
152
+ exports.onDraftOrderCreated = (0, sdk_types_1.EventDefinition)('wix.ecom.v1.draft_order_created', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
153
+ {
154
+ transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
155
+ paths: [
156
+ { path: 'entity.createdDate' },
157
+ { path: 'entity.updatedDate' },
158
+ { path: 'entity.lineItems.lineItem.digitalFile.expirationDate' },
159
+ {
160
+ path: 'entity.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',
161
+ },
162
+ {
163
+ path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',
164
+ },
165
+ {
166
+ path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',
167
+ },
168
+ {
169
+ path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',
170
+ },
171
+ {
172
+ path: 'entity.shippingInfo.shippingInfo.logistics.deliverByDate',
173
+ },
174
+ {
175
+ path: 'entity.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',
176
+ },
177
+ {
178
+ path: 'entity.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',
179
+ },
180
+ { path: 'metadata.eventTime' },
181
+ ],
182
+ },
183
+ {
184
+ transformFn: image_1.transformRESTImageToSDKImage,
185
+ paths: [{ path: 'entity.lineItems.lineItem.image' }],
186
+ },
187
+ {
188
+ transformFn: float_1.transformRESTFloatToSDKFloat,
189
+ paths: [
190
+ { path: 'entity.lineItems.lineItem.physicalProperties.weight' },
191
+ ],
192
+ },
193
+ {
194
+ transformFn: address_1.transformRESTAddressToSDKAddress,
195
+ paths: [
196
+ {
197
+ path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',
198
+ },
199
+ {
200
+ path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',
201
+ },
202
+ {
203
+ path: 'entity.shippingInfo.shippingInfo.logistics.shippingDestination.address',
204
+ },
205
+ {
206
+ path: 'entity.shippingInfo.shippingInfo.logistics.pickupDetails.address',
207
+ },
208
+ { path: 'entity.billingInfo.address' },
209
+ {
210
+ path: 'entity.recipientInfo.changedDetails.recipientInfoBeforeChange.address',
211
+ },
212
+ { path: 'entity.recipientInfo.recipientInfo.address' },
213
+ {
214
+ path: 'entity.billingDetails.changedDetails.billingInfoBeforeChange.address',
215
+ },
216
+ { path: 'entity.billingDetails.billingInfo.address' },
217
+ ],
218
+ },
219
+ ])))();
220
+ exports.onDraftOrderDeleted = (0, sdk_types_1.EventDefinition)('wix.ecom.v1.draft_order_deleted', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
221
+ {
222
+ transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
223
+ paths: [
224
+ { path: 'undefined.createdDate' },
225
+ { path: 'undefined.updatedDate' },
226
+ { path: 'undefined.lineItems.lineItem.digitalFile.expirationDate' },
227
+ {
228
+ path: 'undefined.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',
229
+ },
230
+ {
231
+ path: 'undefined.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',
232
+ },
233
+ {
234
+ path: 'undefined.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',
235
+ },
236
+ {
237
+ path: 'undefined.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',
238
+ },
239
+ {
240
+ path: 'undefined.shippingInfo.shippingInfo.logistics.deliverByDate',
241
+ },
242
+ {
243
+ path: 'undefined.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',
244
+ },
245
+ {
246
+ path: 'undefined.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',
247
+ },
248
+ { path: 'metadata.eventTime' },
249
+ ],
250
+ },
251
+ {
252
+ transformFn: image_1.transformRESTImageToSDKImage,
253
+ paths: [{ path: 'undefined.lineItems.lineItem.image' }],
254
+ },
255
+ {
256
+ transformFn: float_1.transformRESTFloatToSDKFloat,
257
+ paths: [
258
+ { path: 'undefined.lineItems.lineItem.physicalProperties.weight' },
259
+ ],
260
+ },
261
+ {
262
+ transformFn: address_1.transformRESTAddressToSDKAddress,
263
+ paths: [
264
+ {
265
+ path: 'undefined.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',
266
+ },
267
+ {
268
+ path: 'undefined.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',
269
+ },
270
+ {
271
+ path: 'undefined.shippingInfo.shippingInfo.logistics.shippingDestination.address',
272
+ },
273
+ {
274
+ path: 'undefined.shippingInfo.shippingInfo.logistics.pickupDetails.address',
275
+ },
276
+ { path: 'undefined.billingInfo.address' },
277
+ {
278
+ path: 'undefined.recipientInfo.changedDetails.recipientInfoBeforeChange.address',
279
+ },
280
+ { path: 'undefined.recipientInfo.recipientInfo.address' },
281
+ {
282
+ path: 'undefined.billingDetails.changedDetails.billingInfoBeforeChange.address',
283
+ },
284
+ { path: 'undefined.billingDetails.billingInfo.address' },
285
+ ],
286
+ },
287
+ ])))();
288
+ exports.onDraftOrderUpdated = (0, sdk_types_1.EventDefinition)('wix.ecom.v1.draft_order_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
289
+ {
290
+ transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
291
+ paths: [
292
+ { path: 'entity.createdDate' },
293
+ { path: 'entity.updatedDate' },
294
+ { path: 'entity.lineItems.lineItem.digitalFile.expirationDate' },
295
+ {
296
+ path: 'entity.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',
297
+ },
298
+ {
299
+ path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',
300
+ },
301
+ {
302
+ path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',
303
+ },
304
+ {
305
+ path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',
306
+ },
307
+ {
308
+ path: 'entity.shippingInfo.shippingInfo.logistics.deliverByDate',
309
+ },
310
+ {
311
+ path: 'entity.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',
312
+ },
313
+ {
314
+ path: 'entity.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',
315
+ },
316
+ { path: 'metadata.eventTime' },
317
+ ],
318
+ },
319
+ {
320
+ transformFn: image_1.transformRESTImageToSDKImage,
321
+ paths: [{ path: 'entity.lineItems.lineItem.image' }],
322
+ },
323
+ {
324
+ transformFn: float_1.transformRESTFloatToSDKFloat,
325
+ paths: [
326
+ { path: 'entity.lineItems.lineItem.physicalProperties.weight' },
327
+ ],
328
+ },
329
+ {
330
+ transformFn: address_1.transformRESTAddressToSDKAddress,
331
+ paths: [
332
+ {
333
+ path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',
334
+ },
335
+ {
336
+ path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',
337
+ },
338
+ {
339
+ path: 'entity.shippingInfo.shippingInfo.logistics.shippingDestination.address',
340
+ },
341
+ {
342
+ path: 'entity.shippingInfo.shippingInfo.logistics.pickupDetails.address',
343
+ },
344
+ { path: 'entity.billingInfo.address' },
345
+ {
346
+ path: 'entity.recipientInfo.changedDetails.recipientInfoBeforeChange.address',
347
+ },
348
+ { path: 'entity.recipientInfo.recipientInfo.address' },
349
+ {
350
+ path: 'entity.billingDetails.changedDetails.billingInfoBeforeChange.address',
351
+ },
352
+ { path: 'entity.billingDetails.billingInfo.address' },
353
+ ],
354
+ },
355
+ ])))();
145
356
  var ecom_v1_draft_order_draft_orders_universal_js_2 = require("./ecom-v1-draft-order-draft-orders.universal.js");
146
357
  Object.defineProperty(exports, "ActivityType", { enumerable: true, get: function () { return ecom_v1_draft_order_draft_orders_universal_js_2.ActivityType; } });
147
358
  Object.defineProperty(exports, "AdjustmentType", { enumerable: true, get: function () { return ecom_v1_draft_order_draft_orders_universal_js_2.AdjustmentType; } });
@@ -1 +1 @@
1
- {"version":3,"file":"ecom-v1-draft-order-draft-orders.public.js","sourceRoot":"","sources":["../../../../src/ecom-v1-draft-order-draft-orders.public.ts"],"names":[],"mappings":";;;;AACA,mHA4DyD;AAE5C,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,SAAgB,gBAAgB,CAC9B,UAAsB;IAEtB,OAAO,CAAC,OAAe,EAAE,EAAE,CACzB,IAAA,gEAAyB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ET,2IAAA,UAAU,OAAA;AAGV,sJAAA,qBAAqB,OAAA;AAWrB,mJAAA,kBAAkB,OAAA;AAqBlB,wIAAA,OAAO,OAAA;AACP,oJAAA,mBAAmB,OAAA;AACnB,2IAAA,UAAU,OAAA"}
1
+ {"version":3,"file":"ecom-v1-draft-order-draft-orders.public.js","sourceRoot":"","sources":["../../../../src/ecom-v1-draft-order-draft-orders.public.ts"],"names":[],"mappings":";;;;AAAA,oFAAkG;AAClG,sEAA4F;AAC5F,kEAAsF;AACtF,kEAAsF;AACtF,0EAAkG;AAClG,sFAAkF;AAClF,8CAA+E;AAC/E,mHA+DyD;AAE5C,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,SAAgB,gBAAgB,CAC9B,UAAsB;IAEtB,OAAO,CAAC,OAAe,EAAE,EAAE,CACzB,IAAA,gEAAyB,EACvB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,4CASC;AAaD,SAAgB,qBAAqB,CACnC,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,IAAA,qEAA8B;IAC5B,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,sDAQC;AAWD,SAAgB,wBAAwB,CACtC,UAAsB;IAEtB,OAAO,CACL,YAAoB,EACpB,OAGC,EACD,EAAE,CACF,IAAA,wEAAiC,EAC/B,YAAY,EACZ,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAhBD,4DAgBC;AAaD,SAAgB,eAAe,CAC7B,UAAsB;IAEtB,OAAO,CACL,YAAoB,EACpB,eAAwE,EACxE,EAAE,CACF,IAAA,+DAAwB,EACtB,YAAY,EACZ,eAAe;IACf,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,0CAaC;AAoBD,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,CACL,YAAoB,EACpB,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