DonationStatus.php
33 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\Donations\ValueObjects; |
| 4 | |
| 5 | use MyCLabs\Enum\Enum; |
| 6 | |
| 7 | /** |
| 8 | * @since 2.19.6 |
| 9 | * |
| 10 | * @method static PENDING() |
| 11 | * @method static COMPLETE() |
| 12 | * @method static REFUNDED() |
| 13 | * @method static FAILED() |
| 14 | * @method static CANCELED() |
| 15 | * @method static ABANDONED() |
| 16 | * @method static PREAPPROVAL() |
| 17 | * @method static PROCESSING() |
| 18 | * @method static REVOKED() |
| 19 | * @method static RENEWAL() |
| 20 | */ |
| 21 | class DonationStatus extends Enum { |
| 22 | const PENDING = 'pending'; |
| 23 | const PROCESSING = 'processing'; |
| 24 | const COMPLETE = 'publish'; |
| 25 | const REFUNDED = 'refunded'; |
| 26 | const FAILED = 'failed'; |
| 27 | const CANCELED = 'cancelled'; |
| 28 | const ABANDONED = 'abandoned'; |
| 29 | const PREAPPROVAL = 'preapproval'; |
| 30 | const REVOKED = 'revoked'; |
| 31 | const RENEWAL = 'give_subscription'; |
| 32 | } |
| 33 |