-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMandateStatus.php
More file actions
35 lines (29 loc) · 1012 Bytes
/
MandateStatus.php
File metadata and controls
35 lines (29 loc) · 1012 Bytes
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
<?php
namespace MatchBot\Domain;
enum MandateStatus: string
{
/**
* A draft mandate - may not yet be active because the donor hasn't fully confirmed their intention, or because
* as Big Give we haven't confirmed that e.g. their payment card works.
*/
case Pending = 'pending';
/**
* A completely formed mandate - as Big Give we have permission and intention to take donations as set out
* in this mandate.
*/
case Active = 'active';
/**
* The donor previously intended to make a regular donation but may have either changed their mind or
* discontinued the mandate after giving as many donations as they intended.
*/
case Cancelled = 'cancelled';
/**
* Mandate ended because the last collection date for the campaign has passed or is due to pass before the next
* collection of this mandate
*/
case CampaignEnded = 'campaign-ended';
public function apiName(): string
{
return $this->value;
}
}