@wix/auto_sdk_ecom_checkout 1.0.16 → 1.0.18

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/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/ecom-v1-checkout-checkout.context.d.ts +34 -0
  11. package/build/cjs/src/ecom-v1-checkout-checkout.context.js +77 -0
  12. package/build/cjs/src/ecom-v1-checkout-checkout.context.js.map +1 -0
  13. package/build/cjs/src/ecom-v1-checkout-checkout.http.d.ts +122 -0
  14. package/build/cjs/src/ecom-v1-checkout-checkout.http.js +1338 -0
  15. package/build/cjs/src/ecom-v1-checkout-checkout.http.js.map +1 -0
  16. package/build/cjs/src/ecom-v1-checkout-checkout.meta.d.ts +59 -0
  17. package/build/cjs/src/ecom-v1-checkout-checkout.meta.js +351 -0
  18. package/build/cjs/src/ecom-v1-checkout-checkout.meta.js.map +1 -0
  19. package/build/cjs/src/ecom-v1-checkout-checkout.public.d.ts +186 -0
  20. package/build/cjs/src/ecom-v1-checkout-checkout.public.js +358 -0
  21. package/build/cjs/src/ecom-v1-checkout-checkout.public.js.map +1 -0
  22. package/build/{ecom-v1-checkout-checkout.universal-C4Y04uL3.d.mts → cjs/src/ecom-v1-checkout-checkout.types.d.ts} +382 -658
  23. package/build/cjs/src/ecom-v1-checkout-checkout.types.js +301 -0
  24. package/build/cjs/src/ecom-v1-checkout-checkout.types.js.map +1 -0
  25. package/build/{internal/ecom-v1-checkout-checkout.universal-ClmAJ_ss.d.mts → cjs/src/ecom-v1-checkout-checkout.universal.d.ts} +743 -449
  26. package/build/cjs/src/ecom-v1-checkout-checkout.universal.js +1559 -0
  27. package/build/cjs/src/ecom-v1-checkout-checkout.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/ecom-v1-checkout-checkout.context.d.ts +34 -0
  39. package/build/es/src/ecom-v1-checkout-checkout.context.js +42 -0
  40. package/build/es/src/ecom-v1-checkout-checkout.context.js.map +1 -0
  41. package/build/es/src/ecom-v1-checkout-checkout.http.d.ts +122 -0
  42. package/build/es/src/ecom-v1-checkout-checkout.http.js +1318 -0
  43. package/build/es/src/ecom-v1-checkout-checkout.http.js.map +1 -0
  44. package/build/es/src/ecom-v1-checkout-checkout.meta.d.ts +59 -0
  45. package/build/es/src/ecom-v1-checkout-checkout.meta.js +308 -0
  46. package/build/es/src/ecom-v1-checkout-checkout.meta.js.map +1 -0
  47. package/build/es/src/ecom-v1-checkout-checkout.public.d.ts +186 -0
  48. package/build/es/src/ecom-v1-checkout-checkout.public.js +306 -0
  49. package/build/es/src/ecom-v1-checkout-checkout.public.js.map +1 -0
  50. package/build/{ecom-v1-checkout-checkout.universal-C4Y04uL3.d.ts → es/src/ecom-v1-checkout-checkout.types.d.ts} +382 -658
  51. package/build/es/src/ecom-v1-checkout-checkout.types.js +298 -0
  52. package/build/es/src/ecom-v1-checkout-checkout.types.js.map +1 -0
  53. package/build/{internal/ecom-v1-checkout-checkout.universal-ClmAJ_ss.d.ts → es/src/ecom-v1-checkout-checkout.universal.d.ts} +743 -449
  54. package/build/es/src/ecom-v1-checkout-checkout.universal.js +1516 -0
  55. package/build/es/src/ecom-v1-checkout-checkout.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/ecom-v1-checkout-checkout.context.d.ts +42 -0
  66. package/build/internal/cjs/src/ecom-v1-checkout-checkout.context.js +77 -0
  67. package/build/internal/cjs/src/ecom-v1-checkout-checkout.context.js.map +1 -0
  68. package/build/internal/cjs/src/ecom-v1-checkout-checkout.http.d.ts +122 -0
  69. package/build/internal/cjs/src/ecom-v1-checkout-checkout.http.js +1338 -0
  70. package/build/internal/cjs/src/ecom-v1-checkout-checkout.http.js.map +1 -0
  71. package/build/internal/cjs/src/ecom-v1-checkout-checkout.meta.d.ts +59 -0
  72. package/build/internal/cjs/src/ecom-v1-checkout-checkout.meta.js +351 -0
  73. package/build/internal/cjs/src/ecom-v1-checkout-checkout.meta.js.map +1 -0
  74. package/build/internal/cjs/src/ecom-v1-checkout-checkout.public.d.ts +219 -0
  75. package/build/internal/cjs/src/ecom-v1-checkout-checkout.public.js +358 -0
  76. package/build/internal/cjs/src/ecom-v1-checkout-checkout.public.js.map +1 -0
  77. package/build/internal/cjs/src/ecom-v1-checkout-checkout.types.d.ts +3406 -0
  78. package/build/internal/cjs/src/ecom-v1-checkout-checkout.types.js +301 -0
  79. package/build/internal/cjs/src/ecom-v1-checkout-checkout.types.js.map +1 -0
  80. package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.d.ts +4468 -0
  81. package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.js +1559 -0
  82. package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/ecom-v1-checkout-checkout.context.d.ts +42 -0
  93. package/build/internal/es/src/ecom-v1-checkout-checkout.context.js +42 -0
  94. package/build/internal/es/src/ecom-v1-checkout-checkout.context.js.map +1 -0
  95. package/build/internal/es/src/ecom-v1-checkout-checkout.http.d.ts +122 -0
  96. package/build/internal/es/src/ecom-v1-checkout-checkout.http.js +1318 -0
  97. package/build/internal/es/src/ecom-v1-checkout-checkout.http.js.map +1 -0
  98. package/build/internal/es/src/ecom-v1-checkout-checkout.meta.d.ts +59 -0
  99. package/build/internal/es/src/ecom-v1-checkout-checkout.meta.js +308 -0
  100. package/build/internal/es/src/ecom-v1-checkout-checkout.meta.js.map +1 -0
  101. package/build/internal/es/src/ecom-v1-checkout-checkout.public.d.ts +219 -0
  102. package/build/internal/es/src/ecom-v1-checkout-checkout.public.js +306 -0
  103. package/build/internal/es/src/ecom-v1-checkout-checkout.public.js.map +1 -0
  104. package/build/internal/es/src/ecom-v1-checkout-checkout.types.d.ts +3406 -0
  105. package/build/internal/es/src/ecom-v1-checkout-checkout.types.js +298 -0
  106. package/build/internal/es/src/ecom-v1-checkout-checkout.types.js.map +1 -0
  107. package/build/internal/es/src/ecom-v1-checkout-checkout.universal.d.ts +4468 -0
  108. package/build/internal/es/src/ecom-v1-checkout-checkout.universal.js +1516 -0
  109. package/build/internal/es/src/ecom-v1-checkout-checkout.universal.js.map +1 -0
  110. package/package.json +11 -12
  111. package/build/index.d.mts +0 -211
  112. package/build/index.d.ts +0 -211
  113. package/build/index.js +0 -2781
  114. package/build/index.js.map +0 -1
  115. package/build/index.mjs +0 -2707
  116. package/build/index.mjs.map +0 -1
  117. package/build/internal/index.d.mts +0 -252
  118. package/build/internal/index.d.ts +0 -252
  119. package/build/internal/index.js +0 -2781
  120. package/build/internal/index.js.map +0 -1
  121. package/build/internal/index.mjs +0 -2707
  122. package/build/internal/index.mjs.map +0 -1
  123. package/build/internal/meta.d.mts +0 -2322
  124. package/build/internal/meta.d.ts +0 -2322
  125. package/build/internal/meta.js +0 -1587
  126. package/build/internal/meta.js.map +0 -1
  127. package/build/internal/meta.mjs +0 -1544
  128. package/build/internal/meta.mjs.map +0 -1
  129. package/build/meta.d.mts +0 -2322
  130. package/build/meta.d.ts +0 -2322
  131. package/build/meta.js +0 -1587
  132. package/build/meta.js.map +0 -1
  133. package/build/meta.mjs +0 -1544
  134. package/build/meta.mjs.map +0 -1
@@ -0,0 +1,219 @@
1
+ import { EventDefinition, HttpClient } from '@wix/sdk-types';
2
+ import { AddToCheckoutOptions, AddToCheckoutResponse, Checkout, CheckoutCompletedEnvelope, CheckoutCreatedEnvelope, CheckoutUpdatedEnvelope, CreateCheckoutOptions, CreateOrderAndChargeOptions, CreateOrderAndChargeResponse, CreateOrderOptions, CreateOrderResponse, GetCheckoutByCartIdResponse, GetCheckoutPaymentSettingsResponse, GetCheckoutURLResponse, GetWixCheckoutURLResponse, LineItemQuantityUpdate, RawHttpResponse, RemoveCouponResponse, RemoveGiftCardResponse, RemoveLineItemsResponse, RemoveOverrideCheckoutUrlResponse, UpdateCheckout, UpdateCheckoutOptions, UpdateLineItemsQuantityResponse } from './ecom-v1-checkout-checkout.universal.js';
3
+ export declare const __metadata: {
4
+ PACKAGE_NAME: string;
5
+ };
6
+ export declare function createCheckout(httpClient: HttpClient): CreateCheckoutSignature;
7
+ interface CreateCheckoutSignature {
8
+ /**
9
+ * Creates a checkout.
10
+ *
11
+ *
12
+ * The `createCheckout()` function returns a Promise that resolves to the new checkout when it's created.
13
+ *
14
+ * > **Notes:**
15
+ * > + Checkout must include at least 1 item in the `options.lineItems` array.
16
+ * > + `options.channelType` is required.
17
+ * > + If `_id` for `options.lineItems` is added, make sure that each `_id` is unique.
18
+ * > + If `options.checkoutInfo.customFields` are added, then `options.checkoutInfo.customFields.value` is required.
19
+ * @param - Checkout creation options.
20
+ * @returns Fulfilled - the newly created checkout.
21
+ */
22
+ (options?: CreateCheckoutOptions | undefined): Promise<Checkout>;
23
+ }
24
+ export declare function getCheckout(httpClient: HttpClient): GetCheckoutSignature;
25
+ interface GetCheckoutSignature {
26
+ /**
27
+ * Retrieves a checkout.
28
+ *
29
+ *
30
+ * The `getCheckout()` function returns a Promise that resolves when the specified checkout is retrieved.
31
+ * @param - Checkout ID.
32
+ * @returns Fulfilled - the requested checkout.
33
+ */
34
+ (_id: string): Promise<Checkout>;
35
+ }
36
+ export declare function getCheckoutByCartId(httpClient: HttpClient): GetCheckoutByCartIdSignature;
37
+ interface GetCheckoutByCartIdSignature {
38
+ /**
39
+ * Retrieves the checkout associated with a specified cart.
40
+ * @param - Cart ID.
41
+ */
42
+ (_id: string): Promise<GetCheckoutByCartIdResponse>;
43
+ }
44
+ /** @internal */
45
+ export declare function getWixCheckoutUrl(httpClient: HttpClient): GetWixCheckoutUrlSignature;
46
+ interface GetWixCheckoutUrlSignature {
47
+ /**
48
+ * Deprecated and will be removed soon, use GetCheckoutURL
49
+ * @param - Checkout ID.
50
+ */
51
+ (_id: string): Promise<GetWixCheckoutURLResponse>;
52
+ }
53
+ export declare function getCheckoutUrl(httpClient: HttpClient): GetCheckoutUrlSignature;
54
+ interface GetCheckoutUrlSignature {
55
+ /**
56
+ * Retrieves the checkout page URL of a specified checkout.
57
+ *
58
+ * By default, a `checkoutUrl` generates for a checkout and directs to a standard Wix checkout page.
59
+ * However, if `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.
60
+ * @param - Checkout ID.
61
+ */
62
+ (_id: string): Promise<GetCheckoutURLResponse>;
63
+ }
64
+ export declare function updateCheckout(httpClient: HttpClient): UpdateCheckoutSignature;
65
+ interface UpdateCheckoutSignature {
66
+ /**
67
+ * Updates a checkout.
68
+ *
69
+ *
70
+ * The `updateCheckout()` function returns a Promise that resolves to the updated checkout when the specified properties are updated.
71
+ *
72
+ * >**Notes:**
73
+ * > + If nothing is passed in the request, the call will fail.
74
+ * > + The `checkout.buyerInfo.email` may not be removed once it is set.
75
+ * @param - Checkout ID.
76
+ * @param - Checkout update options.
77
+ * @returns Updated checkout.
78
+ */
79
+ (_id: string, checkout: UpdateCheckout, options?: UpdateCheckoutOptions | undefined): Promise<Checkout>;
80
+ }
81
+ export declare function removeCoupon(httpClient: HttpClient): RemoveCouponSignature;
82
+ interface RemoveCouponSignature {
83
+ /**
84
+ * Removes the coupon from a specified checkout.
85
+ *
86
+ *
87
+ * The `removeCoupon()` function returns a Promise that resolves to the updated checkout when the coupon is removed from the specified checkout.
88
+ *
89
+ * >**Note:** A checkout can only hold 1 coupon.
90
+ * @param - ID of the checkout to remove the coupon from.
91
+ */
92
+ (_id: string): Promise<RemoveCouponResponse>;
93
+ }
94
+ export declare function removeGiftCard(httpClient: HttpClient): RemoveGiftCardSignature;
95
+ interface RemoveGiftCardSignature {
96
+ /**
97
+ * Removes the gift card from a specified checkout.
98
+ *
99
+ *
100
+ * The `removeGiftCard()` function returns a Promise that resolves to the updated checkout when the gift card is removed from the specified checkout.
101
+ *
102
+ * >**Note:** A checkout can only hold 1 gift card.
103
+ * @param - ID of the checkout to remove the gift card from.
104
+ */
105
+ (_id: string): Promise<RemoveGiftCardResponse>;
106
+ }
107
+ export declare function removeOverrideCheckoutUrl(httpClient: HttpClient): RemoveOverrideCheckoutUrlSignature;
108
+ interface RemoveOverrideCheckoutUrlSignature {
109
+ /**
110
+ * Removes the `overrideCheckoutUrl` from a specified checkout.
111
+ *
112
+ * When `overrideCheckoutUrl` is removed, the `checkoutUrl` will be set to the default, standard
113
+ * Wix checkout page URL.
114
+ * @param - ID of the checkout to remove the override checkout url from.
115
+ */
116
+ (_id: string): Promise<RemoveOverrideCheckoutUrlResponse>;
117
+ }
118
+ export declare function addToCheckout(httpClient: HttpClient): AddToCheckoutSignature;
119
+ interface AddToCheckoutSignature {
120
+ /**
121
+ * Adds catalog line items and/or custom line items to a checkout.
122
+ *
123
+ *
124
+ * The `addToCheckout()` function returns a Promise that resolves to the updated checkout when the specified items have been added.
125
+ * > **Note:** When adding catalog items, `options.lineItems.catalogReference` is required.
126
+ * @param - Checkout ID.
127
+ * @param - Items to be added to checkout.
128
+ */
129
+ (_id: string, options?: AddToCheckoutOptions | undefined): Promise<AddToCheckoutResponse>;
130
+ }
131
+ export declare function removeLineItems(httpClient: HttpClient): RemoveLineItemsSignature;
132
+ interface RemoveLineItemsSignature {
133
+ /**
134
+ * Removes line items from the specified checkout.
135
+ *
136
+ *
137
+ * The `removeLineItems()` function returns a Promise that resolves to the updated checkout when the line items are removed from the specified checkout.
138
+ * @param - ID of the checkout to remove line items from.
139
+ * @param - IDs of the line items to be removed.
140
+ * To find the IDs of the checkout line items you'd like to remove, pass the `checkout._id` to [getCheckout()](https://www.wix.com/velo/reference/wix-ecom-backend/checkout/getcheckout) and look for the IDs under `lineItems` and/or `customLineItems`.
141
+ */
142
+ (_id: string, lineItemIds: string[]): Promise<RemoveLineItemsResponse>;
143
+ }
144
+ export declare function createOrder(httpClient: HttpClient): CreateOrderSignature;
145
+ interface CreateOrderSignature {
146
+ /**
147
+ * Creates an order from a specified checkout.
148
+ *
149
+ * The `createOrder()` function returns a Promise that resolves to the new order's ID and `paymentGatewayOrderID` when the order is created.
150
+ * Pass the `paymentGatewayOrderId` as the `paymentId` param to the [`startPayment()`](https://www.wix.com/velo/reference/wix-pay-frontend/startpayment) function to allow a customer to pay for their order.
151
+ *
152
+ * > **Note:** The following requirements must be met for an order to be created from a checkout.
153
+ * > + A checkout cannot have calculation errors. Pass the `checkout._id` to [Get Checkout](https://www.wix.com/velo/reference/wix-ecom-backend/checkout/getcheckout) and take a look at the `calculationErrors` field.
154
+ * > + A checkout must have at least 1 line item.
155
+ * > + All of the line Items have an `availability.status` of `"AVAILABLE"` or `"PARTIALLY_AVAILABLE"`.
156
+ * > + If there is a payment to be made, meaning that `priceSummary.total` is greater than 0, the `billingInfo.address` field must be provided.
157
+ * > + When a checkout has line items to be shipped, the `shippingInfo.shippingDestination.address` and `shippingInfo.selectedCarrierServiceOption` fields must be provided.
158
+ * > + When a checkout has line items for pickup, the `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails` field must be provided.
159
+ * @param - Checkout ID.
160
+ * @param - Further order creation options.
161
+ */
162
+ (_id: string, options?: CreateOrderOptions | undefined): Promise<CreateOrderResponse>;
163
+ }
164
+ /** @internal */
165
+ export declare function createOrderAndCharge(httpClient: HttpClient): CreateOrderAndChargeSignature;
166
+ interface CreateOrderAndChargeSignature {
167
+ /**
168
+ * Deprecated (use createOrder instead)
169
+ * @param - Checkout ID.
170
+ */
171
+ (_id: string, options?: CreateOrderAndChargeOptions | undefined): Promise<CreateOrderAndChargeResponse>;
172
+ }
173
+ /** @internal */
174
+ export declare function markCheckoutAsCompletedAndRedirectToUrl(httpClient: HttpClient): MarkCheckoutAsCompletedAndRedirectToUrlSignature;
175
+ interface MarkCheckoutAsCompletedAndRedirectToUrlSignature {
176
+ /**
177
+ * Marks a checkout as completed and redirects to a specified URL.
178
+ * @param - Server-signed JWT token with required information to complete checkout
179
+ */
180
+ (token: string): Promise<RawHttpResponse>;
181
+ }
182
+ export declare function markCheckoutAsCompleted(httpClient: HttpClient): MarkCheckoutAsCompletedSignature;
183
+ interface MarkCheckoutAsCompletedSignature {
184
+ /**
185
+ * Marks a checkout as completed - `checkout.complete` boolean is set to `true`.
186
+ *
187
+ *
188
+ * The `markCheckoutAsCompleted()` function returns a Promise that resolves when the specified checkout is marked as completed.
189
+ * @param - Checkout ID.
190
+ */
191
+ (_id: string): Promise<void>;
192
+ }
193
+ export declare function updateLineItemsQuantity(httpClient: HttpClient): UpdateLineItemsQuantitySignature;
194
+ interface UpdateLineItemsQuantitySignature {
195
+ /**
196
+ * Updates the quantity of one or more line items in a checkout.
197
+ *
198
+ * This endpoint is only for updating the quantity of line items. To entirely remove a line item from
199
+ * the checkout, use [`removeLineItems()`](#removelineitems).
200
+ * To add a new line item to the checkout, use [`addToCheckout()`](#addtocheckout).
201
+ *
202
+ * This endpoint checks the amount of stock remaining for this line item. If the specified `quantity`
203
+ * is greater than the remaining stock, then the `quantity` returned in the response is the total amount
204
+ * of remaining stock.
205
+ * @param - Checkout ID.
206
+ * @param - Line item info to update.
207
+ */
208
+ (_id: string, lineItems: LineItemQuantityUpdate[]): Promise<UpdateLineItemsQuantityResponse>;
209
+ }
210
+ /** @internal */
211
+ export declare function getCheckoutPaymentSettings(httpClient: HttpClient): GetCheckoutPaymentSettingsSignature;
212
+ interface GetCheckoutPaymentSettingsSignature {
213
+ /** @param - Checkout ID. */
214
+ (_id: string): Promise<GetCheckoutPaymentSettingsResponse>;
215
+ }
216
+ export declare const onCheckoutCompleted: EventDefinition<CheckoutCompletedEnvelope, "wix.ecom.v1.checkout_completed">;
217
+ export declare const onCheckoutCreated: EventDefinition<CheckoutCreatedEnvelope, "wix.ecom.v1.checkout_created">;
218
+ export declare const onCheckoutUpdated: EventDefinition<CheckoutUpdatedEnvelope, "wix.ecom.v1.checkout_updated">;
219
+ export { ActionEvent, AddToCheckoutOptions, AddToCheckoutRequest, AddToCheckoutResponse, AdditionalFee, AdditionalFeeSource, Address, AddressAddressLine1OptionsOneOf, AddressLocation, AddressWithContact, AggregatedTaxBreakdown, ApiAddress, ApplicableLineItems, ApplicationError, AppliedCoupon, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BaseEventMetadata, BillingInfo, BuyerInfo, BuyerInfoIdOneOf, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CatalogOverrideFields, CatalogReference, ChannelInfo, ChannelInfoChannelType, ChannelType, Charge, ChargeDetails, ChargeType, Checkout, CheckoutCompletedEnvelope, CheckoutCreatedEnvelope, CheckoutMarkedAsCompleted, CheckoutUpdatedEnvelope, Color, CommonVatId, CommonVatType, ConversionInfo, Coupon, CreateCheckoutOptions, CreateCheckoutRequest, CreateCheckoutResponse, CreateOrderAndChargeOptions, CreateOrderAndChargeRequest, CreateOrderAndChargeResponse, CreateOrderAndChargeResponseIdOneOf, CreateOrderOptions, CreateOrderRequest, CreateOrderResponse, CreateOrderResponseIdOneOf, CreatedBy, CreatedByIdOneOf, CustomContentReference, CustomField, CustomLineItem, CustomSettings, CustomTextFieldSelection, DeleteCheckoutRequest, DeleteCheckoutResponse, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Discount, DiscountDiscountType, DiscountRule, DiscountRuleName, DiscountType, DomainEvent, DomainEventBodyOneOf, DoublePaymentErrorData, DoublePaymentErrorDataIdOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReference, FallbackReason, FieldViolation, FileType, FocalPoint, FreeTrialPeriod, FullAddressContactDetails, FullName, GetCheckoutByCartIdRequest, GetCheckoutByCartIdResponse, GetCheckoutPaymentSettingsRequest, GetCheckoutPaymentSettingsResponse, GetCheckoutPaymentSettingsResponsePaymentOption, GetCheckoutRequest, GetCheckoutResponse, GetCheckoutURLRequest, GetCheckoutURLResponse, GetCheckoutWithAllExtendedFieldsRequest, GetCheckoutWithAllExtendedFieldsResponse, GetWixCheckoutURLRequest, GetWixCheckoutURLResponse, GiftCard, Group, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, IdentityType, InvalidMembership, ItemAvailabilityInfo, ItemAvailabilityStatus, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemType, ItemTypeItemTypeDataOneOf, JurisdictionType, LineItem, LineItemDiscount, LineItemQuantityUpdate, LineItemType, ManualCalculationReason, MarkCheckoutAsCompletedAndRedirectToUrlRequest, MarkCheckoutAsCompletedRequest, MarkCheckoutAsCompletedResponse, MediaItem, MediaItemType, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MerchantDiscountInput, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInOther, OptionSelection, Other, OtherCharge, PaymentErrorResponseData, PaymentOption, PaymentOptionType, PhysicalProperties, PickupAddress, PickupDetails, PickupMethod, PlainTextValue, Policy, PriceDescription, PriceSummary, ProductDetails, ProductName, RateType, RawHttpResponse, RedeemErrorData, Region, RemoveCouponRequest, RemoveCouponResponse, RemoveGiftCardRequest, RemoveGiftCardResponse, RemoveLineItemsRequest, RemoveLineItemsResponse, RemoveOverrideCheckoutUrlRequest, RemoveOverrideCheckoutUrlResponse, RestoreInfo, RuleType, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, ServiceProperties, Severity, ShipmentDetails, ShippingCalculationErrorData, ShippingCalculationErrorDataShippingCalculationErrorOneOf, ShippingInfo, ShippingOption, ShippingPrice, ShippingRegion, StoreSettings, Street, StreetAddress, Subscription, SubscriptionCharges, SubscriptionCreated, SubscriptionFrequency, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SystemError, Target, TargetLineItem, TargetTargetTypeOneOf, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, Title, Totals, TranslatableString, UpdateCheckout, UpdateCheckoutOptions, UpdateCheckoutRequest, UpdateCheckoutResponse, UpdateLineItemsQuantityRequest, UpdateLineItemsQuantityResponse, UpdatedCheckoutMessage, V1BuyerInfo, V1CustomField, V1LineItem, V1PickupDetails, V1ShippingInfo, V1ShippingInfoDetailsOneOf, V1SubscriptionOptionInfo, V1SubscriptionSettings, ValidationError, VatId, VatType, Violation, ViolationsList, WebhookIdentityType, WeightUnit, } from './ecom-v1-checkout-checkout.universal.js';
@@ -0,0 +1,306 @@
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 { transformRESTPageURLV2ToSDKPageURLV2 } from '@wix/sdk-runtime/transformations/page-url-v2';
6
+ import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
7
+ import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
8
+ import { EventDefinition } from '@wix/sdk-types';
9
+ import { addToCheckout as universalAddToCheckout, createCheckout as universalCreateCheckout, createOrder as universalCreateOrder, createOrderAndCharge as universalCreateOrderAndCharge, getCheckout as universalGetCheckout, getCheckoutByCartId as universalGetCheckoutByCartId, getCheckoutPaymentSettings as universalGetCheckoutPaymentSettings, getCheckoutUrl as universalGetCheckoutUrl, getWixCheckoutUrl as universalGetWixCheckoutUrl, markCheckoutAsCompleted as universalMarkCheckoutAsCompleted, markCheckoutAsCompletedAndRedirectToUrl as universalMarkCheckoutAsCompletedAndRedirectToUrl, removeCoupon as universalRemoveCoupon, removeGiftCard as universalRemoveGiftCard, removeLineItems as universalRemoveLineItems, removeOverrideCheckoutUrl as universalRemoveOverrideCheckoutUrl, updateCheckout as universalUpdateCheckout, updateLineItemsQuantity as universalUpdateLineItemsQuantity, } from './ecom-v1-checkout-checkout.universal.js';
10
+ export const __metadata = { PACKAGE_NAME: '@wix/ecom' };
11
+ export function createCheckout(httpClient) {
12
+ return (options) => universalCreateCheckout(options,
13
+ // @ts-ignore
14
+ { httpClient });
15
+ }
16
+ export function getCheckout(httpClient) {
17
+ return (_id) => universalGetCheckout(_id,
18
+ // @ts-ignore
19
+ { httpClient });
20
+ }
21
+ export function getCheckoutByCartId(httpClient) {
22
+ return (_id) => universalGetCheckoutByCartId(_id,
23
+ // @ts-ignore
24
+ { httpClient });
25
+ }
26
+ /** @internal */
27
+ export function getWixCheckoutUrl(httpClient) {
28
+ return (_id) => universalGetWixCheckoutUrl(_id,
29
+ // @ts-ignore
30
+ { httpClient });
31
+ }
32
+ export function getCheckoutUrl(httpClient) {
33
+ return (_id) => universalGetCheckoutUrl(_id,
34
+ // @ts-ignore
35
+ { httpClient });
36
+ }
37
+ export function updateCheckout(httpClient) {
38
+ return (_id, checkout, options) => universalUpdateCheckout(_id, checkout, options,
39
+ // @ts-ignore
40
+ { httpClient });
41
+ }
42
+ export function removeCoupon(httpClient) {
43
+ return (_id) => universalRemoveCoupon(_id,
44
+ // @ts-ignore
45
+ { httpClient });
46
+ }
47
+ export function removeGiftCard(httpClient) {
48
+ return (_id) => universalRemoveGiftCard(_id,
49
+ // @ts-ignore
50
+ { httpClient });
51
+ }
52
+ export function removeOverrideCheckoutUrl(httpClient) {
53
+ return (_id) => universalRemoveOverrideCheckoutUrl(_id,
54
+ // @ts-ignore
55
+ { httpClient });
56
+ }
57
+ export function addToCheckout(httpClient) {
58
+ return (_id, options) => universalAddToCheckout(_id, options,
59
+ // @ts-ignore
60
+ { httpClient });
61
+ }
62
+ export function removeLineItems(httpClient) {
63
+ return (_id, lineItemIds) => universalRemoveLineItems(_id, lineItemIds,
64
+ // @ts-ignore
65
+ { httpClient });
66
+ }
67
+ export function createOrder(httpClient) {
68
+ return (_id, options) => universalCreateOrder(_id, options,
69
+ // @ts-ignore
70
+ { httpClient });
71
+ }
72
+ /** @internal */
73
+ export function createOrderAndCharge(httpClient) {
74
+ return (_id, options) => universalCreateOrderAndCharge(_id, options,
75
+ // @ts-ignore
76
+ { httpClient });
77
+ }
78
+ /** @internal */
79
+ export function markCheckoutAsCompletedAndRedirectToUrl(httpClient) {
80
+ return (token) => universalMarkCheckoutAsCompletedAndRedirectToUrl(token,
81
+ // @ts-ignore
82
+ { httpClient });
83
+ }
84
+ export function markCheckoutAsCompleted(httpClient) {
85
+ return (_id) => universalMarkCheckoutAsCompleted(_id,
86
+ // @ts-ignore
87
+ { httpClient });
88
+ }
89
+ export function updateLineItemsQuantity(httpClient) {
90
+ return (_id, lineItems) => universalUpdateLineItemsQuantity(_id, lineItems,
91
+ // @ts-ignore
92
+ { httpClient });
93
+ }
94
+ /** @internal */
95
+ export function getCheckoutPaymentSettings(httpClient) {
96
+ return (_id) => universalGetCheckoutPaymentSettings(_id,
97
+ // @ts-ignore
98
+ { httpClient });
99
+ }
100
+ export const onCheckoutCompleted = EventDefinition('wix.ecom.v1.checkout_completed', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
101
+ {
102
+ transformFn: transformRESTTimestampToSDKTimestamp,
103
+ paths: [
104
+ { path: 'data.checkout.createdDate' },
105
+ { path: 'data.checkout.updatedDate' },
106
+ {
107
+ path: 'data.checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
108
+ },
109
+ { path: 'data.checkout.lineItems.serviceProperties.scheduledDate' },
110
+ {
111
+ path: 'data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',
112
+ },
113
+ {
114
+ path: 'data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',
115
+ },
116
+ {
117
+ path: 'data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',
118
+ },
119
+ {
120
+ path: 'data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',
121
+ },
122
+ {
123
+ path: 'data.checkout.membershipOptions.eligibleMemberships.expirationDate',
124
+ },
125
+ {
126
+ path: 'data.checkout.membershipOptions.invalidMemberships.membership.expirationDate',
127
+ },
128
+ {
129
+ path: 'data.checkout.subscriptionCharges.charges.cycleBillingDate',
130
+ },
131
+ { path: 'metadata.eventTime' },
132
+ ],
133
+ },
134
+ {
135
+ transformFn: transformRESTPageURLV2ToSDKPageURLV2,
136
+ paths: [{ path: 'data.checkout.lineItems.url' }],
137
+ },
138
+ {
139
+ transformFn: transformRESTImageToSDKImage,
140
+ paths: [
141
+ { path: 'data.checkout.lineItems.media' },
142
+ { path: 'data.checkout.lineItems.catalogOverrideFields.image' },
143
+ ],
144
+ },
145
+ {
146
+ transformFn: transformRESTFloatToSDKFloat,
147
+ paths: [
148
+ { path: 'data.checkout.lineItems.physicalProperties.weight' },
149
+ {
150
+ path: 'data.checkout.lineItems.catalogOverrideFields.physicalProperties.weight',
151
+ },
152
+ {
153
+ path: 'data.checkout.appliedDiscounts.merchantDiscount.percentage',
154
+ },
155
+ ],
156
+ },
157
+ {
158
+ transformFn: transformRESTAddressToSDKAddress,
159
+ paths: [
160
+ { path: 'data.checkout.billingInfo.address' },
161
+ { path: 'data.checkout.shippingInfo.shippingDestination.address' },
162
+ {
163
+ path: 'data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',
164
+ },
165
+ {
166
+ path: 'data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',
167
+ },
168
+ ],
169
+ },
170
+ ])))();
171
+ export const onCheckoutCreated = EventDefinition('wix.ecom.v1.checkout_created', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
172
+ {
173
+ transformFn: transformRESTTimestampToSDKTimestamp,
174
+ paths: [
175
+ { path: 'entity.createdDate' },
176
+ { path: 'entity.updatedDate' },
177
+ {
178
+ path: 'entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
179
+ },
180
+ { path: 'entity.lineItems.serviceProperties.scheduledDate' },
181
+ {
182
+ path: 'entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',
183
+ },
184
+ {
185
+ path: 'entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',
186
+ },
187
+ {
188
+ path: 'entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',
189
+ },
190
+ {
191
+ path: 'entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',
192
+ },
193
+ {
194
+ path: 'entity.membershipOptions.eligibleMemberships.expirationDate',
195
+ },
196
+ {
197
+ path: 'entity.membershipOptions.invalidMemberships.membership.expirationDate',
198
+ },
199
+ { path: 'entity.subscriptionCharges.charges.cycleBillingDate' },
200
+ { path: 'metadata.eventTime' },
201
+ ],
202
+ },
203
+ {
204
+ transformFn: transformRESTPageURLV2ToSDKPageURLV2,
205
+ paths: [{ path: 'entity.lineItems.url' }],
206
+ },
207
+ {
208
+ transformFn: transformRESTImageToSDKImage,
209
+ paths: [
210
+ { path: 'entity.lineItems.media' },
211
+ { path: 'entity.lineItems.catalogOverrideFields.image' },
212
+ ],
213
+ },
214
+ {
215
+ transformFn: transformRESTFloatToSDKFloat,
216
+ paths: [
217
+ { path: 'entity.lineItems.physicalProperties.weight' },
218
+ {
219
+ path: 'entity.lineItems.catalogOverrideFields.physicalProperties.weight',
220
+ },
221
+ { path: 'entity.appliedDiscounts.merchantDiscount.percentage' },
222
+ ],
223
+ },
224
+ {
225
+ transformFn: transformRESTAddressToSDKAddress,
226
+ paths: [
227
+ { path: 'entity.billingInfo.address' },
228
+ { path: 'entity.shippingInfo.shippingDestination.address' },
229
+ {
230
+ path: 'entity.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',
231
+ },
232
+ {
233
+ path: 'entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',
234
+ },
235
+ ],
236
+ },
237
+ ])))();
238
+ export const onCheckoutUpdated = EventDefinition('wix.ecom.v1.checkout_updated', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
239
+ {
240
+ transformFn: transformRESTTimestampToSDKTimestamp,
241
+ paths: [
242
+ { path: 'entity.createdDate' },
243
+ { path: 'entity.updatedDate' },
244
+ {
245
+ path: 'entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
246
+ },
247
+ { path: 'entity.lineItems.serviceProperties.scheduledDate' },
248
+ {
249
+ path: 'entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',
250
+ },
251
+ {
252
+ path: 'entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',
253
+ },
254
+ {
255
+ path: 'entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',
256
+ },
257
+ {
258
+ path: 'entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',
259
+ },
260
+ {
261
+ path: 'entity.membershipOptions.eligibleMemberships.expirationDate',
262
+ },
263
+ {
264
+ path: 'entity.membershipOptions.invalidMemberships.membership.expirationDate',
265
+ },
266
+ { path: 'entity.subscriptionCharges.charges.cycleBillingDate' },
267
+ { path: 'metadata.eventTime' },
268
+ ],
269
+ },
270
+ {
271
+ transformFn: transformRESTPageURLV2ToSDKPageURLV2,
272
+ paths: [{ path: 'entity.lineItems.url' }],
273
+ },
274
+ {
275
+ transformFn: transformRESTImageToSDKImage,
276
+ paths: [
277
+ { path: 'entity.lineItems.media' },
278
+ { path: 'entity.lineItems.catalogOverrideFields.image' },
279
+ ],
280
+ },
281
+ {
282
+ transformFn: transformRESTFloatToSDKFloat,
283
+ paths: [
284
+ { path: 'entity.lineItems.physicalProperties.weight' },
285
+ {
286
+ path: 'entity.lineItems.catalogOverrideFields.physicalProperties.weight',
287
+ },
288
+ { path: 'entity.appliedDiscounts.merchantDiscount.percentage' },
289
+ ],
290
+ },
291
+ {
292
+ transformFn: transformRESTAddressToSDKAddress,
293
+ paths: [
294
+ { path: 'entity.billingInfo.address' },
295
+ { path: 'entity.shippingInfo.shippingDestination.address' },
296
+ {
297
+ path: 'entity.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',
298
+ },
299
+ {
300
+ path: 'entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',
301
+ },
302
+ ],
303
+ },
304
+ ])))();
305
+ export { AdditionalFeeSource, ChannelInfoChannelType, ChannelType, ChargeType, CommonVatType, DescriptionLineType, DiscountDiscountType, DiscountType, FallbackReason, FileType, GetCheckoutPaymentSettingsResponsePaymentOption, IdentityType, ItemAvailabilityStatus, ItemTypeItemType, JurisdictionType, LineItemType, ManualCalculationReason, MediaItemType, NameInLineItem, NameInOther, PaymentOptionType, PickupMethod, RateType, RuleType, Severity, SubscriptionFrequency, SuggestedFix, TaxableAddressType, VatType, WebhookIdentityType, WeightUnit, } from './ecom-v1-checkout-checkout.universal.js';
306
+ //# sourceMappingURL=ecom-v1-checkout-checkout.public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ecom-v1-checkout-checkout.public.js","sourceRoot":"","sources":["../../../../src/ecom-v1-checkout-checkout.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,8CAA8C,CAAC;AACpG,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,EAyBL,aAAa,IAAI,sBAAsB,EACvC,cAAc,IAAI,uBAAuB,EACzC,WAAW,IAAI,oBAAoB,EACnC,oBAAoB,IAAI,6BAA6B,EACrD,WAAW,IAAI,oBAAoB,EACnC,mBAAmB,IAAI,4BAA4B,EACnD,0BAA0B,IAAI,mCAAmC,EACjE,cAAc,IAAI,uBAAuB,EACzC,iBAAiB,IAAI,0BAA0B,EAC/C,uBAAuB,IAAI,gCAAgC,EAC3D,uCAAuC,IAAI,gD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