@wix/auto_sdk_ecom_checkout-templates 1.0.0

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 (111) 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-template-checkout-templates.context.d.ts +32 -0
  11. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.context.js +61 -0
  12. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.context.js.map +1 -0
  13. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.http.d.ts +67 -0
  14. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.http.js +377 -0
  15. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.http.js.map +1 -0
  16. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.meta.d.ts +29 -0
  17. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.meta.js +161 -0
  18. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.meta.js.map +1 -0
  19. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.public.d.ts +111 -0
  20. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.public.js +268 -0
  21. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.public.js.map +1 -0
  22. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.types.d.ts +2224 -0
  23. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.types.js +259 -0
  24. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.types.js.map +1 -0
  25. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.universal.d.ts +2538 -0
  26. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.universal.js +710 -0
  27. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.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-template-checkout-templates.context.d.ts +32 -0
  39. package/build/es/src/ecom-v1-checkout-template-checkout-templates.context.js +32 -0
  40. package/build/es/src/ecom-v1-checkout-template-checkout-templates.context.js.map +1 -0
  41. package/build/es/src/ecom-v1-checkout-template-checkout-templates.http.d.ts +67 -0
  42. package/build/es/src/ecom-v1-checkout-template-checkout-templates.http.js +367 -0
  43. package/build/es/src/ecom-v1-checkout-template-checkout-templates.http.js.map +1 -0
  44. package/build/es/src/ecom-v1-checkout-template-checkout-templates.meta.d.ts +29 -0
  45. package/build/es/src/ecom-v1-checkout-template-checkout-templates.meta.js +128 -0
  46. package/build/es/src/ecom-v1-checkout-template-checkout-templates.meta.js.map +1 -0
  47. package/build/es/src/ecom-v1-checkout-template-checkout-templates.public.d.ts +111 -0
  48. package/build/es/src/ecom-v1-checkout-template-checkout-templates.public.js +232 -0
  49. package/build/es/src/ecom-v1-checkout-template-checkout-templates.public.js.map +1 -0
  50. package/build/es/src/ecom-v1-checkout-template-checkout-templates.types.d.ts +2224 -0
  51. package/build/es/src/ecom-v1-checkout-template-checkout-templates.types.js +256 -0
  52. package/build/es/src/ecom-v1-checkout-template-checkout-templates.types.js.map +1 -0
  53. package/build/es/src/ecom-v1-checkout-template-checkout-templates.universal.d.ts +2538 -0
  54. package/build/es/src/ecom-v1-checkout-template-checkout-templates.universal.js +677 -0
  55. package/build/es/src/ecom-v1-checkout-template-checkout-templates.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-template-checkout-templates.context.d.ts +32 -0
  66. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.context.js +61 -0
  67. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.context.js.map +1 -0
  68. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.http.d.ts +67 -0
  69. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.http.js +377 -0
  70. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.http.js.map +1 -0
  71. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.meta.d.ts +29 -0
  72. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.meta.js +161 -0
  73. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.meta.js.map +1 -0
  74. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.public.d.ts +111 -0
  75. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.public.js +268 -0
  76. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.public.js.map +1 -0
  77. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.types.d.ts +2243 -0
  78. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.types.js +259 -0
  79. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.types.js.map +1 -0
  80. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.universal.d.ts +2694 -0
  81. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.universal.js +710 -0
  82. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.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-template-checkout-templates.context.d.ts +32 -0
  93. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.context.js +32 -0
  94. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.context.js.map +1 -0
  95. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.http.d.ts +67 -0
  96. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.http.js +367 -0
  97. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.http.js.map +1 -0
  98. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.meta.d.ts +29 -0
  99. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.meta.js +128 -0
  100. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.meta.js.map +1 -0
  101. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.public.d.ts +111 -0
  102. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.public.js +232 -0
  103. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.public.js.map +1 -0
  104. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.types.d.ts +2243 -0
  105. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.types.js +256 -0
  106. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.types.js.map +1 -0
  107. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.universal.d.ts +2694 -0
  108. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.universal.js +677 -0
  109. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,677 @@
1
+ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
2
+ import { queryBuilder } from '@wix/sdk-runtime/query-builder';
3
+ import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
4
+ import * as ambassadorWixEcomV1CheckoutTemplate from './ecom-v1-checkout-template-checkout-templates.http.js';
5
+ // @ts-ignore
6
+ import { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';
7
+ import { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';
8
+ import { transformSDKPageURLV2ToRESTPageURLV2 } from '@wix/sdk-runtime/transformations/page-url-v2';
9
+ import { transformRESTPageURLV2ToSDKPageURLV2 } from '@wix/sdk-runtime/transformations/page-url-v2';
10
+ import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
11
+ export var Status;
12
+ (function (Status) {
13
+ Status["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
14
+ Status["ACTIVE"] = "ACTIVE";
15
+ Status["INACTIVE"] = "INACTIVE";
16
+ })(Status || (Status = {}));
17
+ export var DescriptionLineType;
18
+ (function (DescriptionLineType) {
19
+ /** Unrecognized type. */
20
+ DescriptionLineType["UNRECOGNISED"] = "UNRECOGNISED";
21
+ /** Plain text type. */
22
+ DescriptionLineType["PLAIN_TEXT"] = "PLAIN_TEXT";
23
+ /** Color type. */
24
+ DescriptionLineType["COLOR"] = "COLOR";
25
+ })(DescriptionLineType || (DescriptionLineType = {}));
26
+ /** Type of selected payment option for catalog item */
27
+ export var PaymentOptionType;
28
+ (function (PaymentOptionType) {
29
+ /** The entire payment for this item happens as part of the checkout. */
30
+ PaymentOptionType["FULL_PAYMENT_ONLINE"] = "FULL_PAYMENT_ONLINE";
31
+ /** The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods. */
32
+ PaymentOptionType["FULL_PAYMENT_OFFLINE"] = "FULL_PAYMENT_OFFLINE";
33
+ /** Payment for this item is done by charging a membership. When selected, `price` is `0`. */
34
+ PaymentOptionType["MEMBERSHIP"] = "MEMBERSHIP";
35
+ /** Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`. */
36
+ PaymentOptionType["DEPOSIT_ONLINE"] = "DEPOSIT_ONLINE";
37
+ /** Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`. */
38
+ PaymentOptionType["MEMBERSHIP_OFFLINE"] = "MEMBERSHIP_OFFLINE";
39
+ })(PaymentOptionType || (PaymentOptionType = {}));
40
+ export var ItemTypeItemType;
41
+ (function (ItemTypeItemType) {
42
+ ItemTypeItemType["UNRECOGNISED"] = "UNRECOGNISED";
43
+ ItemTypeItemType["PHYSICAL"] = "PHYSICAL";
44
+ ItemTypeItemType["DIGITAL"] = "DIGITAL";
45
+ ItemTypeItemType["GIFT_CARD"] = "GIFT_CARD";
46
+ ItemTypeItemType["SERVICE"] = "SERVICE";
47
+ })(ItemTypeItemType || (ItemTypeItemType = {}));
48
+ /** Frequency unit of recurring payment */
49
+ export var SubscriptionFrequency;
50
+ (function (SubscriptionFrequency) {
51
+ SubscriptionFrequency["UNDEFINED"] = "UNDEFINED";
52
+ SubscriptionFrequency["DAY"] = "DAY";
53
+ SubscriptionFrequency["WEEK"] = "WEEK";
54
+ SubscriptionFrequency["MONTH"] = "MONTH";
55
+ SubscriptionFrequency["YEAR"] = "YEAR";
56
+ })(SubscriptionFrequency || (SubscriptionFrequency = {}));
57
+ export var FileType;
58
+ (function (FileType) {
59
+ FileType["UNSPECIFIED"] = "UNSPECIFIED";
60
+ FileType["SECURE_PICTURE"] = "SECURE_PICTURE";
61
+ FileType["SECURE_VIDEO"] = "SECURE_VIDEO";
62
+ FileType["SECURE_DOCUMENT"] = "SECURE_DOCUMENT";
63
+ FileType["SECURE_MUSIC"] = "SECURE_MUSIC";
64
+ FileType["SECURE_ARCHIVE"] = "SECURE_ARCHIVE";
65
+ })(FileType || (FileType = {}));
66
+ export var SortOrder;
67
+ (function (SortOrder) {
68
+ /** Ascending order. */
69
+ SortOrder["ASC"] = "ASC";
70
+ /** Descending order. */
71
+ SortOrder["DESC"] = "DESC";
72
+ })(SortOrder || (SortOrder = {}));
73
+ /** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
74
+ export var JurisdictionType;
75
+ (function (JurisdictionType) {
76
+ JurisdictionType["UNDEFINED"] = "UNDEFINED";
77
+ JurisdictionType["COUNTRY"] = "COUNTRY";
78
+ JurisdictionType["STATE"] = "STATE";
79
+ JurisdictionType["COUNTY"] = "COUNTY";
80
+ JurisdictionType["CITY"] = "CITY";
81
+ JurisdictionType["SPECIAL"] = "SPECIAL";
82
+ })(JurisdictionType || (JurisdictionType = {}));
83
+ export var ItemAvailabilityStatus;
84
+ (function (ItemAvailabilityStatus) {
85
+ ItemAvailabilityStatus["AVAILABLE"] = "AVAILABLE";
86
+ /** Item does not exist */
87
+ ItemAvailabilityStatus["NOT_FOUND"] = "NOT_FOUND";
88
+ /** Item not in stock */
89
+ ItemAvailabilityStatus["NOT_AVAILABLE"] = "NOT_AVAILABLE";
90
+ /** Available quantity is less than requested */
91
+ ItemAvailabilityStatus["PARTIALLY_AVAILABLE"] = "PARTIALLY_AVAILABLE";
92
+ })(ItemAvailabilityStatus || (ItemAvailabilityStatus = {}));
93
+ export var TaxableAddressType;
94
+ (function (TaxableAddressType) {
95
+ TaxableAddressType["UNKNOWN_TAXABLE_ADDRESS"] = "UNKNOWN_TAXABLE_ADDRESS";
96
+ TaxableAddressType["BUSINESS"] = "BUSINESS";
97
+ TaxableAddressType["BILLING"] = "BILLING";
98
+ TaxableAddressType["SHIPPING"] = "SHIPPING";
99
+ })(TaxableAddressType || (TaxableAddressType = {}));
100
+ /** tax info types */
101
+ export var VatType;
102
+ (function (VatType) {
103
+ VatType["UNSPECIFIED"] = "UNSPECIFIED";
104
+ /** CPF - for individual tax payers. */
105
+ VatType["CPF"] = "CPF";
106
+ /** CNPJ - for corporations */
107
+ VatType["CNPJ"] = "CNPJ";
108
+ })(VatType || (VatType = {}));
109
+ export var PickupMethod;
110
+ (function (PickupMethod) {
111
+ PickupMethod["UNKNOWN_METHOD"] = "UNKNOWN_METHOD";
112
+ PickupMethod["STORE_PICKUP"] = "STORE_PICKUP";
113
+ PickupMethod["PICKUP_POINT"] = "PICKUP_POINT";
114
+ })(PickupMethod || (PickupMethod = {}));
115
+ export var ChargeType;
116
+ (function (ChargeType) {
117
+ ChargeType["HANDLING_FEE"] = "HANDLING_FEE";
118
+ ChargeType["INSURANCE"] = "INSURANCE";
119
+ })(ChargeType || (ChargeType = {}));
120
+ export var RuleType;
121
+ (function (RuleType) {
122
+ RuleType["VALIDATION"] = "VALIDATION";
123
+ RuleType["OTHER"] = "OTHER";
124
+ RuleType["MAX"] = "MAX";
125
+ RuleType["MIN"] = "MIN";
126
+ RuleType["MAX_LENGTH"] = "MAX_LENGTH";
127
+ RuleType["MIN_LENGTH"] = "MIN_LENGTH";
128
+ RuleType["MAX_SIZE"] = "MAX_SIZE";
129
+ RuleType["MIN_SIZE"] = "MIN_SIZE";
130
+ RuleType["FORMAT"] = "FORMAT";
131
+ RuleType["DECIMAL_LTE"] = "DECIMAL_LTE";
132
+ RuleType["DECIMAL_GTE"] = "DECIMAL_GTE";
133
+ RuleType["DECIMAL_LT"] = "DECIMAL_LT";
134
+ RuleType["DECIMAL_GT"] = "DECIMAL_GT";
135
+ RuleType["DECIMAL_MAX_SCALE"] = "DECIMAL_MAX_SCALE";
136
+ RuleType["INVALID_ENUM_VALUE"] = "INVALID_ENUM_VALUE";
137
+ RuleType["REQUIRED_FIELD"] = "REQUIRED_FIELD";
138
+ RuleType["FIELD_NOT_ALLOWED"] = "FIELD_NOT_ALLOWED";
139
+ RuleType["ONE_OF_ALIGNMENT"] = "ONE_OF_ALIGNMENT";
140
+ RuleType["EXACT_LENGTH"] = "EXACT_LENGTH";
141
+ RuleType["EXACT_SIZE"] = "EXACT_SIZE";
142
+ RuleType["REQUIRED_ONE_OF_FIELD"] = "REQUIRED_ONE_OF_FIELD";
143
+ })(RuleType || (RuleType = {}));
144
+ export var DiscountType;
145
+ (function (DiscountType) {
146
+ DiscountType["GLOBAL"] = "GLOBAL";
147
+ DiscountType["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
148
+ DiscountType["SHIPPING"] = "SHIPPING";
149
+ })(DiscountType || (DiscountType = {}));
150
+ export var WeightUnit;
151
+ (function (WeightUnit) {
152
+ /** Weight unit can't be classified, due to an error */
153
+ WeightUnit["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
154
+ /** Kilograms */
155
+ WeightUnit["KG"] = "KG";
156
+ /** Pounds */
157
+ WeightUnit["LB"] = "LB";
158
+ })(WeightUnit || (WeightUnit = {}));
159
+ export var RateType;
160
+ (function (RateType) {
161
+ /** no tax being collected for this request due to location of purchase */
162
+ RateType["NO_TAX_COLLECTED"] = "NO_TAX_COLLECTED";
163
+ /** manual rate used for calculation */
164
+ RateType["MANUAL_RATE"] = "MANUAL_RATE";
165
+ /** autotax rate used for calculation */
166
+ RateType["AUTO_RATE"] = "AUTO_RATE";
167
+ /** fallback rate used for calculation */
168
+ RateType["FALLBACK_RATE"] = "FALLBACK_RATE";
169
+ })(RateType || (RateType = {}));
170
+ export var ManualCalculationReason;
171
+ (function (ManualCalculationReason) {
172
+ /** user set calculator in Business Manager to be Manual */
173
+ ManualCalculationReason["GLOBAL_SETTING_TO_MANUAL"] = "GLOBAL_SETTING_TO_MANUAL";
174
+ /** specific region is on manual even though Global setting is Auto-tax */
175
+ ManualCalculationReason["REGION_SETTING_TO_MANUAL"] = "REGION_SETTING_TO_MANUAL";
176
+ })(ManualCalculationReason || (ManualCalculationReason = {}));
177
+ export var FallbackReason;
178
+ (function (FallbackReason) {
179
+ /** auto-tax failed to be calculated */
180
+ FallbackReason["AUTO_TAX_FAILED"] = "AUTO_TAX_FAILED";
181
+ /** auto-tax was temporarily deactivated on a system-level */
182
+ FallbackReason["AUTO_TAX_DEACTIVATED"] = "AUTO_TAX_DEACTIVATED";
183
+ })(FallbackReason || (FallbackReason = {}));
184
+ export var ChannelType;
185
+ (function (ChannelType) {
186
+ /** Unspecified sales channel. This value is not supported. */
187
+ ChannelType["UNSPECIFIED"] = "UNSPECIFIED";
188
+ /** A web client. */
189
+ ChannelType["WEB"] = "WEB";
190
+ /** [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395). */
191
+ ChannelType["POS"] = "POS";
192
+ /** [eBay shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop). */
193
+ ChannelType["EBAY"] = "EBAY";
194
+ /** [Amazon shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop). */
195
+ ChannelType["AMAZON"] = "AMAZON";
196
+ /** Other sales platform. */
197
+ ChannelType["OTHER_PLATFORM"] = "OTHER_PLATFORM";
198
+ /** [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview). */
199
+ ChannelType["WIX_APP_STORE"] = "WIX_APP_STORE";
200
+ /** Wix Invoices app in [your dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Finvoices/settings/general-settings) */
201
+ ChannelType["WIX_INVOICES"] = "WIX_INVOICES";
202
+ /** Wix merchant backoffice. */
203
+ ChannelType["BACKOFFICE_MERCHANT"] = "BACKOFFICE_MERCHANT";
204
+ /** Wish sales channel. */
205
+ ChannelType["WISH"] = "WISH";
206
+ /** [ClassPass sales channel](https://support.wix.com/en/article/wix-bookings-letting-clients-book-your-services-with-classpass). */
207
+ ChannelType["CLASS_PASS"] = "CLASS_PASS";
208
+ /** Global-E sales channel. */
209
+ ChannelType["GLOBAL_E"] = "GLOBAL_E";
210
+ /** [Facebook shop](https://support.wix.com/en/article/wix-stores-changes-to-facebook-shops). */
211
+ ChannelType["FACEBOOK"] = "FACEBOOK";
212
+ /** [Etsy sales channel](https://support.wix.com/en/article/wix-stores-request-adding-etsy-as-a-sales-channel). */
213
+ ChannelType["ETSY"] = "ETSY";
214
+ /** [TikTok sales channel](https://support.wix.com/en/article/wix-stores-request-adding-tiktok-as-a-sales-channel). */
215
+ ChannelType["TIKTOK"] = "TIKTOK";
216
+ /** [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app). */
217
+ ChannelType["FAIRE_COM"] = "FAIRE_COM";
218
+ })(ChannelType || (ChannelType = {}));
219
+ export var AdditionalFeeSource;
220
+ (function (AdditionalFeeSource) {
221
+ AdditionalFeeSource["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
222
+ /** The additional fee was added by an additional fee service plugin */
223
+ AdditionalFeeSource["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
224
+ /** The additional fee was added on the item either via the catalog or on custom line item */
225
+ AdditionalFeeSource["ITEM"] = "ITEM";
226
+ /** The additional fee was added manually on the request */
227
+ AdditionalFeeSource["MANUAL"] = "MANUAL";
228
+ })(AdditionalFeeSource || (AdditionalFeeSource = {}));
229
+ export var Severity;
230
+ (function (Severity) {
231
+ /** The user is allowed to move forward in the flow. */
232
+ Severity["WARNING"] = "WARNING";
233
+ /**
234
+ * The user is blocked from moving forward in the flow.
235
+ * For example, if callerContext is CART - moving to checkout is blocked. if callerContext is CHECKOUT, placing an order is blocked.
236
+ */
237
+ Severity["ERROR"] = "ERROR";
238
+ })(Severity || (Severity = {}));
239
+ /** Available locations on the webpage */
240
+ export var NameInOther;
241
+ (function (NameInOther) {
242
+ /** Default location, in case no specific location is specified. */
243
+ NameInOther["OTHER_DEFAULT"] = "OTHER_DEFAULT";
244
+ })(NameInOther || (NameInOther = {}));
245
+ /** Available locations on the line item */
246
+ export var NameInLineItem;
247
+ (function (NameInLineItem) {
248
+ /** Default location, in case no specific location is specified. */
249
+ NameInLineItem["LINE_ITEM_DEFAULT"] = "LINE_ITEM_DEFAULT";
250
+ })(NameInLineItem || (NameInLineItem = {}));
251
+ export var SuggestedFix;
252
+ (function (SuggestedFix) {
253
+ /** No suggested fix is specified. The user should refer to the violation description to resolve the issue. */
254
+ SuggestedFix["UNKNOWN_SUGGESTED_FIX"] = "UNKNOWN_SUGGESTED_FIX";
255
+ /** The line item should be removed from the cart or checkout to resolve the violation. */
256
+ SuggestedFix["REMOVE_LINE_ITEM"] = "REMOVE_LINE_ITEM";
257
+ })(SuggestedFix || (SuggestedFix = {}));
258
+ export var WebhookIdentityType;
259
+ (function (WebhookIdentityType) {
260
+ WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
261
+ WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
262
+ WebhookIdentityType["MEMBER"] = "MEMBER";
263
+ WebhookIdentityType["WIX_USER"] = "WIX_USER";
264
+ WebhookIdentityType["APP"] = "APP";
265
+ })(WebhookIdentityType || (WebhookIdentityType = {}));
266
+ /**
267
+ * Creates a checkout template.
268
+ *
269
+ * A checkout template is used to create a new checkout that will include predefined information. For example, a single link with
270
+ * a `checkoutTemplateId` can be shared with customers and each time the link is clicked, a new checkout page will be created
271
+ * for that customer with certain checkout information already populated.
272
+ *
273
+ * The customizable features include the option to allow or to lock coupon codes or gift cards. For example, if a store owner is
274
+ * using the checkout template to offer a flash sale to their social media followers, they may want to lock the option to apply an
275
+ * additional coupon on top of the sale being offered. If so, they can set `customization.lockedCoupon` to `true`.
276
+ *
277
+ * A checkout can be created with a checkout template by calling `createCheckoutFromTemplate()`. The site may add further customizations to the new checkout and then redirect the customer using the new checkout's `checkoutUrl`.
278
+ * @param checkoutTemplate - Checkout template to create.
279
+ * @public
280
+ * @documentationMaturity preview
281
+ * @requiredField checkoutTemplate
282
+ * @requiredField checkoutTemplate.customLineItems.descriptionLines
283
+ * @requiredField checkoutTemplate.customLineItems.descriptionLines.name
284
+ * @requiredField checkoutTemplate.customLineItems.itemType
285
+ * @requiredField checkoutTemplate.customLineItems.productName
286
+ * @requiredField checkoutTemplate.customLineItems.quantity
287
+ * @requiredField checkoutTemplate.lineItems.catalogReference
288
+ * @requiredField checkoutTemplate.lineItems.catalogReference.appId
289
+ * @requiredField checkoutTemplate.lineItems.catalogReference.catalogItemId
290
+ * @requiredField checkoutTemplate.lineItems.quantity
291
+ * @permissionId ECOM.CHECKOUT_TEMPLATE_CREATE
292
+ * @permissionScope Manage Stores - all permissions
293
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
294
+ * @permissionScope Manage eCommerce - all permissions
295
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
296
+ * @applicableIdentity APP
297
+ * @returns Created checkout template.
298
+ * @fqn wix.ecom.checkout_template.api.v1.CheckoutTemplateService.CreateCheckoutTemplate
299
+ */
300
+ export async function createCheckoutTemplate(checkoutTemplate) {
301
+ // @ts-ignore
302
+ const { httpClient, sideEffects } = arguments[1];
303
+ const payload = transformPaths(renameKeysFromSDKRequestToRESTRequest({
304
+ checkoutTemplate: checkoutTemplate,
305
+ }), [
306
+ {
307
+ transformFn: transformSDKImageToRESTImage,
308
+ paths: [
309
+ { path: 'checkoutTemplate.lineItems.catalogOverrideFields.image' },
310
+ { path: 'checkoutTemplate.customLineItems.media' },
311
+ ],
312
+ },
313
+ {
314
+ transformFn: transformSDKPageURLV2ToRESTPageURLV2,
315
+ paths: [{ path: 'checkoutTemplate.customLineItems.url' }],
316
+ },
317
+ ]);
318
+ const reqOpts = ambassadorWixEcomV1CheckoutTemplate.createCheckoutTemplate(payload);
319
+ sideEffects?.onSiteCall?.();
320
+ try {
321
+ const result = await httpClient.request(reqOpts);
322
+ sideEffects?.onSuccess?.(result);
323
+ return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
324
+ {
325
+ transformFn: transformRESTImageToSDKImage,
326
+ paths: [
327
+ { path: 'checkoutTemplate.lineItems.catalogOverrideFields.image' },
328
+ { path: 'checkoutTemplate.customLineItems.media' },
329
+ ],
330
+ },
331
+ {
332
+ transformFn: transformRESTPageURLV2ToSDKPageURLV2,
333
+ paths: [{ path: 'checkoutTemplate.customLineItems.url' }],
334
+ },
335
+ ]))?.checkoutTemplate;
336
+ }
337
+ catch (err) {
338
+ const transformedError = sdkTransformError(err, {
339
+ spreadPathsToArguments: {},
340
+ explicitPathsToArguments: { checkoutTemplate: '$[0]' },
341
+ singleArgumentUnchanged: false,
342
+ }, ['checkoutTemplate']);
343
+ sideEffects?.onError?.(err);
344
+ throw transformedError;
345
+ }
346
+ }
347
+ /**
348
+ * Retrieves a checkout template.
349
+ * @param checkoutTemplateId - ID of the checkout template to retrieve.
350
+ * @public
351
+ * @documentationMaturity preview
352
+ * @requiredField checkoutTemplateId
353
+ * @permissionId ECOM.CHECKOUT_TEMPLATE_READ
354
+ * @permissionScope Manage Stores - all permissions
355
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
356
+ * @permissionScope Manage eCommerce - all permissions
357
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
358
+ * @applicableIdentity APP
359
+ * @returns Retrieved checkout template.
360
+ * @fqn wix.ecom.checkout_template.api.v1.CheckoutTemplateService.GetCheckoutTemplate
361
+ */
362
+ export async function getCheckoutTemplate(checkoutTemplateId) {
363
+ // @ts-ignore
364
+ const { httpClient, sideEffects } = arguments[1];
365
+ const payload = renameKeysFromSDKRequestToRESTRequest({
366
+ checkoutTemplateId: checkoutTemplateId,
367
+ });
368
+ const reqOpts = ambassadorWixEcomV1CheckoutTemplate.getCheckoutTemplate(payload);
369
+ sideEffects?.onSiteCall?.();
370
+ try {
371
+ const result = await httpClient.request(reqOpts);
372
+ sideEffects?.onSuccess?.(result);
373
+ return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
374
+ {
375
+ transformFn: transformRESTImageToSDKImage,
376
+ paths: [
377
+ { path: 'checkoutTemplate.lineItems.catalogOverrideFields.image' },
378
+ { path: 'checkoutTemplate.customLineItems.media' },
379
+ ],
380
+ },
381
+ {
382
+ transformFn: transformRESTPageURLV2ToSDKPageURLV2,
383
+ paths: [{ path: 'checkoutTemplate.customLineItems.url' }],
384
+ },
385
+ ]))?.checkoutTemplate;
386
+ }
387
+ catch (err) {
388
+ const transformedError = sdkTransformError(err, {
389
+ spreadPathsToArguments: {},
390
+ explicitPathsToArguments: { checkoutTemplateId: '$[0]' },
391
+ singleArgumentUnchanged: false,
392
+ }, ['checkoutTemplateId']);
393
+ sideEffects?.onError?.(err);
394
+ throw transformedError;
395
+ }
396
+ }
397
+ /**
398
+ * Updates a checkout template.
399
+ *
400
+ * If the info in a checkout template is updated, only new checkouts created from this template will include the updated items. Checkouts previously
401
+ * created from this template before the update will not be affected.
402
+ * @param _id - Checkout template ID.
403
+ * @public
404
+ * @documentationMaturity preview
405
+ * @requiredField _id
406
+ * @requiredField checkoutTemplate
407
+ * @param checkoutTemplate - Checkout template info to update.
408
+ * @permissionId ECOM.CHECKOUT_TEMPLATE_UPDATE
409
+ * @permissionScope Manage Stores - all permissions
410
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
411
+ * @permissionScope Manage eCommerce - all permissions
412
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
413
+ * @applicableIdentity APP
414
+ * @returns Updated checkout template.
415
+ * @fqn wix.ecom.checkout_template.api.v1.CheckoutTemplateService.UpdateCheckoutTemplate
416
+ */
417
+ export async function updateCheckoutTemplate(_id, checkoutTemplate) {
418
+ // @ts-ignore
419
+ const { httpClient, sideEffects } = arguments[2];
420
+ const payload = transformPaths(renameKeysFromSDKRequestToRESTRequest({
421
+ checkoutTemplate: { ...checkoutTemplate, id: _id },
422
+ }), [
423
+ {
424
+ transformFn: transformSDKImageToRESTImage,
425
+ paths: [
426
+ { path: 'checkoutTemplate.lineItems.catalogOverrideFields.image' },
427
+ { path: 'checkoutTemplate.customLineItems.media' },
428
+ ],
429
+ },
430
+ {
431
+ transformFn: transformSDKPageURLV2ToRESTPageURLV2,
432
+ paths: [{ path: 'checkoutTemplate.customLineItems.url' }],
433
+ },
434
+ ]);
435
+ const reqOpts = ambassadorWixEcomV1CheckoutTemplate.updateCheckoutTemplate(payload);
436
+ sideEffects?.onSiteCall?.();
437
+ try {
438
+ const result = await httpClient.request(reqOpts);
439
+ sideEffects?.onSuccess?.(result);
440
+ return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
441
+ {
442
+ transformFn: transformRESTImageToSDKImage,
443
+ paths: [
444
+ { path: 'checkoutTemplate.lineItems.catalogOverrideFields.image' },
445
+ { path: 'checkoutTemplate.customLineItems.media' },
446
+ ],
447
+ },
448
+ {
449
+ transformFn: transformRESTPageURLV2ToSDKPageURLV2,
450
+ paths: [{ path: 'checkoutTemplate.customLineItems.url' }],
451
+ },
452
+ ]))?.checkoutTemplate;
453
+ }
454
+ catch (err) {
455
+ const transformedError = sdkTransformError(err, {
456
+ spreadPathsToArguments: { checkoutTemplate: '$[1]' },
457
+ explicitPathsToArguments: { 'checkoutTemplate.id': '$[0]' },
458
+ singleArgumentUnchanged: false,
459
+ }, ['_id', 'checkoutTemplate']);
460
+ sideEffects?.onError?.(err);
461
+ throw transformedError;
462
+ }
463
+ }
464
+ /**
465
+ * Deletes a checkout template.
466
+ *
467
+ * If a checkout template is deleted and a customer attempts to create a checkout with that `checkoutTemplateId` then
468
+ * the customer will be redirected to the domain site.
469
+ * @param checkoutTemplateId - ID of the checkout template to delete.
470
+ * @public
471
+ * @documentationMaturity preview
472
+ * @requiredField checkoutTemplateId
473
+ * @permissionId ECOM.CHECKOUT_TEMPLATE_DELETE
474
+ * @permissionScope Manage Stores - all permissions
475
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
476
+ * @permissionScope Manage eCommerce - all permissions
477
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
478
+ * @applicableIdentity APP
479
+ * @fqn wix.ecom.checkout_template.api.v1.CheckoutTemplateService.DeleteCheckoutTemplate
480
+ */
481
+ export async function deleteCheckoutTemplate(checkoutTemplateId) {
482
+ // @ts-ignore
483
+ const { httpClient, sideEffects } = arguments[1];
484
+ const payload = renameKeysFromSDKRequestToRESTRequest({
485
+ checkoutTemplateId: checkoutTemplateId,
486
+ });
487
+ const reqOpts = ambassadorWixEcomV1CheckoutTemplate.deleteCheckoutTemplate(payload);
488
+ sideEffects?.onSiteCall?.();
489
+ try {
490
+ const result = await httpClient.request(reqOpts);
491
+ sideEffects?.onSuccess?.(result);
492
+ }
493
+ catch (err) {
494
+ const transformedError = sdkTransformError(err, {
495
+ spreadPathsToArguments: {},
496
+ explicitPathsToArguments: { checkoutTemplateId: '$[0]' },
497
+ singleArgumentUnchanged: false,
498
+ }, ['checkoutTemplateId']);
499
+ sideEffects?.onError?.(err);
500
+ throw transformedError;
501
+ }
502
+ }
503
+ /**
504
+ * Creates a query to retrieve a list of checkout templates.
505
+ *
506
+ * The `queryCheckoutTemplates()` function builds a query to retrieve a list of checkout templates and returns a `CheckoutTemplatesQueryBuilder` object.
507
+ *
508
+ * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
509
+ *
510
+ * 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.
511
+ *
512
+ * `queryCheckoutTemplates()` runs with the following `CheckoutTemplatesQueryBuilder` default that you can override:
513
+ * + `ascending("_id")`
514
+ *
515
+ * 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"`.
516
+ *
517
+ * 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`.
518
+ * @public
519
+ * @documentationMaturity preview
520
+ * @permissionScope Manage Stores - all permissions
521
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
522
+ * @permissionScope Manage eCommerce - all permissions
523
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
524
+ * @permissionId ECOM.CHECKOUT_TEMPLATE_READ
525
+ * @applicableIdentity APP
526
+ * @fqn wix.ecom.checkout_template.api.v1.CheckoutTemplateService.QueryCheckoutTemplates
527
+ */
528
+ export function queryCheckoutTemplates() {
529
+ // @ts-ignore
530
+ const { httpClient, sideEffects } = arguments[0];
531
+ return queryBuilder({
532
+ func: async (payload) => {
533
+ const reqOpts = ambassadorWixEcomV1CheckoutTemplate.queryCheckoutTemplates(payload);
534
+ sideEffects?.onSiteCall?.();
535
+ try {
536
+ const result = await httpClient.request(reqOpts);
537
+ sideEffects?.onSuccess?.(result);
538
+ return result;
539
+ }
540
+ catch (err) {
541
+ sideEffects?.onError?.(err);
542
+ throw err;
543
+ }
544
+ },
545
+ requestTransformer: (query) => {
546
+ const args = [query, {}];
547
+ return renameKeysFromSDKRequestToRESTRequest({
548
+ ...args?.[1],
549
+ query: args?.[0],
550
+ });
551
+ },
552
+ responseTransformer: ({ data, }) => {
553
+ const transformedData = renameKeysFromRESTResponseToSDKResponse(transformPaths(data, [
554
+ {
555
+ transformFn: transformRESTImageToSDKImage,
556
+ paths: [
557
+ {
558
+ path: 'checkoutTemplates.lineItems.catalogOverrideFields.image',
559
+ },
560
+ { path: 'checkoutTemplates.customLineItems.media' },
561
+ ],
562
+ },
563
+ {
564
+ transformFn: transformRESTPageURLV2ToSDKPageURLV2,
565
+ paths: [{ path: 'checkoutTemplates.customLineItems.url' }],
566
+ },
567
+ ]));
568
+ return {
569
+ items: transformedData?.checkoutTemplates,
570
+ pagingMetadata: transformedData?.pagingMetadata,
571
+ };
572
+ },
573
+ errorTransformer: (err) => {
574
+ const transformedError = sdkTransformError(err, {
575
+ spreadPathsToArguments: {},
576
+ explicitPathsToArguments: { query: '$[0]' },
577
+ singleArgumentUnchanged: false,
578
+ });
579
+ throw transformedError;
580
+ },
581
+ pagingMethod: 'CURSOR',
582
+ transformationPaths: {},
583
+ });
584
+ }
585
+ /**
586
+ * Creates a new checkout based on the checkout template.
587
+ *
588
+ * Before using this function, you must have a checkout template available. Create a checkout template with `createCheckoutTemplate()`.
589
+ *
590
+ * The customer can be directed to the new checkout using the checkout's `checkoutUrl`.
591
+ * @param checkoutTemplateId - ID of the checkout template to use to create a checkout from.
592
+ * @param siteId - ID of the site associated with the checkout template.
593
+ * @public
594
+ * @documentationMaturity preview
595
+ * @requiredField checkoutTemplateId
596
+ * @requiredField siteId
597
+ * @permissionId ECOM.CHECKOUT_TEMPLATE_CREATE_CHECKOUT
598
+ * @permissionScope Manage Stores - all permissions
599
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
600
+ * @permissionScope Manage eCommerce - all permissions
601
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
602
+ * @applicableIdentity APP
603
+ * @applicableIdentity VISITOR
604
+ * @fqn wix.ecom.checkout_template.api.v1.CheckoutTemplateService.CreateCheckoutFromTemplate
605
+ */
606
+ export async function createCheckoutFromTemplate(checkoutTemplateId, siteId) {
607
+ // @ts-ignore
608
+ const { httpClient, sideEffects } = arguments[2];
609
+ const payload = renameKeysFromSDKRequestToRESTRequest({
610
+ checkoutTemplateId: checkoutTemplateId,
611
+ siteId: siteId,
612
+ });
613
+ const reqOpts = ambassadorWixEcomV1CheckoutTemplate.createCheckoutFromTemplate(payload);
614
+ sideEffects?.onSiteCall?.();
615
+ try {
616
+ const result = await httpClient.request(reqOpts);
617
+ sideEffects?.onSuccess?.(result);
618
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
619
+ }
620
+ catch (err) {
621
+ const transformedError = sdkTransformError(err, {
622
+ spreadPathsToArguments: {},
623
+ explicitPathsToArguments: {
624
+ checkoutTemplateId: '$[0]',
625
+ siteId: '$[1]',
626
+ },
627
+ singleArgumentUnchanged: false,
628
+ }, ['checkoutTemplateId', 'siteId']);
629
+ sideEffects?.onError?.(err);
630
+ throw transformedError;
631
+ }
632
+ }
633
+ /**
634
+ * Creates a new checkout based on the checkout template and redirects to the new checkout page.
635
+ *
636
+ * Before using this function, you must have a checkout template available. Create a checkout template with `createCheckoutTemplate()`.
637
+ *
638
+ * To build a URL that uses this function, follow this format:
639
+ * `https://www.wixapis.com/ecom/v1/checkout-templates/{checkoutTemplateId}/create-and-redirect-to-checkout?siteId={siteId}`
640
+ *
641
+ * To create a checkout but not automatically redirect to the checkout page, use `createCheckoutFromTemplate()`.
642
+ * @param checkoutTemplateId - ID of the checkout template to use to create a checkout.
643
+ * @param siteId - ID of the site associated with the checkout template.
644
+ * @public
645
+ * @documentationMaturity preview
646
+ * @requiredField checkoutTemplateId
647
+ * @requiredField siteId
648
+ * @fqn wix.ecom.checkout_template.api.v1.CheckoutTemplateService.CreateAndRedirectToCheckout
649
+ */
650
+ export async function createAndRedirectToCheckout(checkoutTemplateId, siteId) {
651
+ // @ts-ignore
652
+ const { httpClient, sideEffects } = arguments[2];
653
+ const payload = renameKeysFromSDKRequestToRESTRequest({
654
+ checkoutTemplateId: checkoutTemplateId,
655
+ siteId: siteId,
656
+ });
657
+ const reqOpts = ambassadorWixEcomV1CheckoutTemplate.createAndRedirectToCheckout(payload);
658
+ sideEffects?.onSiteCall?.();
659
+ try {
660
+ const result = await httpClient.request(reqOpts);
661
+ sideEffects?.onSuccess?.(result);
662
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
663
+ }
664
+ catch (err) {
665
+ const transformedError = sdkTransformError(err, {
666
+ spreadPathsToArguments: {},
667
+ explicitPathsToArguments: {
668
+ checkoutTemplateId: '$[0]',
669
+ siteId: '$[1]',
670
+ },
671
+ singleArgumentUnchanged: false,
672
+ }, ['checkoutTemplateId', 'siteId']);
673
+ sideEffects?.onError?.(err);
674
+ throw transformedError;
675
+ }
676
+ }
677
+ //# sourceMappingURL=ecom-v1-checkout-template-checkout-templates.universal.js.map