Skip to content

Commit

Permalink
Update JSON schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
any-association committed Apr 8, 2024
1 parent 0778a5a commit acf32bd
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 11 deletions.
14 changes: 6 additions & 8 deletions json/models/Membership.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,16 @@
},
"paymentMethod": {
"enum": [
"MethodCard",
"MethodNone",
0,
"MethodCrypto",
"MethodCard",
1,
"MethodApplePay",
"MethodCrypto",
2,
"MethodGooglePay",
"MethodInappApple",
3,
"MethodAppleInapp",
4,
"MethodGoogleInapp",
5
"MethodInappGoogle",
4
],
"oneOf": [
{
Expand Down
27 changes: 24 additions & 3 deletions json/models/MembershipTierData.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
"properties": {
"id": {
"type": "integer",
"description": "this is a unique ID of the tier you should hardcode this in your app and provide icon, graphics, etc for each tier (even for old/historical/inactive/hidden tiers)"
"description": "this is a unique Payment Node ID of the tier WARNING: tiers can be sorted differently, not according to their IDs!"
},
"name": {
"type": "string",
"description": "localazied name of the tier"
},
"description": {
"type": "string",
"description": "just a short technical description you don't have to use it, you can use your own UI-friendly texts"
"description": "just a short technical description"
},
"isTest": {
"type": "boolean",
"description": "is this tier for debugging only?"
"description": "is this tier for testing and debugging only?"
},
"periodType": {
"enum": [
Expand Down Expand Up @@ -71,6 +71,27 @@
"colorStr": {
"type": "string",
"description": "green, blue, red, purple, custom"
},
"stripeProductId": {
"type": "string",
"description": "Stripe platform-specific data:"
},
"stripeManageUrl": {
"type": "string"
},
"iosProductId": {
"type": "string",
"description": "iOS platform-specific data:"
},
"iosManageUrl": {
"type": "string"
},
"androidProductId": {
"type": "string",
"description": "Android platform-specific data:"
},
"androidManageUrl": {
"type": "string"
}
},
"additionalProperties": true,
Expand Down

0 comments on commit acf32bd

Please sign in to comment.