mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-05 01:47:24 +00:00
Hackspace: add membership_plans
This commit is contained in:
parent
ffc7acade6
commit
14d08cd7b2
4 changed files with 65 additions and 0 deletions
|
|
@ -62,6 +62,11 @@
|
|||
"type": "component",
|
||||
"repeatable": true,
|
||||
"component": "hackspace.link"
|
||||
},
|
||||
"membership_plans": {
|
||||
"type": "component",
|
||||
"repeatable": true,
|
||||
"component": "membership.plans"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
39
src/components/membership/plans.json
Normal file
39
src/components/membership/plans.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue