@reactionary/core 0.3.16 → 0.3.17
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: "
|
|
5
|
+
currencyCode: "EUR"
|
|
6
6
|
},
|
|
7
7
|
storeIdentifier: {
|
|
8
8
|
key: "the-good-store"
|
|
9
9
|
},
|
|
10
10
|
taxJurisdiction: {
|
|
11
|
-
countryCode: "
|
|
11
|
+
countryCode: "DK",
|
|
12
12
|
stateCode: "",
|
|
13
13
|
countyCode: "",
|
|
14
14
|
cityCode: ""
|
package/package.json
CHANGED
|
@@ -13,6 +13,7 @@ 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
|
});
|
|
18
19
|
export {
|