Skip to content

Commit 13aec0c

Browse files
authored
Update docs for Roles V2 (#188)
* Update all docs to match v2 & add versioning * Add delete docs * get actions * update labels to v2 * Doc extras * Actions * Remove PUT & PATCH * dans comments
1 parent e5cf97d commit 13aec0c

File tree

89 files changed

+1894
-832
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1894
-832
lines changed

data/actions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,13 @@
931931
"help_text": "When an Administrator updates the Terms and Conditions.",
932932
"subject_types": []
933933
},
934+
{
935+
"key": "CONFIRMED_AGENCY_EMAIL",
936+
"value": "CONFIRMED_AGENCY_EMAIL",
937+
"msg": "Confirmed Company Email",
938+
"help_text": "When a Company confirms their email address.",
939+
"subject_types": []
940+
},
934941
{
935942
"key": "CREATED_AGENCY",
936943
"value": "CREATED_AGENCY",

pages/adhoccharges/ad-hoc-charge-object.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"appointment": null,
55
"category": {
66
"branch_tax_setup": "Default Company Tax (20%)",
7-
"charge_via_branch": true,
87
"contractor_tax_setup": "Default Company Tax (20%)",
98
"contractor_usable": true,
109
"default_charge_amount": "10.00",

pages/adhoccharges/ad-hoc-charge-object.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@ attributes:
8787
name: branch_tax_setup
8888
type: string
8989
description: Tax setup for the Branch when invoicing.
90-
-
91-
name: charge_via_branch
92-
type: boolean
93-
description: Force Invoices associated with this Tutor to be charged via branch.
9490
-
9591
name: contractor_tax_setup
9692
type: string

pages/adhoccharges/create-an-ad-hoc-charge.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"appointment": null,
55
"category": {
66
"branch_tax_setup": "Default Company Tax (20%)",
7-
"charge_via_branch": true,
87
"contractor_tax_setup": "Default Company Tax (20%)",
98
"contractor_usable": true,
109
"default_charge_amount": "10.00",

pages/adhoccharges/get-an-ad-hoc-charge.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"appointment": null,
55
"category": {
66
"branch_tax_setup": "Default Company Tax (20%)",
7-
"charge_via_branch": true,
87
"contractor_tax_setup": "Default Company Tax (20%)",
98
"contractor_usable": true,
109
"default_charge_amount": "10.00",

pages/adhoccharges/update-an-ad-hoc-charge.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"appointment": null,
55
"category": {
66
"branch_tax_setup": "Default Company Tax (20%)",
7-
"charge_via_branch": true,
87
"contractor_tax_setup": "Default Company Tax (20%)",
98
"contractor_usable": true,
109
"default_charge_amount": "10.00",
File renamed without changes.

pages/agents/agent-object-v1.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
### Agent Object (Version 1 - Will be deprecated 3rd July 2025)
2+
3+
Agent objects, Affiliates in TutorCruncher, includes basic user information including fields that are only linked to the Agent Role.
4+
It includes details about affiliated Clients, `clients`, and their `commission_rate`.

pages/agents/agent-object.yml renamed to pages/agents/agent-object-v1.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,23 +130,23 @@ attributes:
130130
131131
filters:
132132
-
133-
name: created__gte
133+
name: user__created__gte
134134
type: string
135135
description: Filter by the date and time the Agent was created.
136136
-
137-
name: created__lte
137+
name: user__created__lte
138138
type: string
139139
description: Filter by the date and time the Agent was created.
140140
-
141-
name: first_name
141+
name: user__first_name
142142
type: string
143143
description: Filter by the Agent's first name.
144144
-
145-
name: last_name
145+
name: user__last_name
146146
type: string
147147
description: Filter by the Agent's last name.
148148
-
149-
name: email
149+
name: user__email
150150
type: string
151151
description: Filter by the Agent's email address.
152152
-
@@ -164,4 +164,4 @@ filters:
164164
-
165165
name: labels
166166
type: integer
167-
description: Filter by the Agent's labels.
167+
description: Filter by the Agent's labels (id).

pages/agents/agent-object-v2.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"id": 65,
3+
"title": null,
4+
"first_name": "Billy",
5+
"last_name": "Holiday",
6+
"email": "[email protected]",
7+
"mobile": "07123 456 789",
8+
"phone": "0208 123 4567",
9+
"street": "8 Albert Road",
10+
"state": null,
11+
"town": "London",
12+
"country": "United Kingdom (GB)",
13+
"postcode": "E80 1FA",
14+
"latitude": "51.5373258999999990",
15+
"longitude": "-0.1496343000000000",
16+
"date_created": "2020-02-18T16:13:04.193340Z",
17+
"timezone": "Europe/London"
18+
"commission_rate": null,
19+
"clients": [],
20+
"last_updated": "2020-03-16T12:23:39.056867Z",
21+
"calendar_colour": "Brown",
22+
"labels": [],
23+
"extra_attrs": []
24+
}

0 commit comments

Comments
 (0)