@wix/auto_sdk_ecom_abandoned-checkouts 1.0.42 → 1.0.44

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 (41) hide show
  1. package/build/{internal/cjs/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-Cc3dfanX.d.ts → cjs/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-C8oWIE96.d.ts} +89 -40
  2. package/build/cjs/index.d.ts +2 -2
  3. package/build/cjs/index.js +59 -5
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/index.typings.d.ts +2 -2
  6. package/build/cjs/index.typings.js +44 -2
  7. package/build/cjs/index.typings.js.map +1 -1
  8. package/build/cjs/meta.d.ts +1 -1
  9. package/build/cjs/meta.js +36 -2
  10. package/build/cjs/meta.js.map +1 -1
  11. package/build/{internal/es/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-Cc3dfanX.d.mts → es/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-C8oWIE96.d.mts} +89 -40
  12. package/build/es/index.d.mts +2 -2
  13. package/build/es/index.mjs +58 -5
  14. package/build/es/index.mjs.map +1 -1
  15. package/build/es/index.typings.d.mts +2 -2
  16. package/build/es/index.typings.mjs +43 -2
  17. package/build/es/index.typings.mjs.map +1 -1
  18. package/build/es/meta.d.mts +1 -1
  19. package/build/es/meta.mjs +36 -2
  20. package/build/es/meta.mjs.map +1 -1
  21. package/build/{cjs/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-D7Tj5DAM.d.ts → internal/cjs/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BpGTpVP7.d.ts} +123 -7
  22. package/build/internal/cjs/index.d.ts +2 -2
  23. package/build/internal/cjs/index.js +59 -5
  24. package/build/internal/cjs/index.js.map +1 -1
  25. package/build/internal/cjs/index.typings.d.ts +2 -2
  26. package/build/internal/cjs/index.typings.js +44 -2
  27. package/build/internal/cjs/index.typings.js.map +1 -1
  28. package/build/internal/cjs/meta.d.ts +1 -1
  29. package/build/internal/cjs/meta.js +36 -2
  30. package/build/internal/cjs/meta.js.map +1 -1
  31. package/build/{es/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-D7Tj5DAM.d.mts → internal/es/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BpGTpVP7.d.mts} +123 -7
  32. package/build/internal/es/index.d.mts +2 -2
  33. package/build/internal/es/index.mjs +58 -5
  34. package/build/internal/es/index.mjs.map +1 -1
  35. package/build/internal/es/index.typings.d.mts +2 -2
  36. package/build/internal/es/index.typings.mjs +43 -2
  37. package/build/internal/es/index.typings.mjs.map +1 -1
  38. package/build/internal/es/meta.d.mts +1 -1
  39. package/build/internal/es/meta.mjs +36 -2
  40. package/build/internal/es/meta.mjs.map +1 -1
  41. package/package.json +2 -2
@@ -59,20 +59,6 @@ interface AbandonedCheckout {
59
59
  checkoutUrl?: string;
60
60
  /** Subtotal price of all line items, before discounts and before tax. */
61
61
  subtotalPrice?: MultiCurrencyPrice;
62
- /**
63
- * Line items.
64
- * @internal
65
- * @minSize 1
66
- * @maxSize 300
67
- * @readonly
68
- */
69
- lineItems?: LineItem[];
70
- /**
71
- * Coupon codes applied to this abandoned checkout.
72
- * @internal
73
- * @maxLength 50
74
- */
75
- couponCode?: string | null;
76
62
  }
77
63
  declare enum ActivityType {
78
64
  /** Not implemented. */
@@ -341,14 +327,6 @@ interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionLineDesc
341
327
  colorInfo?: Color;
342
328
  /** Description line name. */
343
329
  name?: DescriptionLineName;
344
- /**
345
- * Whether the description line originates from a modifier.
346
- * @internal
347
- * @deprecated Whether the description line originates from a modifier.
348
- * @replacedBy none
349
- * @targetRemovalDate 2025-12-31
350
- */
351
- modifierDescriptionLine?: boolean;
352
330
  }
353
331
  /** @oneof */
354
332
  interface DescriptionLineValueOneOf {
@@ -425,6 +403,92 @@ interface PhysicalProperties {
425
403
  /** Whether this line item is shippable. */
426
404
  shippable?: boolean;
427
405
  }
406
+ interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
407
+ /** Coupon details. */
408
+ coupon?: Coupon;
409
+ /** Merchant discount. */
410
+ merchantDiscount?: MerchantDiscount;
411
+ /** Discount rule */
412
+ discountRule?: DiscountRule;
413
+ /** Discount type. */
414
+ discountType?: DiscountTypeWithLiterals;
415
+ /**
416
+ * IDs of line items the discount applies to.
417
+ * @format GUID
418
+ * @maxSize 300
419
+ */
420
+ lineItemIds?: string[];
421
+ }
422
+ /** @oneof */
423
+ interface AppliedDiscountDiscountSourceOneOf {
424
+ /** Coupon details. */
425
+ coupon?: Coupon;
426
+ /** Merchant discount. */
427
+ merchantDiscount?: MerchantDiscount;
428
+ /** Discount rule */
429
+ discountRule?: DiscountRule;
430
+ }
431
+ declare enum DiscountType {
432
+ GLOBAL = "GLOBAL",
433
+ SPECIFIC_ITEMS = "SPECIFIC_ITEMS",
434
+ SHIPPING = "SHIPPING"
435
+ }
436
+ /** @enumType */
437
+ type DiscountTypeWithLiterals = DiscountType | 'GLOBAL' | 'SPECIFIC_ITEMS' | 'SHIPPING';
438
+ interface Coupon {
439
+ /**
440
+ * Coupon ID.
441
+ * @maxLength 50
442
+ */
443
+ _id?: string;
444
+ /**
445
+ * Coupon code.
446
+ * @maxLength 50
447
+ */
448
+ code?: string;
449
+ /** Coupon value. */
450
+ amount?: MultiCurrencyPrice;
451
+ /**
452
+ * Coupon name.
453
+ * @maxLength 60
454
+ */
455
+ name?: string;
456
+ }
457
+ interface MerchantDiscount {
458
+ /** Discount value. */
459
+ amount?: MultiCurrencyPrice;
460
+ /**
461
+ * Discount Percentage. Will be calculated from items price before other discounts.
462
+ * @min 1
463
+ * @max 100
464
+ */
465
+ percentage?: number | null;
466
+ }
467
+ interface DiscountRule {
468
+ /**
469
+ * Discount rule ID
470
+ * @format GUID
471
+ */
472
+ _id?: string;
473
+ /** Discount rule name */
474
+ name?: DiscountRuleName;
475
+ /** Discount value. */
476
+ amount?: MultiCurrencyPrice;
477
+ }
478
+ interface DiscountRuleName {
479
+ /**
480
+ * Original discount rule name (in site's default language).
481
+ * @minLength 1
482
+ * @maxLength 256
483
+ */
484
+ original?: string;
485
+ /**
486
+ * Translated discount rule name according to buyer language. Defaults to `original` when not provided.
487
+ * @minLength 1
488
+ * @maxLength 500
489
+ */
490
+ translated?: string | null;
491
+ }
428
492
  interface CartAbandonedEvent {
429
493
  /** @format GUID */
430
494
  cartId?: string;
@@ -1291,16 +1355,12 @@ interface AbandonedCheckoutSearchSpec extends SearchSpec {
1291
1355
  wql: [
1292
1356
  {
1293
1357
  operators: ['$hasAll', '$hasSome'];
1294
- fields: ['activities.type'];
1358
+ fields: ['activities.type', 'appliedDiscounts.coupon.code'];
1295
1359
  sort: 'NONE';
1296
1360
  },
1297
1361
  {
1298
1362
  operators: '*';
1299
- fields: [
1300
- 'contactDetails.firstName',
1301
- 'contactDetails.lastName',
1302
- 'couponCode'
1303
- ];
1363
+ fields: ['contactDetails.firstName', 'contactDetails.lastName'];
1304
1364
  sort: 'NONE';
1305
1365
  },
1306
1366
  {
@@ -1390,17 +1450,6 @@ type AbandonedCheckoutSearch = {
1390
1450
  fuzzy?: NonNullable<CommonSearchWithEntityContext['search']>['fuzzy'];
1391
1451
  };
1392
1452
  };
1393
- /**
1394
- * Adds a new abandoned checkout activity.
1395
- * @param abandonedCheckoutId - Id of the abandoned checkout to update
1396
- * @internal
1397
- * @documentationMaturity preview
1398
- * @requiredField abandonedCheckoutId
1399
- * @permissionId ECOM.ABANDONED_CHECKOUT_UPDATE
1400
- * @applicableIdentity APP
1401
- * @fqn wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.AddAbandonedCheckoutActivity
1402
- */
1403
- declare function addAbandonedCheckoutActivity(abandonedCheckoutId: string, options?: AddAbandonedCheckoutActivityOptions): Promise<NonNullablePaths<AddAbandonedCheckoutActivityResponse, `abandonedCheckout._id` | `abandonedCheckout.status` | `abandonedCheckout.buyerInfo.visitorId` | `abandonedCheckout.buyerInfo.memberId` | `abandonedCheckout.buyerInfo.userId` | `abandonedCheckout.contactDetails.vatId._id` | `abandonedCheckout.contactDetails.vatId.type` | `abandonedCheckout.currency` | `abandonedCheckout.totalPrice.amount` | `abandonedCheckout.totalPrice.convertedAmount` | `abandonedCheckout.totalPrice.formattedAmount` | `abandonedCheckout.totalPrice.formattedConvertedAmount` | `abandonedCheckout.activities` | `abandonedCheckout.activities.${number}.type` | `abandonedCheckout.checkoutUrl`, 5>>;
1404
1453
  interface AddAbandonedCheckoutActivityOptions {
1405
1454
  /** The type of the activity to add */
1406
1455
  activityType?: ActivityTypeWithLiterals;
@@ -1416,4 +1465,4 @@ interface AddAbandonedCheckoutActivityOptions {
1416
1465
  */
1417
1466
  declare function redirectToCheckout(abandonedCheckoutId: string, metasiteId: string): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 4>>;
1418
1467
 
1419
- export { type QueryV2PagingMethodOneOf as $, type AbandonedCheckout as A, type BulkDeleteAbandonedCheckoutsResponse as B, CommonSortOrder as C, DescriptionLineType as D, type CartRecoveredEvent as E, type FullAddressContactDetails as F, type AbandonedCheckoutRecovered as G, type GetAbandonedCheckoutRequest as H, Identity as I, type GetAbandonedCheckoutResponse as J, type DeleteAbandonedCheckoutRequest as K, type LineItem as L, Mode as M, type DeleteAbandonedCheckoutResponse as N, type BulkDeleteAbandonedCheckoutsRequest as O, type ProductName as P, type ItemMetadata as Q, type RawHttpResponse as R, type SearchAbandonedCheckoutsResponse as S, type Totals as T, type ApplicationError as U, VatType as V, WebhookIdentityType as W, type BulkAbandonedCheckoutResult as X, type BulkActionMetadata as Y, type QueryAbandonedCheckoutsRequest as Z, type QueryV2 as _, type AbandonedCheckoutsQueryBuilder as a, type Sorting as a0, type Paging as a1, type CursorPaging as a2, type QueryAbandonedCheckoutsResponse as a3, type PagingMetadataV2 as a4, type Cursors as a5, type SearchAbandonedCheckoutsRequest as a6, type Search as a7, type SearchPagingMethodOneOf as a8, type CommonSorting as a9, type BaseEventMetadata as aA, type EventMetadata as aB, type AbandonedCheckoutsQueryResult as aC, type AbandonedCheckoutSearchSpec as aD, type ActivityTypeWithLiterals as aE, type StatusWithLiterals as aF, type VatTypeWithLiterals as aG, type DescriptionLineTypeWithLiterals as aH, type IdentityWithLiterals as aI, type SortOrderWithLiterals as aJ, type CommonSortOrderWithLiterals as aK, type ModeWithLiterals as aL, type WebhookIdentityTypeWithLiterals as aM, type CommonSearchWithEntityContext as aN, onAbandonedCheckoutCreated as aO, onAbandonedCheckoutDeleted as aP, onAbandonedCheckoutRecovered as aQ, onAbandonedCheckoutUpdated as aR, getAbandonedCheckout as aS, deleteAbandonedCheckout as aT, bulkDeleteAbandonedCheckouts as aU, queryAbandonedCheckouts as aV, addAbandonedCheckoutActivity as aW, redirectToCheckout as aX, type SearchDetails as aa, type CommonPaging as ab, type CommonCursorPaging as ac, type CommonPagingMetadataV2 as ad, type CommonCursors as ae, type AddAbandonedCheckoutActivityRequest as af, type Task as ag, type TaskKey as ah, type TaskAction as ai, type TaskActionActionOneOf as aj, type Complete as ak, type Cancel as al, type Reschedule as am, type RedirectToCheckoutRequest as an, type HeadersEntry as ao, type DomainEvent as ap, type DomainEventBodyOneOf as aq, type EntityCreatedEvent as ar, type RestoreInfo as as, type EntityUpdatedEvent as at, type EntityDeletedEvent as au, type ActionEvent as av, type Empty as aw, type MessageEnvelope as ax, type IdentificationData as ay, type IdentificationDataIdOneOf as az, type AbandonedCheckoutSearch as b, type AddAbandonedCheckoutActivityOptions as c, type AddAbandonedCheckoutActivityResponse as d, type AbandonedCheckoutCreatedEnvelope as e, type AbandonedCheckoutDeletedEnvelope as f, type AbandonedCheckoutRecoveredEnvelope as g, type AbandonedCheckoutUpdatedEnvelope as h, ActivityType as i, Status as j, SortOrder as k, type V1BuyerInfo as l, type V1BuyerInfoIdOneOf as m, type VatId as n, type MultiCurrencyPrice as o, type Activity as p, type CatalogReference as q, type DescriptionLine as r, type DescriptionLineValueOneOf as s, type DescriptionLineDescriptionLineValueOneOf as t, type DescriptionLineName as u, type PlainTextValue as v, type Color as w, type PhysicalProperties as x, type CartAbandonedEvent as y, type BuyerInfo as z };
1468
+ export { type ApplicationError as $, type AbandonedCheckout as A, type BulkDeleteAbandonedCheckoutsResponse as B, CommonSortOrder as C, DescriptionLineType as D, type MerchantDiscount as E, type FullAddressContactDetails as F, type DiscountRule as G, type DiscountRuleName as H, Identity as I, type CartAbandonedEvent as J, type BuyerInfo as K, type LineItem as L, Mode as M, type CartRecoveredEvent as N, type AbandonedCheckoutRecovered as O, type ProductName as P, type GetAbandonedCheckoutRequest as Q, type RawHttpResponse as R, type SearchAbandonedCheckoutsResponse as S, type Totals as T, type GetAbandonedCheckoutResponse as U, VatType as V, WebhookIdentityType as W, type DeleteAbandonedCheckoutRequest as X, type DeleteAbandonedCheckoutResponse as Y, type BulkDeleteAbandonedCheckoutsRequest as Z, type ItemMetadata as _, type AbandonedCheckoutsQueryBuilder as a, deleteAbandonedCheckout as a$, type BulkAbandonedCheckoutResult as a0, type BulkActionMetadata as a1, type QueryAbandonedCheckoutsRequest as a2, type QueryV2 as a3, type QueryV2PagingMethodOneOf as a4, type Sorting as a5, type Paging as a6, type CursorPaging as a7, type QueryAbandonedCheckoutsResponse as a8, type PagingMetadataV2 as a9, type EntityDeletedEvent as aA, type ActionEvent as aB, type Empty as aC, type MessageEnvelope as aD, type IdentificationData as aE, type IdentificationDataIdOneOf as aF, type BaseEventMetadata as aG, type EventMetadata as aH, type AbandonedCheckoutsQueryResult as aI, type AbandonedCheckoutSearchSpec as aJ, type AddAbandonedCheckoutActivityOptions as aK, type ActivityTypeWithLiterals as aL, type StatusWithLiterals as aM, type VatTypeWithLiterals as aN, type DescriptionLineTypeWithLiterals as aO, type DiscountTypeWithLiterals as aP, type IdentityWithLiterals as aQ, type SortOrderWithLiterals as aR, type CommonSortOrderWithLiterals as aS, type ModeWithLiterals as aT, type WebhookIdentityTypeWithLiterals as aU, type CommonSearchWithEntityContext as aV, onAbandonedCheckoutCreated as aW, onAbandonedCheckoutDeleted as aX, onAbandonedCheckoutRecovered as aY, onAbandonedCheckoutUpdated as aZ, getAbandonedCheckout as a_, type Cursors as aa, type SearchAbandonedCheckoutsRequest as ab, type Search as ac, type SearchPagingMethodOneOf as ad, type CommonSorting as ae, type SearchDetails as af, type CommonPaging as ag, type CommonCursorPaging as ah, type CommonPagingMetadataV2 as ai, type CommonCursors as aj, type AddAbandonedCheckoutActivityRequest as ak, type AddAbandonedCheckoutActivityResponse as al, type Task as am, type TaskKey as an, type TaskAction as ao, type TaskActionActionOneOf as ap, type Complete as aq, type Cancel as ar, type Reschedule as as, type RedirectToCheckoutRequest as at, type HeadersEntry as au, type DomainEvent as av, type DomainEventBodyOneOf as aw, type EntityCreatedEvent as ax, type RestoreInfo as ay, type EntityUpdatedEvent as az, type AbandonedCheckoutSearch as b, bulkDeleteAbandonedCheckouts as b0, queryAbandonedCheckouts as b1, redirectToCheckout as b2, type AbandonedCheckoutCreatedEnvelope as c, type AbandonedCheckoutDeletedEnvelope as d, type AbandonedCheckoutRecoveredEnvelope as e, type AbandonedCheckoutUpdatedEnvelope as f, ActivityType as g, Status as h, DiscountType as i, SortOrder as j, type V1BuyerInfo as k, type V1BuyerInfoIdOneOf as l, type VatId as m, type MultiCurrencyPrice as n, type Activity as o, type CatalogReference as p, type DescriptionLine as q, type DescriptionLineValueOneOf as r, type DescriptionLineDescriptionLineValueOneOf as s, type DescriptionLineName as t, type PlainTextValue as u, type Color as v, type PhysicalProperties as w, type AppliedDiscount as x, type AppliedDiscountDiscountSourceOneOf as y, type Coupon as z };
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { A as AbandonedCheckout, B as BulkDeleteAbandonedCheckoutsResponse, a as AbandonedCheckoutsQueryBuilder, b as AbandonedCheckoutSearch, S as SearchAbandonedCheckoutsResponse, R as RawHttpResponse, c as AbandonedCheckoutCreatedEnvelope, d as AbandonedCheckoutDeletedEnvelope, e as AbandonedCheckoutRecoveredEnvelope, f as AbandonedCheckoutUpdatedEnvelope } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-D7Tj5DAM.js';
3
- export { z as AbandonedCheckoutRecovered, aC as AbandonedCheckoutSearchSpec, aB as AbandonedCheckoutsQueryResult, au as ActionEvent, n as Activity, g as ActivityType, aE as ActivityTypeWithLiterals, aD as AddAbandonedCheckoutActivityOptions, ad as AddAbandonedCheckoutActivityRequest, ae as AddAbandonedCheckoutActivityResponse, O as ApplicationError, az as BaseEventMetadata, Q as BulkAbandonedCheckoutResult, U as BulkActionMetadata, K as BulkDeleteAbandonedCheckoutsRequest, x as BuyerInfo, ak as Cancel, w as CartAbandonedEvent, y as CartRecoveredEvent, o as CatalogReference, u as Color, aa as CommonCursorPaging, ac as CommonCursors, a9 as CommonPaging, ab as CommonPagingMetadataV2, aN as CommonSearchWithEntityContext, C as CommonSortOrder, aK as CommonSortOrderWithLiterals, a7 as CommonSorting, aj as Complete, a0 as CursorPaging, a3 as Cursors, H as DeleteAbandonedCheckoutRequest, J as DeleteAbandonedCheckoutResponse, p as DescriptionLine, r as DescriptionLineDescriptionLineValueOneOf, s as DescriptionLineName, D as DescriptionLineType, aH as DescriptionLineTypeWithLiterals, q as DescriptionLineValueOneOf, ao as DomainEvent, ap as DomainEventBodyOneOf, av as Empty, aq as EntityCreatedEvent, at as EntityDeletedEvent, as as EntityUpdatedEvent, aA as EventMetadata, F as FullAddressContactDetails, G as GetAbandonedCheckoutRequest, E as GetAbandonedCheckoutResponse, an as HeadersEntry, ax as IdentificationData, ay as IdentificationDataIdOneOf, I as Identity, aI as IdentityWithLiterals, N as ItemMetadata, L as LineItem, aw as MessageEnvelope, M as Mode, aL as ModeWithLiterals, m as MultiCurrencyPrice, $ as Paging, a2 as PagingMetadataV2, v as PhysicalProperties, t as PlainTextValue, P as ProductName, X as QueryAbandonedCheckoutsRequest, a1 as QueryAbandonedCheckoutsResponse, Y as QueryV2, Z as QueryV2PagingMethodOneOf, am as RedirectToCheckoutRequest, al as Reschedule, ar as RestoreInfo, a5 as Search, a4 as SearchAbandonedCheckoutsRequest, a8 as SearchDetails, a6 as SearchPagingMethodOneOf, i as SortOrder, aJ as SortOrderWithLiterals, _ as Sorting, h as Status, aF as StatusWithLiterals, af as Task, ah as TaskAction, ai as TaskActionActionOneOf, ag as TaskKey, T as Totals, j as V1BuyerInfo, k as V1BuyerInfoIdOneOf, l as VatId, V as VatType, aG as VatTypeWithLiterals, W as WebhookIdentityType, aM as WebhookIdentityTypeWithLiterals } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-D7Tj5DAM.js';
2
+ import { A as AbandonedCheckout, B as BulkDeleteAbandonedCheckoutsResponse, a as AbandonedCheckoutsQueryBuilder, b as AbandonedCheckoutSearch, S as SearchAbandonedCheckoutsResponse, R as RawHttpResponse, c as AbandonedCheckoutCreatedEnvelope, d as AbandonedCheckoutDeletedEnvelope, e as AbandonedCheckoutRecoveredEnvelope, f as AbandonedCheckoutUpdatedEnvelope } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-C8oWIE96.js';
3
+ export { O as AbandonedCheckoutRecovered, aJ as AbandonedCheckoutSearchSpec, aI as AbandonedCheckoutsQueryResult, aB as ActionEvent, o as Activity, g as ActivityType, aL as ActivityTypeWithLiterals, aK as AddAbandonedCheckoutActivityOptions, ak as AddAbandonedCheckoutActivityRequest, al as AddAbandonedCheckoutActivityResponse, $ as ApplicationError, x as AppliedDiscount, y as AppliedDiscountDiscountSourceOneOf, aG as BaseEventMetadata, a0 as BulkAbandonedCheckoutResult, a1 as BulkActionMetadata, Z as BulkDeleteAbandonedCheckoutsRequest, K as BuyerInfo, ar as Cancel, J as CartAbandonedEvent, N as CartRecoveredEvent, p as CatalogReference, v as Color, ah as CommonCursorPaging, aj as CommonCursors, ag as CommonPaging, ai as CommonPagingMetadataV2, aV as CommonSearchWithEntityContext, C as CommonSortOrder, aS as CommonSortOrderWithLiterals, ae as CommonSorting, aq as Complete, z as Coupon, a7 as CursorPaging, aa as Cursors, X as DeleteAbandonedCheckoutRequest, Y as DeleteAbandonedCheckoutResponse, q as DescriptionLine, s as DescriptionLineDescriptionLineValueOneOf, t as DescriptionLineName, D as DescriptionLineType, aO as DescriptionLineTypeWithLiterals, r as DescriptionLineValueOneOf, G as DiscountRule, H as DiscountRuleName, i as DiscountType, aP as DiscountTypeWithLiterals, av as DomainEvent, aw as DomainEventBodyOneOf, aC as Empty, ax as EntityCreatedEvent, aA as EntityDeletedEvent, az as EntityUpdatedEvent, aH as EventMetadata, F as FullAddressContactDetails, Q as GetAbandonedCheckoutRequest, U as GetAbandonedCheckoutResponse, au as HeadersEntry, aE as IdentificationData, aF as IdentificationDataIdOneOf, I as Identity, aQ as IdentityWithLiterals, _ as ItemMetadata, L as LineItem, E as MerchantDiscount, aD as MessageEnvelope, M as Mode, aT as ModeWithLiterals, n as MultiCurrencyPrice, a6 as Paging, a9 as PagingMetadataV2, w as PhysicalProperties, u as PlainTextValue, P as ProductName, a2 as QueryAbandonedCheckoutsRequest, a8 as QueryAbandonedCheckoutsResponse, a3 as QueryV2, a4 as QueryV2PagingMethodOneOf, at as RedirectToCheckoutRequest, as as Reschedule, ay as RestoreInfo, ac as Search, ab as SearchAbandonedCheckoutsRequest, af as SearchDetails, ad as SearchPagingMethodOneOf, j as SortOrder, aR as SortOrderWithLiterals, a5 as Sorting, h as Status, aM as StatusWithLiterals, am as Task, ao as TaskAction, ap as TaskActionActionOneOf, an as TaskKey, T as Totals, k as V1BuyerInfo, l as V1BuyerInfoIdOneOf, m as VatId, V as VatType, aN as VatTypeWithLiterals, W as WebhookIdentityType, aU as WebhookIdentityTypeWithLiterals } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-C8oWIE96.js';
4
4
 
5
5
  declare function getAbandonedCheckout$1(httpClient: HttpClient): GetAbandonedCheckoutSignature;
6
6
  interface GetAbandonedCheckoutSignature {
@@ -23,6 +23,7 @@ __export(index_exports, {
23
23
  ActivityType: () => ActivityType,
24
24
  CommonSortOrder: () => CommonSortOrder,
25
25
  DescriptionLineType: () => DescriptionLineType,
26
+ DiscountType: () => DiscountType,
26
27
  Identity: () => Identity,
27
28
  Mode: () => Mode,
28
29
  SortOrder: () => SortOrder,
@@ -118,6 +119,9 @@ function getAbandonedCheckout(payload) {
118
119
  method: "GET",
119
120
  methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.GetAbandonedCheckout",
120
121
  packageName: PACKAGE_NAME,
122
+ migrationOptions: {
123
+ optInTransformResponse: true
124
+ },
121
125
  url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
122
126
  protoPath: "/v1/abandoned-checkout/{abandonedCheckoutId}",
123
127
  data: payload,
@@ -137,7 +141,10 @@ function getAbandonedCheckout(payload) {
137
141
  {
138
142
  transformFn: import_float.transformRESTFloatToSDKFloat,
139
143
  paths: [
140
- { path: "abandonedCheckout.lineItems.physicalProperties.weight" }
144
+ { path: "abandonedCheckout.lineItems.physicalProperties.weight" },
145
+ {
146
+ path: "abandonedCheckout.appliedDiscounts.merchantDiscount.percentage"
147
+ }
141
148
  ]
142
149
  }
143
150
  ])
@@ -153,6 +160,9 @@ function deleteAbandonedCheckout(payload) {
153
160
  method: "DELETE",
154
161
  methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.DeleteAbandonedCheckout",
155
162
  packageName: PACKAGE_NAME,
163
+ migrationOptions: {
164
+ optInTransformResponse: true
165
+ },
156
166
  url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
157
167
  protoPath: "/v1/abandoned-checkout/{abandonedCheckoutId}",
158
168
  data: payload,
@@ -171,6 +181,9 @@ function bulkDeleteAbandonedCheckouts(payload) {
171
181
  method: "POST",
172
182
  methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.BulkDeleteAbandonedCheckouts",
173
183
  packageName: PACKAGE_NAME,
184
+ migrationOptions: {
185
+ optInTransformResponse: true
186
+ },
174
187
  url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
175
188
  protoPath: "/v1/bulk/abandoned-checkout/delete",
176
189
  data: payload,
@@ -189,6 +202,9 @@ function queryAbandonedCheckouts(payload) {
189
202
  method: "POST",
190
203
  methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.QueryAbandonedCheckouts",
191
204
  packageName: PACKAGE_NAME,
205
+ migrationOptions: {
206
+ optInTransformResponse: true
207
+ },
192
208
  url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
193
209
  protoPath: "/v1/abandoned-checkout/query",
194
210
  data: payload,
@@ -213,8 +229,12 @@ function queryAbandonedCheckouts(payload) {
213
229
  transformFn: import_float.transformRESTFloatToSDKFloat,
214
230
  paths: [
215
231
  { path: "results.lineItems.physicalProperties.weight" },
232
+ { path: "results.appliedDiscounts.merchantDiscount.percentage" },
216
233
  {
217
234
  path: "abandonedCheckouts.lineItems.physicalProperties.weight"
235
+ },
236
+ {
237
+ path: "abandonedCheckouts.appliedDiscounts.merchantDiscount.percentage"
218
238
  }
219
239
  ]
220
240
  }
@@ -231,6 +251,9 @@ function searchAbandonedCheckouts(payload) {
231
251
  method: "POST",
232
252
  methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.SearchAbandonedCheckouts",
233
253
  packageName: PACKAGE_NAME,
254
+ migrationOptions: {
255
+ optInTransformResponse: true
256
+ },
234
257
  url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
235
258
  protoPath: "/v1/abandoned-checkout/search",
236
259
  data: payload,
@@ -252,6 +275,9 @@ function searchAbandonedCheckouts(payload) {
252
275
  paths: [
253
276
  {
254
277
  path: "abandonedCheckouts.lineItems.physicalProperties.weight"
278
+ },
279
+ {
280
+ path: "abandonedCheckouts.appliedDiscounts.merchantDiscount.percentage"
255
281
  }
256
282
  ]
257
283
  }
@@ -268,6 +294,9 @@ function addAbandonedCheckoutActivity(payload) {
268
294
  method: "POST",
269
295
  methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.AddAbandonedCheckoutActivity",
270
296
  packageName: PACKAGE_NAME,
297
+ migrationOptions: {
298
+ optInTransformResponse: true
299
+ },
271
300
  url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
272
301
  protoPath: "/v1/abandoned-checkouts/{abandonedCheckoutId}/add-activity",
273
302
  data: payload,
@@ -287,7 +316,10 @@ function addAbandonedCheckoutActivity(payload) {
287
316
  {
288
317
  transformFn: import_float.transformRESTFloatToSDKFloat,
289
318
  paths: [
290
- { path: "abandonedCheckout.lineItems.physicalProperties.weight" }
319
+ { path: "abandonedCheckout.lineItems.physicalProperties.weight" },
320
+ {
321
+ path: "abandonedCheckout.appliedDiscounts.merchantDiscount.percentage"
322
+ }
291
323
  ]
292
324
  }
293
325
  ])
@@ -303,6 +335,9 @@ function redirectToCheckout(payload) {
303
335
  method: "GET",
304
336
  methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.RedirectToCheckout",
305
337
  packageName: PACKAGE_NAME,
338
+ migrationOptions: {
339
+ optInTransformResponse: true
340
+ },
306
341
  url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
307
342
  protoPath: "/v1/abandoned-checkout/{abandonedCheckoutId}/redirect-to-checkout",
308
343
  data: payload,
@@ -351,6 +386,12 @@ var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
351
386
  DescriptionLineType2["COLOR"] = "COLOR";
352
387
  return DescriptionLineType2;
353
388
  })(DescriptionLineType || {});
389
+ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
390
+ DiscountType2["GLOBAL"] = "GLOBAL";
391
+ DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
392
+ DiscountType2["SHIPPING"] = "SHIPPING";
393
+ return DiscountType2;
394
+ })(DiscountType || {});
354
395
  var Identity = /* @__PURE__ */ ((Identity2) => {
355
396
  Identity2["ADMIN"] = "ADMIN";
356
397
  Identity2["MEMBER"] = "MEMBER";
@@ -683,7 +724,10 @@ var onAbandonedCheckoutCreated = (0, import_sdk_types.EventDefinition)(
683
724
  },
684
725
  {
685
726
  transformFn: import_float2.transformRESTFloatToSDKFloat,
686
- paths: [{ path: "entity.lineItems.physicalProperties.weight" }]
727
+ paths: [
728
+ { path: "entity.lineItems.physicalProperties.weight" },
729
+ { path: "entity.appliedDiscounts.merchantDiscount.percentage" }
730
+ ]
687
731
  }
688
732
  ])
689
733
  )
@@ -709,7 +753,10 @@ var onAbandonedCheckoutDeleted = (0, import_sdk_types.EventDefinition)(
709
753
  },
710
754
  {
711
755
  transformFn: import_float2.transformRESTFloatToSDKFloat,
712
- paths: [{ path: "undefined.lineItems.physicalProperties.weight" }]
756
+ paths: [
757
+ { path: "undefined.lineItems.physicalProperties.weight" },
758
+ { path: "undefined.appliedDiscounts.merchantDiscount.percentage" }
759
+ ]
713
760
  }
714
761
  ])
715
762
  )
@@ -738,6 +785,9 @@ var onAbandonedCheckoutRecovered = (0, import_sdk_types.EventDefinition)(
738
785
  paths: [
739
786
  {
740
787
  path: "data.abandonedCheckout.lineItems.physicalProperties.weight"
788
+ },
789
+ {
790
+ path: "data.abandonedCheckout.appliedDiscounts.merchantDiscount.percentage"
741
791
  }
742
792
  ]
743
793
  }
@@ -765,7 +815,10 @@ var onAbandonedCheckoutUpdated = (0, import_sdk_types.EventDefinition)(
765
815
  },
766
816
  {
767
817
  transformFn: import_float2.transformRESTFloatToSDKFloat,
768
- paths: [{ path: "entity.lineItems.physicalProperties.weight" }]
818
+ paths: [
819
+ { path: "entity.lineItems.physicalProperties.weight" },
820
+ { path: "entity.appliedDiscounts.merchantDiscount.percentage" }
821
+ ]
769
822
  }
770
823
  ])
771
824
  )
@@ -798,6 +851,7 @@ var onAbandonedCheckoutUpdated2 = (0, import_event_definition_modules.createEven
798
851
  ActivityType,
799
852
  CommonSortOrder,
800
853
  DescriptionLineType,
854
+ DiscountType,
801
855
  Identity,
802
856
  Mode,
803
857
  SortOrder,