DonationMetaKeys.php
2 years ago
DonationMode.php
3 years ago
DonationNoteMetaKeys.php
3 years ago
DonationNoteType.php
3 years ago
DonationStatus.php
3 years ago
DonationType.php
3 years ago
DonationMetaKeys.php
81 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\Donations\ValueObjects; |
| 4 | |
| 5 | use Give\Framework\Support\ValueObjects\Enum; |
| 6 | use Give\Framework\Support\ValueObjects\EnumInteractsWithQueryBuilder; |
| 7 | |
| 8 | /** |
| 9 | * @since 3.9.0 added PHONE |
| 10 | * @since 3.2.0 added HONORIFIC |
| 11 | * @since 2.20.0 add fee amount recovered and exchange rate |
| 12 | * @since 2.19.6 |
| 13 | * |
| 14 | * @method static DonationMetaKeys AMOUNT() |
| 15 | * @method static DonationMetaKeys CURRENCY() |
| 16 | * @method static DonationMetaKeys GATEWAY() |
| 17 | * @method static DonationMetaKeys DONOR_ID() |
| 18 | * @method static DonationMetaKeys HONORIFIC() |
| 19 | * @method static DonationMetaKeys FIRST_NAME() |
| 20 | * @method static DonationMetaKeys LAST_NAME() |
| 21 | * @method static DonationMetaKeys EMAIL() |
| 22 | * @method static DonationMetaKeys PHONE() |
| 23 | * @method static DonationMetaKeys SUBSCRIPTION_ID() |
| 24 | * @method static DonationMetaKeys MODE() |
| 25 | * @method static DonationMetaKeys FORM_ID() |
| 26 | * @method static DonationMetaKeys FORM_TITLE() |
| 27 | * @method static DonationMetaKeys BILLING_COUNTRY() |
| 28 | * @method static DonationMetaKeys BILLING_ADDRESS1() |
| 29 | * @method static DonationMetaKeys BILLING_ADDRESS2() |
| 30 | * @method static DonationMetaKeys BILLING_CITY() |
| 31 | * @method static DonationMetaKeys BILLING_STATE() |
| 32 | * @method static DonationMetaKeys BILLING_ZIP() |
| 33 | * @method static DonationMetaKeys PURCHASE_KEY() |
| 34 | * @method static DonationMetaKeys DONOR_IP() |
| 35 | * @method static DonationMetaKeys ANONYMOUS() |
| 36 | * @method static DonationMetaKeys LEVEL_ID() |
| 37 | * @method static DonationMetaKeys COMPANY() |
| 38 | * @method static DonationMetaKeys COMMENT() |
| 39 | * @method static DonationMetaKeys GATEWAY_TRANSACTION_ID() |
| 40 | * @method static DonationMetaKeys SUBSCRIPTION_INITIAL_DONATION() |
| 41 | * @method static DonationMetaKeys IS_RECURRING() |
| 42 | * @method static DonationMetaKeys FEE_AMOUNT_RECOVERED() |
| 43 | * @method static DonationMetaKeys EXCHANGE_RATE() |
| 44 | */ |
| 45 | class DonationMetaKeys extends Enum |
| 46 | { |
| 47 | use EnumInteractsWithQueryBuilder; |
| 48 | |
| 49 | const AMOUNT = '_give_payment_total'; |
| 50 | const BASE_AMOUNT = '_give_cs_base_amount'; |
| 51 | const CURRENCY = '_give_payment_currency'; |
| 52 | const EXCHANGE_RATE = '_give_cs_exchange_rate'; |
| 53 | const FEE_AMOUNT_RECOVERED = '_give_fee_amount'; |
| 54 | const GATEWAY = '_give_payment_gateway'; |
| 55 | const DONOR_ID = '_give_payment_donor_id'; |
| 56 | const HONORIFIC = '_give_donor_billing_title_prefix'; |
| 57 | const FIRST_NAME = '_give_donor_billing_first_name'; |
| 58 | const LAST_NAME = '_give_donor_billing_last_name'; |
| 59 | const EMAIL = '_give_payment_donor_email'; |
| 60 | const PHONE = '_give_payment_donor_phone'; |
| 61 | const SUBSCRIPTION_ID = 'subscription_id'; |
| 62 | const MODE = '_give_payment_mode'; |
| 63 | const FORM_ID = '_give_payment_form_id'; |
| 64 | const FORM_TITLE = '_give_payment_form_title'; |
| 65 | const BILLING_COUNTRY = '_give_donor_billing_country'; |
| 66 | const BILLING_ADDRESS2 = '_give_donor_billing_address2'; |
| 67 | const BILLING_CITY = '_give_donor_billing_city'; |
| 68 | const BILLING_ADDRESS1 = '_give_donor_billing_address1'; |
| 69 | const BILLING_STATE = '_give_donor_billing_state'; |
| 70 | const BILLING_ZIP = '_give_donor_billing_zip'; |
| 71 | const PURCHASE_KEY = '_give_payment_purchase_key'; |
| 72 | const DONOR_IP = '_give_payment_donor_ip'; |
| 73 | const ANONYMOUS = '_give_anonymous_donation'; |
| 74 | const LEVEL_ID = '_give_payment_price_id'; |
| 75 | const COMPANY = '_give_donation_company'; |
| 76 | const COMMENT = '_give_donation_comment'; |
| 77 | const GATEWAY_TRANSACTION_ID = '_give_payment_transaction_id'; |
| 78 | const SUBSCRIPTION_INITIAL_DONATION = '_give_subscription_payment'; |
| 79 | const IS_RECURRING = '_give_is_donation_recurring'; |
| 80 | } |
| 81 |