Hackspace: add membership_plans

This commit is contained in:
He4eT 2025-04-01 15:32:39 +02:00
commit 14d08cd7b2
4 changed files with 65 additions and 0 deletions

View file

@ -62,6 +62,11 @@
"type": "component",
"repeatable": true,
"component": "hackspace.link"
},
"membership_plans": {
"type": "component",
"repeatable": true,
"component": "membership.plans"
}
}
}

View file

@ -0,0 +1,39 @@
{
"collectionName": "components_membership_plans",
"info": {
"displayName": "Plan",
"icon": "briefcase",
"description": ""
},
"options": {},
"attributes": {
"name": {
"type": "string",
"required": true
},
"value": {
"type": "decimal",
"required": true
},
"currency": {
"type": "string",
"required": true
},
"billing_interval": {
"type": "enumeration",
"enum": [
"yearly",
"quarterly",
"monthly",
"weekly",
"daily",
"hourly",
"other"
],
"required": true
},
"description": {
"type": "text"
}
}
}