@wix/auto_sdk_ecom_checkout-templates 1.0.36 → 1.0.37

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/src/ecom-v1-checkout-template-checkout-templates.types.d.ts → ecom-v1-checkout-template-checkout-templates.universal-DZSQyXAS.d.mts} +400 -276
  2. package/build/{internal/cjs/src/ecom-v1-checkout-template-checkout-templates.types.d.ts → ecom-v1-checkout-template-checkout-templates.universal-DZSQyXAS.d.ts} +400 -276
  3. package/build/index.d.mts +136 -0
  4. package/build/index.d.ts +136 -0
  5. package/build/index.js +1209 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +1149 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{cjs/src/ecom-v1-checkout-template-checkout-templates.universal.d.ts → ecom-v1-checkout-template-checkout-templates.universal-DQx0Jt-F.d.mts} +209 -450
  10. package/build/internal/{es/src/ecom-v1-checkout-template-checkout-templates.universal.d.ts → ecom-v1-checkout-template-checkout-templates.universal-DQx0Jt-F.d.ts} +209 -450
  11. package/build/internal/index.d.mts +136 -0
  12. package/build/internal/index.d.ts +136 -0
  13. package/build/internal/index.js +1209 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +1149 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +810 -0
  18. package/build/internal/meta.d.ts +810 -0
  19. package/build/internal/meta.js +491 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +458 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +810 -0
  24. package/build/meta.d.ts +810 -0
  25. package/build/meta.js +491 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +458 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  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-checkout-template-checkout-templates.context.d.ts +0 -32
  40. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.context.js +0 -61
  41. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.context.js.map +0 -1
  42. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.http.d.ts +0 -68
  43. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.http.js +0 -390
  44. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.http.js.map +0 -1
  45. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.meta.d.ts +0 -29
  46. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.meta.js +0 -161
  47. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.meta.js.map +0 -1
  48. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.public.d.ts +0 -112
  49. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.public.js +0 -271
  50. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.public.js.map +0 -1
  51. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.types.js +0 -261
  52. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.types.js.map +0 -1
  53. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.universal.d.ts +0 -3161
  54. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.universal.js +0 -730
  55. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.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-checkout-template-checkout-templates.context.d.ts +0 -32
  67. package/build/es/src/ecom-v1-checkout-template-checkout-templates.context.js +0 -32
  68. package/build/es/src/ecom-v1-checkout-template-checkout-templates.context.js.map +0 -1
  69. package/build/es/src/ecom-v1-checkout-template-checkout-templates.http.d.ts +0 -68
  70. package/build/es/src/ecom-v1-checkout-template-checkout-templates.http.js +0 -380
  71. package/build/es/src/ecom-v1-checkout-template-checkout-templates.http.js.map +0 -1
  72. package/build/es/src/ecom-v1-checkout-template-checkout-templates.meta.d.ts +0 -29
  73. package/build/es/src/ecom-v1-checkout-template-checkout-templates.meta.js +0 -128
  74. package/build/es/src/ecom-v1-checkout-template-checkout-templates.meta.js.map +0 -1
  75. package/build/es/src/ecom-v1-checkout-template-checkout-templates.public.d.ts +0 -112
  76. package/build/es/src/ecom-v1-checkout-template-checkout-templates.public.js +0 -235
  77. package/build/es/src/ecom-v1-checkout-template-checkout-templates.public.js.map +0 -1
  78. package/build/es/src/ecom-v1-checkout-template-checkout-templates.types.d.ts +0 -2794
  79. package/build/es/src/ecom-v1-checkout-template-checkout-templates.types.js +0 -258
  80. package/build/es/src/ecom-v1-checkout-template-checkout-templates.types.js.map +0 -1
  81. package/build/es/src/ecom-v1-checkout-template-checkout-templates.universal.d.ts +0 -3161
  82. package/build/es/src/ecom-v1-checkout-template-checkout-templates.universal.js +0 -697
  83. package/build/es/src/ecom-v1-checkout-template-checkout-templates.universal.js.map +0 -1
  84. package/build/internal/cjs/index.d.ts +0 -1
  85. package/build/internal/cjs/index.js +0 -18
  86. package/build/internal/cjs/index.js.map +0 -1
  87. package/build/internal/cjs/index.typings.d.ts +0 -1
  88. package/build/internal/cjs/index.typings.js +0 -18
  89. package/build/internal/cjs/index.typings.js.map +0 -1
  90. package/build/internal/cjs/meta.d.ts +0 -1
  91. package/build/internal/cjs/meta.js +0 -18
  92. package/build/internal/cjs/meta.js.map +0 -1
  93. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.context.d.ts +0 -32
  94. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.context.js +0 -61
  95. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.context.js.map +0 -1
  96. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.http.d.ts +0 -68
  97. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.http.js +0 -390
  98. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.http.js.map +0 -1
  99. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.meta.d.ts +0 -29
  100. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.meta.js +0 -161
  101. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.meta.js.map +0 -1
  102. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.public.d.ts +0 -112
  103. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.public.js +0 -271
  104. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.public.js.map +0 -1
  105. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.types.js +0 -261
  106. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.types.js.map +0 -1
  107. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.universal.js +0 -730
  108. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.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-checkout-template-checkout-templates.context.d.ts +0 -32
  119. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.context.js +0 -32
  120. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.context.js.map +0 -1
  121. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.http.d.ts +0 -68
  122. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.http.js +0 -380
  123. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.http.js.map +0 -1
  124. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.meta.d.ts +0 -29
  125. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.meta.js +0 -128
  126. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.meta.js.map +0 -1
  127. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.public.d.ts +0 -112
  128. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.public.js +0 -235
  129. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.public.js.map +0 -1
  130. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.types.d.ts +0 -2794
  131. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.types.js +0 -258
  132. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.types.js.map +0 -1
  133. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.universal.js +0 -697
  134. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.universal.js.map +0 -1
@@ -0,0 +1,136 @@
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { C as CheckoutTemplate, U as UpdateCheckoutTemplate, a as CheckoutTemplatesQueryBuilder, b as CreateCheckoutFromTemplateResponse, R as RawHttpResponse, c as CheckoutTemplateCreatedEnvelope, d as CheckoutTemplateDeletedEnvelope, e as CheckoutTemplateUpdatedEnvelope, f as CheckoutTemplateUsedEnvelope } from './ecom-v1-checkout-template-checkout-templates.universal-DZSQyXAS.mjs';
3
+ export { bV as ActionEvent, bm as AdditionalFee, A as AdditionalFeeSource, at as Address, av as AddressLocation, as as AddressWithContact, bc as AggregatedTaxBreakdown, aI as ApplicableLineItems, aV as ApplicationError, b0 as AppliedDiscount, b1 as AppliedDiscountDiscountSourceOneOf, bb as AutoTaxFallbackCalculationDetails, bZ as BaseEventMetadata, aO as BuyerInfo, aP as BuyerInfoIdOneOf, aR as CalculationErrors, aS as CalculationErrorsShippingCalculationErrorOneOf, aG as Carrier, a_ as CarrierError, aZ as CarrierErrors, aK as CarrierServiceOption, y as CatalogOverrideFields, x as CatalogReference, o as ChannelType, bv as Charge, j as ChargeType, ag as Checkout, u as CheckoutCustomization, af as CheckoutTemplateUsed, b$ as CheckoutTemplatesQueryResult, L as Color, bn as ConversionInfo, b2 as Coupon, bN as CreateAndRedirectToCheckoutRequest, bM as CreateCheckoutFromTemplateRequest, bw as CreateCheckoutTemplateRequest, bx as CreateCheckoutTemplateResponse, bd as CreatedBy, be as CreatedByIdOneOf, bI as CursorPaging, bK as CursorPagingMetadata, bF as CursorQuery, bG as CursorQueryPagingMethodOneOf, bL as Cursors, ad as CustomContentReference, b7 as CustomField, X as CustomLineItem, bt as CustomSettings, bC as DeleteCheckoutTemplateRequest, bD as DeleteCheckoutTemplateResponse, aF as DeliveryAllocation, aA as DeliveryLogistics, aC as DeliveryTimeSlot, a3 as Description, B as DescriptionLine, G as DescriptionLineDescriptionLineValueOneOf, H as DescriptionLineName, D as DescriptionLineType, E as DescriptionLineValueOneOf, aT as Details, aU as DetailsKindOneOf, b4 as DiscountRule, b5 as DiscountRuleName, l as DiscountType, bP as DomainEvent, bQ as DomainEventBodyOneOf, bR as EntityCreatedEvent, bU as EntityDeletedEvent, bT as EntityUpdatedEvent, b_ as EventMetadata, ac as ExtendedFields, ae as ExternalReference, n as FallbackReason, aX as FieldViolation, F as FileType, am as FocalPoint, a1 as FreeTrialPeriod, aw as FullAddressContactDetails, by as GetCheckoutTemplateRequest, bz as GetCheckoutTemplateResponse, a$ as GiftCard, ap as Group, bO as HeadersEntry, bX as IdentificationData, bY as IdentificationDataIdOneOf, bj as InvalidMembership, an as ItemAvailabilityInfo, h as ItemAvailabilityStatus, ar as ItemModifier, aj as ItemTaxFullDetails, Z as ItemType, I as ItemTypeItemType, _ as ItemTypeItemTypeDataOneOf, J as JurisdictionType, ah as LineItem, b6 as LineItemDiscount, M as ManualCalculationReason, bg as Membership, bh as MembershipName, bf as MembershipOptions, bi as MembershipPaymentCredits, b3 as MerchantDiscount, bW as MessageEnvelope, aq as ModifierGroup, ai as MultiCurrencyPrice, q as NameInLineItem, N as NameInOther, br as Other, aN as OtherCharge, Q as PaymentOption, P as PaymentOptionType, O as PhysicalProperties, aB as PickupDetails, i as PickupMethod, K as PlainTextValue, a6 as Policy, Y as PriceDescription, aQ as PriceSummary, z as ProductName, bE as QueryCheckoutTemplatesRequest, bJ as QueryCheckoutTemplatesResponse, m as RateType, aH as Region, bS as RestoreInfo, k as RuleType, ao as Scope, a4 as SecuredMedia, az as SelectedCarrierServiceOption, aE as SelectedCarrierServiceOptionOtherCharge, aD as SelectedCarrierServiceOptionPrices, bl as SelectedMembership, bk as SelectedMemberships, a5 as ServiceProperties, p as Severity, ay as ShippingInfo, aL as ShippingOption, aM as ShippingPrice, aJ as ShippingRegion, s as SortOrder, bH as Sorting, S as Status, au as StreetAddress, bu as SubscriptionCharges, g as SubscriptionFrequency, $ as SubscriptionOptionInfo, a0 as SubscriptionSettings, r as SuggestedFix, aY as SystemError, bp as Target, bs as TargetLineItem, bq as TargetTargetTypeOneOf, al as TaxBreakdown, b9 as TaxCalculationDetails, ba as TaxCalculationDetailsCalculationDetailsOneOf, ak as TaxRateBreakdown, b8 as TaxSummary, a7 as TaxableAddress, a8 as TaxableAddressTaxableAddressDataOneOf, T as TaxableAddressType, a2 as Title, aa as TranslatableString, bA as UpdateCheckoutTemplateRequest, bB as UpdateCheckoutTemplateResponse, ab as V1ItemModifier, w as V1LineItem, a9 as V1ModifierGroup, aW as ValidationError, ax as VatId, V as VatType, bo as Violation, v as WebClientCustomization, t as WebhookIdentityType, W as WeightUnit } from './ecom-v1-checkout-template-checkout-templates.universal-DZSQyXAS.mjs';
4
+
5
+ declare function createCheckoutTemplate$1(httpClient: HttpClient): CreateCheckoutTemplateSignature;
6
+ interface CreateCheckoutTemplateSignature {
7
+ /**
8
+ * Creates a checkout template.
9
+ *
10
+ * A checkout template is used to create a new checkout that will include predefined information. For example, a single link with
11
+ * a `checkoutTemplateId` can be shared with customers and each time the link is clicked, a new checkout page will be created
12
+ * for that customer with certain checkout information already populated.
13
+ *
14
+ * The customizable features include the option to allow or to lock coupon codes or gift cards. For example, if a store owner is
15
+ * using the checkout template to offer a flash sale to their social media followers, they may want to lock the option to apply an
16
+ * additional coupon on top of the sale being offered. If so, they can set `customization.lockedCoupon` to `true`.
17
+ *
18
+ * A checkout can be created with a checkout template by calling Create Checkout From Template.
19
+ * The site may add further customizations to the new checkout and then redirect the customer using the new checkout's `checkoutUrl`.
20
+ * @param - Checkout template to create.
21
+ * @returns Created checkout template.
22
+ */
23
+ (checkoutTemplate: CheckoutTemplate): Promise<CheckoutTemplate>;
24
+ }
25
+ declare function getCheckoutTemplate$1(httpClient: HttpClient): GetCheckoutTemplateSignature;
26
+ interface GetCheckoutTemplateSignature {
27
+ /**
28
+ * Retrieves a checkout template.
29
+ * @param - ID of the checkout template to retrieve.
30
+ * @returns Retrieved checkout template.
31
+ */
32
+ (checkoutTemplateId: string): Promise<CheckoutTemplate>;
33
+ }
34
+ declare function updateCheckoutTemplate$1(httpClient: HttpClient): UpdateCheckoutTemplateSignature;
35
+ interface UpdateCheckoutTemplateSignature {
36
+ /**
37
+ * Updates a checkout template.
38
+ *
39
+ * If the info in a checkout template is updated, only new checkouts created from this template will include the updated items. Checkouts previously
40
+ * created from this template before the update will not be affected.
41
+ * @param - Checkout template ID.
42
+ * @param - Checkout template info to update.
43
+ * @returns Updated checkout template.
44
+ */
45
+ (_id: string, checkoutTemplate: UpdateCheckoutTemplate): Promise<CheckoutTemplate>;
46
+ }
47
+ declare function deleteCheckoutTemplate$1(httpClient: HttpClient): DeleteCheckoutTemplateSignature;
48
+ interface DeleteCheckoutTemplateSignature {
49
+ /**
50
+ * Deletes a checkout template.
51
+ *
52
+ * If a checkout template is deleted and a customer attempts to create a checkout with that `checkoutTemplateId` then
53
+ * the customer will be redirected to the domain site.
54
+ * @param - ID of the checkout template to delete.
55
+ */
56
+ (checkoutTemplateId: string): Promise<void>;
57
+ }
58
+ declare function queryCheckoutTemplates$1(httpClient: HttpClient): QueryCheckoutTemplatesSignature;
59
+ interface QueryCheckoutTemplatesSignature {
60
+ /**
61
+ * Creates a query to retrieve a list of checkout templates.
62
+ *
63
+ * The `queryCheckoutTemplates()` function builds a query to retrieve a list of checkout templates and returns a `CheckoutTemplatesQueryBuilder` object.
64
+ *
65
+ * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
66
+ *
67
+ * You can refine the query by chaining `CheckoutTemplatesQueryBuilder` functions onto the query. `CheckoutTemplatesQueryBuilder` functions enable you to sort, filter, and control the results that `queryCheckoutTemplates()` returns.
68
+ *
69
+ * `queryCheckoutTemplates()` runs with the following `CheckoutTemplatesQueryBuilder` default that you can override:
70
+ * + `ascending("_id")`
71
+ *
72
+ * The functions that are chained to `queryCheckoutTemplates()` are applied in the order they are called. For example, if you apply `ascending("status")` and then `ascending("_id")`, the results are sorted first by the `"status"`, and then, if there are multiple results with the same `"status"`, the items are sorted by `"_id"`.
73
+ *
74
+ * The following `CheckoutTemplatesQueryBuilder` functions are supported for the `queryCheckoutTemplates()` function. For a full description of the checkout template object, see the object returned for the `items` property in `CheckoutTemplatesQueryResult`.
75
+ */
76
+ (): CheckoutTemplatesQueryBuilder;
77
+ }
78
+ declare function createCheckoutFromTemplate$1(httpClient: HttpClient): CreateCheckoutFromTemplateSignature;
79
+ interface CreateCheckoutFromTemplateSignature {
80
+ /**
81
+ * Creates a new checkout based on the checkout template.
82
+ *
83
+ * Before using this method, you must have a checkout template available. Create a checkout template with Create Checkout Template.
84
+ *
85
+ * The customer can be directed to the new checkout using the checkout's `checkoutUrl`.
86
+ * @param - ID of the checkout template to use to create a checkout from.
87
+ * @param - ID of the site associated with the checkout template.
88
+ */
89
+ (checkoutTemplateId: string, siteId: string): Promise<CreateCheckoutFromTemplateResponse>;
90
+ }
91
+ declare function createAndRedirectToCheckout$1(httpClient: HttpClient): CreateAndRedirectToCheckoutSignature;
92
+ interface CreateAndRedirectToCheckoutSignature {
93
+ /**
94
+ * Creates a new checkout based on the checkout template and redirects to the new checkout page.
95
+ *
96
+ * Before using this method, you must have a checkout template available. Create a checkout template with Create Checkout Template.
97
+ *
98
+ * To build a URL that uses this method, follow this format:
99
+ * `https://www.wixapis.com/ecom/v1/checkout-templates/{checkoutTemplateId}/create-and-redirect-to-checkout?siteId={siteId}`
100
+ *
101
+ * To create a checkout but not automatically redirect to the checkout page, use Create Checkout From Template.
102
+ * @param - ID of the checkout template to use to create a checkout.
103
+ * @param - ID of the site associated with the checkout template.
104
+ */
105
+ (checkoutTemplateId: string, siteId: string): Promise<RawHttpResponse>;
106
+ }
107
+ declare const onCheckoutTemplateCreated$1: EventDefinition<CheckoutTemplateCreatedEnvelope, "wix.ecom.v1.checkout_template_created">;
108
+ declare const onCheckoutTemplateDeleted$1: EventDefinition<CheckoutTemplateDeletedEnvelope, "wix.ecom.v1.checkout_template_deleted">;
109
+ declare const onCheckoutTemplateUpdated$1: EventDefinition<CheckoutTemplateUpdatedEnvelope, "wix.ecom.v1.checkout_template_updated">;
110
+ declare const onCheckoutTemplateUsed$1: EventDefinition<CheckoutTemplateUsedEnvelope, "wix.ecom.v1.checkout_template_used">;
111
+
112
+ declare const createCheckoutTemplate: MaybeContext<BuildRESTFunction<typeof createCheckoutTemplate$1> & typeof createCheckoutTemplate$1>;
113
+ declare const getCheckoutTemplate: MaybeContext<BuildRESTFunction<typeof getCheckoutTemplate$1> & typeof getCheckoutTemplate$1>;
114
+ declare const updateCheckoutTemplate: MaybeContext<BuildRESTFunction<typeof updateCheckoutTemplate$1> & typeof updateCheckoutTemplate$1>;
115
+ declare const deleteCheckoutTemplate: MaybeContext<BuildRESTFunction<typeof deleteCheckoutTemplate$1> & typeof deleteCheckoutTemplate$1>;
116
+ declare const queryCheckoutTemplates: MaybeContext<BuildRESTFunction<typeof queryCheckoutTemplates$1> & typeof queryCheckoutTemplates$1>;
117
+ declare const createCheckoutFromTemplate: MaybeContext<BuildRESTFunction<typeof createCheckoutFromTemplate$1> & typeof createCheckoutFromTemplate$1>;
118
+ declare const createAndRedirectToCheckout: MaybeContext<BuildRESTFunction<typeof createAndRedirectToCheckout$1> & typeof createAndRedirectToCheckout$1>;
119
+ /**
120
+ * Triggered when a checkout template is created.
121
+ */
122
+ declare const onCheckoutTemplateCreated: BuildEventDefinition<typeof onCheckoutTemplateCreated$1>;
123
+ /**
124
+ * Triggered when a checkout template is deleted.
125
+ */
126
+ declare const onCheckoutTemplateDeleted: BuildEventDefinition<typeof onCheckoutTemplateDeleted$1>;
127
+ /**
128
+ * Triggered when a checkout template is updated.
129
+ */
130
+ declare const onCheckoutTemplateUpdated: BuildEventDefinition<typeof onCheckoutTemplateUpdated$1>;
131
+ /**
132
+ * Triggered when a checkout is created from a checkout template.
133
+ */
134
+ declare const onCheckoutTemplateUsed: BuildEventDefinition<typeof onCheckoutTemplateUsed$1>;
135
+
136
+ export { CheckoutTemplate, CheckoutTemplateCreatedEnvelope, CheckoutTemplateDeletedEnvelope, CheckoutTemplateUpdatedEnvelope, CheckoutTemplateUsedEnvelope, CheckoutTemplatesQueryBuilder, CreateCheckoutFromTemplateResponse, RawHttpResponse, UpdateCheckoutTemplate, createAndRedirectToCheckout, createCheckoutFromTemplate, createCheckoutTemplate, deleteCheckoutTemplate, getCheckoutTemplate, onCheckoutTemplateCreated, onCheckoutTemplateDeleted, onCheckoutTemplateUpdated, onCheckoutTemplateUsed, queryCheckoutTemplates, updateCheckoutTemplate };
@@ -0,0 +1,136 @@
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { C as CheckoutTemplate, U as UpdateCheckoutTemplate, a as CheckoutTemplatesQueryBuilder, b as CreateCheckoutFromTemplateResponse, R as RawHttpResponse, c as CheckoutTemplateCreatedEnvelope, d as CheckoutTemplateDeletedEnvelope, e as CheckoutTemplateUpdatedEnvelope, f as CheckoutTemplateUsedEnvelope } from './ecom-v1-checkout-template-checkout-templates.universal-DZSQyXAS.js';
3
+ export { bV as ActionEvent, bm as AdditionalFee, A as AdditionalFeeSource, at as Address, av as AddressLocation, as as AddressWithContact, bc as AggregatedTaxBreakdown, aI as ApplicableLineItems, aV as ApplicationError, b0 as AppliedDiscount, b1 as AppliedDiscountDiscountSourceOneOf, bb as AutoTaxFallbackCalculationDetails, bZ as BaseEventMetadata, aO as BuyerInfo, aP as BuyerInfoIdOneOf, aR as CalculationErrors, aS as CalculationErrorsShippingCalculationErrorOneOf, aG as Carrier, a_ as CarrierError, aZ as CarrierErrors, aK as CarrierServiceOption, y as CatalogOverrideFields, x as CatalogReference, o as ChannelType, bv as Charge, j as ChargeType, ag as Checkout, u as CheckoutCustomization, af as CheckoutTemplateUsed, b$ as CheckoutTemplatesQueryResult, L as Color, bn as ConversionInfo, b2 as Coupon, bN as CreateAndRedirectToCheckoutRequest, bM as CreateCheckoutFromTemplateRequest, bw as CreateCheckoutTemplateRequest, bx as CreateCheckoutTemplateResponse, bd as CreatedBy, be as CreatedByIdOneOf, bI as CursorPaging, bK as CursorPagingMetadata, bF as CursorQuery, bG as CursorQueryPagingMethodOneOf, bL as Cursors, ad as CustomContentReference, b7 as CustomField, X as CustomLineItem, bt as CustomSettings, bC as DeleteCheckoutTemplateRequest, bD as DeleteCheckoutTemplateResponse, aF as DeliveryAllocation, aA as DeliveryLogistics, aC as DeliveryTimeSlot, a3 as Description, B as DescriptionLine, G as DescriptionLineDescriptionLineValueOneOf, H as DescriptionLineName, D as DescriptionLineType, E as DescriptionLineValueOneOf, aT as Details, aU as DetailsKindOneOf, b4 as DiscountRule, b5 as DiscountRuleName, l as DiscountType, bP as DomainEvent, bQ as DomainEventBodyOneOf, bR as EntityCreatedEvent, bU as EntityDeletedEvent, bT as EntityUpdatedEvent, b_ as EventMetadata, ac as ExtendedFields, ae as ExternalReference, n as FallbackReason, aX as FieldViolation, F as FileType, am as FocalPoint, a1 as FreeTrialPeriod, aw as FullAddressContactDetails, by as GetCheckoutTemplateRequest, bz as GetCheckoutTemplateResponse, a$ as GiftCard, ap as Group, bO as HeadersEntry, bX as IdentificationData, bY as IdentificationDataIdOneOf, bj as InvalidMembership, an as ItemAvailabilityInfo, h as ItemAvailabilityStatus, ar as ItemModifier, aj as ItemTaxFullDetails, Z as ItemType, I as ItemTypeItemType, _ as ItemTypeItemTypeDataOneOf, J as JurisdictionType, ah as LineItem, b6 as LineItemDiscount, M as ManualCalculationReason, bg as Membership, bh as MembershipName, bf as MembershipOptions, bi as MembershipPaymentCredits, b3 as MerchantDiscount, bW as MessageEnvelope, aq as ModifierGroup, ai as MultiCurrencyPrice, q as NameInLineItem, N as NameInOther, br as Other, aN as OtherCharge, Q as PaymentOption, P as PaymentOptionType, O as PhysicalProperties, aB as PickupDetails, i as PickupMethod, K as PlainTextValue, a6 as Policy, Y as PriceDescription, aQ as PriceSummary, z as ProductName, bE as QueryCheckoutTemplatesRequest, bJ as QueryCheckoutTemplatesResponse, m as RateType, aH as Region, bS as RestoreInfo, k as RuleType, ao as Scope, a4 as SecuredMedia, az as SelectedCarrierServiceOption, aE as SelectedCarrierServiceOptionOtherCharge, aD as SelectedCarrierServiceOptionPrices, bl as SelectedMembership, bk as SelectedMemberships, a5 as ServiceProperties, p as Severity, ay as ShippingInfo, aL as ShippingOption, aM as ShippingPrice, aJ as ShippingRegion, s as SortOrder, bH as Sorting, S as Status, au as StreetAddress, bu as SubscriptionCharges, g as SubscriptionFrequency, $ as SubscriptionOptionInfo, a0 as SubscriptionSettings, r as SuggestedFix, aY as SystemError, bp as Target, bs as TargetLineItem, bq as TargetTargetTypeOneOf, al as TaxBreakdown, b9 as TaxCalculationDetails, ba as TaxCalculationDetailsCalculationDetailsOneOf, ak as TaxRateBreakdown, b8 as TaxSummary, a7 as TaxableAddress, a8 as TaxableAddressTaxableAddressDataOneOf, T as TaxableAddressType, a2 as Title, aa as TranslatableString, bA as UpdateCheckoutTemplateRequest, bB as UpdateCheckoutTemplateResponse, ab as V1ItemModifier, w as V1LineItem, a9 as V1ModifierGroup, aW as ValidationError, ax as VatId, V as VatType, bo as Violation, v as WebClientCustomization, t as WebhookIdentityType, W as WeightUnit } from './ecom-v1-checkout-template-checkout-templates.universal-DZSQyXAS.js';
4
+
5
+ declare function createCheckoutTemplate$1(httpClient: HttpClient): CreateCheckoutTemplateSignature;
6
+ interface CreateCheckoutTemplateSignature {
7
+ /**
8
+ * Creates a checkout template.
9
+ *
10
+ * A checkout template is used to create a new checkout that will include predefined information. For example, a single link with
11
+ * a `checkoutTemplateId` can be shared with customers and each time the link is clicked, a new checkout page will be created
12
+ * for that customer with certain checkout information already populated.
13
+ *
14
+ * The customizable features include the option to allow or to lock coupon codes or gift cards. For example, if a store owner is
15
+ * using the checkout template to offer a flash sale to their social media followers, they may want to lock the option to apply an
16
+ * additional coupon on top of the sale being offered. If so, they can set `customization.lockedCoupon` to `true`.
17
+ *
18
+ * A checkout can be created with a checkout template by calling Create Checkout From Template.
19
+ * The site may add further customizations to the new checkout and then redirect the customer using the new checkout's `checkoutUrl`.
20
+ * @param - Checkout template to create.
21
+ * @returns Created checkout template.
22
+ */
23
+ (checkoutTemplate: CheckoutTemplate): Promise<CheckoutTemplate>;
24
+ }
25
+ declare function getCheckoutTemplate$1(httpClient: HttpClient): GetCheckoutTemplateSignature;
26
+ interface GetCheckoutTemplateSignature {
27
+ /**
28
+ * Retrieves a checkout template.
29
+ * @param - ID of the checkout template to retrieve.
30
+ * @returns Retrieved checkout template.
31
+ */
32
+ (checkoutTemplateId: string): Promise<CheckoutTemplate>;
33
+ }
34
+ declare function updateCheckoutTemplate$1(httpClient: HttpClient): UpdateCheckoutTemplateSignature;
35
+ interface UpdateCheckoutTemplateSignature {
36
+ /**
37
+ * Updates a checkout template.
38
+ *
39
+ * If the info in a checkout template is updated, only new checkouts created from this template will include the updated items. Checkouts previously
40
+ * created from this template before the update will not be affected.
41
+ * @param - Checkout template ID.
42
+ * @param - Checkout template info to update.
43
+ * @returns Updated checkout template.
44
+ */
45
+ (_id: string, checkoutTemplate: UpdateCheckoutTemplate): Promise<CheckoutTemplate>;
46
+ }
47
+ declare function deleteCheckoutTemplate$1(httpClient: HttpClient): DeleteCheckoutTemplateSignature;
48
+ interface DeleteCheckoutTemplateSignature {
49
+ /**
50
+ * Deletes a checkout template.
51
+ *
52
+ * If a checkout template is deleted and a customer attempts to create a checkout with that `checkoutTemplateId` then
53
+ * the customer will be redirected to the domain site.
54
+ * @param - ID of the checkout template to delete.
55
+ */
56
+ (checkoutTemplateId: string): Promise<void>;
57
+ }
58
+ declare function queryCheckoutTemplates$1(httpClient: HttpClient): QueryCheckoutTemplatesSignature;
59
+ interface QueryCheckoutTemplatesSignature {
60
+ /**
61
+ * Creates a query to retrieve a list of checkout templates.
62
+ *
63
+ * The `queryCheckoutTemplates()` function builds a query to retrieve a list of checkout templates and returns a `CheckoutTemplatesQueryBuilder` object.
64
+ *
65
+ * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
66
+ *
67
+ * You can refine the query by chaining `CheckoutTemplatesQueryBuilder` functions onto the query. `CheckoutTemplatesQueryBuilder` functions enable you to sort, filter, and control the results that `queryCheckoutTemplates()` returns.
68
+ *
69
+ * `queryCheckoutTemplates()` runs with the following `CheckoutTemplatesQueryBuilder` default that you can override:
70
+ * + `ascending("_id")`
71
+ *
72
+ * The functions that are chained to `queryCheckoutTemplates()` are applied in the order they are called. For example, if you apply `ascending("status")` and then `ascending("_id")`, the results are sorted first by the `"status"`, and then, if there are multiple results with the same `"status"`, the items are sorted by `"_id"`.
73
+ *
74
+ * The following `CheckoutTemplatesQueryBuilder` functions are supported for the `queryCheckoutTemplates()` function. For a full description of the checkout template object, see the object returned for the `items` property in `CheckoutTemplatesQueryResult`.
75
+ */
76
+ (): CheckoutTemplatesQueryBuilder;
77
+ }
78
+ declare function createCheckoutFromTemplate$1(httpClient: HttpClient): CreateCheckoutFromTemplateSignature;
79
+ interface CreateCheckoutFromTemplateSignature {
80
+ /**
81
+ * Creates a new checkout based on the checkout template.
82
+ *
83
+ * Before using this method, you must have a checkout template available. Create a checkout template with Create Checkout Template.
84
+ *
85
+ * The customer can be directed to the new checkout using the checkout's `checkoutUrl`.
86
+ * @param - ID of the checkout template to use to create a checkout from.
87
+ * @param - ID of the site associated with the checkout template.
88
+ */
89
+ (checkoutTemplateId: string, siteId: string): Promise<CreateCheckoutFromTemplateResponse>;
90
+ }
91
+ declare function createAndRedirectToCheckout$1(httpClient: HttpClient): CreateAndRedirectToCheckoutSignature;
92
+ interface CreateAndRedirectToCheckoutSignature {
93
+ /**
94
+ * Creates a new checkout based on the checkout template and redirects to the new checkout page.
95
+ *
96
+ * Before using this method, you must have a checkout template available. Create a checkout template with Create Checkout Template.
97
+ *
98
+ * To build a URL that uses this method, follow this format:
99
+ * `https://www.wixapis.com/ecom/v1/checkout-templates/{checkoutTemplateId}/create-and-redirect-to-checkout?siteId={siteId}`
100
+ *
101
+ * To create a checkout but not automatically redirect to the checkout page, use Create Checkout From Template.
102
+ * @param - ID of the checkout template to use to create a checkout.
103
+ * @param - ID of the site associated with the checkout template.
104
+ */
105
+ (checkoutTemplateId: string, siteId: string): Promise<RawHttpResponse>;
106
+ }
107
+ declare const onCheckoutTemplateCreated$1: EventDefinition<CheckoutTemplateCreatedEnvelope, "wix.ecom.v1.checkout_template_created">;
108
+ declare const onCheckoutTemplateDeleted$1: EventDefinition<CheckoutTemplateDeletedEnvelope, "wix.ecom.v1.checkout_template_deleted">;
109
+ declare const onCheckoutTemplateUpdated$1: EventDefinition<CheckoutTemplateUpdatedEnvelope, "wix.ecom.v1.checkout_template_updated">;
110
+ declare const onCheckoutTemplateUsed$1: EventDefinition<CheckoutTemplateUsedEnvelope, "wix.ecom.v1.checkout_template_used">;
111
+
112
+ declare const createCheckoutTemplate: MaybeContext<BuildRESTFunction<typeof createCheckoutTemplate$1> & typeof createCheckoutTemplate$1>;
113
+ declare const getCheckoutTemplate: MaybeContext<BuildRESTFunction<typeof getCheckoutTemplate$1> & typeof getCheckoutTemplate$1>;
114
+ declare const updateCheckoutTemplate: MaybeContext<BuildRESTFunction<typeof updateCheckoutTemplate$1> & typeof updateCheckoutTemplate$1>;
115
+ declare const deleteCheckoutTemplate: MaybeContext<BuildRESTFunction<typeof deleteCheckoutTemplate$1> & typeof deleteCheckoutTemplate$1>;
116
+ declare const queryCheckoutTemplates: MaybeContext<BuildRESTFunction<typeof queryCheckoutTemplates$1> & typeof queryCheckoutTemplates$1>;
117
+ declare const createCheckoutFromTemplate: MaybeContext<BuildRESTFunction<typeof createCheckoutFromTemplate$1> & typeof createCheckoutFromTemplate$1>;
118
+ declare const createAndRedirectToCheckout: MaybeContext<BuildRESTFunction<typeof createAndRedirectToCheckout$1> & typeof createAndRedirectToCheckout$1>;
119
+ /**
120
+ * Triggered when a checkout template is created.
121
+ */
122
+ declare const onCheckoutTemplateCreated: BuildEventDefinition<typeof onCheckoutTemplateCreated$1>;
123
+ /**
124
+ * Triggered when a checkout template is deleted.
125
+ */
126
+ declare const onCheckoutTemplateDeleted: BuildEventDefinition<typeof onCheckoutTemplateDeleted$1>;
127
+ /**
128
+ * Triggered when a checkout template is updated.
129
+ */
130
+ declare const onCheckoutTemplateUpdated: BuildEventDefinition<typeof onCheckoutTemplateUpdated$1>;
131
+ /**
132
+ * Triggered when a checkout is created from a checkout template.
133
+ */
134
+ declare const onCheckoutTemplateUsed: BuildEventDefinition<typeof onCheckoutTemplateUsed$1>;
135
+
136
+ export { CheckoutTemplate, CheckoutTemplateCreatedEnvelope, CheckoutTemplateDeletedEnvelope, CheckoutTemplateUpdatedEnvelope, CheckoutTemplateUsedEnvelope, CheckoutTemplatesQueryBuilder, CreateCheckoutFromTemplateResponse, RawHttpResponse, UpdateCheckoutTemplate, createAndRedirectToCheckout, createCheckoutFromTemplate, createCheckoutTemplate, deleteCheckoutTemplate, getCheckoutTemplate, onCheckoutTemplateCreated, onCheckoutTemplateDeleted, onCheckoutTemplateUpdated, onCheckoutTemplateUsed, queryCheckoutTemplates, updateCheckoutTemplate };