@wix/auto_sdk_ecom_draft-orders 1.0.33 → 1.0.35

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 (134) hide show
  1. package/build/{es/src/ecom-v1-draft-order-draft-orders.types.d.ts → ecom-v1-draft-order-draft-orders.universal-CAxetX1U.d.mts} +571 -368
  2. package/build/{cjs/src/ecom-v1-draft-order-draft-orders.types.d.ts → ecom-v1-draft-order-draft-orders.universal-CAxetX1U.d.ts} +571 -368
  3. package/build/index.d.mts +291 -0
  4. package/build/index.d.ts +291 -0
  5. package/build/index.js +5403 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +5326 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{cjs/src/ecom-v1-draft-order-draft-orders.types.d.ts → ecom-v1-draft-order-draft-orders.universal-CIHFdzik.d.mts} +746 -368
  10. package/build/internal/{es/src/ecom-v1-draft-order-draft-orders.types.d.ts → ecom-v1-draft-order-draft-orders.universal-CIHFdzik.d.ts} +746 -368
  11. package/build/internal/index.d.mts +291 -0
  12. package/build/internal/index.d.ts +291 -0
  13. package/build/internal/index.js +5403 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +5326 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +3140 -0
  18. package/build/internal/meta.d.ts +3140 -0
  19. package/build/internal/meta.js +3455 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +3406 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +3140 -0
  24. package/build/meta.d.ts +3140 -0
  25. package/build/meta.js +3455 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +3406 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/ecom-v1-draft-order-draft-orders.context.d.ts +0 -43
  40. package/build/cjs/src/ecom-v1-draft-order-draft-orders.context.js +0 -75
  41. package/build/cjs/src/ecom-v1-draft-order-draft-orders.context.js.map +0 -1
  42. package/build/cjs/src/ecom-v1-draft-order-draft-orders.http.d.ts +0 -131
  43. package/build/cjs/src/ecom-v1-draft-order-draft-orders.http.js +0 -3097
  44. package/build/cjs/src/ecom-v1-draft-order-draft-orders.http.js.map +0 -1
  45. package/build/cjs/src/ecom-v1-draft-order-draft-orders.meta.d.ts +0 -63
  46. package/build/cjs/src/ecom-v1-draft-order-draft-orders.meta.js +0 -465
  47. package/build/cjs/src/ecom-v1-draft-order-draft-orders.meta.js.map +0 -1
  48. package/build/cjs/src/ecom-v1-draft-order-draft-orders.public.d.ts +0 -255
  49. package/build/cjs/src/ecom-v1-draft-order-draft-orders.public.js +0 -385
  50. package/build/cjs/src/ecom-v1-draft-order-draft-orders.public.js.map +0 -1
  51. package/build/cjs/src/ecom-v1-draft-order-draft-orders.types.js +0 -378
  52. package/build/cjs/src/ecom-v1-draft-order-draft-orders.types.js.map +0 -1
  53. package/build/cjs/src/ecom-v1-draft-order-draft-orders.universal.d.ts +0 -4726
  54. package/build/cjs/src/ecom-v1-draft-order-draft-orders.universal.js +0 -2453
  55. package/build/cjs/src/ecom-v1-draft-order-draft-orders.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/ecom-v1-draft-order-draft-orders.context.d.ts +0 -43
  67. package/build/es/src/ecom-v1-draft-order-draft-orders.context.js +0 -43
  68. package/build/es/src/ecom-v1-draft-order-draft-orders.context.js.map +0 -1
  69. package/build/es/src/ecom-v1-draft-order-draft-orders.http.d.ts +0 -131
  70. package/build/es/src/ecom-v1-draft-order-draft-orders.http.js +0 -3071
  71. package/build/es/src/ecom-v1-draft-order-draft-orders.http.js.map +0 -1
  72. package/build/es/src/ecom-v1-draft-order-draft-orders.meta.d.ts +0 -63
  73. package/build/es/src/ecom-v1-draft-order-draft-orders.meta.js +0 -416
  74. package/build/es/src/ecom-v1-draft-order-draft-orders.meta.js.map +0 -1
  75. package/build/es/src/ecom-v1-draft-order-draft-orders.public.d.ts +0 -255
  76. package/build/es/src/ecom-v1-draft-order-draft-orders.public.js +0 -330
  77. package/build/es/src/ecom-v1-draft-order-draft-orders.public.js.map +0 -1
  78. package/build/es/src/ecom-v1-draft-order-draft-orders.types.js +0 -375
  79. package/build/es/src/ecom-v1-draft-order-draft-orders.types.js.map +0 -1
  80. package/build/es/src/ecom-v1-draft-order-draft-orders.universal.d.ts +0 -4726
  81. package/build/es/src/ecom-v1-draft-order-draft-orders.universal.js +0 -2403
  82. package/build/es/src/ecom-v1-draft-order-draft-orders.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.context.d.ts +0 -43
  93. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.context.js +0 -75
  94. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.context.js.map +0 -1
  95. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.http.d.ts +0 -131
  96. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.http.js +0 -3097
  97. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.http.js.map +0 -1
  98. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.meta.d.ts +0 -63
  99. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.meta.js +0 -465
  100. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.meta.js.map +0 -1
  101. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.public.d.ts +0 -255
  102. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.public.js +0 -385
  103. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.public.js.map +0 -1
  104. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.types.js +0 -378
  105. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.types.js.map +0 -1
  106. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.universal.d.ts +0 -4901
  107. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.universal.js +0 -2453
  108. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.context.d.ts +0 -43
  119. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.context.js +0 -43
  120. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.context.js.map +0 -1
  121. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.http.d.ts +0 -131
  122. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.http.js +0 -3071
  123. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.http.js.map +0 -1
  124. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.meta.d.ts +0 -63
  125. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.meta.js +0 -416
  126. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.meta.js.map +0 -1
  127. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.public.d.ts +0 -255
  128. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.public.js +0 -330
  129. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.public.js.map +0 -1
  130. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.types.js +0 -375
  131. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.types.js.map +0 -1
  132. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.universal.d.ts +0 -4901
  133. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.universal.js +0 -2403
  134. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.universal.js.map +0 -1
@@ -1,255 +0,0 @@
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
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function createDraftOrder(httpClient: HttpClient): CreateDraftOrderSignature;
7
- interface CreateDraftOrderSignature {
8
- /**
9
- * Creates or retrieves a draft order based on the specified order ID.
10
- *
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
- */
15
- (orderId: string): Promise<CreateDraftOrderResponse>;
16
- }
17
- export declare function createEmptyDraftOrder(httpClient: HttpClient): CreateEmptyDraftOrderSignature;
18
- interface CreateEmptyDraftOrderSignature {
19
- /**
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.
23
- */
24
- (): Promise<CreateEmptyDraftOrderResponse>;
25
- }
26
- export declare function addLineItemsToDraftOrder(httpClient: HttpClient): AddLineItemsToDraftOrderSignature;
27
- interface AddLineItemsToDraftOrderSignature {
28
- /**
29
- * Adds catalog or custom line items to a draft order.
30
- * @param - Draft order ID.
31
- */
32
- (draftOrderId: string, options?: AddLineItemsToDraftOrderOptions | undefined): Promise<AddLineItemsToDraftOrderResponse>;
33
- }
34
- export declare function updateLineItems(httpClient: HttpClient): UpdateLineItemsSignature;
35
- interface UpdateLineItemsSignature {
36
- /**
37
- * Updates a draft order's line items.
38
- *
39
- * You can update a line item's quantity, price, and description.
40
- * > **Notes:**
41
- * > + Specifying a quantity of `0` will remove the line item.
42
- * > + Price cannot be updated for line items with `paymentOption: MEMBERSHIP`.
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)).
44
- * @param - Draft order ID.
45
- * @param - Details of changes to apply per line item.
46
- */
47
- (draftOrderId: string, lineItemChanges: LineItemChangeDetails[]): Promise<UpdateLineItemsResponse>;
48
- }
49
- export declare function setDiscounts(httpClient: HttpClient): SetDiscountsSignature;
50
- interface SetDiscountsSignature {
51
- /**
52
- * Applies or unapplies discounts on a draft order.
53
- *
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.
56
- * @param - Draft order ID.
57
- * @param - Discounts to set on the draft order.
58
- *
59
- * Any existing discounts that are not passed will not change.
60
- */
61
- (draftOrderId: string, discounts: IdAndApplied[]): Promise<SetDiscountsResponse>;
62
- }
63
- export declare function createCustomDiscounts(httpClient: HttpClient): CreateCustomDiscountsSignature;
64
- interface CreateCustomDiscountsSignature {
65
- /**
66
- * Creates custom discounts.
67
- *
68
- * Newly created discounts are unapplied by default.
69
- * To apply them, use Set Discounts.
70
- * @param - Draft order ID.
71
- */
72
- (draftOrderId: string, options?: CreateCustomDiscountsOptions | undefined): Promise<CreateCustomDiscountsResponse>;
73
- }
74
- export declare function deleteCustomDiscounts(httpClient: HttpClient): DeleteCustomDiscountsSignature;
75
- interface DeleteCustomDiscountsSignature {
76
- /**
77
- * Removes custom discounts from a draft order.
78
- * @param - Draft order ID.
79
- * @param - IDs of the discounts to remove from the draft order.
80
- */
81
- (draftOrderId: string, discountIds: string[]): Promise<DeleteCustomDiscountsResponse>;
82
- }
83
- export declare function setAdditionalFees(httpClient: HttpClient): SetAdditionalFeesSignature;
84
- interface SetAdditionalFeesSignature {
85
- /**
86
- * Applies or unapplies additional fees on a draft order.
87
- *
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.
90
- * @param - Draft order ID.
91
- * @param - Additional fees to set on the draft order.
92
- *
93
- * Any existing additional fees that are not passed will not change.
94
- */
95
- (draftOrderId: string, additionalFees: IdAndApplied[]): Promise<SetAdditionalFeesResponse>;
96
- }
97
- export declare function createCustomAdditionalFees(httpClient: HttpClient): CreateCustomAdditionalFeesSignature;
98
- interface CreateCustomAdditionalFeesSignature {
99
- /**
100
- * Creates custom additional fees on a draft order.
101
- *
102
- * Newly created additional fees are not applied by default.
103
- * To apply them, use Set Additional Fees.
104
- * @param - Draft order ID.
105
- */
106
- (draftOrderId: string, options?: CreateCustomAdditionalFeesOptions | undefined): Promise<CreateCustomAdditionalFeesResponse>;
107
- }
108
- export declare function deleteCustomAdditionalFees(httpClient: HttpClient): DeleteCustomAdditionalFeesSignature;
109
- interface DeleteCustomAdditionalFeesSignature {
110
- /**
111
- * Removes custom additional fees from a draft order.
112
- * @param - Draft order ID.
113
- * @param - IDs of the additional fees to remove from the draft order.
114
- */
115
- (draftOrderId: string, customAdditionalFees: string[]): Promise<DeleteCustomAdditionalFeesResponse>;
116
- }
117
- export declare function setShippingInfo(httpClient: HttpClient): SetShippingInfoSignature;
118
- interface SetShippingInfoSignature {
119
- /**
120
- * Sets shipping information on a draft order.
121
- * @param - Draft order ID.
122
- */
123
- (draftOrderId: string, options?: SetShippingInfoOptions | undefined): Promise<SetShippingInfoResponse>;
124
- }
125
- export declare function setBuyerInfo(httpClient: HttpClient): SetBuyerInfoSignature;
126
- interface SetBuyerInfoSignature {
127
- /**
128
- * Sets buyer info on a draft order.
129
- * @param - Draft order ID.
130
- */
131
- (draftOrderId: string, options?: SetBuyerInfoOptions | undefined): Promise<SetBuyerInfoResponse>;
132
- }
133
- export declare function setRecipientInfo(httpClient: HttpClient): SetRecipientInfoSignature;
134
- interface SetRecipientInfoSignature {
135
- /**
136
- * Sets recipient info on a draft order.
137
- * @param - Draft order ID.
138
- */
139
- (draftOrderId: string, options?: SetRecipientInfoOptions | undefined): Promise<SetRecipientInfoResponse>;
140
- }
141
- export declare function setBillingInfo(httpClient: HttpClient): SetBillingInfoSignature;
142
- interface SetBillingInfoSignature {
143
- /**
144
- * Sets billing info on a draft order.
145
- * @param - Draft order ID.
146
- */
147
- (draftOrderId: string, options?: SetBillingInfoOptions | undefined): Promise<SetBillingInfoResponse>;
148
- }
149
- export declare function getDraftOrder(httpClient: HttpClient): GetDraftOrderSignature;
150
- interface GetDraftOrderSignature {
151
- /**
152
- * Retrieves a draft order.
153
- *
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**.
160
- * @param - Draft order ID.
161
- */
162
- (draftOrderId: string): Promise<GetDraftOrderResponse>;
163
- }
164
- export declare function getOrderDraftabilityStatus(httpClient: HttpClient): GetOrderDraftabilityStatusSignature;
165
- interface GetOrderDraftabilityStatusSignature {
166
- /**
167
- * Checks whether a draft can be created for an order.
168
- *
169
- * If `orderDraftable` returns as `true`, the order can be used to create a draft order.
170
- *
171
- * If `orderDraftable` returns as `false`, refer to the `nonDraftableReasons` array in the response to understand why the order is not draftable.
172
- * @param - Order ID.
173
- */
174
- (orderId: string): Promise<GetOrderDraftabilityStatusResponse>;
175
- }
176
- export declare function commitDraftOrder(httpClient: HttpClient): CommitDraftOrderSignature;
177
- interface CommitDraftOrderSignature {
178
- /**
179
- * Finalizes a draft order and applies its modifications to the associated order.
180
- * You can also control which side-effects are executed on commit.
181
- *
182
- * > **Notes:**
183
- * > + The draft order's status is set to `COMMITTED`.
184
- * > + Commiting a draft order cannot be undone or reverted.
185
- * > + A committed draft order does not allow for further modifications. However, it is kept for reference and can be retrieved.
186
- * @param - Draft order ID.
187
- */
188
- (draftOrderId: string, options?: CommitDraftOrderOptions | undefined): Promise<CommitDraftOrderResponse>;
189
- }
190
- export declare function createOrderFromDraft(httpClient: HttpClient): CreateOrderFromDraftSignature;
191
- interface CreateOrderFromDraftSignature {
192
- /**
193
- * Creates a new order from a draft, while specifying which side-effects are executed.
194
- *
195
- * > **Notes:**
196
- * > + The draft order's status is set to `COMMITTED`.
197
- * > + Commiting a draft order cannot be undone or reverted.
198
- * > + A committed draft order does not allow for further modifications. However, it is kept for reference and can be retrieved.
199
- * @param - Draft order ID.
200
- */
201
- (draftOrderId: string, options?: CreateOrderFromDraftOptions | undefined): Promise<CreateOrderFromDraftResponse>;
202
- }
203
- export declare function deleteDraftOrder(httpClient: HttpClient): DeleteDraftOrderSignature;
204
- interface DeleteDraftOrderSignature {
205
- /**
206
- * Deletes a draft order along with all its pending changes.
207
- *
208
- * Draft orders with status 'COMMITTED' cannot be deleted.
209
- * @param - Draft order ID.
210
- */
211
- (draftOrderId: string): Promise<void>;
212
- }
213
- export declare function queryDraftOrders(httpClient: HttpClient): QueryDraftOrdersSignature;
214
- interface QueryDraftOrdersSignature {
215
- /**
216
- * Retrieves a list of up to 100 draft orders, given the provided paging, filtering, and sorting.
217
- *
218
- * For field support, see [supported filters and sorting](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/draft-orders/supported-filters-and-sorting).
219
- * To learn how to query draft orders, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
220
- */
221
- (): DraftOrdersQueryBuilder;
222
- }
223
- export declare function updateExtendedFields(httpClient: HttpClient): UpdateExtendedFieldsSignature;
224
- interface UpdateExtendedFieldsSignature {
225
- /**
226
- * Updates extended fields on a draft order.
227
- * @param - ID of the entity to update.
228
- * @param - Identifier for the app whose extended fields are being updated.
229
- */
230
- (_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse>;
231
- }
232
- export declare function setTaxExemption(httpClient: HttpClient): SetTaxExemptionSignature;
233
- interface SetTaxExemptionSignature {
234
- /**
235
- * Sets whether a draft order is tax-exempt.
236
- *
237
- * A tax exempted draft order ignores taxes during calculation. Tax information will return empty.
238
- * @param - Draft order ID.
239
- */
240
- (draftOrderId: string, options: SetTaxExemptionOptions): Promise<SetTaxExemptionResponse>;
241
- }
242
- export declare function setBusinessLocation(httpClient: HttpClient): SetBusinessLocationSignature;
243
- interface SetBusinessLocationSignature {
244
- /**
245
- * Sets business location on a draft order.
246
- *
247
- * 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.
248
- * @param - Draft order ID.
249
- */
250
- (draftOrderId: string, options?: SetBusinessLocationOptions | undefined): Promise<SetBusinessLocationResponse>;
251
- }
252
- export declare const onDraftOrderCreated: EventDefinition<DraftOrderCreatedEnvelope, "wix.ecom.v1.draft_order_created">;
253
- export declare const onDraftOrderDeleted: EventDefinition<DraftOrderDeletedEnvelope, "wix.ecom.v1.draft_order_deleted">;
254
- export declare const onDraftOrderUpdated: EventDefinition<DraftOrderUpdatedEnvelope, "wix.ecom.v1.draft_order_updated">;
255
- 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,330 +0,0 @@
1
- import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';
2
- import { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';
3
- import { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';
4
- import { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';
5
- import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
6
- import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
7
- import { EventDefinition } from '@wix/sdk-types';
8
- import { addLineItemsToDraftOrder as universalAddLineItemsToDraftOrder, commitDraftOrder as universalCommitDraftOrder, createCustomAdditionalFees as universalCreateCustomAdditionalFees, createCustomDiscounts as universalCreateCustomDiscounts, createDraftOrder as universalCreateDraftOrder, createEmptyDraftOrder as universalCreateEmptyDraftOrder, createOrderFromDraft as universalCreateOrderFromDraft, deleteCustomAdditionalFees as universalDeleteCustomAdditionalFees, deleteCustomDiscounts as universalDeleteCustomDiscounts, deleteDraftOrder as universalDeleteDraftOrder, getDraftOrder as universalGetDraftOrder, getOrderDraftabilityStatus as universalGetOrderDraftabilityStatus, queryDraftOrders as universalQueryDraftOrders, setAdditionalFees as universalSetAdditionalFees, setBillingInfo as universalSetBillingInfo, setBusinessLocation as universalSetBusinessLocation, setBuyerInfo as universalSetBuyerInfo, setDiscounts as universalSetDiscounts, setRecipientInfo as universalSetRecipientInfo, setShippingInfo as universalSetShippingInfo, setTaxExemption as universalSetTaxExemption, updateExtendedFields as universalUpdateExtendedFields, updateLineItems as universalUpdateLineItems, } from './ecom-v1-draft-order-draft-orders.universal.js';
9
- export const __metadata = { PACKAGE_NAME: '@wix/ecom' };
10
- export function createDraftOrder(httpClient) {
11
- return (orderId) => universalCreateDraftOrder(orderId,
12
- // @ts-ignore
13
- { httpClient });
14
- }
15
- export function createEmptyDraftOrder(httpClient) {
16
- return () => universalCreateEmptyDraftOrder(
17
- // @ts-ignore
18
- { httpClient });
19
- }
20
- export function addLineItemsToDraftOrder(httpClient) {
21
- return (draftOrderId, options) => universalAddLineItemsToDraftOrder(draftOrderId, options,
22
- // @ts-ignore
23
- { httpClient });
24
- }
25
- export function updateLineItems(httpClient) {
26
- return (draftOrderId, lineItemChanges) => universalUpdateLineItems(draftOrderId, lineItemChanges,
27
- // @ts-ignore
28
- { httpClient });
29
- }
30
- export function setDiscounts(httpClient) {
31
- return (draftOrderId, discounts) => universalSetDiscounts(draftOrderId, discounts,
32
- // @ts-ignore
33
- { httpClient });
34
- }
35
- export function createCustomDiscounts(httpClient) {
36
- return (draftOrderId, options) => universalCreateCustomDiscounts(draftOrderId, options,
37
- // @ts-ignore
38
- { httpClient });
39
- }
40
- export function deleteCustomDiscounts(httpClient) {
41
- return (draftOrderId, discountIds) => universalDeleteCustomDiscounts(draftOrderId, discountIds,
42
- // @ts-ignore
43
- { httpClient });
44
- }
45
- export function setAdditionalFees(httpClient) {
46
- return (draftOrderId, additionalFees) => universalSetAdditionalFees(draftOrderId, additionalFees,
47
- // @ts-ignore
48
- { httpClient });
49
- }
50
- export function createCustomAdditionalFees(httpClient) {
51
- return (draftOrderId, options) => universalCreateCustomAdditionalFees(draftOrderId, options,
52
- // @ts-ignore
53
- { httpClient });
54
- }
55
- export function deleteCustomAdditionalFees(httpClient) {
56
- return (draftOrderId, customAdditionalFees) => universalDeleteCustomAdditionalFees(draftOrderId, customAdditionalFees,
57
- // @ts-ignore
58
- { httpClient });
59
- }
60
- export function setShippingInfo(httpClient) {
61
- return (draftOrderId, options) => universalSetShippingInfo(draftOrderId, options,
62
- // @ts-ignore
63
- { httpClient });
64
- }
65
- export function setBuyerInfo(httpClient) {
66
- return (draftOrderId, options) => universalSetBuyerInfo(draftOrderId, options,
67
- // @ts-ignore
68
- { httpClient });
69
- }
70
- export function setRecipientInfo(httpClient) {
71
- return (draftOrderId, options) => universalSetRecipientInfo(draftOrderId, options,
72
- // @ts-ignore
73
- { httpClient });
74
- }
75
- export function setBillingInfo(httpClient) {
76
- return (draftOrderId, options) => universalSetBillingInfo(draftOrderId, options,
77
- // @ts-ignore
78
- { httpClient });
79
- }
80
- export function getDraftOrder(httpClient) {
81
- return (draftOrderId) => universalGetDraftOrder(draftOrderId,
82
- // @ts-ignore
83
- { httpClient });
84
- }
85
- export function getOrderDraftabilityStatus(httpClient) {
86
- return (orderId) => universalGetOrderDraftabilityStatus(orderId,
87
- // @ts-ignore
88
- { httpClient });
89
- }
90
- export function commitDraftOrder(httpClient) {
91
- return (draftOrderId, options) => universalCommitDraftOrder(draftOrderId, options,
92
- // @ts-ignore
93
- { httpClient });
94
- }
95
- export function createOrderFromDraft(httpClient) {
96
- return (draftOrderId, options) => universalCreateOrderFromDraft(draftOrderId, options,
97
- // @ts-ignore
98
- { httpClient });
99
- }
100
- export function deleteDraftOrder(httpClient) {
101
- return (draftOrderId) => universalDeleteDraftOrder(draftOrderId,
102
- // @ts-ignore
103
- { httpClient });
104
- }
105
- export function queryDraftOrders(httpClient) {
106
- return () => universalQueryDraftOrders(
107
- // @ts-ignore
108
- { httpClient });
109
- }
110
- export function updateExtendedFields(httpClient) {
111
- return (_id, namespace, options) => universalUpdateExtendedFields(_id, namespace, options,
112
- // @ts-ignore
113
- { httpClient });
114
- }
115
- export function setTaxExemption(httpClient) {
116
- return (draftOrderId, options) => universalSetTaxExemption(draftOrderId, options,
117
- // @ts-ignore
118
- { httpClient });
119
- }
120
- export function setBusinessLocation(httpClient) {
121
- return (draftOrderId, options) => universalSetBusinessLocation(draftOrderId, options,
122
- // @ts-ignore
123
- { httpClient });
124
- }
125
- export const onDraftOrderCreated = EventDefinition('wix.ecom.v1.draft_order_created', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
126
- {
127
- transformFn: transformRESTTimestampToSDKTimestamp,
128
- paths: [
129
- { path: 'entity.createdDate' },
130
- { path: 'entity.updatedDate' },
131
- { path: 'entity.lineItems.lineItem.digitalFile.expirationDate' },
132
- {
133
- path: 'entity.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',
134
- },
135
- {
136
- path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',
137
- },
138
- {
139
- path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',
140
- },
141
- {
142
- path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',
143
- },
144
- {
145
- path: 'entity.shippingInfo.shippingInfo.logistics.deliverByDate',
146
- },
147
- {
148
- path: 'entity.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',
149
- },
150
- {
151
- path: 'entity.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',
152
- },
153
- { path: 'metadata.eventTime' },
154
- ],
155
- },
156
- {
157
- transformFn: transformRESTImageToSDKImage,
158
- paths: [{ path: 'entity.lineItems.lineItem.image' }],
159
- },
160
- {
161
- transformFn: transformRESTFloatToSDKFloat,
162
- paths: [
163
- { path: 'entity.lineItems.lineItem.physicalProperties.weight' },
164
- ],
165
- },
166
- {
167
- transformFn: transformRESTAddressToSDKAddress,
168
- paths: [
169
- {
170
- path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',
171
- },
172
- {
173
- path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',
174
- },
175
- {
176
- path: 'entity.shippingInfo.shippingInfo.logistics.shippingDestination.address',
177
- },
178
- {
179
- path: 'entity.shippingInfo.shippingInfo.logistics.pickupDetails.address',
180
- },
181
- { path: 'entity.billingInfo.address' },
182
- {
183
- path: 'entity.recipientInfo.changedDetails.recipientInfoBeforeChange.address',
184
- },
185
- { path: 'entity.recipientInfo.recipientInfo.address' },
186
- {
187
- path: 'entity.billingDetails.changedDetails.billingInfoBeforeChange.address',
188
- },
189
- { path: 'entity.billingDetails.billingInfo.address' },
190
- ],
191
- },
192
- ])))();
193
- export const onDraftOrderDeleted = EventDefinition('wix.ecom.v1.draft_order_deleted', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
194
- {
195
- transformFn: transformRESTTimestampToSDKTimestamp,
196
- paths: [
197
- { path: 'undefined.createdDate' },
198
- { path: 'undefined.updatedDate' },
199
- { path: 'undefined.lineItems.lineItem.digitalFile.expirationDate' },
200
- {
201
- path: 'undefined.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',
202
- },
203
- {
204
- path: 'undefined.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',
205
- },
206
- {
207
- path: 'undefined.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',
208
- },
209
- {
210
- path: 'undefined.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',
211
- },
212
- {
213
- path: 'undefined.shippingInfo.shippingInfo.logistics.deliverByDate',
214
- },
215
- {
216
- path: 'undefined.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',
217
- },
218
- {
219
- path: 'undefined.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',
220
- },
221
- { path: 'metadata.eventTime' },
222
- ],
223
- },
224
- {
225
- transformFn: transformRESTImageToSDKImage,
226
- paths: [{ path: 'undefined.lineItems.lineItem.image' }],
227
- },
228
- {
229
- transformFn: transformRESTFloatToSDKFloat,
230
- paths: [
231
- { path: 'undefined.lineItems.lineItem.physicalProperties.weight' },
232
- ],
233
- },
234
- {
235
- transformFn: transformRESTAddressToSDKAddress,
236
- paths: [
237
- {
238
- path: 'undefined.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',
239
- },
240
- {
241
- path: 'undefined.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',
242
- },
243
- {
244
- path: 'undefined.shippingInfo.shippingInfo.logistics.shippingDestination.address',
245
- },
246
- {
247
- path: 'undefined.shippingInfo.shippingInfo.logistics.pickupDetails.address',
248
- },
249
- { path: 'undefined.billingInfo.address' },
250
- {
251
- path: 'undefined.recipientInfo.changedDetails.recipientInfoBeforeChange.address',
252
- },
253
- { path: 'undefined.recipientInfo.recipientInfo.address' },
254
- {
255
- path: 'undefined.billingDetails.changedDetails.billingInfoBeforeChange.address',
256
- },
257
- { path: 'undefined.billingDetails.billingInfo.address' },
258
- ],
259
- },
260
- ])))();
261
- export const onDraftOrderUpdated = EventDefinition('wix.ecom.v1.draft_order_updated', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
262
- {
263
- transformFn: transformRESTTimestampToSDKTimestamp,
264
- paths: [
265
- { path: 'entity.createdDate' },
266
- { path: 'entity.updatedDate' },
267
- { path: 'entity.lineItems.lineItem.digitalFile.expirationDate' },
268
- {
269
- path: 'entity.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',
270
- },
271
- {
272
- path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',
273
- },
274
- {
275
- path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',
276
- },
277
- {
278
- path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',
279
- },
280
- {
281
- path: 'entity.shippingInfo.shippingInfo.logistics.deliverByDate',
282
- },
283
- {
284
- path: 'entity.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',
285
- },
286
- {
287
- path: 'entity.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',
288
- },
289
- { path: 'metadata.eventTime' },
290
- ],
291
- },
292
- {
293
- transformFn: transformRESTImageToSDKImage,
294
- paths: [{ path: 'entity.lineItems.lineItem.image' }],
295
- },
296
- {
297
- transformFn: transformRESTFloatToSDKFloat,
298
- paths: [
299
- { path: 'entity.lineItems.lineItem.physicalProperties.weight' },
300
- ],
301
- },
302
- {
303
- transformFn: transformRESTAddressToSDKAddress,
304
- paths: [
305
- {
306
- path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',
307
- },
308
- {
309
- path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',
310
- },
311
- {
312
- path: 'entity.shippingInfo.shippingInfo.logistics.shippingDestination.address',
313
- },
314
- {
315
- path: 'entity.shippingInfo.shippingInfo.logistics.pickupDetails.address',
316
- },
317
- { path: 'entity.billingInfo.address' },
318
- {
319
- path: 'entity.recipientInfo.changedDetails.recipientInfoBeforeChange.address',
320
- },
321
- { path: 'entity.recipientInfo.recipientInfo.address' },
322
- {
323
- path: 'entity.billingDetails.changedDetails.billingInfoBeforeChange.address',
324
- },
325
- { path: 'entity.billingDetails.billingInfo.address' },
326
- ],
327
- },
328
- ])))();
329
- export { ActivityType, AdjustmentType, AppliedDiscountDiscountType, AttributionSource, ChannelType, DescriptionLineType, DiscountReason, DiscountType, EditingStatus, FileType, FulfillmentStatus, ItemTypeItemType, JurisdictionType, LineItemQuantityChangeType, NonDraftableReason, OrderStatus, PaymentOptionType, PaymentStatus, PickupDetailsPickupMethod, PickupMethod, RuleType, SortOrder, SourceType, SubscriptionFrequency, TaxableAddressType, VatType, WebhookIdentityType, WeightUnit, } from './ecom-v1-draft-order-draft-orders.universal.js';
330
- //# sourceMappingURL=ecom-v1-draft-order-draft-orders.public.js.map
@@ -1 +0,0 @@
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,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAgC,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAwCL,wBAAwB,IAAI,iCAAiC,EAC7D,gBAAgB,IAAI,yBAAyB,EAC7C,0BAA0B,IAAI,mCAAmC,EACjE,qBAAqB,IAAI,8BAA8B,EACvD,gBAAgB,IAAI,yBAAyB,EAC7C,qBAAqB,IAAI,8BAA8B,EACvD,oBAAoB,IAAI,6BAA6B,EACrD,0BAA0B,IAAI,mCAAmC,EACjE,qBAAqB,IAAI,8BAA8B,EACvD,gBAAgB,IAAI,yBAAyB,EAC7C,aAAa,IAAI,sBAAsB,EACvC,0BAA0B,IAAI,mCAAmC,EACjE,gBAAgB,IAAI,yBAAyB,EAC7C,iBAAiB,IAAI,0BAA0B,EAC/C,cAAc,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