@wix/ecom 1.0.720 → 1.0.721

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.
@@ -28,7 +28,7 @@ interface ProductItem {
28
28
  /** The number of items ordered. */
29
29
  quantity?: number;
30
30
  /** Reference to the item's origin catalog. */
31
- catalogReference?: CatalogReference$4;
31
+ catalogReference?: CatalogReference$5;
32
32
  /** Physical properties of the item. */
33
33
  physicalProperties?: PhysicalProperties$3;
34
34
  /** Price of a single item after discounts. */
@@ -47,7 +47,7 @@ interface ProductItem {
47
47
  taxIncludedInPrice?: boolean | null;
48
48
  }
49
49
  /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
50
- interface CatalogReference$4 {
50
+ interface CatalogReference$5 {
51
51
  /** ID of the item within the catalog it belongs to. */
52
52
  catalogItemId?: string;
53
53
  /**
@@ -380,26 +380,26 @@ interface ShippingRatesConfig {
380
380
  * }
381
381
  * ```
382
382
  */
383
- interface Context$4 {
383
+ interface Context$5 {
384
384
  /** A unique identifier of the request. You may print this ID to your logs to help with future debugging and easier correlation with Wix's logs. */
385
385
  requestId?: string | null;
386
386
  /** [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letter currency code. */
387
387
  currency?: string | null;
388
388
  /** An object that describes the identity that triggered this request. */
389
- identity?: IdentificationData$4;
389
+ identity?: IdentificationData$5;
390
390
  /** A string representing a language and region in the format of `"xx-XX"`. First 2 letters represent the language code according to ISO 639-1. This is followed by a dash "-", and then a by 2 capital letters representing the region according to ISO 3166-2. For example, `"en-US"`. */
391
391
  languages?: string[];
392
392
  /** The service provider app's instance ID. */
393
393
  instanceId?: string | null;
394
394
  }
395
- declare enum IdentityType$4 {
395
+ declare enum IdentityType$5 {
396
396
  UNKNOWN = "UNKNOWN",
397
397
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
398
398
  MEMBER = "MEMBER",
399
399
  WIX_USER = "WIX_USER",
400
400
  APP = "APP"
401
401
  }
402
- interface IdentificationData$4 extends IdentificationDataIdOneOf$4 {
402
+ interface IdentificationData$5 extends IdentificationDataIdOneOf$5 {
403
403
  /** ID of a site visitor that has not logged in to the site. */
404
404
  anonymousVisitorId?: string;
405
405
  /** ID of a site visitor that has logged in to the site. */
@@ -409,10 +409,10 @@ interface IdentificationData$4 extends IdentificationDataIdOneOf$4 {
409
409
  /** ID of an app. */
410
410
  appId?: string;
411
411
  /** @readonly */
412
- identityType?: IdentityType$4;
412
+ identityType?: IdentityType$5;
413
413
  }
414
414
  /** @oneof */
415
- interface IdentificationDataIdOneOf$4 {
415
+ interface IdentificationDataIdOneOf$5 {
416
416
  /** ID of a site visitor that has not logged in to the site. */
417
417
  anonymousVisitorId?: string;
418
418
  /** ID of a site visitor that has logged in to the site. */
@@ -454,9 +454,9 @@ declare global {
454
454
 
455
455
  interface GetShippingRatesEnvelope {
456
456
  request: GetShippingRatesRequest;
457
- metadata: Context$4;
457
+ metadata: Context$5;
458
458
  }
459
- declare const provideHandlers$9: ServicePluginDefinition<{
459
+ declare const provideHandlers$b: ServicePluginDefinition<{
460
460
  /**
461
461
  *
462
462
  * This method retrieves applicable shipping rates for a delivery from your app.
@@ -465,10 +465,10 @@ declare const provideHandlers$9: ServicePluginDefinition<{
465
465
  getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
466
466
  }>;
467
467
 
468
- declare function createServicePluginModule$4<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
468
+ declare function createServicePluginModule$5<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
469
469
 
470
- type _publicProvideHandlersType$4 = typeof provideHandlers$9;
471
- declare const provideHandlers$8: ReturnType<typeof createServicePluginModule$4<_publicProvideHandlersType>>;
470
+ type _publicProvideHandlersType$5 = typeof provideHandlers$b;
471
+ declare const provideHandlers$a: ReturnType<typeof createServicePluginModule$5<_publicProvideHandlersType>>;
472
472
 
473
473
  /**
474
474
  * Missing postal code error.
@@ -569,43 +569,43 @@ declare class GenericShippingRatesWixError extends Error {
569
569
  static readonly __type = "wix_spi_error";
570
570
  }
571
571
 
572
- type index_d$4_AdditionalCharge = AdditionalCharge;
573
- type index_d$4_AddressStreetOneOf = AddressStreetOneOf;
574
- type index_d$4_ApplicationError = ApplicationError;
575
- type index_d$4_Column = Column;
576
- type index_d$4_DashboardTable = DashboardTable;
577
- type index_d$4_DeliveryPreferences = DeliveryPreferences;
578
- type index_d$4_FieldViolation = FieldViolation;
579
- type index_d$4_GenericShippingRatesError = GenericShippingRatesError;
580
- type index_d$4_GenericShippingRatesWixError = GenericShippingRatesWixError;
581
- declare const index_d$4_GenericShippingRatesWixError: typeof GenericShippingRatesWixError;
582
- type index_d$4_GetDashboardTablesRequest = GetDashboardTablesRequest;
583
- type index_d$4_GetDashboardTablesResponse = GetDashboardTablesResponse;
584
- type index_d$4_GetShippingRatesRequest = GetShippingRatesRequest;
585
- type index_d$4_GetShippingRatesResponse = GetShippingRatesResponse;
586
- type index_d$4_InvalidAddressError = InvalidAddressError;
587
- type index_d$4_InvalidAddressWixError = InvalidAddressWixError;
588
- declare const index_d$4_InvalidAddressWixError: typeof InvalidAddressWixError;
589
- type index_d$4_InvalidPostalCodeError = InvalidPostalCodeError;
590
- type index_d$4_InvalidPostalCodeWixError = InvalidPostalCodeWixError;
591
- declare const index_d$4_InvalidPostalCodeWixError: typeof InvalidPostalCodeWixError;
592
- type index_d$4_MissingPostalCodeError = MissingPostalCodeError;
593
- type index_d$4_MissingPostalCodeWixError = MissingPostalCodeWixError;
594
- declare const index_d$4_MissingPostalCodeWixError: typeof MissingPostalCodeWixError;
595
- type index_d$4_PartialOption = PartialOption;
596
- type index_d$4_ProductItem = ProductItem;
597
- type index_d$4_RegionDashboardTables = RegionDashboardTables;
598
- type index_d$4_Row = Row;
599
- type index_d$4_RuleType = RuleType;
600
- declare const index_d$4_RuleType: typeof RuleType;
601
- type index_d$4_ShippingOption = ShippingOption;
602
- type index_d$4_ShippingRatesConfig = ShippingRatesConfig;
603
- type index_d$4_StandardDetails = StandardDetails;
604
- type index_d$4_Subdivision = Subdivision;
605
- type index_d$4_SubdivisionType = SubdivisionType;
606
- declare const index_d$4_SubdivisionType: typeof SubdivisionType;
607
- declare namespace index_d$4 {
608
- export { type index_d$4_AdditionalCharge as AdditionalCharge, type Address$3 as Address, type AddressLocation$3 as AddressLocation, type index_d$4_AddressStreetOneOf as AddressStreetOneOf, type index_d$4_ApplicationError as ApplicationError, type CatalogReference$4 as CatalogReference, ChargeType$1 as ChargeType, type index_d$4_Column as Column, type Context$4 as Context, type index_d$4_DashboardTable as DashboardTable, type DeliveryLogistics$2 as DeliveryLogistics, type index_d$4_DeliveryPreferences as DeliveryPreferences, type DeliveryTimeSlot$1 as DeliveryTimeSlot, type index_d$4_FieldViolation as FieldViolation, type FullAddressContactDetails$3 as FullAddressContactDetails, type index_d$4_GenericShippingRatesError as GenericShippingRatesError, index_d$4_GenericShippingRatesWixError as GenericShippingRatesWixError, type index_d$4_GetDashboardTablesRequest as GetDashboardTablesRequest, type index_d$4_GetDashboardTablesResponse as GetDashboardTablesResponse, type index_d$4_GetShippingRatesRequest as GetShippingRatesRequest, type index_d$4_GetShippingRatesResponse as GetShippingRatesResponse, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, IdentityType$4 as IdentityType, type index_d$4_InvalidAddressError as InvalidAddressError, index_d$4_InvalidAddressWixError as InvalidAddressWixError, type index_d$4_InvalidPostalCodeError as InvalidPostalCodeError, index_d$4_InvalidPostalCodeWixError as InvalidPostalCodeWixError, type index_d$4_MissingPostalCodeError as MissingPostalCodeError, index_d$4_MissingPostalCodeWixError as MissingPostalCodeWixError, type index_d$4_PartialOption as PartialOption, type PhysicalProperties$3 as PhysicalProperties, type PickupDetails$2 as PickupDetails, PickupMethod$2 as PickupMethod, type index_d$4_ProductItem as ProductItem, type index_d$4_RegionDashboardTables as RegionDashboardTables, type index_d$4_Row as Row, index_d$4_RuleType as RuleType, type index_d$4_ShippingOption as ShippingOption, type ShippingPrice$1 as ShippingPrice, type index_d$4_ShippingRatesConfig as ShippingRatesConfig, type index_d$4_StandardDetails as StandardDetails, type StreetAddress$3 as StreetAddress, type index_d$4_Subdivision as Subdivision, index_d$4_SubdivisionType as SubdivisionType, type VatId$3 as VatId, VatType$3 as VatType, WeightUnit$2 as WeightUnit, type _publicProvideHandlersType$4 as _publicProvideHandlersType, provideHandlers$8 as provideHandlers, provideHandlers$9 as publicProvideHandlers };
572
+ type index_d$5_AdditionalCharge = AdditionalCharge;
573
+ type index_d$5_AddressStreetOneOf = AddressStreetOneOf;
574
+ type index_d$5_ApplicationError = ApplicationError;
575
+ type index_d$5_Column = Column;
576
+ type index_d$5_DashboardTable = DashboardTable;
577
+ type index_d$5_DeliveryPreferences = DeliveryPreferences;
578
+ type index_d$5_FieldViolation = FieldViolation;
579
+ type index_d$5_GenericShippingRatesError = GenericShippingRatesError;
580
+ type index_d$5_GenericShippingRatesWixError = GenericShippingRatesWixError;
581
+ declare const index_d$5_GenericShippingRatesWixError: typeof GenericShippingRatesWixError;
582
+ type index_d$5_GetDashboardTablesRequest = GetDashboardTablesRequest;
583
+ type index_d$5_GetDashboardTablesResponse = GetDashboardTablesResponse;
584
+ type index_d$5_GetShippingRatesRequest = GetShippingRatesRequest;
585
+ type index_d$5_GetShippingRatesResponse = GetShippingRatesResponse;
586
+ type index_d$5_InvalidAddressError = InvalidAddressError;
587
+ type index_d$5_InvalidAddressWixError = InvalidAddressWixError;
588
+ declare const index_d$5_InvalidAddressWixError: typeof InvalidAddressWixError;
589
+ type index_d$5_InvalidPostalCodeError = InvalidPostalCodeError;
590
+ type index_d$5_InvalidPostalCodeWixError = InvalidPostalCodeWixError;
591
+ declare const index_d$5_InvalidPostalCodeWixError: typeof InvalidPostalCodeWixError;
592
+ type index_d$5_MissingPostalCodeError = MissingPostalCodeError;
593
+ type index_d$5_MissingPostalCodeWixError = MissingPostalCodeWixError;
594
+ declare const index_d$5_MissingPostalCodeWixError: typeof MissingPostalCodeWixError;
595
+ type index_d$5_PartialOption = PartialOption;
596
+ type index_d$5_ProductItem = ProductItem;
597
+ type index_d$5_RegionDashboardTables = RegionDashboardTables;
598
+ type index_d$5_Row = Row;
599
+ type index_d$5_RuleType = RuleType;
600
+ declare const index_d$5_RuleType: typeof RuleType;
601
+ type index_d$5_ShippingOption = ShippingOption;
602
+ type index_d$5_ShippingRatesConfig = ShippingRatesConfig;
603
+ type index_d$5_StandardDetails = StandardDetails;
604
+ type index_d$5_Subdivision = Subdivision;
605
+ type index_d$5_SubdivisionType = SubdivisionType;
606
+ declare const index_d$5_SubdivisionType: typeof SubdivisionType;
607
+ declare namespace index_d$5 {
608
+ export { type index_d$5_AdditionalCharge as AdditionalCharge, type Address$3 as Address, type AddressLocation$3 as AddressLocation, type index_d$5_AddressStreetOneOf as AddressStreetOneOf, type index_d$5_ApplicationError as ApplicationError, type CatalogReference$5 as CatalogReference, ChargeType$1 as ChargeType, type index_d$5_Column as Column, type Context$5 as Context, type index_d$5_DashboardTable as DashboardTable, type DeliveryLogistics$2 as DeliveryLogistics, type index_d$5_DeliveryPreferences as DeliveryPreferences, type DeliveryTimeSlot$1 as DeliveryTimeSlot, type index_d$5_FieldViolation as FieldViolation, type FullAddressContactDetails$3 as FullAddressContactDetails, type index_d$5_GenericShippingRatesError as GenericShippingRatesError, index_d$5_GenericShippingRatesWixError as GenericShippingRatesWixError, type index_d$5_GetDashboardTablesRequest as GetDashboardTablesRequest, type index_d$5_GetDashboardTablesResponse as GetDashboardTablesResponse, type index_d$5_GetShippingRatesRequest as GetShippingRatesRequest, type index_d$5_GetShippingRatesResponse as GetShippingRatesResponse, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, IdentityType$5 as IdentityType, type index_d$5_InvalidAddressError as InvalidAddressError, index_d$5_InvalidAddressWixError as InvalidAddressWixError, type index_d$5_InvalidPostalCodeError as InvalidPostalCodeError, index_d$5_InvalidPostalCodeWixError as InvalidPostalCodeWixError, type index_d$5_MissingPostalCodeError as MissingPostalCodeError, index_d$5_MissingPostalCodeWixError as MissingPostalCodeWixError, type index_d$5_PartialOption as PartialOption, type PhysicalProperties$3 as PhysicalProperties, type PickupDetails$2 as PickupDetails, PickupMethod$2 as PickupMethod, type index_d$5_ProductItem as ProductItem, type index_d$5_RegionDashboardTables as RegionDashboardTables, type index_d$5_Row as Row, index_d$5_RuleType as RuleType, type index_d$5_ShippingOption as ShippingOption, type ShippingPrice$1 as ShippingPrice, type index_d$5_ShippingRatesConfig as ShippingRatesConfig, type index_d$5_StandardDetails as StandardDetails, type StreetAddress$3 as StreetAddress, type index_d$5_Subdivision as Subdivision, index_d$5_SubdivisionType as SubdivisionType, type VatId$3 as VatId, VatType$3 as VatType, WeightUnit$2 as WeightUnit, type _publicProvideHandlersType$5 as _publicProvideHandlersType, provideHandlers$a as provideHandlers, provideHandlers$b as publicProvideHandlers };
609
609
  }
610
610
 
611
611
  interface CalculateAdditionalFeesRequest {
@@ -614,7 +614,7 @@ interface CalculateAdditionalFeesRequest {
614
614
  *
615
615
  * Max: 300 items
616
616
  */
617
- lineItems?: LineItem$2[];
617
+ lineItems?: LineItem$3[];
618
618
  /** Shipping address. */
619
619
  shippingAddress?: Address$2;
620
620
  /** Information about the buyer, such as contact details. */
@@ -626,7 +626,7 @@ interface CalculateAdditionalFeesRequest {
626
626
  /** Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order. */
627
627
  purchaseFlowId?: string | null;
628
628
  }
629
- interface LineItem$2 {
629
+ interface LineItem$3 {
630
630
  /** Line item ID. */
631
631
  _id?: string;
632
632
  /**
@@ -637,7 +637,7 @@ interface LineItem$2 {
637
637
  */
638
638
  quantity?: number | null;
639
639
  /** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. */
640
- catalogReference?: CatalogReference$3;
640
+ catalogReference?: CatalogReference$4;
641
641
  /** Item name. */
642
642
  productName?: string | null;
643
643
  /** Price for a single item. */
@@ -651,7 +651,7 @@ interface LineItem$2 {
651
651
  depositAmount?: string | null;
652
652
  }
653
653
  /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
654
- interface CatalogReference$3 {
654
+ interface CatalogReference$4 {
655
655
  /** ID of the item within the catalog it belongs to. */
656
656
  catalogItemId?: string;
657
657
  /**
@@ -943,26 +943,26 @@ interface AdditionalFeesSPIConfig {
943
943
  * }
944
944
  * ```
945
945
  */
946
- interface Context$3 {
946
+ interface Context$4 {
947
947
  /** A unique identifier of the request. You may print this ID to your logs to help with future debugging and easier correlation with Wix's logs. */
948
948
  requestId?: string | null;
949
949
  /** [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letter currency code. */
950
950
  currency?: string | null;
951
951
  /** An object that describes the identity that triggered this request. */
952
- identity?: IdentificationData$3;
952
+ identity?: IdentificationData$4;
953
953
  /** A string representing a language and region in the format of `"xx-XX"`. First 2 letters represent the language code according to ISO 639-1. This is followed by a dash "-", and then a by 2 capital letters representing the region according to ISO 3166-2. For example, `"en-US"`. */
954
954
  languages?: string[];
955
955
  /** The service provider app's instance ID. */
956
956
  instanceId?: string | null;
957
957
  }
958
- declare enum IdentityType$3 {
958
+ declare enum IdentityType$4 {
959
959
  UNKNOWN = "UNKNOWN",
960
960
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
961
961
  MEMBER = "MEMBER",
962
962
  WIX_USER = "WIX_USER",
963
963
  APP = "APP"
964
964
  }
965
- interface IdentificationData$3 extends IdentificationDataIdOneOf$3 {
965
+ interface IdentificationData$4 extends IdentificationDataIdOneOf$4 {
966
966
  /** ID of a site visitor that has not logged in to the site. */
967
967
  anonymousVisitorId?: string;
968
968
  /** ID of a site visitor that has logged in to the site. */
@@ -972,10 +972,10 @@ interface IdentificationData$3 extends IdentificationDataIdOneOf$3 {
972
972
  /** ID of an app. */
973
973
  appId?: string;
974
974
  /** @readonly */
975
- identityType?: IdentityType$3;
975
+ identityType?: IdentityType$4;
976
976
  }
977
977
  /** @oneof */
978
- interface IdentificationDataIdOneOf$3 {
978
+ interface IdentificationDataIdOneOf$4 {
979
979
  /** ID of a site visitor that has not logged in to the site. */
980
980
  anonymousVisitorId?: string;
981
981
  /** ID of a site visitor that has logged in to the site. */
@@ -988,9 +988,9 @@ interface IdentificationDataIdOneOf$3 {
988
988
 
989
989
  interface CalculateAdditionalFeesEnvelope {
990
990
  request: CalculateAdditionalFeesRequest;
991
- metadata: Context$3;
991
+ metadata: Context$4;
992
992
  }
993
- declare const provideHandlers$7: ServicePluginDefinition<{
993
+ declare const provideHandlers$9: ServicePluginDefinition<{
994
994
  /**
995
995
  *
996
996
  * This method retrieves additional fees calculated by your app.
@@ -1002,20 +1002,20 @@ declare const provideHandlers$7: ServicePluginDefinition<{
1002
1002
  calculateAdditionalFees(payload: CalculateAdditionalFeesEnvelope): CalculateAdditionalFeesResponse | Promise<CalculateAdditionalFeesResponse>;
1003
1003
  }>;
1004
1004
 
1005
- declare function createServicePluginModule$3<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
1005
+ declare function createServicePluginModule$4<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
1006
1006
 
1007
- type _publicProvideHandlersType$3 = typeof provideHandlers$7;
1008
- declare const provideHandlers$6: ReturnType<typeof createServicePluginModule$3<_publicProvideHandlersType>>;
1007
+ type _publicProvideHandlersType$4 = typeof provideHandlers$9;
1008
+ declare const provideHandlers$8: ReturnType<typeof createServicePluginModule$4<_publicProvideHandlersType>>;
1009
1009
 
1010
- type index_d$3_AdditionalFeesSPIConfig = AdditionalFeesSPIConfig;
1011
- type index_d$3_CalculateAdditionalFeesRequest = CalculateAdditionalFeesRequest;
1012
- type index_d$3_CalculateAdditionalFeesResponse = CalculateAdditionalFeesResponse;
1013
- type index_d$3_ChargeType = ChargeType;
1014
- declare const index_d$3_ChargeType: typeof ChargeType;
1015
- type index_d$3_SelectedCarrierServiceOptionOtherCharge = SelectedCarrierServiceOptionOtherCharge;
1016
- type index_d$3_TaxDetails = TaxDetails;
1017
- declare namespace index_d$3 {
1018
- export { type AdditionalFee$1 as AdditionalFee, type index_d$3_AdditionalFeesSPIConfig as AdditionalFeesSPIConfig, type Address$2 as Address, type AddressLocation$2 as AddressLocation, type AppliedDiscount$2 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$2 as AppliedDiscountDiscountSourceOneOf, type BuyerDetails$1 as BuyerDetails, type index_d$3_CalculateAdditionalFeesRequest as CalculateAdditionalFeesRequest, type index_d$3_CalculateAdditionalFeesResponse as CalculateAdditionalFeesResponse, type CatalogReference$3 as CatalogReference, index_d$3_ChargeType as ChargeType, type Context$3 as Context, type Coupon$2 as Coupon, type DeliveryLogistics$1 as DeliveryLogistics, type DiscountRule$2 as DiscountRule, type DiscountRuleName$2 as DiscountRuleName, DiscountType$2 as DiscountType, type FullAddressContactDetails$2 as FullAddressContactDetails, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, IdentityType$3 as IdentityType, type LineItem$2 as LineItem, type MerchantDiscount$2 as MerchantDiscount, type PhysicalProperties$2 as PhysicalProperties, type PickupDetails$1 as PickupDetails, PickupMethod$1 as PickupMethod, type SelectedCarrierServiceOption$1 as SelectedCarrierServiceOption, type index_d$3_SelectedCarrierServiceOptionOtherCharge as SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices$1 as SelectedCarrierServiceOptionPrices, type ShippingInformation$1 as ShippingInformation, type StreetAddress$2 as StreetAddress, type index_d$3_TaxDetails as TaxDetails, type VatId$2 as VatId, VatType$2 as VatType, type _publicProvideHandlersType$3 as _publicProvideHandlersType, provideHandlers$6 as provideHandlers, provideHandlers$7 as publicProvideHandlers };
1010
+ type index_d$4_AdditionalFeesSPIConfig = AdditionalFeesSPIConfig;
1011
+ type index_d$4_CalculateAdditionalFeesRequest = CalculateAdditionalFeesRequest;
1012
+ type index_d$4_CalculateAdditionalFeesResponse = CalculateAdditionalFeesResponse;
1013
+ type index_d$4_ChargeType = ChargeType;
1014
+ declare const index_d$4_ChargeType: typeof ChargeType;
1015
+ type index_d$4_SelectedCarrierServiceOptionOtherCharge = SelectedCarrierServiceOptionOtherCharge;
1016
+ type index_d$4_TaxDetails = TaxDetails;
1017
+ declare namespace index_d$4 {
1018
+ export { type AdditionalFee$1 as AdditionalFee, type index_d$4_AdditionalFeesSPIConfig as AdditionalFeesSPIConfig, type Address$2 as Address, type AddressLocation$2 as AddressLocation, type AppliedDiscount$2 as AppliedDiscount, type AppliedDiscountDiscountSourceOneOf$2 as AppliedDiscountDiscountSourceOneOf, type BuyerDetails$1 as BuyerDetails, type index_d$4_CalculateAdditionalFeesRequest as CalculateAdditionalFeesRequest, type index_d$4_CalculateAdditionalFeesResponse as CalculateAdditionalFeesResponse, type CatalogReference$4 as CatalogReference, index_d$4_ChargeType as ChargeType, type Context$4 as Context, type Coupon$2 as Coupon, type DeliveryLogistics$1 as DeliveryLogistics, type DiscountRule$2 as DiscountRule, type DiscountRuleName$2 as DiscountRuleName, DiscountType$2 as DiscountType, type FullAddressContactDetails$2 as FullAddressContactDetails, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, IdentityType$4 as IdentityType, type LineItem$3 as LineItem, type MerchantDiscount$2 as MerchantDiscount, type PhysicalProperties$2 as PhysicalProperties, type PickupDetails$1 as PickupDetails, PickupMethod$1 as PickupMethod, type SelectedCarrierServiceOption$1 as SelectedCarrierServiceOption, type index_d$4_SelectedCarrierServiceOptionOtherCharge as SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices$1 as SelectedCarrierServiceOptionPrices, type ShippingInformation$1 as ShippingInformation, type StreetAddress$2 as StreetAddress, type index_d$4_TaxDetails as TaxDetails, type VatId$2 as VatId, VatType$2 as VatType, type _publicProvideHandlersType$4 as _publicProvideHandlersType, provideHandlers$8 as provideHandlers, provideHandlers$9 as publicProvideHandlers };
1019
1019
  }
1020
1020
 
1021
1021
  interface CustomTrigger {
@@ -1036,13 +1036,13 @@ interface ListTriggersResponseCustomTrigger {
1036
1036
  }
1037
1037
  interface GetEligibleTriggersRequest {
1038
1038
  /** List of line items in the cart/checkout. */
1039
- lineItems?: LineItem$1[];
1039
+ lineItems?: LineItem$2[];
1040
1040
  /** List of triggers to be checked for discount eligibility. */
1041
1041
  triggers?: TriggerToFilterBy[];
1042
1042
  /** Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order. */
1043
1043
  purchaseFlowId?: string | null;
1044
1044
  }
1045
- interface LineItem$1 {
1045
+ interface LineItem$2 {
1046
1046
  /** Line item ID. */
1047
1047
  _id?: string;
1048
1048
  /** Item quantity in this line item. */
@@ -1051,12 +1051,12 @@ interface LineItem$1 {
1051
1051
  * Catalog and item reference. Holds IDs for the item and the catalog it came from, as well as further optional info.
1052
1052
  * This field is empty in the case of a custom line item.
1053
1053
  */
1054
- catalogReference?: CatalogReference$2;
1054
+ catalogReference?: CatalogReference$3;
1055
1055
  /** Price of a single item. */
1056
1056
  price?: string;
1057
1057
  }
1058
1058
  /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
1059
- interface CatalogReference$2 {
1059
+ interface CatalogReference$3 {
1060
1060
  /** ID of the item within the catalog it belongs to. */
1061
1061
  catalogItemId?: string;
1062
1062
  /**
@@ -1113,26 +1113,26 @@ interface CustomTriggerConfig {
1113
1113
  * }
1114
1114
  * ```
1115
1115
  */
1116
- interface Context$2 {
1116
+ interface Context$3 {
1117
1117
  /** A unique identifier of the request. You may print this ID to your logs to help with future debugging and easier correlation with Wix's logs. */
1118
1118
  requestId?: string | null;
1119
1119
  /** [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letter currency code. */
1120
1120
  currency?: string | null;
1121
1121
  /** An object that describes the identity that triggered this request. */
1122
- identity?: IdentificationData$2;
1122
+ identity?: IdentificationData$3;
1123
1123
  /** A string representing a language and region in the format of `"xx-XX"`. First 2 letters represent the language code according to ISO 639-1. This is followed by a dash "-", and then a by 2 capital letters representing the region according to ISO 3166-2. For example, `"en-US"`. */
1124
1124
  languages?: string[];
1125
1125
  /** The service provider app's instance ID. */
1126
1126
  instanceId?: string | null;
1127
1127
  }
1128
- declare enum IdentityType$2 {
1128
+ declare enum IdentityType$3 {
1129
1129
  UNKNOWN = "UNKNOWN",
1130
1130
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1131
1131
  MEMBER = "MEMBER",
1132
1132
  WIX_USER = "WIX_USER",
1133
1133
  APP = "APP"
1134
1134
  }
1135
- interface IdentificationData$2 extends IdentificationDataIdOneOf$2 {
1135
+ interface IdentificationData$3 extends IdentificationDataIdOneOf$3 {
1136
1136
  /** ID of a site visitor that has not logged in to the site. */
1137
1137
  anonymousVisitorId?: string;
1138
1138
  /** ID of a site visitor that has logged in to the site. */
@@ -1142,10 +1142,10 @@ interface IdentificationData$2 extends IdentificationDataIdOneOf$2 {
1142
1142
  /** ID of an app. */
1143
1143
  appId?: string;
1144
1144
  /** @readonly */
1145
- identityType?: IdentityType$2;
1145
+ identityType?: IdentityType$3;
1146
1146
  }
1147
1147
  /** @oneof */
1148
- interface IdentificationDataIdOneOf$2 {
1148
+ interface IdentificationDataIdOneOf$3 {
1149
1149
  /** ID of a site visitor that has not logged in to the site. */
1150
1150
  anonymousVisitorId?: string;
1151
1151
  /** ID of a site visitor that has logged in to the site. */
@@ -1158,13 +1158,13 @@ interface IdentificationDataIdOneOf$2 {
1158
1158
 
1159
1159
  interface ListTriggersEnvelope {
1160
1160
  request: ListTriggersRequest;
1161
- metadata: Context$2;
1161
+ metadata: Context$3;
1162
1162
  }
1163
1163
  interface GetEligibleTriggersEnvelope {
1164
1164
  request: GetEligibleTriggersRequest;
1165
- metadata: Context$2;
1165
+ metadata: Context$3;
1166
1166
  }
1167
- declare const provideHandlers$5: ServicePluginDefinition<{
1167
+ declare const provideHandlers$7: ServicePluginDefinition<{
1168
1168
  /**
1169
1169
  *
1170
1170
  * Lists all custom triggers provided by your service plugin integration.
@@ -1180,22 +1180,262 @@ declare const provideHandlers$5: ServicePluginDefinition<{
1180
1180
  getEligibleTriggers(payload: GetEligibleTriggersEnvelope): GetEligibleTriggersResponse | Promise<GetEligibleTriggersResponse>;
1181
1181
  }>;
1182
1182
 
1183
+ declare function createServicePluginModule$3<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
1184
+
1185
+ type _publicProvideHandlersType$3 = typeof provideHandlers$7;
1186
+ declare const provideHandlers$6: ReturnType<typeof createServicePluginModule$3<_publicProvideHandlersType>>;
1187
+
1188
+ type index_d$3_CustomTrigger = CustomTrigger;
1189
+ type index_d$3_CustomTriggerConfig = CustomTriggerConfig;
1190
+ type index_d$3_EligibleTrigger = EligibleTrigger;
1191
+ type index_d$3_GetEligibleTriggersRequest = GetEligibleTriggersRequest;
1192
+ type index_d$3_GetEligibleTriggersResponse = GetEligibleTriggersResponse;
1193
+ type index_d$3_ListTriggersRequest = ListTriggersRequest;
1194
+ type index_d$3_ListTriggersResponse = ListTriggersResponse;
1195
+ type index_d$3_ListTriggersResponseCustomTrigger = ListTriggersResponseCustomTrigger;
1196
+ type index_d$3_TriggerToFilterBy = TriggerToFilterBy;
1197
+ declare namespace index_d$3 {
1198
+ export { type CatalogReference$3 as CatalogReference, type Context$3 as Context, type index_d$3_CustomTrigger as CustomTrigger, type index_d$3_CustomTriggerConfig as CustomTriggerConfig, type index_d$3_EligibleTrigger as EligibleTrigger, type index_d$3_GetEligibleTriggersRequest as GetEligibleTriggersRequest, type index_d$3_GetEligibleTriggersResponse as GetEligibleTriggersResponse, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, IdentityType$3 as IdentityType, type LineItem$2 as LineItem, type index_d$3_ListTriggersRequest as ListTriggersRequest, type index_d$3_ListTriggersResponse as ListTriggersResponse, type index_d$3_ListTriggersResponseCustomTrigger as ListTriggersResponseCustomTrigger, type index_d$3_TriggerToFilterBy as TriggerToFilterBy, type _publicProvideHandlersType$3 as _publicProvideHandlersType, provideHandlers$6 as provideHandlers, provideHandlers$7 as publicProvideHandlers };
1199
+ }
1200
+
1201
+ interface GetEligibleDiscountsRequest {
1202
+ /** Line items */
1203
+ lineItems?: LineItem$1[];
1204
+ /** Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order. */
1205
+ purchaseFlowId?: string | null;
1206
+ /** Number of coupons is limited to 1 due to limitations in Checkout. */
1207
+ couponCodes?: string[];
1208
+ }
1209
+ interface LineItem$1 {
1210
+ /** Line item ID. */
1211
+ _id?: string;
1212
+ /** Line item quantity. */
1213
+ quantity?: number | null;
1214
+ /** Catalog and item reference info. Learn more about [integrating Wix Stores products with Wix eCommerce](https://dev.wix.com/api/rest/wix-stores/catalog/ecommerce-integration). */
1215
+ catalogReference?: CatalogReference$2;
1216
+ /** Line item price. */
1217
+ price?: string;
1218
+ }
1219
+ /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
1220
+ interface CatalogReference$2 {
1221
+ /** ID of the item within the catalog it belongs to. */
1222
+ catalogItemId?: string;
1223
+ /**
1224
+ * ID of the app providing the catalog.
1225
+ *
1226
+ * You can get your app's ID from its page in the [Wix Dev Center](https://dev.wix.com/apps).
1227
+ *
1228
+ * For items from Wix catalogs, the following values always apply:
1229
+ * + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
1230
+ * + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
1231
+ * + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
1232
+ */
1233
+ appId?: string;
1234
+ /**
1235
+ * Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.
1236
+ *
1237
+ * For products and variants from a Wix Stores catalog, learn more about [eCommerce integration](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration).
1238
+ */
1239
+ options?: Record<string, any> | null;
1240
+ }
1241
+ interface GetEligibleDiscountsResponse {
1242
+ /** List of discounts to apply */
1243
+ discounts?: Discount[];
1244
+ }
1245
+ /** Discount */
1246
+ interface Discount extends DiscountDiscountTypeOneOf, DiscountDiscountScopesOneOf {
1247
+ /** Global discounts */
1248
+ globalDiscounts?: BaseDiscounts;
1249
+ /** Shipping discounts */
1250
+ shippingDiscounts?: BaseDiscounts;
1251
+ /** line items discounts */
1252
+ lineItemsDiscounts?: LineItemsDiscounts;
1253
+ /** Coupon options */
1254
+ couponOptions?: CouponOptions;
1255
+ /** Target type */
1256
+ targetType?: TargetType;
1257
+ /** Name */
1258
+ name?: DiscountName;
1259
+ /** external id used by the implementor */
1260
+ externalId?: string | null;
1261
+ /** Source */
1262
+ source?: DiscountSource;
1263
+ }
1264
+ /** @oneof */
1265
+ interface DiscountDiscountTypeOneOf {
1266
+ /** Global discounts */
1267
+ globalDiscounts?: BaseDiscounts;
1268
+ /** Shipping discounts */
1269
+ shippingDiscounts?: BaseDiscounts;
1270
+ /** line items discounts */
1271
+ lineItemsDiscounts?: LineItemsDiscounts;
1272
+ }
1273
+ /** @oneof */
1274
+ interface DiscountDiscountScopesOneOf {
1275
+ /** Coupon options */
1276
+ couponOptions?: CouponOptions;
1277
+ }
1278
+ declare enum TargetType {
1279
+ UNKNOWN_TARGET = "UNKNOWN_TARGET",
1280
+ GLOBAL = "GLOBAL",
1281
+ SHIPPING = "SHIPPING",
1282
+ LINE_ITEMS = "LINE_ITEMS"
1283
+ }
1284
+ interface DiscountName {
1285
+ /** Original discount rule name (in site's default language). */
1286
+ original?: string;
1287
+ /**
1288
+ * Translated discount rule name according to buyer language.
1289
+ *
1290
+ * Default: `original`
1291
+ */
1292
+ translated?: string | null;
1293
+ }
1294
+ interface BaseDiscounts {
1295
+ /** The rate of the discount. */
1296
+ rate?: DiscountRate;
1297
+ }
1298
+ interface DiscountRate extends DiscountRateRateOneOf {
1299
+ /** Global discounts */
1300
+ fixedAmountValue?: string;
1301
+ /** Shipping discounts */
1302
+ percentageValue?: string;
1303
+ /** Type of calculation */
1304
+ type?: Type;
1305
+ }
1306
+ /** @oneof */
1307
+ interface DiscountRateRateOneOf {
1308
+ /** Global discounts */
1309
+ fixedAmountValue?: string;
1310
+ /** Shipping discounts */
1311
+ percentageValue?: string;
1312
+ }
1313
+ declare enum Type {
1314
+ UNKNOWN_RATE = "UNKNOWN_RATE",
1315
+ FIXED_AMOUNT = "FIXED_AMOUNT",
1316
+ PERCENTAGE = "PERCENTAGE"
1317
+ }
1318
+ interface LineItemsDiscounts {
1319
+ /** Line items */
1320
+ lineItems?: LineItemRate[];
1321
+ }
1322
+ interface LineItemRate {
1323
+ /** The rate of the discount. */
1324
+ rate?: DiscountRate;
1325
+ /** id of the line item. */
1326
+ _id?: string;
1327
+ }
1328
+ declare enum DiscountSource {
1329
+ UNKNOWN_SOURCE = "UNKNOWN_SOURCE",
1330
+ COUPON = "COUPON",
1331
+ AUTOMATIC = "AUTOMATIC",
1332
+ CUSTOM = "CUSTOM"
1333
+ }
1334
+ interface CouponOptions {
1335
+ /** Coupon code, only relevant when source is coupon. */
1336
+ code?: string | null;
1337
+ }
1338
+ interface DiscountsSPIConfig {
1339
+ /**
1340
+ * Base URI where the endpoints are called.
1341
+ * Wix eCommerce appends the endpoint path to the base URI.
1342
+ */
1343
+ deploymentUri?: string;
1344
+ }
1345
+ /**
1346
+ * this message is not directly used by any service,
1347
+ * it exists to describe the expected parameters that SHOULD be provided to invoked Velo methods as part of open-platform.
1348
+ * e.g. SPIs, event-handlers, etc..
1349
+ * NOTE: this context object MUST be provided as the last argument in each Velo method signature.
1350
+ *
1351
+ * Example:
1352
+ * ```typescript
1353
+ * export function wixStores_onOrderCanceled({ event, metadata }: OrderCanceledEvent) {
1354
+ * ...
1355
+ * }
1356
+ * ```
1357
+ */
1358
+ interface Context$2 {
1359
+ /** A unique identifier of the request. You may print this ID to your logs to help with future debugging and easier correlation with Wix's logs. */
1360
+ requestId?: string | null;
1361
+ /** [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letter currency code. */
1362
+ currency?: string | null;
1363
+ /** An object that describes the identity that triggered this request. */
1364
+ identity?: IdentificationData$2;
1365
+ /** A string representing a language and region in the format of `"xx-XX"`. First 2 letters represent the language code according to ISO 639-1. This is followed by a dash "-", and then a by 2 capital letters representing the region according to ISO 3166-2. For example, `"en-US"`. */
1366
+ languages?: string[];
1367
+ /** The service provider app's instance ID. */
1368
+ instanceId?: string | null;
1369
+ }
1370
+ declare enum IdentityType$2 {
1371
+ UNKNOWN = "UNKNOWN",
1372
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1373
+ MEMBER = "MEMBER",
1374
+ WIX_USER = "WIX_USER",
1375
+ APP = "APP"
1376
+ }
1377
+ interface IdentificationData$2 extends IdentificationDataIdOneOf$2 {
1378
+ /** ID of a site visitor that has not logged in to the site. */
1379
+ anonymousVisitorId?: string;
1380
+ /** ID of a site visitor that has logged in to the site. */
1381
+ memberId?: string;
1382
+ /** ID of a Wix user (site owner, contributor, etc.). */
1383
+ wixUserId?: string;
1384
+ /** ID of an app. */
1385
+ appId?: string;
1386
+ /** @readonly */
1387
+ identityType?: IdentityType$2;
1388
+ }
1389
+ /** @oneof */
1390
+ interface IdentificationDataIdOneOf$2 {
1391
+ /** ID of a site visitor that has not logged in to the site. */
1392
+ anonymousVisitorId?: string;
1393
+ /** ID of a site visitor that has logged in to the site. */
1394
+ memberId?: string;
1395
+ /** ID of a Wix user (site owner, contributor, etc.). */
1396
+ wixUserId?: string;
1397
+ /** ID of an app. */
1398
+ appId?: string;
1399
+ }
1400
+
1401
+ interface GetEligibleDiscountsEnvelope {
1402
+ request: GetEligibleDiscountsRequest;
1403
+ metadata: Context$2;
1404
+ }
1405
+ declare const provideHandlers$5: ServicePluginDefinition<{
1406
+ /**
1407
+ *
1408
+ * Wix calls this method when certain actions are performed on the cart or checkout.
1409
+ * For example, when an item is added to the cart or the amount of an item is updated in the checkout. */
1410
+ getEligibleDiscounts(payload: GetEligibleDiscountsEnvelope): GetEligibleDiscountsResponse | Promise<GetEligibleDiscountsResponse>;
1411
+ }>;
1412
+
1183
1413
  declare function createServicePluginModule$2<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
1184
1414
 
1185
1415
  type _publicProvideHandlersType$2 = typeof provideHandlers$5;
1186
1416
  declare const provideHandlers$4: ReturnType<typeof createServicePluginModule$2<_publicProvideHandlersType>>;
1187
1417
 
1188
- type index_d$2_CustomTrigger = CustomTrigger;
1189
- type index_d$2_CustomTriggerConfig = CustomTriggerConfig;
1190
- type index_d$2_EligibleTrigger = EligibleTrigger;
1191
- type index_d$2_GetEligibleTriggersRequest = GetEligibleTriggersRequest;
1192
- type index_d$2_GetEligibleTriggersResponse = GetEligibleTriggersResponse;
1193
- type index_d$2_ListTriggersRequest = ListTriggersRequest;
1194
- type index_d$2_ListTriggersResponse = ListTriggersResponse;
1195
- type index_d$2_ListTriggersResponseCustomTrigger = ListTriggersResponseCustomTrigger;
1196
- type index_d$2_TriggerToFilterBy = TriggerToFilterBy;
1418
+ type index_d$2_BaseDiscounts = BaseDiscounts;
1419
+ type index_d$2_CouponOptions = CouponOptions;
1420
+ type index_d$2_Discount = Discount;
1421
+ type index_d$2_DiscountDiscountScopesOneOf = DiscountDiscountScopesOneOf;
1422
+ type index_d$2_DiscountDiscountTypeOneOf = DiscountDiscountTypeOneOf;
1423
+ type index_d$2_DiscountName = DiscountName;
1424
+ type index_d$2_DiscountRate = DiscountRate;
1425
+ type index_d$2_DiscountRateRateOneOf = DiscountRateRateOneOf;
1426
+ type index_d$2_DiscountSource = DiscountSource;
1427
+ declare const index_d$2_DiscountSource: typeof DiscountSource;
1428
+ type index_d$2_DiscountsSPIConfig = DiscountsSPIConfig;
1429
+ type index_d$2_GetEligibleDiscountsRequest = GetEligibleDiscountsRequest;
1430
+ type index_d$2_GetEligibleDiscountsResponse = GetEligibleDiscountsResponse;
1431
+ type index_d$2_LineItemRate = LineItemRate;
1432
+ type index_d$2_LineItemsDiscounts = LineItemsDiscounts;
1433
+ type index_d$2_TargetType = TargetType;
1434
+ declare const index_d$2_TargetType: typeof TargetType;
1435
+ type index_d$2_Type = Type;
1436
+ declare const index_d$2_Type: typeof Type;
1197
1437
  declare namespace index_d$2 {
1198
- export { type CatalogReference$2 as CatalogReference, type Context$2 as Context, type index_d$2_CustomTrigger as CustomTrigger, type index_d$2_CustomTriggerConfig as CustomTriggerConfig, type index_d$2_EligibleTrigger as EligibleTrigger, type index_d$2_GetEligibleTriggersRequest as GetEligibleTriggersRequest, type index_d$2_GetEligibleTriggersResponse as GetEligibleTriggersResponse, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, IdentityType$2 as IdentityType, type LineItem$1 as LineItem, type index_d$2_ListTriggersRequest as ListTriggersRequest, type index_d$2_ListTriggersResponse as ListTriggersResponse, type index_d$2_ListTriggersResponseCustomTrigger as ListTriggersResponseCustomTrigger, type index_d$2_TriggerToFilterBy as TriggerToFilterBy, type _publicProvideHandlersType$2 as _publicProvideHandlersType, provideHandlers$4 as provideHandlers, provideHandlers$5 as publicProvideHandlers };
1438
+ export { type index_d$2_BaseDiscounts as BaseDiscounts, type CatalogReference$2 as CatalogReference, type Context$2 as Context, type index_d$2_CouponOptions as CouponOptions, type index_d$2_Discount as Discount, type index_d$2_DiscountDiscountScopesOneOf as DiscountDiscountScopesOneOf, type index_d$2_DiscountDiscountTypeOneOf as DiscountDiscountTypeOneOf, type index_d$2_DiscountName as DiscountName, type index_d$2_DiscountRate as DiscountRate, type index_d$2_DiscountRateRateOneOf as DiscountRateRateOneOf, index_d$2_DiscountSource as DiscountSource, type index_d$2_DiscountsSPIConfig as DiscountsSPIConfig, type index_d$2_GetEligibleDiscountsRequest as GetEligibleDiscountsRequest, type index_d$2_GetEligibleDiscountsResponse as GetEligibleDiscountsResponse, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, IdentityType$2 as IdentityType, type LineItem$1 as LineItem, type index_d$2_LineItemRate as LineItemRate, type index_d$2_LineItemsDiscounts as LineItemsDiscounts, index_d$2_TargetType as TargetType, index_d$2_Type as Type, type _publicProvideHandlersType$2 as _publicProvideHandlersType, provideHandlers$4 as provideHandlers, provideHandlers$5 as publicProvideHandlers };
1199
1439
  }
1200
1440
 
1201
1441
  interface GetPaymentSettingsRequest {
@@ -3433,4 +3673,4 @@ declare namespace index_d {
3433
3673
  export { type index_d_Address as Address, type index_d_AddressLocation as AddressLocation, type index_d_AddressWithContact as AddressWithContact, type index_d_AppliedDiscount as AppliedDiscount, type index_d_AppliedDiscountDiscountSourceOneOf as AppliedDiscountDiscountSourceOneOf, type index_d_BuyerDetails as BuyerDetails, type index_d_CatalogReference as CatalogReference, index_d_CheckoutStage as CheckoutStage, type index_d_Context as Context, type index_d_Coupon as Coupon, type index_d_CustomField as CustomField, type index_d_CustomFields as CustomFields, type index_d_Description as Description, type index_d_DiscountRule as DiscountRule, type index_d_DiscountRuleName as DiscountRuleName, index_d_DiscountType as DiscountType, type index_d_ExtendedFields as ExtendedFields, type index_d_ExternalReference as ExternalReference, type index_d_FullAddressContactDetails as FullAddressContactDetails, type index_d_GetValidationViolationsRequest as GetValidationViolationsRequest, type index_d_GetValidationViolationsResponse as GetValidationViolationsResponse, type index_d_GiftCard as GiftCard, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_IdentityType as IdentityType, type index_d_ItemTaxFullDetails as ItemTaxFullDetails, type index_d_ItemType as ItemType, index_d_ItemTypeItemType as ItemTypeItemType, type index_d_ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOf, index_d_JurisdictionType as JurisdictionType, type index_d_LineItem as LineItem, type index_d_LineItemPricesData as LineItemPricesData, type index_d_MerchantDiscount as MerchantDiscount, type index_d_MultiCurrencyPrice as MultiCurrencyPrice, index_d_NameInLineItem as NameInLineItem, index_d_NameInOther as NameInOther, type index_d_Other as Other, type index_d_PhysicalProperties as PhysicalProperties, type index_d_PriceSummary as PriceSummary, type index_d_ProductName as ProductName, type index_d_SelectedCarrierServiceOption as SelectedCarrierServiceOption, type index_d_SelectedCarrierServiceOptionPrices as SelectedCarrierServiceOptionPrices, index_d_Severity as Severity, type index_d_ShippingInfo as ShippingInfo, index_d_Source as Source, type index_d_SourceInfo as SourceInfo, type index_d_Stage as Stage, type index_d_StageStagesOneOf as StageStagesOneOf, type index_d_StreetAddress as StreetAddress, index_d_SubscriptionFrequency as SubscriptionFrequency, type index_d_SubscriptionOptionInfo as SubscriptionOptionInfo, type index_d_SubscriptionSettings as SubscriptionSettings, type index_d_Target as Target, type index_d_TargetLineItem as TargetLineItem, type index_d_TargetTargetTypeOneOf as TargetTargetTypeOneOf, type index_d_TaxBreakdown as TaxBreakdown, type index_d_Title as Title, type index_d_ValidationInfo as ValidationInfo, type index_d_ValidationsSPIConfig as ValidationsSPIConfig, type index_d_VatId as VatId, index_d_VatType as VatType, type index_d_Violation as Violation, index_d_WeightUnit as WeightUnit, type index_d__publicProvideHandlersType as _publicProvideHandlersType, index_d_provideHandlers as provideHandlers, provideHandlers$1 as publicProvideHandlers };
3434
3674
  }
3435
3675
 
3436
- export { index_d$3 as additionalFees, index_d$2 as customTriggers, index_d$1 as paymentSettings, index_d$4 as shippingRates, index_d as validations };
3676
+ export { index_d$4 as additionalFees, index_d$3 as customTriggers, index_d$2 as discounts, index_d$1 as paymentSettings, index_d$5 as shippingRates, index_d as validations };