CatalogVisibility.php
11 months ago
FeaturePluginCompatibility.php
7 months ago
OrderInternalStatus.php
11 months ago
OrderStatus.php
7 months ago
PaymentGatewayFeature.php
6 months ago
ProductStatus.php
11 months ago
ProductStockStatus.php
11 months ago
ProductTaxStatus.php
11 months ago
ProductType.php
11 months ago
PaymentGatewayFeature.php
149 lines
| 1 | <?php |
| 2 | |
| 3 | declare( strict_types = 1 ); |
| 4 | |
| 5 | namespace Automattic\WooCommerce\Enums; |
| 6 | |
| 7 | /** |
| 8 | * Enum class for all the payment gateway feature's values. |
| 9 | */ |
| 10 | final class PaymentGatewayFeature { |
| 11 | /** |
| 12 | * Payment gateway supports add payment methods. |
| 13 | * |
| 14 | * @var string |
| 15 | */ |
| 16 | public const ADD_PAYMENT_METHOD = 'add_payment_method'; |
| 17 | |
| 18 | /** |
| 19 | * Payment gateway supports credit card form on saved method. |
| 20 | * |
| 21 | * @var string |
| 22 | */ |
| 23 | public const CREDIT_CARD_FORM_CVC_ON_SAVED_METHOD = 'credit_card_form_cvc_on_saved_method'; |
| 24 | |
| 25 | /** |
| 26 | * Payment gateway supports default credit card form. |
| 27 | * |
| 28 | * @var string |
| 29 | */ |
| 30 | public const DEFAULT_CREDIT_CARD_FORM = 'default_credit_card_form'; |
| 31 | |
| 32 | /** |
| 33 | * Payment gateway supports deposits. |
| 34 | * |
| 35 | * @var string |
| 36 | */ |
| 37 | public const DEPOSITS = 'deposits'; |
| 38 | |
| 39 | /** |
| 40 | * Payment gateway supports multiple subscriptions. |
| 41 | * |
| 42 | * @var string |
| 43 | */ |
| 44 | public const MULTIPLE_SUBSCRIPTIONS = 'multiple_subscriptions'; |
| 45 | |
| 46 | /** |
| 47 | * Payment gateway supports pay button. |
| 48 | * |
| 49 | * @var string |
| 50 | */ |
| 51 | public const PAY_BUTTON = 'pay_button'; |
| 52 | |
| 53 | /** |
| 54 | * Payment gateway supports pre-orders. |
| 55 | * |
| 56 | * @var string |
| 57 | */ |
| 58 | public const PRE_ORDERS = 'pre-orders'; |
| 59 | |
| 60 | /** |
| 61 | * Payment gateway supports products. |
| 62 | * |
| 63 | * @var string |
| 64 | */ |
| 65 | public const PRODUCTS = 'products'; |
| 66 | |
| 67 | /** |
| 68 | * Payment gateway supports refunds. |
| 69 | * |
| 70 | * @var string |
| 71 | */ |
| 72 | public const REFUNDS = 'refunds'; |
| 73 | |
| 74 | /** |
| 75 | * Payment gateway supports subscription amount changes. |
| 76 | * |
| 77 | * @var string |
| 78 | */ |
| 79 | public const SUBSCRIPTION_AMOUNT_CHANGES = 'subscription_amount_changes'; |
| 80 | |
| 81 | /** |
| 82 | * Payment gateway supports subscription cancellation. |
| 83 | * |
| 84 | * @var string |
| 85 | */ |
| 86 | public const SUBSCRIPTION_CANCELLATION = 'subscription_cancellation'; |
| 87 | |
| 88 | /** |
| 89 | * Payment gateway supports subscription date changes. |
| 90 | * |
| 91 | * @var string |
| 92 | */ |
| 93 | public const SUBSCRIPTION_DATE_CHANGES = 'subscription_date_changes'; |
| 94 | |
| 95 | /** |
| 96 | * Payment gateway supports subscription payment method changes. |
| 97 | * |
| 98 | * @var string |
| 99 | */ |
| 100 | public const SUBSCRIPTION_PAYMENT_METHOD_CHANGE = 'subscription_payment_method_change'; |
| 101 | |
| 102 | /** |
| 103 | * Payment gateway supports subscription payment method changes by admin. |
| 104 | * |
| 105 | * @var string |
| 106 | */ |
| 107 | public const SUBSCRIPTION_PAYMENT_METHOD_CHANGE_ADMIN = 'subscription_payment_method_change_admin'; |
| 108 | |
| 109 | /** |
| 110 | * Payment gateway supports subscription payment method changes by customer or admin. |
| 111 | * |
| 112 | * @var string |
| 113 | */ |
| 114 | public const SUBSCRIPTION_PAYMENT_METHOD_CHANGE_CUSTOMER = 'subscription_payment_method_change_customer'; |
| 115 | |
| 116 | /** |
| 117 | * Payment gateway supports subscription reactivation. |
| 118 | * |
| 119 | * @var string |
| 120 | */ |
| 121 | public const SUBSCRIPTION_REACTIVATION = 'subscription_reactivation'; |
| 122 | |
| 123 | /** |
| 124 | * Payment gateway supports subscription suspension. |
| 125 | * |
| 126 | * @var string |
| 127 | */ |
| 128 | public const SUBSCRIPTION_SUSPENSION = 'subscription_suspension'; |
| 129 | |
| 130 | /** |
| 131 | * Payment gateway supports subscriptions. |
| 132 | * |
| 133 | * @var string |
| 134 | */ |
| 135 | public const SUBSCRIPTIONS = 'subscriptions'; |
| 136 | |
| 137 | /** |
| 138 | * Payment gateway supports tokenization. |
| 139 | * |
| 140 | * @var string |
| 141 | */ |
| 142 | public const TOKENIZATION = 'tokenization'; |
| 143 | |
| 144 | /** |
| 145 | * Agentic Commerce feature. |
| 146 | */ |
| 147 | public const AGENTIC_COMMERCE = 'agentic_commerce'; |
| 148 | } |
| 149 |