@wix/auto_sdk_ecom_cart-v-2 1.0.19 → 1.0.21
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.
- package/build/cjs/meta.d.ts +395 -1
- package/build/cjs/meta.js +197 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/meta.d.mts +395 -1
- package/build/es/meta.mjs +178 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/meta.d.ts +395 -1
- package/build/internal/cjs/meta.js +197 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/meta.d.mts +395 -1
- package/build/internal/es/meta.mjs +178 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/es/meta.d.mts
CHANGED
|
@@ -425,6 +425,16 @@ interface Color {
|
|
|
425
425
|
/** HEX or RGB color code for display. */
|
|
426
426
|
code?: string | null;
|
|
427
427
|
}
|
|
428
|
+
declare enum DescriptionLineType {
|
|
429
|
+
/** Unrecognized type. */
|
|
430
|
+
UNRECOGNISED = "UNRECOGNISED",
|
|
431
|
+
/** Plain text type. */
|
|
432
|
+
PLAIN_TEXT = "PLAIN_TEXT",
|
|
433
|
+
/** Color type. */
|
|
434
|
+
COLOR = "COLOR"
|
|
435
|
+
}
|
|
436
|
+
/** @enumType */
|
|
437
|
+
type DescriptionLineTypeWithLiterals = DescriptionLineType | 'UNRECOGNISED' | 'PLAIN_TEXT' | 'COLOR';
|
|
428
438
|
interface PhysicalProperties {
|
|
429
439
|
/** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */
|
|
430
440
|
weight?: number | null;
|
|
@@ -660,6 +670,32 @@ interface Description {
|
|
|
660
670
|
*/
|
|
661
671
|
translated?: string | null;
|
|
662
672
|
}
|
|
673
|
+
interface SecuredMedia {
|
|
674
|
+
/**
|
|
675
|
+
* Media ID in Wix Media Manager.
|
|
676
|
+
* @minLength 1
|
|
677
|
+
* @maxLength 100
|
|
678
|
+
*/
|
|
679
|
+
id?: string;
|
|
680
|
+
/**
|
|
681
|
+
* Original filename.
|
|
682
|
+
* @minLength 1
|
|
683
|
+
* @maxLength 1000
|
|
684
|
+
*/
|
|
685
|
+
fileName?: string;
|
|
686
|
+
/** File type. */
|
|
687
|
+
fileType?: FileTypeWithLiterals;
|
|
688
|
+
}
|
|
689
|
+
declare enum FileType {
|
|
690
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
691
|
+
SECURE_PICTURE = "SECURE_PICTURE",
|
|
692
|
+
SECURE_VIDEO = "SECURE_VIDEO",
|
|
693
|
+
SECURE_DOCUMENT = "SECURE_DOCUMENT",
|
|
694
|
+
SECURE_MUSIC = "SECURE_MUSIC",
|
|
695
|
+
SECURE_ARCHIVE = "SECURE_ARCHIVE"
|
|
696
|
+
}
|
|
697
|
+
/** @enumType */
|
|
698
|
+
type FileTypeWithLiterals = FileType | 'UNSPECIFIED' | 'SECURE_PICTURE' | 'SECURE_VIDEO' | 'SECURE_DOCUMENT' | 'SECURE_MUSIC' | 'SECURE_ARCHIVE';
|
|
663
699
|
interface ServiceProperties {
|
|
664
700
|
/**
|
|
665
701
|
* Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
|
|
@@ -869,6 +905,18 @@ interface ItemDiscount {
|
|
|
869
905
|
/** The amount discounted from the item's sale price (per unit). */
|
|
870
906
|
amountOff?: MultiCurrencyPrice;
|
|
871
907
|
}
|
|
908
|
+
interface Scope {
|
|
909
|
+
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
910
|
+
namespace?: string;
|
|
911
|
+
/** Coupon scope's applied group (e.g., event or ticket in Wix Events) */
|
|
912
|
+
group?: Group;
|
|
913
|
+
}
|
|
914
|
+
interface Group {
|
|
915
|
+
/** Coupon scope's group (e.g., product or collection in Wix Stores). See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */
|
|
916
|
+
name?: string;
|
|
917
|
+
/** Item ID (when the coupon scope is limited to just one item). */
|
|
918
|
+
entityId?: string | null;
|
|
919
|
+
}
|
|
872
920
|
interface Coupon {
|
|
873
921
|
/**
|
|
874
922
|
* ID of the coupon in the Cart.
|
|
@@ -1365,6 +1413,34 @@ interface CartSettings {
|
|
|
1365
1413
|
*/
|
|
1366
1414
|
manualPaymentDisabled?: boolean;
|
|
1367
1415
|
}
|
|
1416
|
+
interface CustomField {
|
|
1417
|
+
/** Custom field value. */
|
|
1418
|
+
value?: any;
|
|
1419
|
+
/**
|
|
1420
|
+
* Custom field title.
|
|
1421
|
+
* @minLength 1
|
|
1422
|
+
* @maxLength 500
|
|
1423
|
+
*/
|
|
1424
|
+
title?: string;
|
|
1425
|
+
/**
|
|
1426
|
+
* Translated custom field title.
|
|
1427
|
+
* @minLength 1
|
|
1428
|
+
* @maxLength 500
|
|
1429
|
+
*/
|
|
1430
|
+
translatedTitle?: string | null;
|
|
1431
|
+
}
|
|
1432
|
+
interface LegacyFields {
|
|
1433
|
+
/**
|
|
1434
|
+
* The applied discounts of the Cart.
|
|
1435
|
+
* Discounts that are no longer applied are not included in this list.
|
|
1436
|
+
* @maxSize 100
|
|
1437
|
+
*/
|
|
1438
|
+
appliedDiscounts?: Discount[];
|
|
1439
|
+
/** The coupon discount amount. */
|
|
1440
|
+
couponDiscount?: MultiCurrencyPrice;
|
|
1441
|
+
/** The sum of all line items after applying all discounts. */
|
|
1442
|
+
subtotalAfterCouponDiscount?: MultiCurrencyPrice;
|
|
1443
|
+
}
|
|
1368
1444
|
interface Discount {
|
|
1369
1445
|
/** The display name of the discount. */
|
|
1370
1446
|
name?: TranslatableString;
|
|
@@ -1924,6 +2000,14 @@ declare enum NameInLineItem {
|
|
|
1924
2000
|
}
|
|
1925
2001
|
/** @enumType */
|
|
1926
2002
|
type NameInLineItemWithLiterals = NameInLineItem | 'LINE_ITEM_DEFAULT';
|
|
2003
|
+
declare enum SuggestedFix {
|
|
2004
|
+
/** No suggested fix is specified. The user should refer to the violation description to resolve the issue. */
|
|
2005
|
+
UNKNOWN_SUGGESTED_FIX = "UNKNOWN_SUGGESTED_FIX",
|
|
2006
|
+
/** The line item should be removed from the cart or checkout to resolve the violation. */
|
|
2007
|
+
REMOVE_LINE_ITEM = "REMOVE_LINE_ITEM"
|
|
2008
|
+
}
|
|
2009
|
+
/** @enumType */
|
|
2010
|
+
type SuggestedFixWithLiterals = SuggestedFix | 'UNKNOWN_SUGGESTED_FIX' | 'REMOVE_LINE_ITEM';
|
|
1927
2011
|
/** General (other) violation. */
|
|
1928
2012
|
interface Other {
|
|
1929
2013
|
/** Location on a checkout or a cart page where a general (other) violation will be displayed. */
|
|
@@ -1936,6 +2020,42 @@ interface LineItem {
|
|
|
1936
2020
|
/** ID of the line item containing the violation. */
|
|
1937
2021
|
id?: string | null;
|
|
1938
2022
|
}
|
|
2023
|
+
interface CreateCurrentCartRequest {
|
|
2024
|
+
/** Cart to be created. */
|
|
2025
|
+
cart?: Cart;
|
|
2026
|
+
/**
|
|
2027
|
+
* A list of catalog items to add to the cart.
|
|
2028
|
+
* @maxSize 300
|
|
2029
|
+
*/
|
|
2030
|
+
catalogItems?: CatalogItemInput[];
|
|
2031
|
+
/**
|
|
2032
|
+
* A list of custom items to add to the cart.
|
|
2033
|
+
* Custom line items don't trigger the Catalog service plugin.
|
|
2034
|
+
*
|
|
2035
|
+
* To access and manage custom line items, your app must have the permission scope named "Manage eCommerce - Admin Permissions".
|
|
2036
|
+
* Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
|
|
2037
|
+
* @maxSize 300
|
|
2038
|
+
*/
|
|
2039
|
+
customItems?: CustomItemInput[];
|
|
2040
|
+
/**
|
|
2041
|
+
* Coupons to apply.
|
|
2042
|
+
* Currently only one is supported.
|
|
2043
|
+
* If the coupon code is invalid, the cart will be created without it.
|
|
2044
|
+
* @maxSize 1
|
|
2045
|
+
* @minLength 1
|
|
2046
|
+
* @maxLength 50
|
|
2047
|
+
*/
|
|
2048
|
+
couponCodes?: string[];
|
|
2049
|
+
/**
|
|
2050
|
+
* Gift cards to add.
|
|
2051
|
+
* Currently only one is support.
|
|
2052
|
+
* If the gift card code is invalid, the cart will be created without it.
|
|
2053
|
+
* @maxSize 1
|
|
2054
|
+
* @minLength 8
|
|
2055
|
+
* @maxLength 20
|
|
2056
|
+
*/
|
|
2057
|
+
giftCardCodes?: string[];
|
|
2058
|
+
}
|
|
1939
2059
|
interface CatalogItemInput {
|
|
1940
2060
|
/** A reference to the catalog item. */
|
|
1941
2061
|
catalogReference?: CatalogReference;
|
|
@@ -2102,6 +2222,46 @@ interface CustomItemPaymentConfig {
|
|
|
2102
2222
|
*/
|
|
2103
2223
|
paymentOption?: PaymentOptionTypeWithLiterals;
|
|
2104
2224
|
}
|
|
2225
|
+
interface CreateCurrentCartResponse {
|
|
2226
|
+
/** The created Cart. */
|
|
2227
|
+
cart?: Cart;
|
|
2228
|
+
}
|
|
2229
|
+
interface GetCurrentCartRequest {
|
|
2230
|
+
}
|
|
2231
|
+
interface GetCurrentCartResponse {
|
|
2232
|
+
/** The requested Cart. */
|
|
2233
|
+
cart?: Cart;
|
|
2234
|
+
}
|
|
2235
|
+
interface UpdateCurrentCartRequest {
|
|
2236
|
+
/** Cart to be updated, may be partial. */
|
|
2237
|
+
cart?: Cart;
|
|
2238
|
+
}
|
|
2239
|
+
interface UpdateCurrentCartResponse {
|
|
2240
|
+
/** Updated Cart. */
|
|
2241
|
+
cart?: Cart;
|
|
2242
|
+
}
|
|
2243
|
+
interface DeleteCurrentCartRequest {
|
|
2244
|
+
}
|
|
2245
|
+
interface DeleteCurrentCartResponse {
|
|
2246
|
+
}
|
|
2247
|
+
interface RefreshCurrentCartRequest {
|
|
2248
|
+
}
|
|
2249
|
+
interface RefreshCurrentCartResponse {
|
|
2250
|
+
/** Synchronized Cart. */
|
|
2251
|
+
cart?: Cart;
|
|
2252
|
+
}
|
|
2253
|
+
interface CalculateCurrentCartRequest {
|
|
2254
|
+
/**
|
|
2255
|
+
* Specifies the level of **business validation** to perform during cart calculation,
|
|
2256
|
+
* by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
|
|
2257
|
+
*/
|
|
2258
|
+
validationsConfig?: ValidationsConfigWithLiterals;
|
|
2259
|
+
/**
|
|
2260
|
+
* Optional custom configuration for the calculation.
|
|
2261
|
+
* If not provided, all price components are calculated by default.
|
|
2262
|
+
*/
|
|
2263
|
+
customCalculationConfig?: CalculationConfig;
|
|
2264
|
+
}
|
|
2105
2265
|
declare enum ValidationsConfig {
|
|
2106
2266
|
UNKNOWN_VALIDATIONS_CONFIG = "UNKNOWN_VALIDATIONS_CONFIG",
|
|
2107
2267
|
/** No business validations are performed. */
|
|
@@ -2136,6 +2296,49 @@ interface CalculationConfig {
|
|
|
2136
2296
|
*/
|
|
2137
2297
|
calculateGiftCards?: boolean;
|
|
2138
2298
|
}
|
|
2299
|
+
interface CalculateCurrentCartResponse {
|
|
2300
|
+
/** The Cart that was calculated. */
|
|
2301
|
+
cart?: Cart;
|
|
2302
|
+
/** The calculation summary. */
|
|
2303
|
+
summary?: CartSummary;
|
|
2304
|
+
}
|
|
2305
|
+
interface AddLineItemsToCurrentCartRequest {
|
|
2306
|
+
/**
|
|
2307
|
+
* A list of catalog items to add to the cart.
|
|
2308
|
+
* @maxSize 300
|
|
2309
|
+
*/
|
|
2310
|
+
catalogItems?: CatalogItemInput[];
|
|
2311
|
+
/**
|
|
2312
|
+
* A list of custom items to add to the cart.
|
|
2313
|
+
* @maxSize 300
|
|
2314
|
+
*/
|
|
2315
|
+
customItems?: CustomItemInput[];
|
|
2316
|
+
}
|
|
2317
|
+
interface AddLineItemsToCurrentCartResponse {
|
|
2318
|
+
/** Updated Cart. */
|
|
2319
|
+
cart?: Cart;
|
|
2320
|
+
}
|
|
2321
|
+
interface RemoveLineItemsFromCurrentCartRequest {
|
|
2322
|
+
/**
|
|
2323
|
+
* Line item IDs to remove from cart.
|
|
2324
|
+
* @format GUID
|
|
2325
|
+
* @minSize 1
|
|
2326
|
+
* @maxSize 100
|
|
2327
|
+
*/
|
|
2328
|
+
lineItemIds?: string[];
|
|
2329
|
+
}
|
|
2330
|
+
interface RemoveLineItemsFromCurrentCartResponse {
|
|
2331
|
+
/** Updated Cart. */
|
|
2332
|
+
cart?: Cart;
|
|
2333
|
+
}
|
|
2334
|
+
interface UpdateLineItemsInCurrentCartRequest {
|
|
2335
|
+
/**
|
|
2336
|
+
* Line item updates to apply.
|
|
2337
|
+
* @minSize 1
|
|
2338
|
+
* @maxSize 100
|
|
2339
|
+
*/
|
|
2340
|
+
lineItems?: LineItemUpdate[];
|
|
2341
|
+
}
|
|
2139
2342
|
interface LineItemUpdate {
|
|
2140
2343
|
/**
|
|
2141
2344
|
* Line item ID to update.
|
|
@@ -2163,6 +2366,195 @@ interface SelectedMembershipUpdate {
|
|
|
2163
2366
|
*/
|
|
2164
2367
|
newMembership?: SelectedMembership;
|
|
2165
2368
|
}
|
|
2369
|
+
interface UpdateLineItemsInCurrentCartResponse {
|
|
2370
|
+
/** Updated Cart. */
|
|
2371
|
+
cart?: Cart;
|
|
2372
|
+
}
|
|
2373
|
+
interface AddCouponToCurrentCartRequest {
|
|
2374
|
+
/**
|
|
2375
|
+
* Coupon to apply.
|
|
2376
|
+
*
|
|
2377
|
+
* Currently only one is supported.
|
|
2378
|
+
* @minLength 1
|
|
2379
|
+
* @maxLength 50
|
|
2380
|
+
*/
|
|
2381
|
+
couponCode?: string;
|
|
2382
|
+
}
|
|
2383
|
+
interface AddCouponToCurrentCartResponse {
|
|
2384
|
+
/** Updated Cart. */
|
|
2385
|
+
cart?: Cart;
|
|
2386
|
+
}
|
|
2387
|
+
interface RemoveCouponFromCurrentCartRequest {
|
|
2388
|
+
/**
|
|
2389
|
+
* Coupon ID.
|
|
2390
|
+
* @format GUID
|
|
2391
|
+
*/
|
|
2392
|
+
couponId?: string;
|
|
2393
|
+
}
|
|
2394
|
+
interface RemoveCouponFromCurrentCartResponse {
|
|
2395
|
+
/** Updated Cart. */
|
|
2396
|
+
cart?: Cart;
|
|
2397
|
+
}
|
|
2398
|
+
interface AddGiftCardToCurrentCartRequest {
|
|
2399
|
+
/**
|
|
2400
|
+
* Gift card code.
|
|
2401
|
+
*
|
|
2402
|
+
* Currently only one is supported.
|
|
2403
|
+
* @maxLength 50
|
|
2404
|
+
*/
|
|
2405
|
+
giftCardCode?: string;
|
|
2406
|
+
}
|
|
2407
|
+
interface AddGiftCardToCurrentCartResponse {
|
|
2408
|
+
/** Updated Cart. */
|
|
2409
|
+
cart?: Cart;
|
|
2410
|
+
}
|
|
2411
|
+
interface RemoveGiftCardFromCurrentCartRequest {
|
|
2412
|
+
/**
|
|
2413
|
+
* Gift card ID.
|
|
2414
|
+
* @format GUID
|
|
2415
|
+
*/
|
|
2416
|
+
giftCardId?: string;
|
|
2417
|
+
}
|
|
2418
|
+
interface RemoveGiftCardFromCurrentCartResponse {
|
|
2419
|
+
/** Updated Cart. */
|
|
2420
|
+
cart?: Cart;
|
|
2421
|
+
}
|
|
2422
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
2423
|
+
createdEvent?: EntityCreatedEvent;
|
|
2424
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
2425
|
+
deletedEvent?: EntityDeletedEvent;
|
|
2426
|
+
actionEvent?: ActionEvent;
|
|
2427
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
2428
|
+
id?: string;
|
|
2429
|
+
/**
|
|
2430
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
2431
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
2432
|
+
*/
|
|
2433
|
+
entityFqdn?: string;
|
|
2434
|
+
/**
|
|
2435
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
2436
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
2437
|
+
*/
|
|
2438
|
+
slug?: string;
|
|
2439
|
+
/** ID of the entity associated with the event. */
|
|
2440
|
+
entityId?: string;
|
|
2441
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
2442
|
+
eventTime?: Date | null;
|
|
2443
|
+
/**
|
|
2444
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
2445
|
+
* (for example, GDPR).
|
|
2446
|
+
*/
|
|
2447
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
2448
|
+
/** If present, indicates the action that triggered the event. */
|
|
2449
|
+
originatedFrom?: string | null;
|
|
2450
|
+
/**
|
|
2451
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
2452
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
2453
|
+
*/
|
|
2454
|
+
entityEventSequence?: string | null;
|
|
2455
|
+
}
|
|
2456
|
+
/** @oneof */
|
|
2457
|
+
interface DomainEventBodyOneOf {
|
|
2458
|
+
createdEvent?: EntityCreatedEvent;
|
|
2459
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
2460
|
+
deletedEvent?: EntityDeletedEvent;
|
|
2461
|
+
actionEvent?: ActionEvent;
|
|
2462
|
+
}
|
|
2463
|
+
interface EntityCreatedEvent {
|
|
2464
|
+
entityAsJson?: string;
|
|
2465
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
2466
|
+
restoreInfo?: RestoreInfo;
|
|
2467
|
+
}
|
|
2468
|
+
interface RestoreInfo {
|
|
2469
|
+
deletedDate?: Date | null;
|
|
2470
|
+
}
|
|
2471
|
+
interface EntityUpdatedEvent {
|
|
2472
|
+
/**
|
|
2473
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
2474
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
2475
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
2476
|
+
*/
|
|
2477
|
+
currentEntityAsJson?: string;
|
|
2478
|
+
}
|
|
2479
|
+
interface EntityDeletedEvent {
|
|
2480
|
+
/** Entity that was deleted. */
|
|
2481
|
+
deletedEntityAsJson?: string | null;
|
|
2482
|
+
}
|
|
2483
|
+
interface ActionEvent {
|
|
2484
|
+
bodyAsJson?: string;
|
|
2485
|
+
}
|
|
2486
|
+
interface MessageEnvelope {
|
|
2487
|
+
/**
|
|
2488
|
+
* App instance ID.
|
|
2489
|
+
* @format GUID
|
|
2490
|
+
*/
|
|
2491
|
+
instanceId?: string | null;
|
|
2492
|
+
/**
|
|
2493
|
+
* Event type.
|
|
2494
|
+
* @maxLength 150
|
|
2495
|
+
*/
|
|
2496
|
+
eventType?: string;
|
|
2497
|
+
/** The identification type and identity data. */
|
|
2498
|
+
identity?: IdentificationData;
|
|
2499
|
+
/** Stringify payload. */
|
|
2500
|
+
data?: string;
|
|
2501
|
+
}
|
|
2502
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
2503
|
+
/**
|
|
2504
|
+
* ID of a site visitor that has not logged in to the site.
|
|
2505
|
+
* @format GUID
|
|
2506
|
+
*/
|
|
2507
|
+
anonymousVisitorId?: string;
|
|
2508
|
+
/**
|
|
2509
|
+
* ID of a site visitor that has logged in to the site.
|
|
2510
|
+
* @format GUID
|
|
2511
|
+
*/
|
|
2512
|
+
memberId?: string;
|
|
2513
|
+
/**
|
|
2514
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
2515
|
+
* @format GUID
|
|
2516
|
+
*/
|
|
2517
|
+
wixUserId?: string;
|
|
2518
|
+
/**
|
|
2519
|
+
* ID of an app.
|
|
2520
|
+
* @format GUID
|
|
2521
|
+
*/
|
|
2522
|
+
appId?: string;
|
|
2523
|
+
/** @readonly */
|
|
2524
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
2525
|
+
}
|
|
2526
|
+
/** @oneof */
|
|
2527
|
+
interface IdentificationDataIdOneOf {
|
|
2528
|
+
/**
|
|
2529
|
+
* ID of a site visitor that has not logged in to the site.
|
|
2530
|
+
* @format GUID
|
|
2531
|
+
*/
|
|
2532
|
+
anonymousVisitorId?: string;
|
|
2533
|
+
/**
|
|
2534
|
+
* ID of a site visitor that has logged in to the site.
|
|
2535
|
+
* @format GUID
|
|
2536
|
+
*/
|
|
2537
|
+
memberId?: string;
|
|
2538
|
+
/**
|
|
2539
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
2540
|
+
* @format GUID
|
|
2541
|
+
*/
|
|
2542
|
+
wixUserId?: string;
|
|
2543
|
+
/**
|
|
2544
|
+
* ID of an app.
|
|
2545
|
+
* @format GUID
|
|
2546
|
+
*/
|
|
2547
|
+
appId?: string;
|
|
2548
|
+
}
|
|
2549
|
+
declare enum WebhookIdentityType {
|
|
2550
|
+
UNKNOWN = "UNKNOWN",
|
|
2551
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
2552
|
+
MEMBER = "MEMBER",
|
|
2553
|
+
WIX_USER = "WIX_USER",
|
|
2554
|
+
APP = "APP"
|
|
2555
|
+
}
|
|
2556
|
+
/** @enumType */
|
|
2557
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
2166
2558
|
interface CreateCartRequest {
|
|
2167
2559
|
/** Cart to be created. */
|
|
2168
2560
|
cart?: Cart;
|
|
@@ -2494,6 +2886,8 @@ interface MarkCartAsCompletedResponse {
|
|
|
2494
2886
|
/** Updated Cart. */
|
|
2495
2887
|
cart?: Cart;
|
|
2496
2888
|
}
|
|
2889
|
+
interface Empty {
|
|
2890
|
+
}
|
|
2497
2891
|
interface HandleAsyncCheckoutCompletionRequest {
|
|
2498
2892
|
/**
|
|
2499
2893
|
* Server-signed JWT token with required information to complete checkout
|
|
@@ -2569,4 +2963,4 @@ declare function markCartAsCompleted(): __PublicMethodMetaInfo<'POST', {
|
|
|
2569
2963
|
}, MarkCartAsCompletedRequest$1, MarkCartAsCompletedRequest, MarkCartAsCompletedResponse$1, MarkCartAsCompletedResponse>;
|
|
2570
2964
|
declare function handleAsyncCheckoutCompletion(): __PublicMethodMetaInfo<'POST', {}, HandleAsyncCheckoutCompletionRequest$1, HandleAsyncCheckoutCompletionRequest, RawHttpResponse$1, RawHttpResponse>;
|
|
2571
2965
|
|
|
2572
|
-
export { type __PublicMethodMetaInfo, addCoupon, addGiftCard, addLineItems, calculateCart, createCart, deleteCart, getCart, getCheckoutUrl, handleAsyncCheckoutCompletion, markCartAsCompleted, placeOrder, refreshCart, removeCoupon, removeGiftCard, removeLineItems, updateCart, updateLineItems };
|
|
2966
|
+
export { type ActionEvent as ActionEventOriginal, type AddCouponRequest as AddCouponRequestOriginal, type AddCouponResponse as AddCouponResponseOriginal, type AddCouponToCurrentCartRequest as AddCouponToCurrentCartRequestOriginal, type AddCouponToCurrentCartResponse as AddCouponToCurrentCartResponseOriginal, type AddGiftCardRequest as AddGiftCardRequestOriginal, type AddGiftCardResponse as AddGiftCardResponseOriginal, type AddGiftCardToCurrentCartRequest as AddGiftCardToCurrentCartRequestOriginal, type AddGiftCardToCurrentCartResponse as AddGiftCardToCurrentCartResponseOriginal, type AddLineItemsRequest as AddLineItemsRequestOriginal, type AddLineItemsResponse as AddLineItemsResponseOriginal, type AddLineItemsToCurrentCartRequest as AddLineItemsToCurrentCartRequestOriginal, type AddLineItemsToCurrentCartResponse as AddLineItemsToCurrentCartResponseOriginal, type AdditionalFee as AdditionalFeeOriginal, type AdditionalFeeTax as AdditionalFeeTaxOriginal, type AddressLocation as AddressLocationOriginal, type Address as AddressOriginal, type ApplicationError as ApplicationErrorOriginal, type BusinessInfo as BusinessInfoOriginal, type CalculateCartRequest as CalculateCartRequestOriginal, type CalculateCartResponse as CalculateCartResponseOriginal, type CalculateCurrentCartRequest as CalculateCurrentCartRequestOriginal, type CalculateCurrentCartResponse as CalculateCurrentCartResponseOriginal, type CalculationConfig as CalculationConfigOriginal, type CalculationErrors as CalculationErrorsOriginal, type CalculationErrorsShippingCalculationErrorOneOf as CalculationErrorsShippingCalculationErrorOneOfOriginal, type CarrierError as CarrierErrorOriginal, type CarrierErrors as CarrierErrorsOriginal, type Cart as CartOriginal, type CartSettings as CartSettingsOriginal, type CartSource as CartSourceOriginal, type CartSummary as CartSummaryOriginal, type CatalogItemInput as CatalogItemInputOriginal, type CatalogOverrideFields as CatalogOverrideFieldsOriginal, type CatalogReference as CatalogReferenceOriginal, ChannelType as ChannelTypeOriginal, type ChannelTypeWithLiterals as ChannelTypeWithLiteralsOriginal, type Charge as ChargeOriginal, type Color as ColorOriginal, type Coupon as CouponOriginal, type CreateCartRequest as CreateCartRequestOriginal, type CreateCartResponse as CreateCartResponseOriginal, type CreateCurrentCartRequest as CreateCurrentCartRequestOriginal, type CreateCurrentCartResponse as CreateCurrentCartResponseOriginal, type CreatedByIdOneOf as CreatedByIdOneOfOriginal, type CreatedBy as CreatedByOriginal, type CustomContentReference as CustomContentReferenceOriginal, type CustomField as CustomFieldOriginal, type CustomItemAttributes as CustomItemAttributesOriginal, type CustomItemDeliveryConfig as CustomItemDeliveryConfigOriginal, type CustomItemInput as CustomItemInputOriginal, type CustomItemPaymentConfig as CustomItemPaymentConfigOriginal, type CustomItemPricingInfo as CustomItemPricingInfoOriginal, type CustomItemQuantityInfo as CustomItemQuantityInfoOriginal, type CustomItemSource as CustomItemSourceOriginal, type CustomItemTaxConfig as CustomItemTaxConfigOriginal, type CustomerInfoIdOneOf as CustomerInfoIdOneOfOriginal, type CustomerInfo as CustomerInfoOriginal, type DeleteCartRequest as DeleteCartRequestOriginal, type DeleteCartResponse as DeleteCartResponseOriginal, type DeleteCurrentCartRequest as DeleteCurrentCartRequestOriginal, type DeleteCurrentCartResponse as DeleteCurrentCartResponseOriginal, type DeliveryInfo as DeliveryInfoOriginal, type DeliveryMethod as DeliveryMethodOriginal, type DeliverySummary as DeliverySummaryOriginal, type DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOfOriginal, type DescriptionLineName as DescriptionLineNameOriginal, type DescriptionLine as DescriptionLineOriginal, DescriptionLineType as DescriptionLineTypeOriginal, type DescriptionLineTypeWithLiterals as DescriptionLineTypeWithLiteralsOriginal, type DescriptionLineValueOneOf as DescriptionLineValueOneOfOriginal, type Description as DescriptionOriginal, type DetailsKindOneOf as DetailsKindOneOfOriginal, type Details as DetailsOriginal, type DiscountBenefit as DiscountBenefitOriginal, type DiscountBenefitValueOneOf as DiscountBenefitValueOneOfOriginal, type Discount as DiscountOriginal, DiscountScope as DiscountScopeOriginal, type DiscountScopeWithLiterals as DiscountScopeWithLiteralsOriginal, type DiscountSource as DiscountSourceOriginal, DiscountSourceType as DiscountSourceTypeOriginal, type DiscountSourceTypeWithLiterals as DiscountSourceTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type ExternalReference as ExternalReferenceOriginal, type FieldViolation as FieldViolationOriginal, FileType as FileTypeOriginal, type FileTypeWithLiterals as FileTypeWithLiteralsOriginal, type FreeTrialPeriod as FreeTrialPeriodOriginal, type FullAddressContactDetails as FullAddressContactDetailsOriginal, type GetCartRequest as GetCartRequestOriginal, type GetCartResponse as GetCartResponseOriginal, type GetCheckoutURLRequest as GetCheckoutURLRequestOriginal, type GetCheckoutURLResponse as GetCheckoutURLResponseOriginal, type GetCurrentCartRequest as GetCurrentCartRequestOriginal, type GetCurrentCartResponse as GetCurrentCartResponseOriginal, type GiftCard as GiftCardOriginal, type GiftCardSummary as GiftCardSummaryOriginal, type Group as GroupOriginal, type HandleAsyncCheckoutCompletionRequest as HandleAsyncCheckoutCompletionRequestOriginal, type HeadersEntry as HeadersEntryOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type ItemAttributes as ItemAttributesOriginal, type ItemDeliveryConfig as ItemDeliveryConfigOriginal, type ItemDiscount as ItemDiscountOriginal, type ItemModifier as ItemModifierOriginal, type ItemPaymentConfig as ItemPaymentConfigOriginal, type ItemPriceBreakdown as ItemPriceBreakdownOriginal, type ItemPricingInfo as ItemPricingInfoOriginal, type ItemQuantityInfo as ItemQuantityInfoOriginal, type ItemSource as ItemSourceOriginal, ItemStatus as ItemStatusOriginal, type ItemStatusWithLiterals as ItemStatusWithLiteralsOriginal, type ItemTaxConfig as ItemTaxConfigOriginal, type ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOfOriginal, ItemTypeItemType as ItemTypeItemTypeOriginal, type ItemTypeItemTypeWithLiterals as ItemTypeItemTypeWithLiteralsOriginal, type ItemType as ItemTypeOriginal, type LegacyFields as LegacyFieldsOriginal, type LineItem as LineItemOriginal, type LineItemSummary as LineItemSummaryOriginal, type LineItemTax as LineItemTaxOriginal, type LineItemUpdate as LineItemUpdateOriginal, type MarkCartAsCompletedRequest as MarkCartAsCompletedRequestOriginal, type MarkCartAsCompletedResponse as MarkCartAsCompletedResponseOriginal, type Membership as MembershipOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type ModifierGroup as ModifierGroupOriginal, type MultiCurrencyPrice as MultiCurrencyPriceOriginal, NameInLineItem as NameInLineItemOriginal, type NameInLineItemWithLiterals as NameInLineItemWithLiteralsOriginal, NameInOther as NameInOtherOriginal, type NameInOtherWithLiterals as NameInOtherWithLiteralsOriginal, type Other as OtherOriginal, type PageUrlV2 as PageUrlV2Original, type PaymentInfo as PaymentInfoOriginal, type PaymentOption as PaymentOptionOriginal, PaymentOptionType as PaymentOptionTypeOriginal, type PaymentOptionTypeWithLiterals as PaymentOptionTypeWithLiteralsOriginal, type PaymentSummary as PaymentSummaryOriginal, type PhysicalProperties as PhysicalPropertiesOriginal, type PlaceOrderRequest as PlaceOrderRequestOriginal, type PlaceOrderResponse as PlaceOrderResponseOriginal, type PlainTextValue as PlainTextValueOriginal, type Policy as PolicyOriginal, type PriceDescription as PriceDescriptionOriginal, type PriceSummary as PriceSummaryOriginal, type QuantityUpdate as QuantityUpdateOriginal, type RawHttpResponse as RawHttpResponseOriginal, type RedirectUrls as RedirectUrlsOriginal, type RefreshCartRequest as RefreshCartRequestOriginal, type RefreshCartResponse as RefreshCartResponseOriginal, type RefreshCurrentCartRequest as RefreshCurrentCartRequestOriginal, type RefreshCurrentCartResponse as RefreshCurrentCartResponseOriginal, type RemoveCouponFromCurrentCartRequest as RemoveCouponFromCurrentCartRequestOriginal, type RemoveCouponFromCurrentCartResponse as RemoveCouponFromCurrentCartResponseOriginal, type RemoveCouponRequest as RemoveCouponRequestOriginal, type RemoveCouponResponse as RemoveCouponResponseOriginal, type RemoveGiftCardFromCurrentCartRequest as RemoveGiftCardFromCurrentCartRequestOriginal, type RemoveGiftCardFromCurrentCartResponse as RemoveGiftCardFromCurrentCartResponseOriginal, type RemoveGiftCardRequest as RemoveGiftCardRequestOriginal, type RemoveGiftCardResponse as RemoveGiftCardResponseOriginal, type RemoveLineItemsFromCurrentCartRequest as RemoveLineItemsFromCurrentCartRequestOriginal, type RemoveLineItemsFromCurrentCartResponse as RemoveLineItemsFromCurrentCartResponseOriginal, type RemoveLineItemsRequest as RemoveLineItemsRequestOriginal, type RemoveLineItemsResponse as RemoveLineItemsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, RuleType as RuleTypeOriginal, type RuleTypeWithLiterals as RuleTypeWithLiteralsOriginal, type Scope as ScopeOriginal, type SecuredMedia as SecuredMediaOriginal, type SelectedMembership as SelectedMembershipOriginal, type SelectedMembershipUpdate as SelectedMembershipUpdateOriginal, type ServiceProperties as ServicePropertiesOriginal, Severity as SeverityOriginal, type SeverityWithLiterals as SeverityWithLiteralsOriginal, type StreetAddress as StreetAddressOriginal, type SubscriptionCharges as SubscriptionChargesOriginal, SubscriptionFrequency as SubscriptionFrequencyOriginal, type SubscriptionFrequencyWithLiterals as SubscriptionFrequencyWithLiteralsOriginal, type SubscriptionOptionInfo as SubscriptionOptionInfoOriginal, type SubscriptionSettings as SubscriptionSettingsOriginal, SuggestedFix as SuggestedFixOriginal, type SuggestedFixWithLiterals as SuggestedFixWithLiteralsOriginal, type SystemError as SystemErrorOriginal, type Target as TargetOriginal, type TargetTargetTypeOneOf as TargetTargetTypeOneOfOriginal, type TaxDetails as TaxDetailsOriginal, type TaxInfo as TaxInfoOriginal, type Tax as TaxOriginal, type TaxSummary as TaxSummaryOriginal, type TaxableAddress as TaxableAddressOriginal, type TaxableAddressTaxableAddressDataOneOf as TaxableAddressTaxableAddressDataOneOfOriginal, TaxableAddressType as TaxableAddressTypeOriginal, type TaxableAddressTypeWithLiterals as TaxableAddressTypeWithLiteralsOriginal, type Title as TitleOriginal, type TranslatableString as TranslatableStringOriginal, type UpdateCartRequest as UpdateCartRequestOriginal, type UpdateCartResponse as UpdateCartResponseOriginal, type UpdateCurrentCartRequest as UpdateCurrentCartRequestOriginal, type UpdateCurrentCartResponse as UpdateCurrentCartResponseOriginal, type UpdateLineItemsInCurrentCartRequest as UpdateLineItemsInCurrentCartRequestOriginal, type UpdateLineItemsInCurrentCartResponse as UpdateLineItemsInCurrentCartResponseOriginal, type UpdateLineItemsRequest as UpdateLineItemsRequestOriginal, type UpdateLineItemsResponse as UpdateLineItemsResponseOriginal, type V2AdditionalFee as V2AdditionalFeeOriginal, type V2LineItem as V2LineItemOriginal, type ValidationError as ValidationErrorOriginal, ValidationsConfig as ValidationsConfigOriginal, type ValidationsConfigWithLiterals as ValidationsConfigWithLiteralsOriginal, type VatId as VatIdOriginal, VatType as VatTypeOriginal, type VatTypeWithLiterals as VatTypeWithLiteralsOriginal, type Violation as ViolationOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeightUnit as WeightUnitOriginal, type WeightUnitWithLiterals as WeightUnitWithLiteralsOriginal, type __PublicMethodMetaInfo, addCoupon, addGiftCard, addLineItems, calculateCart, createCart, deleteCart, getCart, getCheckoutUrl, handleAsyncCheckoutCompletion, markCartAsCompleted, placeOrder, refreshCart, removeCoupon, removeGiftCard, removeLineItems, updateCart, updateLineItems };
|
package/build/es/meta.mjs
CHANGED
|
@@ -981,6 +981,165 @@ function handleAsyncCheckoutCompletion(payload) {
|
|
|
981
981
|
return __handleAsyncCheckoutCompletion;
|
|
982
982
|
}
|
|
983
983
|
|
|
984
|
+
// src/ecom-v2-cart-cart-v-2.types.ts
|
|
985
|
+
var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
|
|
986
|
+
DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
|
|
987
|
+
DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
988
|
+
DescriptionLineType2["COLOR"] = "COLOR";
|
|
989
|
+
return DescriptionLineType2;
|
|
990
|
+
})(DescriptionLineType || {});
|
|
991
|
+
var PaymentOptionType = /* @__PURE__ */ ((PaymentOptionType2) => {
|
|
992
|
+
PaymentOptionType2["FULL_PAYMENT_ONLINE"] = "FULL_PAYMENT_ONLINE";
|
|
993
|
+
PaymentOptionType2["FULL_PAYMENT_OFFLINE"] = "FULL_PAYMENT_OFFLINE";
|
|
994
|
+
PaymentOptionType2["MEMBERSHIP"] = "MEMBERSHIP";
|
|
995
|
+
PaymentOptionType2["DEPOSIT_ONLINE"] = "DEPOSIT_ONLINE";
|
|
996
|
+
PaymentOptionType2["MEMBERSHIP_OFFLINE"] = "MEMBERSHIP_OFFLINE";
|
|
997
|
+
PaymentOptionType2["MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER"] = "MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER";
|
|
998
|
+
return PaymentOptionType2;
|
|
999
|
+
})(PaymentOptionType || {});
|
|
1000
|
+
var ItemTypeItemType = /* @__PURE__ */ ((ItemTypeItemType2) => {
|
|
1001
|
+
ItemTypeItemType2["UNRECOGNISED"] = "UNRECOGNISED";
|
|
1002
|
+
ItemTypeItemType2["PHYSICAL"] = "PHYSICAL";
|
|
1003
|
+
ItemTypeItemType2["DIGITAL"] = "DIGITAL";
|
|
1004
|
+
ItemTypeItemType2["GIFT_CARD"] = "GIFT_CARD";
|
|
1005
|
+
ItemTypeItemType2["SERVICE"] = "SERVICE";
|
|
1006
|
+
return ItemTypeItemType2;
|
|
1007
|
+
})(ItemTypeItemType || {});
|
|
1008
|
+
var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
|
|
1009
|
+
SubscriptionFrequency2["UNDEFINED"] = "UNDEFINED";
|
|
1010
|
+
SubscriptionFrequency2["DAY"] = "DAY";
|
|
1011
|
+
SubscriptionFrequency2["WEEK"] = "WEEK";
|
|
1012
|
+
SubscriptionFrequency2["MONTH"] = "MONTH";
|
|
1013
|
+
SubscriptionFrequency2["YEAR"] = "YEAR";
|
|
1014
|
+
return SubscriptionFrequency2;
|
|
1015
|
+
})(SubscriptionFrequency || {});
|
|
1016
|
+
var FileType = /* @__PURE__ */ ((FileType2) => {
|
|
1017
|
+
FileType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1018
|
+
FileType2["SECURE_PICTURE"] = "SECURE_PICTURE";
|
|
1019
|
+
FileType2["SECURE_VIDEO"] = "SECURE_VIDEO";
|
|
1020
|
+
FileType2["SECURE_DOCUMENT"] = "SECURE_DOCUMENT";
|
|
1021
|
+
FileType2["SECURE_MUSIC"] = "SECURE_MUSIC";
|
|
1022
|
+
FileType2["SECURE_ARCHIVE"] = "SECURE_ARCHIVE";
|
|
1023
|
+
return FileType2;
|
|
1024
|
+
})(FileType || {});
|
|
1025
|
+
var TaxableAddressType = /* @__PURE__ */ ((TaxableAddressType2) => {
|
|
1026
|
+
TaxableAddressType2["UNKNOWN_TAXABLE_ADDRESS"] = "UNKNOWN_TAXABLE_ADDRESS";
|
|
1027
|
+
TaxableAddressType2["BUSINESS"] = "BUSINESS";
|
|
1028
|
+
TaxableAddressType2["BILLING"] = "BILLING";
|
|
1029
|
+
TaxableAddressType2["SHIPPING"] = "SHIPPING";
|
|
1030
|
+
return TaxableAddressType2;
|
|
1031
|
+
})(TaxableAddressType || {});
|
|
1032
|
+
var ItemStatus = /* @__PURE__ */ ((ItemStatus2) => {
|
|
1033
|
+
ItemStatus2["UNKNOWN_ITEM_STATUS"] = "UNKNOWN_ITEM_STATUS";
|
|
1034
|
+
ItemStatus2["IN_STOCK"] = "IN_STOCK";
|
|
1035
|
+
ItemStatus2["PARTIALLY_IN_STOCK"] = "PARTIALLY_IN_STOCK";
|
|
1036
|
+
ItemStatus2["OUT_OF_STOCK"] = "OUT_OF_STOCK";
|
|
1037
|
+
ItemStatus2["REMOVED_FROM_CATALOG"] = "REMOVED_FROM_CATALOG";
|
|
1038
|
+
return ItemStatus2;
|
|
1039
|
+
})(ItemStatus || {});
|
|
1040
|
+
var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
1041
|
+
ChannelType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1042
|
+
ChannelType2["WEB"] = "WEB";
|
|
1043
|
+
ChannelType2["POS"] = "POS";
|
|
1044
|
+
ChannelType2["EBAY"] = "EBAY";
|
|
1045
|
+
ChannelType2["AMAZON"] = "AMAZON";
|
|
1046
|
+
ChannelType2["OTHER_PLATFORM"] = "OTHER_PLATFORM";
|
|
1047
|
+
ChannelType2["WIX_APP_STORE"] = "WIX_APP_STORE";
|
|
1048
|
+
ChannelType2["WIX_INVOICES"] = "WIX_INVOICES";
|
|
1049
|
+
ChannelType2["BACKOFFICE_MERCHANT"] = "BACKOFFICE_MERCHANT";
|
|
1050
|
+
ChannelType2["WISH"] = "WISH";
|
|
1051
|
+
ChannelType2["CLASS_PASS"] = "CLASS_PASS";
|
|
1052
|
+
ChannelType2["GLOBAL_E"] = "GLOBAL_E";
|
|
1053
|
+
ChannelType2["FACEBOOK"] = "FACEBOOK";
|
|
1054
|
+
ChannelType2["ETSY"] = "ETSY";
|
|
1055
|
+
ChannelType2["TIKTOK"] = "TIKTOK";
|
|
1056
|
+
ChannelType2["FAIRE_COM"] = "FAIRE_COM";
|
|
1057
|
+
ChannelType2["PAYPAL_AGENTIC_CHECKOUT"] = "PAYPAL_AGENTIC_CHECKOUT";
|
|
1058
|
+
return ChannelType2;
|
|
1059
|
+
})(ChannelType || {});
|
|
1060
|
+
var VatType = /* @__PURE__ */ ((VatType2) => {
|
|
1061
|
+
VatType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1062
|
+
VatType2["CPF"] = "CPF";
|
|
1063
|
+
VatType2["CNPJ"] = "CNPJ";
|
|
1064
|
+
return VatType2;
|
|
1065
|
+
})(VatType || {});
|
|
1066
|
+
var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
|
|
1067
|
+
WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
|
|
1068
|
+
WeightUnit2["KG"] = "KG";
|
|
1069
|
+
WeightUnit2["LB"] = "LB";
|
|
1070
|
+
return WeightUnit2;
|
|
1071
|
+
})(WeightUnit || {});
|
|
1072
|
+
var DiscountSourceType = /* @__PURE__ */ ((DiscountSourceType2) => {
|
|
1073
|
+
DiscountSourceType2["UNKNOWN_DISCOUNT_SOURCE_TYPE"] = "UNKNOWN_DISCOUNT_SOURCE_TYPE";
|
|
1074
|
+
DiscountSourceType2["AUTOMATIC_RULE"] = "AUTOMATIC_RULE";
|
|
1075
|
+
DiscountSourceType2["COUPON"] = "COUPON";
|
|
1076
|
+
return DiscountSourceType2;
|
|
1077
|
+
})(DiscountSourceType || {});
|
|
1078
|
+
var DiscountScope = /* @__PURE__ */ ((DiscountScope2) => {
|
|
1079
|
+
DiscountScope2["UNKNOWN_DISCOUNT_SCOPE"] = "UNKNOWN_DISCOUNT_SCOPE";
|
|
1080
|
+
DiscountScope2["CART_SUBTOTAL"] = "CART_SUBTOTAL";
|
|
1081
|
+
DiscountScope2["LINE_ITEM"] = "LINE_ITEM";
|
|
1082
|
+
DiscountScope2["DELIVERY"] = "DELIVERY";
|
|
1083
|
+
return DiscountScope2;
|
|
1084
|
+
})(DiscountScope || {});
|
|
1085
|
+
var RuleType = /* @__PURE__ */ ((RuleType2) => {
|
|
1086
|
+
RuleType2["VALIDATION"] = "VALIDATION";
|
|
1087
|
+
RuleType2["OTHER"] = "OTHER";
|
|
1088
|
+
RuleType2["MAX"] = "MAX";
|
|
1089
|
+
RuleType2["MIN"] = "MIN";
|
|
1090
|
+
RuleType2["MAX_LENGTH"] = "MAX_LENGTH";
|
|
1091
|
+
RuleType2["MIN_LENGTH"] = "MIN_LENGTH";
|
|
1092
|
+
RuleType2["MAX_SIZE"] = "MAX_SIZE";
|
|
1093
|
+
RuleType2["MIN_SIZE"] = "MIN_SIZE";
|
|
1094
|
+
RuleType2["FORMAT"] = "FORMAT";
|
|
1095
|
+
RuleType2["DECIMAL_LTE"] = "DECIMAL_LTE";
|
|
1096
|
+
RuleType2["DECIMAL_GTE"] = "DECIMAL_GTE";
|
|
1097
|
+
RuleType2["DECIMAL_LT"] = "DECIMAL_LT";
|
|
1098
|
+
RuleType2["DECIMAL_GT"] = "DECIMAL_GT";
|
|
1099
|
+
RuleType2["DECIMAL_MAX_SCALE"] = "DECIMAL_MAX_SCALE";
|
|
1100
|
+
RuleType2["INVALID_ENUM_VALUE"] = "INVALID_ENUM_VALUE";
|
|
1101
|
+
RuleType2["REQUIRED_FIELD"] = "REQUIRED_FIELD";
|
|
1102
|
+
RuleType2["FIELD_NOT_ALLOWED"] = "FIELD_NOT_ALLOWED";
|
|
1103
|
+
RuleType2["ONE_OF_ALIGNMENT"] = "ONE_OF_ALIGNMENT";
|
|
1104
|
+
RuleType2["EXACT_LENGTH"] = "EXACT_LENGTH";
|
|
1105
|
+
RuleType2["EXACT_SIZE"] = "EXACT_SIZE";
|
|
1106
|
+
RuleType2["REQUIRED_ONE_OF_FIELD"] = "REQUIRED_ONE_OF_FIELD";
|
|
1107
|
+
return RuleType2;
|
|
1108
|
+
})(RuleType || {});
|
|
1109
|
+
var Severity = /* @__PURE__ */ ((Severity2) => {
|
|
1110
|
+
Severity2["WARNING"] = "WARNING";
|
|
1111
|
+
Severity2["ERROR"] = "ERROR";
|
|
1112
|
+
return Severity2;
|
|
1113
|
+
})(Severity || {});
|
|
1114
|
+
var NameInOther = /* @__PURE__ */ ((NameInOther2) => {
|
|
1115
|
+
NameInOther2["OTHER_DEFAULT"] = "OTHER_DEFAULT";
|
|
1116
|
+
return NameInOther2;
|
|
1117
|
+
})(NameInOther || {});
|
|
1118
|
+
var NameInLineItem = /* @__PURE__ */ ((NameInLineItem2) => {
|
|
1119
|
+
NameInLineItem2["LINE_ITEM_DEFAULT"] = "LINE_ITEM_DEFAULT";
|
|
1120
|
+
return NameInLineItem2;
|
|
1121
|
+
})(NameInLineItem || {});
|
|
1122
|
+
var SuggestedFix = /* @__PURE__ */ ((SuggestedFix2) => {
|
|
1123
|
+
SuggestedFix2["UNKNOWN_SUGGESTED_FIX"] = "UNKNOWN_SUGGESTED_FIX";
|
|
1124
|
+
SuggestedFix2["REMOVE_LINE_ITEM"] = "REMOVE_LINE_ITEM";
|
|
1125
|
+
return SuggestedFix2;
|
|
1126
|
+
})(SuggestedFix || {});
|
|
1127
|
+
var ValidationsConfig = /* @__PURE__ */ ((ValidationsConfig2) => {
|
|
1128
|
+
ValidationsConfig2["UNKNOWN_VALIDATIONS_CONFIG"] = "UNKNOWN_VALIDATIONS_CONFIG";
|
|
1129
|
+
ValidationsConfig2["SKIP_VALIDATIONS"] = "SKIP_VALIDATIONS";
|
|
1130
|
+
ValidationsConfig2["PRE_CHECKOUT_VALIDATIONS"] = "PRE_CHECKOUT_VALIDATIONS";
|
|
1131
|
+
ValidationsConfig2["CHECKOUT_VALIDATIONS"] = "CHECKOUT_VALIDATIONS";
|
|
1132
|
+
return ValidationsConfig2;
|
|
1133
|
+
})(ValidationsConfig || {});
|
|
1134
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1135
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1136
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1137
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1138
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1139
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1140
|
+
return WebhookIdentityType2;
|
|
1141
|
+
})(WebhookIdentityType || {});
|
|
1142
|
+
|
|
984
1143
|
// src/ecom-v2-cart-cart-v-2.meta.ts
|
|
985
1144
|
function createCart2() {
|
|
986
1145
|
const payload = {};
|
|
@@ -1289,6 +1448,25 @@ function handleAsyncCheckoutCompletion2() {
|
|
|
1289
1448
|
};
|
|
1290
1449
|
}
|
|
1291
1450
|
export {
|
|
1451
|
+
ChannelType as ChannelTypeOriginal,
|
|
1452
|
+
DescriptionLineType as DescriptionLineTypeOriginal,
|
|
1453
|
+
DiscountScope as DiscountScopeOriginal,
|
|
1454
|
+
DiscountSourceType as DiscountSourceTypeOriginal,
|
|
1455
|
+
FileType as FileTypeOriginal,
|
|
1456
|
+
ItemStatus as ItemStatusOriginal,
|
|
1457
|
+
ItemTypeItemType as ItemTypeItemTypeOriginal,
|
|
1458
|
+
NameInLineItem as NameInLineItemOriginal,
|
|
1459
|
+
NameInOther as NameInOtherOriginal,
|
|
1460
|
+
PaymentOptionType as PaymentOptionTypeOriginal,
|
|
1461
|
+
RuleType as RuleTypeOriginal,
|
|
1462
|
+
Severity as SeverityOriginal,
|
|
1463
|
+
SubscriptionFrequency as SubscriptionFrequencyOriginal,
|
|
1464
|
+
SuggestedFix as SuggestedFixOriginal,
|
|
1465
|
+
TaxableAddressType as TaxableAddressTypeOriginal,
|
|
1466
|
+
ValidationsConfig as ValidationsConfigOriginal,
|
|
1467
|
+
VatType as VatTypeOriginal,
|
|
1468
|
+
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
1469
|
+
WeightUnit as WeightUnitOriginal,
|
|
1292
1470
|
addCoupon2 as addCoupon,
|
|
1293
1471
|
addGiftCard2 as addGiftCard,
|
|
1294
1472
|
addLineItems2 as addLineItems,
|