-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtax.json
More file actions
113 lines (113 loc) · 3.51 KB
/
tax.json
File metadata and controls
113 lines (113 loc) · 3.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"type": "object",
"required": ["tax_type"],
"additionalProperties": false,
"x-formats": ["tax_table"],
"x-field-order": ["title", "abbreviation", "synonym", "tax_type", "description", "note"],
"properties": {
"abbreviation": {
"type": "string"
},
"description": {
"type": "string",
"x-component-name": "textarea",
"x-character-limit": 165,
"x-govspeak-enabled": true
},
"synonym": {
"type": "string"
},
"tax_type": {
"type": "string",
"enum": ["Tax", "Duty", "Levy", "Surcharge", "Repayment", "Charge"]
},
"things_taxed": {
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^[a-z0-9]+(?:-[a-z0-9]+)*$": {
"type": "object",
"required": ["title", "type", "rates"],
"additionalProperties": false,
"x-block-display-fields": ["rates"],
"x-field-order": ["title", "type", "rates"],
"properties": {
"title": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"Entity value",
"Transaction",
"Gain",
"Activity",
"Income",
"Asset"
]
},
"rates": {
"type": "array",
"items": {
"type": "object",
"required": ["name", "value"],
"x-field-order": ["name", "value", "unit", "bands"],
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
},
"bands": {
"type": "array",
"items": {
"type": "object",
"required": ["name"],
"x-field-order": ["name", "lower_threshold", "upper_threshold"],
"properties": {
"name": {
"type": "string"
},
"lower_threshold": {
"type": "object",
"x-show-field-name": "show",
"required": ["value"],
"properties": {
"show": {
"type": "boolean",
"x-hidden-field": true,
"default": false
},
"value": {
"type": "string"
}
}
},
"upper_threshold": {
"type": "object",
"x-show-field-name": "show",
"required": ["value"],
"properties": {
"show": {
"type": "boolean",
"x-hidden-field": true,
"default": false
},
"value": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}