Skip to content

Commit 6798748

Browse files
authored
Regenerate product catalog schema (#3235)
The PR includes a newly regenerated product catalog schema, including EUR pricing for GuardianAdLite. This must not have happened after that pricing was added to Zuora. Note: I had to go back in history to do the key sorting, I think the sorting may have stopped working after the eslint upgrade. I'll look at that separately.
1 parent f89ca55 commit 6798748

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

modules/product-catalog/src/productCatalogSchema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export const productCatalogSchema = z.object({
200200
}),
201201
}),
202202
id: z.string(),
203-
pricing: z.object({ GBP: z.number() }),
203+
pricing: z.object({ EUR: z.number(), GBP: z.number() }),
204204
termLengthInMonths: z.number(),
205205
termType: termTypeSchema,
206206
}),

modules/product-catalog/test/__snapshots__/generateProductCatalog.test.ts.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ exports[`code Generated product catalog matches snapshot 1`] = `
189189
},
190190
"id": "71a1bebf6be9444afad446c5ebaf0019",
191191
"pricing": {
192+
"EUR": 5,
192193
"GBP": 5,
193194
},
194195
"termLengthInMonths": 12,
@@ -2315,6 +2316,7 @@ exports[`prod Generated product catalog matches snapshot 1`] = `
23152316
},
23162317
"id": "8a1285e294443da501944b04cb692c9e",
23172318
"pricing": {
2319+
"EUR": 5,
23182320
"GBP": 5,
23192321
},
23202322
"termLengthInMonths": 12,

modules/zuora-catalog/test/fixtures/catalog-code.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10206,7 +10206,8 @@
1020610206
"model": "FlatFee",
1020710207
"uom": null,
1020810208
"pricingSummary": [
10209-
"GBP5"
10209+
"GBP5",
10210+
"EUR5"
1021010211
],
1021110212
"pricing": [
1021210213
{
@@ -10217,6 +10218,15 @@
1021710218
"overagePrice": null,
1021810219
"discountPercentage": null,
1021910220
"discountAmount": null
10221+
},
10222+
{
10223+
"currency": "EUR",
10224+
"price": 5,
10225+
"tiers": null,
10226+
"includedUnits": null,
10227+
"overagePrice": null,
10228+
"discountPercentage": null,
10229+
"discountAmount": null
1022010230
}
1022110231
],
1022210232
"defaultQuantity": null,

modules/zuora-catalog/test/fixtures/catalog-prod.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11405,7 +11405,8 @@
1140511405
"model": "FlatFee",
1140611406
"uom": null,
1140711407
"pricingSummary": [
11408-
"GBP5"
11408+
"GBP5",
11409+
"EUR5"
1140911410
],
1141011411
"pricing": [
1141111412
{
@@ -11416,6 +11417,15 @@
1141611417
"overagePrice": null,
1141711418
"discountPercentage": null,
1141811419
"discountAmount": null
11420+
},
11421+
{
11422+
"currency": "EUR",
11423+
"price": 5,
11424+
"tiers": null,
11425+
"includedUnits": null,
11426+
"overagePrice": null,
11427+
"discountPercentage": null,
11428+
"discountAmount": null
1141911429
}
1142011430
],
1142111431
"defaultQuantity": null,

0 commit comments

Comments
 (0)