-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMandateCancellationType.php
More file actions
45 lines (37 loc) · 1.47 KB
/
MandateCancellationType.php
File metadata and controls
45 lines (37 loc) · 1.47 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
<?php
namespace MatchBot\Domain;
enum MandateCancellationType: string
{
/**
* Auto cancelled at creation because enrolling or matching one of the initial donations failed
*/
case EnrollingDonationFailed = 'EnrollingDonationFailed';
/**
* Canceled because the related donor account was deleted.
*/
case DonorAccountDeleted = 'DonorAccountDeleted';
/**
* Auto cancelled because the automatic donation collection process repeatedly failed - likely due to an issue
* with the donor's card or bank account.
*/
case CollectingAutomaticDonationRepeatFailed = 'CollectingAutomaticDonationRepeatFailed';
/**
* Auto cancelled at creation because the first donation payment could not be collected
*/
case FirstDonationUnsuccessful = 'FirstDonationUnsuccessful';
/**
* Cancelled from Pending status to make way for another regular giving mandate from the same
* donor for the same campaign. We do not allow duplicates across pending and active states.
*/
case ReplacedByNewMandate = 'ReplacedByNewMandate';
/**
* Cancelled on donor request. One of two where the cancellation date will be different to
* creation date.
*/
case DonorRequestedCancellation = 'DonorRequestedCancellation';
/**
* Cancelled by Big Give through Salesforce. One of two where the cancellation date will be different to
* creation date.
*/
case BigGiveCancelled = 'BigGiveCancelled';
}