@reactionary/core 0.3.16 → 0.3.18

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/initialization.js CHANGED
@@ -2,13 +2,13 @@ function createInitialRequestContext() {
2
2
  return {
3
3
  languageContext: {
4
4
  locale: "en",
5
- currencyCode: "USD"
5
+ currencyCode: "EUR"
6
6
  },
7
7
  storeIdentifier: {
8
8
  key: "the-good-store"
9
9
  },
10
10
  taxJurisdiction: {
11
- countryCode: "US",
11
+ countryCode: "DK",
12
12
  stateCode: "",
13
13
  countyCode: "",
14
14
  cityCode: ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactionary/core",
3
- "version": "0.3.16",
3
+ "version": "0.3.18",
4
4
  "main": "index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "dependencies": {
@@ -19,7 +19,8 @@ class PriceProvider extends BaseProvider {
19
19
  unitPrice: {
20
20
  value: -1,
21
21
  currency: this.context.languageContext.currencyCode
22
- }
22
+ },
23
+ onSale: false
23
24
  };
24
25
  return price;
25
26
  }
@@ -1,7 +1,8 @@
1
1
  import * as z from "zod";
2
2
  import { CartIdentifierSchema, CartItemIdentifierSchema, IdentityIdentifierSchema, ProductIdentifierSchema, ProductVariantIdentifierSchema } from "../models/identifiers.model.js";
3
- import { CostBreakDownSchema, ItemCostBreakdownSchema } from "./cost.model.js";
4
3
  import { BaseModelSchema } from "./base.model.js";
4
+ import { CostBreakDownSchema, ItemCostBreakdownSchema } from "./cost.model.js";
5
+ import { PromotionSchema } from "./price.model.js";
5
6
  const CartItemSchema = z.looseObject({
6
7
  identifier: CartItemIdentifierSchema.default(() => CartItemIdentifierSchema.parse({})),
7
8
  product: ProductIdentifierSchema.default(() => ProductIdentifierSchema.parse({})),
@@ -14,6 +15,7 @@ const CartSchema = BaseModelSchema.extend({
14
15
  userId: IdentityIdentifierSchema.default(() => IdentityIdentifierSchema.parse({})),
15
16
  items: z.array(CartItemSchema).default(() => []),
16
17
  price: CostBreakDownSchema.default(() => CostBreakDownSchema.parse({})),
18
+ appliedPromotions: z.array(PromotionSchema).default(() => []),
17
19
  name: z.string().default(""),
18
20
  description: z.string().default("")
19
21
  });
@@ -103,35 +103,38 @@ const ProductSearchIdentifierSchema = z.looseObject({
103
103
  term: z.string().meta({ description: "The search term used to find products." }),
104
104
  facets: z.array(FacetValueIdentifierSchema).meta({ description: "The facets applied to filter the search results." }),
105
105
  filters: z.array(z.string()).meta({ description: "Additional filters applied to the search results." }),
106
- paginationOptions: PaginationOptionsSchema.describe("Pagination options for the search results."),
107
- categoryFilter: FacetValueIdentifierSchema.optional().describe("An optional category filter applied to the search results.")
106
+ paginationOptions: PaginationOptionsSchema.meta({ description: "Pagination options for the search results." }),
107
+ categoryFilter: FacetValueIdentifierSchema.optional().meta({ description: "An optional category filter applied to the search results." })
108
108
  });
109
109
  const OrderSearchIdentifierSchema = z.looseObject({
110
110
  term: z.string().meta({ description: "The search term used to find orders. Not all providers may support term-based search for orders." }),
111
111
  partNumber: z.array(z.string()).optional().meta({ description: "An optional list part number to filter orders by specific products. Will be ANDed together." }),
112
112
  orderStatus: z.array(OrderStatusSchema).optional().meta({ description: "An optional list of order statuses to filter the search results." }),
113
- user: IdentityIdentifierSchema.optional().describe("An optional user ID to filter orders by specific users. Mostly for b2b usecases with hierachial order access."),
113
+ user: IdentityIdentifierSchema.optional().meta({ description: "An optional user ID to filter orders by specific users. Mostly for b2b usecases with hierachial order access." }),
114
114
  startDate: z.string().optional().meta({ description: "An optional start date to filter orders from a specific date onwards. ISO8601" }),
115
115
  endDate: z.string().optional().meta({ description: "An optional end date to filter orders up to a specific date. ISO8601" }),
116
116
  filters: z.array(z.string()).meta({ description: "Additional filters applied to the search results." }),
117
- paginationOptions: PaginationOptionsSchema.describe("Pagination options for the search results.")
117
+ paginationOptions: PaginationOptionsSchema.meta({ description: "Pagination options for the search results." })
118
118
  });
119
119
  const ProductListSearchIdentifierSchema = z.looseObject({
120
120
  listType: ProductListTypeSchema.meta({ description: 'The type of product list, e.g., "wishlist" or "favorites".' }),
121
- paginationOptions: PaginationOptionsSchema.describe("Pagination options for the search results.")
121
+ paginationOptions: PaginationOptionsSchema.meta({ description: "Pagination options for the search results." })
122
122
  });
123
123
  const ProductListIdentifierSchema = z.looseObject({
124
124
  listType: ProductListTypeSchema.meta({ description: 'The type of product list, e.g., "wish" or "favorite".' }),
125
125
  key: z.string().meta({ description: "The unique identifier for the product list." })
126
126
  });
127
127
  const ProductListItemSearchIdentifierSchema = z.looseObject({
128
- list: ProductListIdentifierSchema.describe("The identifier for the product list to query. The provider should return the items in the list that match this identifier. For example, if the identifier is a customer ID, the provider should return the items in the customer's wishlist. If the identifier is a session ID, the provider should return the items in the customer's current shopping cart. If the identifier is a product ID, the provider should return the items in the product's related products list."),
129
- paginationOptions: PaginationOptionsSchema.describe("Pagination options for the search results.")
128
+ list: ProductListIdentifierSchema.meta({ description: "The identifier for the product list to query. The provider should return the items in the list that match this identifier. For example, if the identifier is a customer ID, the provider should return the items in the customer's wishlist. If the identifier is a session ID, the provider should return the items in the customer's current shopping cart. If the identifier is a product ID, the provider should return the items in the product's related products list." }),
129
+ paginationOptions: PaginationOptionsSchema.meta({ description: "Pagination options for the search results." })
130
130
  });
131
131
  const ProductListItemIdentifierSchema = z.looseObject({
132
132
  key: z.string().meta({ description: "The unique identifier for the product list item." }),
133
133
  list: ProductListIdentifierSchema
134
134
  });
135
+ const PromotionIdentifierSchema = z.looseObject({
136
+ key: z.string().meta({ description: "The unique identifier for the promotion." })
137
+ });
135
138
  export {
136
139
  AddressIdentifierSchema,
137
140
  CartIdentifierSchema,
@@ -169,6 +172,7 @@ export {
169
172
  ProductReviewIdentifierSchema,
170
173
  ProductSearchIdentifierSchema,
171
174
  ProductVariantIdentifierSchema,
175
+ PromotionIdentifierSchema,
172
176
  ShippingMethodIdentifierSchema,
173
177
  StoreIdentifierSchema,
174
178
  WebStoreIdentifierSchema
@@ -13,10 +13,19 @@ const TieredPriceSchema = z.looseObject({
13
13
  const PriceSchema = BaseModelSchema.extend({
14
14
  identifier: PriceIdentifierSchema,
15
15
  unitPrice: MonetaryAmountSchema,
16
+ onSale: z.boolean().default(false).meta({ description: "Whether the price is currently discounted. This can be used to indicate if the unitPrice reflects a discount compared to the list price. In B2B the price might differ, due to customer specific pricing, but not necessarily because it is on sale." }),
16
17
  tieredPrices: z.array(TieredPriceSchema)
17
18
  });
19
+ const PromotionSchema = z.looseObject({
20
+ code: z.string().default("").meta({ description: "The code for the promotion, if applicable. This can be used to indicate the coupon code used for a promotion, for example." }),
21
+ isCouponCode: z.boolean().default(false).meta({ description: "Indicates whether the promotion is a coupon code that the user added himself." }),
22
+ name: z.string().default("").meta({ description: "The name of the promotion." }),
23
+ description: z.string().default("").meta({ description: "A description of the promotion." }),
24
+ amount: MonetaryAmountSchema.optional().meta({ description: "The amount of the promotion, if applicable/available from the source system. This can be used to indicate the discount amount for a promotion, for example." })
25
+ });
18
26
  export {
19
27
  MonetaryAmountSchema,
20
28
  PriceSchema,
29
+ PromotionSchema,
21
30
  TieredPriceSchema
22
31
  };
@@ -2641,6 +2641,198 @@ export declare const CartSchema: z.ZodObject<{
2641
2641
  }>;
2642
2642
  }, z.core.$loose>>;
2643
2643
  }, z.core.$loose>>;
2644
+ appliedPromotions: z.ZodDefault<z.ZodArray<z.ZodObject<{
2645
+ code: z.ZodDefault<z.ZodString>;
2646
+ isCouponCode: z.ZodDefault<z.ZodBoolean>;
2647
+ name: z.ZodDefault<z.ZodString>;
2648
+ description: z.ZodDefault<z.ZodString>;
2649
+ amount: z.ZodOptional<z.ZodObject<{
2650
+ value: z.ZodNumber;
2651
+ currency: z.ZodEnum<{
2652
+ AED: "AED";
2653
+ AFN: "AFN";
2654
+ ALL: "ALL";
2655
+ AMD: "AMD";
2656
+ ANG: "ANG";
2657
+ AOA: "AOA";
2658
+ ARS: "ARS";
2659
+ AUD: "AUD";
2660
+ AWG: "AWG";
2661
+ AZN: "AZN";
2662
+ BAM: "BAM";
2663
+ BBD: "BBD";
2664
+ BDT: "BDT";
2665
+ BGN: "BGN";
2666
+ BHD: "BHD";
2667
+ BIF: "BIF";
2668
+ BMD: "BMD";
2669
+ BND: "BND";
2670
+ BOB: "BOB";
2671
+ BOV: "BOV";
2672
+ BRL: "BRL";
2673
+ BSD: "BSD";
2674
+ BTN: "BTN";
2675
+ BWP: "BWP";
2676
+ BYN: "BYN";
2677
+ BZD: "BZD";
2678
+ CAD: "CAD";
2679
+ CDF: "CDF";
2680
+ CHE: "CHE";
2681
+ CHF: "CHF";
2682
+ CHW: "CHW";
2683
+ CLF: "CLF";
2684
+ CLP: "CLP";
2685
+ CNY: "CNY";
2686
+ COP: "COP";
2687
+ COU: "COU";
2688
+ CRC: "CRC";
2689
+ CUC: "CUC";
2690
+ CUP: "CUP";
2691
+ CVE: "CVE";
2692
+ CZK: "CZK";
2693
+ DJF: "DJF";
2694
+ DKK: "DKK";
2695
+ DOP: "DOP";
2696
+ DZD: "DZD";
2697
+ EGP: "EGP";
2698
+ ERN: "ERN";
2699
+ ETB: "ETB";
2700
+ EUR: "EUR";
2701
+ FJD: "FJD";
2702
+ FKP: "FKP";
2703
+ GBP: "GBP";
2704
+ GEL: "GEL";
2705
+ GHS: "GHS";
2706
+ GIP: "GIP";
2707
+ GMD: "GMD";
2708
+ GNF: "GNF";
2709
+ GTQ: "GTQ";
2710
+ GYD: "GYD";
2711
+ HKD: "HKD";
2712
+ HNL: "HNL";
2713
+ HRK: "HRK";
2714
+ HTG: "HTG";
2715
+ HUF: "HUF";
2716
+ IDR: "IDR";
2717
+ ILS: "ILS";
2718
+ INR: "INR";
2719
+ IQD: "IQD";
2720
+ IRR: "IRR";
2721
+ ISK: "ISK";
2722
+ JMD: "JMD";
2723
+ JOD: "JOD";
2724
+ JPY: "JPY";
2725
+ KES: "KES";
2726
+ KGS: "KGS";
2727
+ KHR: "KHR";
2728
+ KMF: "KMF";
2729
+ KPW: "KPW";
2730
+ KRW: "KRW";
2731
+ KWD: "KWD";
2732
+ KYD: "KYD";
2733
+ KZT: "KZT";
2734
+ LAK: "LAK";
2735
+ LBP: "LBP";
2736
+ LKR: "LKR";
2737
+ LRD: "LRD";
2738
+ LSL: "LSL";
2739
+ LYD: "LYD";
2740
+ MAD: "MAD";
2741
+ MDL: "MDL";
2742
+ MGA: "MGA";
2743
+ MKD: "MKD";
2744
+ MMK: "MMK";
2745
+ MNT: "MNT";
2746
+ MOP: "MOP";
2747
+ MRU: "MRU";
2748
+ MUR: "MUR";
2749
+ MVR: "MVR";
2750
+ MWK: "MWK";
2751
+ MXN: "MXN";
2752
+ MXV: "MXV";
2753
+ MYR: "MYR";
2754
+ MZN: "MZN";
2755
+ NAD: "NAD";
2756
+ NGN: "NGN";
2757
+ NIO: "NIO";
2758
+ NOK: "NOK";
2759
+ NPR: "NPR";
2760
+ NZD: "NZD";
2761
+ OMR: "OMR";
2762
+ PAB: "PAB";
2763
+ PEN: "PEN";
2764
+ PGK: "PGK";
2765
+ PHP: "PHP";
2766
+ PKR: "PKR";
2767
+ PLN: "PLN";
2768
+ PYG: "PYG";
2769
+ QAR: "QAR";
2770
+ RON: "RON";
2771
+ RSD: "RSD";
2772
+ RUB: "RUB";
2773
+ RWF: "RWF";
2774
+ SAR: "SAR";
2775
+ SBD: "SBD";
2776
+ SCR: "SCR";
2777
+ SDG: "SDG";
2778
+ SEK: "SEK";
2779
+ SGD: "SGD";
2780
+ SHP: "SHP";
2781
+ SLE: "SLE";
2782
+ SLL: "SLL";
2783
+ SOS: "SOS";
2784
+ SRD: "SRD";
2785
+ SSP: "SSP";
2786
+ STN: "STN";
2787
+ SYP: "SYP";
2788
+ SZL: "SZL";
2789
+ THB: "THB";
2790
+ TJS: "TJS";
2791
+ TMT: "TMT";
2792
+ TND: "TND";
2793
+ TOP: "TOP";
2794
+ TRY: "TRY";
2795
+ TTD: "TTD";
2796
+ TVD: "TVD";
2797
+ TWD: "TWD";
2798
+ TZS: "TZS";
2799
+ UAH: "UAH";
2800
+ UGX: "UGX";
2801
+ USD: "USD";
2802
+ USN: "USN";
2803
+ UYI: "UYI";
2804
+ UYU: "UYU";
2805
+ UYW: "UYW";
2806
+ UZS: "UZS";
2807
+ VED: "VED";
2808
+ VES: "VES";
2809
+ VND: "VND";
2810
+ VUV: "VUV";
2811
+ WST: "WST";
2812
+ XAF: "XAF";
2813
+ XAG: "XAG";
2814
+ XAU: "XAU";
2815
+ XBA: "XBA";
2816
+ XBB: "XBB";
2817
+ XBC: "XBC";
2818
+ XBD: "XBD";
2819
+ XCD: "XCD";
2820
+ XDR: "XDR";
2821
+ XOF: "XOF";
2822
+ XPD: "XPD";
2823
+ XPF: "XPF";
2824
+ XPT: "XPT";
2825
+ XSU: "XSU";
2826
+ XTS: "XTS";
2827
+ XUA: "XUA";
2828
+ XXX: "XXX";
2829
+ YER: "YER";
2830
+ ZAR: "ZAR";
2831
+ ZMW: "ZMW";
2832
+ ZWL: "ZWL";
2833
+ }>;
2834
+ }, z.core.$loose>>;
2835
+ }, z.core.$loose>>>;
2644
2836
  name: z.ZodDefault<z.ZodString>;
2645
2837
  description: z.ZodDefault<z.ZodString>;
2646
2838
  }, z.core.$loose>;
@@ -220,6 +220,9 @@ export declare const ProductListItemIdentifierSchema: z.ZodObject<{
220
220
  key: z.ZodString;
221
221
  }, z.core.$loose>;
222
222
  }, z.core.$loose>;
223
+ export declare const PromotionIdentifierSchema: z.ZodObject<{
224
+ key: z.ZodString;
225
+ }, z.core.$loose>;
223
226
  export type OrderSearchIdentifier = InferType<typeof OrderSearchIdentifierSchema>;
224
227
  export type ProductIdentifier = InferType<typeof ProductIdentifierSchema>;
225
228
  export type ProductVariantIdentifier = InferType<typeof ProductVariantIdentifierSchema>;
@@ -257,4 +260,5 @@ export type ProductListItemIdentifier = InferType<typeof ProductListItemIdentifi
257
260
  export type ProductListSearchIdentifier = InferType<typeof ProductListSearchIdentifierSchema>;
258
261
  export type ProductListItemSearchIdentifier = InferType<typeof ProductListItemSearchIdentifierSchema>;
259
262
  export type ProductListType = InferType<typeof ProductListTypeSchema>;
260
- export type IdentifierType = ProductIdentifier | ProductVariantIdentifier | SearchIdentifier | FacetIdentifier | FacetValueIdentifier | CartIdentifier | CartItemIdentifier | PriceIdentifier | CategoryIdentifier | WebStoreIdentifier | InventoryIdentifier | ProductRecommendationIdentifier | FulfillmentCenterIdentifier | IdentityIdentifier | ShippingMethodIdentifier | PaymentMethodIdentifier | AddressIdentifier | PaymentInstructionIdentifier | OrderIdentifier | OrderItemIdentifier | CheckoutIdentifier | CheckoutItemIdentifier | StoreIdentifier | ProductOptionIdentifier | ProductOptionValueIdentifier | PickupPointIdentifier | ProductAttributeIdentifier | ProductAttributeValueIdentifier | ProductRatingIdentifier | ProductReviewIdentifier | ProductAssociationsIdentifier | ProductListIdentifier | ProductListItemIdentifier | ProductListSearchIdentifier;
263
+ export type PromotionIdentifier = InferType<typeof PromotionIdentifierSchema>;
264
+ export type IdentifierType = ProductIdentifier | ProductVariantIdentifier | SearchIdentifier | FacetIdentifier | FacetValueIdentifier | CartIdentifier | CartItemIdentifier | PriceIdentifier | CategoryIdentifier | WebStoreIdentifier | InventoryIdentifier | ProductRecommendationIdentifier | FulfillmentCenterIdentifier | IdentityIdentifier | ShippingMethodIdentifier | PaymentMethodIdentifier | AddressIdentifier | PaymentInstructionIdentifier | OrderIdentifier | OrderItemIdentifier | CheckoutIdentifier | CheckoutItemIdentifier | StoreIdentifier | ProductOptionIdentifier | ProductOptionValueIdentifier | PickupPointIdentifier | ProductAttributeIdentifier | ProductAttributeValueIdentifier | ProductRatingIdentifier | ProductReviewIdentifier | ProductAssociationsIdentifier | ProductListIdentifier | ProductListItemIdentifier | ProductListSearchIdentifier | PromotionIdentifier;
@@ -567,6 +567,7 @@ export declare const PriceSchema: z.ZodObject<{
567
567
  ZWL: "ZWL";
568
568
  }>;
569
569
  }, z.core.$loose>;
570
+ onSale: z.ZodDefault<z.ZodBoolean>;
570
571
  tieredPrices: z.ZodArray<z.ZodObject<{
571
572
  minimumQuantity: z.ZodNumber;
572
573
  price: z.ZodObject<{
@@ -757,6 +758,199 @@ export declare const PriceSchema: z.ZodObject<{
757
758
  }, z.core.$loose>;
758
759
  }, z.core.$loose>>;
759
760
  }, z.core.$loose>;
761
+ export declare const PromotionSchema: z.ZodObject<{
762
+ code: z.ZodDefault<z.ZodString>;
763
+ isCouponCode: z.ZodDefault<z.ZodBoolean>;
764
+ name: z.ZodDefault<z.ZodString>;
765
+ description: z.ZodDefault<z.ZodString>;
766
+ amount: z.ZodOptional<z.ZodObject<{
767
+ value: z.ZodNumber;
768
+ currency: z.ZodEnum<{
769
+ AED: "AED";
770
+ AFN: "AFN";
771
+ ALL: "ALL";
772
+ AMD: "AMD";
773
+ ANG: "ANG";
774
+ AOA: "AOA";
775
+ ARS: "ARS";
776
+ AUD: "AUD";
777
+ AWG: "AWG";
778
+ AZN: "AZN";
779
+ BAM: "BAM";
780
+ BBD: "BBD";
781
+ BDT: "BDT";
782
+ BGN: "BGN";
783
+ BHD: "BHD";
784
+ BIF: "BIF";
785
+ BMD: "BMD";
786
+ BND: "BND";
787
+ BOB: "BOB";
788
+ BOV: "BOV";
789
+ BRL: "BRL";
790
+ BSD: "BSD";
791
+ BTN: "BTN";
792
+ BWP: "BWP";
793
+ BYN: "BYN";
794
+ BZD: "BZD";
795
+ CAD: "CAD";
796
+ CDF: "CDF";
797
+ CHE: "CHE";
798
+ CHF: "CHF";
799
+ CHW: "CHW";
800
+ CLF: "CLF";
801
+ CLP: "CLP";
802
+ CNY: "CNY";
803
+ COP: "COP";
804
+ COU: "COU";
805
+ CRC: "CRC";
806
+ CUC: "CUC";
807
+ CUP: "CUP";
808
+ CVE: "CVE";
809
+ CZK: "CZK";
810
+ DJF: "DJF";
811
+ DKK: "DKK";
812
+ DOP: "DOP";
813
+ DZD: "DZD";
814
+ EGP: "EGP";
815
+ ERN: "ERN";
816
+ ETB: "ETB";
817
+ EUR: "EUR";
818
+ FJD: "FJD";
819
+ FKP: "FKP";
820
+ GBP: "GBP";
821
+ GEL: "GEL";
822
+ GHS: "GHS";
823
+ GIP: "GIP";
824
+ GMD: "GMD";
825
+ GNF: "GNF";
826
+ GTQ: "GTQ";
827
+ GYD: "GYD";
828
+ HKD: "HKD";
829
+ HNL: "HNL";
830
+ HRK: "HRK";
831
+ HTG: "HTG";
832
+ HUF: "HUF";
833
+ IDR: "IDR";
834
+ ILS: "ILS";
835
+ INR: "INR";
836
+ IQD: "IQD";
837
+ IRR: "IRR";
838
+ ISK: "ISK";
839
+ JMD: "JMD";
840
+ JOD: "JOD";
841
+ JPY: "JPY";
842
+ KES: "KES";
843
+ KGS: "KGS";
844
+ KHR: "KHR";
845
+ KMF: "KMF";
846
+ KPW: "KPW";
847
+ KRW: "KRW";
848
+ KWD: "KWD";
849
+ KYD: "KYD";
850
+ KZT: "KZT";
851
+ LAK: "LAK";
852
+ LBP: "LBP";
853
+ LKR: "LKR";
854
+ LRD: "LRD";
855
+ LSL: "LSL";
856
+ LYD: "LYD";
857
+ MAD: "MAD";
858
+ MDL: "MDL";
859
+ MGA: "MGA";
860
+ MKD: "MKD";
861
+ MMK: "MMK";
862
+ MNT: "MNT";
863
+ MOP: "MOP";
864
+ MRU: "MRU";
865
+ MUR: "MUR";
866
+ MVR: "MVR";
867
+ MWK: "MWK";
868
+ MXN: "MXN";
869
+ MXV: "MXV";
870
+ MYR: "MYR";
871
+ MZN: "MZN";
872
+ NAD: "NAD";
873
+ NGN: "NGN";
874
+ NIO: "NIO";
875
+ NOK: "NOK";
876
+ NPR: "NPR";
877
+ NZD: "NZD";
878
+ OMR: "OMR";
879
+ PAB: "PAB";
880
+ PEN: "PEN";
881
+ PGK: "PGK";
882
+ PHP: "PHP";
883
+ PKR: "PKR";
884
+ PLN: "PLN";
885
+ PYG: "PYG";
886
+ QAR: "QAR";
887
+ RON: "RON";
888
+ RSD: "RSD";
889
+ RUB: "RUB";
890
+ RWF: "RWF";
891
+ SAR: "SAR";
892
+ SBD: "SBD";
893
+ SCR: "SCR";
894
+ SDG: "SDG";
895
+ SEK: "SEK";
896
+ SGD: "SGD";
897
+ SHP: "SHP";
898
+ SLE: "SLE";
899
+ SLL: "SLL";
900
+ SOS: "SOS";
901
+ SRD: "SRD";
902
+ SSP: "SSP";
903
+ STN: "STN";
904
+ SYP: "SYP";
905
+ SZL: "SZL";
906
+ THB: "THB";
907
+ TJS: "TJS";
908
+ TMT: "TMT";
909
+ TND: "TND";
910
+ TOP: "TOP";
911
+ TRY: "TRY";
912
+ TTD: "TTD";
913
+ TVD: "TVD";
914
+ TWD: "TWD";
915
+ TZS: "TZS";
916
+ UAH: "UAH";
917
+ UGX: "UGX";
918
+ USD: "USD";
919
+ USN: "USN";
920
+ UYI: "UYI";
921
+ UYU: "UYU";
922
+ UYW: "UYW";
923
+ UZS: "UZS";
924
+ VED: "VED";
925
+ VES: "VES";
926
+ VND: "VND";
927
+ VUV: "VUV";
928
+ WST: "WST";
929
+ XAF: "XAF";
930
+ XAG: "XAG";
931
+ XAU: "XAU";
932
+ XBA: "XBA";
933
+ XBB: "XBB";
934
+ XBC: "XBC";
935
+ XBD: "XBD";
936
+ XCD: "XCD";
937
+ XDR: "XDR";
938
+ XOF: "XOF";
939
+ XPD: "XPD";
940
+ XPF: "XPF";
941
+ XPT: "XPT";
942
+ XSU: "XSU";
943
+ XTS: "XTS";
944
+ XUA: "XUA";
945
+ XXX: "XXX";
946
+ YER: "YER";
947
+ ZAR: "ZAR";
948
+ ZMW: "ZMW";
949
+ ZWL: "ZWL";
950
+ }>;
951
+ }, z.core.$loose>>;
952
+ }, z.core.$loose>;
760
953
  export type MonetaryAmount = InferType<typeof MonetaryAmountSchema>;
761
954
  export type Price = InferType<typeof PriceSchema>;
955
+ export type Promotion = InferType<typeof PromotionSchema>;
762
956
  export type TieredPrice = InferType<typeof TieredPriceSchema>;
@@ -1884,6 +1884,198 @@ export declare const CheckoutMutationInitiateCheckoutSchema: z.ZodObject<{
1884
1884
  }>;
1885
1885
  }, z.core.$loose>>;
1886
1886
  }, z.core.$loose>>;
1887
+ appliedPromotions: z.ZodDefault<z.ZodArray<z.ZodObject<{
1888
+ code: z.ZodDefault<z.ZodString>;
1889
+ isCouponCode: z.ZodDefault<z.ZodBoolean>;
1890
+ name: z.ZodDefault<z.ZodString>;
1891
+ description: z.ZodDefault<z.ZodString>;
1892
+ amount: z.ZodOptional<z.ZodObject<{
1893
+ value: z.ZodNumber;
1894
+ currency: z.ZodEnum<{
1895
+ AED: "AED";
1896
+ AFN: "AFN";
1897
+ ALL: "ALL";
1898
+ AMD: "AMD";
1899
+ ANG: "ANG";
1900
+ AOA: "AOA";
1901
+ ARS: "ARS";
1902
+ AUD: "AUD";
1903
+ AWG: "AWG";
1904
+ AZN: "AZN";
1905
+ BAM: "BAM";
1906
+ BBD: "BBD";
1907
+ BDT: "BDT";
1908
+ BGN: "BGN";
1909
+ BHD: "BHD";
1910
+ BIF: "BIF";
1911
+ BMD: "BMD";
1912
+ BND: "BND";
1913
+ BOB: "BOB";
1914
+ BOV: "BOV";
1915
+ BRL: "BRL";
1916
+ BSD: "BSD";
1917
+ BTN: "BTN";
1918
+ BWP: "BWP";
1919
+ BYN: "BYN";
1920
+ BZD: "BZD";
1921
+ CAD: "CAD";
1922
+ CDF: "CDF";
1923
+ CHE: "CHE";
1924
+ CHF: "CHF";
1925
+ CHW: "CHW";
1926
+ CLF: "CLF";
1927
+ CLP: "CLP";
1928
+ CNY: "CNY";
1929
+ COP: "COP";
1930
+ COU: "COU";
1931
+ CRC: "CRC";
1932
+ CUC: "CUC";
1933
+ CUP: "CUP";
1934
+ CVE: "CVE";
1935
+ CZK: "CZK";
1936
+ DJF: "DJF";
1937
+ DKK: "DKK";
1938
+ DOP: "DOP";
1939
+ DZD: "DZD";
1940
+ EGP: "EGP";
1941
+ ERN: "ERN";
1942
+ ETB: "ETB";
1943
+ EUR: "EUR";
1944
+ FJD: "FJD";
1945
+ FKP: "FKP";
1946
+ GBP: "GBP";
1947
+ GEL: "GEL";
1948
+ GHS: "GHS";
1949
+ GIP: "GIP";
1950
+ GMD: "GMD";
1951
+ GNF: "GNF";
1952
+ GTQ: "GTQ";
1953
+ GYD: "GYD";
1954
+ HKD: "HKD";
1955
+ HNL: "HNL";
1956
+ HRK: "HRK";
1957
+ HTG: "HTG";
1958
+ HUF: "HUF";
1959
+ IDR: "IDR";
1960
+ ILS: "ILS";
1961
+ INR: "INR";
1962
+ IQD: "IQD";
1963
+ IRR: "IRR";
1964
+ ISK: "ISK";
1965
+ JMD: "JMD";
1966
+ JOD: "JOD";
1967
+ JPY: "JPY";
1968
+ KES: "KES";
1969
+ KGS: "KGS";
1970
+ KHR: "KHR";
1971
+ KMF: "KMF";
1972
+ KPW: "KPW";
1973
+ KRW: "KRW";
1974
+ KWD: "KWD";
1975
+ KYD: "KYD";
1976
+ KZT: "KZT";
1977
+ LAK: "LAK";
1978
+ LBP: "LBP";
1979
+ LKR: "LKR";
1980
+ LRD: "LRD";
1981
+ LSL: "LSL";
1982
+ LYD: "LYD";
1983
+ MAD: "MAD";
1984
+ MDL: "MDL";
1985
+ MGA: "MGA";
1986
+ MKD: "MKD";
1987
+ MMK: "MMK";
1988
+ MNT: "MNT";
1989
+ MOP: "MOP";
1990
+ MRU: "MRU";
1991
+ MUR: "MUR";
1992
+ MVR: "MVR";
1993
+ MWK: "MWK";
1994
+ MXN: "MXN";
1995
+ MXV: "MXV";
1996
+ MYR: "MYR";
1997
+ MZN: "MZN";
1998
+ NAD: "NAD";
1999
+ NGN: "NGN";
2000
+ NIO: "NIO";
2001
+ NOK: "NOK";
2002
+ NPR: "NPR";
2003
+ NZD: "NZD";
2004
+ OMR: "OMR";
2005
+ PAB: "PAB";
2006
+ PEN: "PEN";
2007
+ PGK: "PGK";
2008
+ PHP: "PHP";
2009
+ PKR: "PKR";
2010
+ PLN: "PLN";
2011
+ PYG: "PYG";
2012
+ QAR: "QAR";
2013
+ RON: "RON";
2014
+ RSD: "RSD";
2015
+ RUB: "RUB";
2016
+ RWF: "RWF";
2017
+ SAR: "SAR";
2018
+ SBD: "SBD";
2019
+ SCR: "SCR";
2020
+ SDG: "SDG";
2021
+ SEK: "SEK";
2022
+ SGD: "SGD";
2023
+ SHP: "SHP";
2024
+ SLE: "SLE";
2025
+ SLL: "SLL";
2026
+ SOS: "SOS";
2027
+ SRD: "SRD";
2028
+ SSP: "SSP";
2029
+ STN: "STN";
2030
+ SYP: "SYP";
2031
+ SZL: "SZL";
2032
+ THB: "THB";
2033
+ TJS: "TJS";
2034
+ TMT: "TMT";
2035
+ TND: "TND";
2036
+ TOP: "TOP";
2037
+ TRY: "TRY";
2038
+ TTD: "TTD";
2039
+ TVD: "TVD";
2040
+ TWD: "TWD";
2041
+ TZS: "TZS";
2042
+ UAH: "UAH";
2043
+ UGX: "UGX";
2044
+ USD: "USD";
2045
+ USN: "USN";
2046
+ UYI: "UYI";
2047
+ UYU: "UYU";
2048
+ UYW: "UYW";
2049
+ UZS: "UZS";
2050
+ VED: "VED";
2051
+ VES: "VES";
2052
+ VND: "VND";
2053
+ VUV: "VUV";
2054
+ WST: "WST";
2055
+ XAF: "XAF";
2056
+ XAG: "XAG";
2057
+ XAU: "XAU";
2058
+ XBA: "XBA";
2059
+ XBB: "XBB";
2060
+ XBC: "XBC";
2061
+ XBD: "XBD";
2062
+ XCD: "XCD";
2063
+ XDR: "XDR";
2064
+ XOF: "XOF";
2065
+ XPD: "XPD";
2066
+ XPF: "XPF";
2067
+ XPT: "XPT";
2068
+ XSU: "XSU";
2069
+ XTS: "XTS";
2070
+ XUA: "XUA";
2071
+ XXX: "XXX";
2072
+ YER: "YER";
2073
+ ZAR: "ZAR";
2074
+ ZMW: "ZMW";
2075
+ ZWL: "ZWL";
2076
+ }>;
2077
+ }, z.core.$loose>>;
2078
+ }, z.core.$loose>>>;
1887
2079
  name: z.ZodDefault<z.ZodString>;
1888
2080
  description: z.ZodDefault<z.ZodString>;
1889
2081
  }, z.core.$loose>;