Skip to content

Commit 38feebe

Browse files
authored
Merge pull request #170 from tutorcruncher/add-received-notifications
2 parents ebca441 + ee89ad3 commit 38feebe

File tree

8 files changed

+103
-8
lines changed

8 files changed

+103
-8
lines changed

data/actions.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,5 +1783,59 @@
17831783
"msg": "Deleted a Lesson Recording details",
17841784
"help_text": "When a lesson recording has been deleted.",
17851785
"subject_types": []
1786+
},
1787+
{
1788+
"key": "CREATED_A_PACKAGE",
1789+
"value": "CREATED_A_PACKAGE",
1790+
"msg": "Created a Package",
1791+
"help_text": "When a package has been created.",
1792+
"subject_types": [
1793+
"Package"
1794+
]
1795+
},
1796+
{
1797+
"key": "EDITED_A_PACKAGE",
1798+
"value": "EDITED_A_PACKAGE",
1799+
"msg": "Edited a Package",
1800+
"help_text": "When a package has been edited.",
1801+
"subject_types": [
1802+
"Package"
1803+
]
1804+
},
1805+
{
1806+
"key": "DELETED_A_PACKAGE",
1807+
"value": "DELETED_A_PACKAGE",
1808+
"msg": "Deleted a Package",
1809+
"help_text": "When a package has been deleted.",
1810+
"subject_types": [
1811+
"Package"
1812+
]
1813+
},
1814+
{
1815+
"key": "CLIENT_PURCHASED_PACKAGE",
1816+
"value": "CLIENT_PURCHASED_PACKAGE",
1817+
"msg": "Client purchased a Package",
1818+
"help_text": "When a client has purchased a package.",
1819+
"subject_types": [
1820+
"Package"
1821+
]
1822+
},
1823+
{
1824+
"key": "ADDED_GC_CUSTOMER_DATA",
1825+
"value": "ADDED_GC_CUSTOMER_DATA",
1826+
"msg": "Added new GoCardless details",
1827+
"help_text": "When a client adds new GoCardless details",
1828+
"subject_types": [
1829+
"Client"
1830+
]
1831+
},
1832+
{
1833+
"key": "REMOVED_GC_CUSTOMER_DATA",
1834+
"value": "REMOVED_GC_CUSTOMER_DATA",
1835+
"msg": "Removed GoCardless details",
1836+
"help_text": "When a client or admin removes GoCardless details",
1837+
"subject_types": [
1838+
"Client"
1839+
]
17861840
}
17871841
]

extensions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def json_line_list(ctx, file_name):
5757
'Report': 'reports',
5858
'Task': 'tasks',
5959
'Note': 'notes',
60+
'Package': 'package',
6061
}
6162

6263

pages/clients/client-object.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@
1919
},
2020
"status": "live",
2121
"is_taxable": true,
22-
"notify_via_email": true,
22+
"received_notifications": [
23+
"invoice_reminders",
24+
"invoices",
25+
"apt_reminders",
26+
"pfi_reminders",
27+
"credit-requests",
28+
"low_balance_reminders",
29+
"broadcasts"
30+
],
2331
"charge_via_branch": false,
2432
"invoices_count": 4,
2533
"payment_pending": "100.50",

pages/clients/client-object.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ attributes:
7575
type: boolean
7676
description: Whether or not tax should be paid on payments from this Client.
7777
-
78-
name: notify_via_email
79-
type: boolean
80-
description: If `false` the Client will receive no emails.
78+
name: received_notifications
79+
type: array
80+
description: An array of the Client's received notifications. choices are `broadcasts`, `apt_reminders`, `low_balance_reminders`, `invoice_reminders`, `pfi_reminders`, `invoices`, `credit_requests`
8181
-
8282
name: charge_via_branch
8383
type: boolean

pages/clients/create-a-client.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@
2121
},
2222
"status": "live",
2323
"is_taxable": true,
24-
"notify_via_email": true,
24+
"received_notifications": [
25+
"invoice_reminders",
26+
"invoices",
27+
"apt_reminders",
28+
"pfi_reminders",
29+
"credit-requests",
30+
"low_balance_reminders",
31+
"broadcasts"
32+
],
2533
"charge_via_branch": false,
2634
"invoices_count": 4,
2735
"payment_pending": "100.50",

pages/clients/create-a-client.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@
1919
},
2020
'status': 'live',
2121
'is_taxable': False,
22-
'notify_via_email': True,
22+
'received_notifications': [
23+
'invoice_reminders',
24+
'invoices',
25+
'apt_reminders',
26+
'pfi_reminders',
27+
'credit-requests',
28+
'low_balance_reminders',
29+
'broadcasts'
30+
],
2331
'change_via_branch': True,
2432
'auto_charge': 0,
2533
'associated_admin': 12,

pages/clients/get-a-client.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@
1919
},
2020
"status": "live",
2121
"is_taxable": true,
22-
"notify_via_email": true,
22+
"received_notifications": [
23+
"invoice_reminders",
24+
"invoices",
25+
"apt_reminders",
26+
"pfi_reminders",
27+
"credit-requests",
28+
"low_balance_reminders",
29+
"broadcasts"
30+
],
2331
"charge_via_branch": false,
2432
"invoices_count": 4,
2533
"payment_pending": "100.50",

pages/clients/update-a-client.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@
2121
},
2222
"status": "live",
2323
"is_taxable": true,
24-
"notify_via_email": true,
24+
"received_notifications": [
25+
"invoice_reminders",
26+
"invoices",
27+
"apt_reminders",
28+
"pfi_reminders",
29+
"credit-requests",
30+
"low_balance_reminders",
31+
"broadcasts"
32+
],
2533
"charge_via_branch": false,
2634
"invoices_count": 4,
2735
"payment_pending": "100.50",

0 commit comments

Comments
 (0)