Added tiers to billing config and related UI

This commit is contained in:
giancarlo
2024-04-06 11:41:50 +08:00
parent 9492b035a0
commit a1d86d2b7d
7 changed files with 1196 additions and 1039 deletions

View File

@@ -64,14 +64,44 @@ export default createBillingSchema({
cost: 99.99,
type: 'metered',
unit: 'GB',
included: 10,
tiers: [
{
upTo: 10,
cost: 0.99,
},
{
upTo: 100,
cost: 0.49,
},
{
upTo: 1000,
cost: 0.29,
},
{
upTo: 'unlimited',
cost: 0.19,
},
],
},
{
id: '324645',
name: 'Addon 2',
cost: 9.99,
type: 'per-seat',
included: 5,
tiers: [
{
upTo: 5,
cost: 0,
},
{
upTo: 10,
cost: 6.99,
},
{
upTo: 'unlimited',
cost: 0.49,
},
],
},
],
},