You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// A rule type with `rule_attribute=region_id` should
25
+
// already be present in the database
24
26
const priceSet =awaitpricingService.create([
25
27
{
28
+
rules: [{ rule_attribute: "region_id" }],
26
29
prices: [
27
30
{
28
31
currency_code: body.currency_code,
29
32
amount: body.amount,
33
+
rules: {
34
+
region_id: body.region_id,
35
+
},
30
36
},
31
37
],
32
38
},
@@ -248,4 +254,4 @@ export async function GET(
248
254
249
255
## More Examples
250
256
251
-
The [module interface reference](../../references/pricing/interfaces/IPricingModuleService.mdx) provides a reference to all the methods available for use with examples for each.
257
+
The [module interface reference](../../references/pricing/interfaces/IPricingModuleService.mdx) provides a reference to all the methods available for use with examples for each.
0 commit comments