CheckoutSessionStatus.php
7 months ago
ErrorCode.php
7 months ago
ErrorType.php
7 months ago
FulfillmentType.php
7 months ago
LinkType.php
7 months ago
MessageContentType.php
7 months ago
MessageType.php
7 months ago
OrderStatus.php
7 months ago
PaymentMethod.php
7 months ago
PaymentProvider.php
7 months ago
RefundType.php
7 months ago
TotalType.php
7 months ago
ErrorCode.php
39 lines
| 1 | <?php |
| 2 | declare(strict_types=1); |
| 3 | namespace Automattic\WooCommerce\Internal\Agentic\Enums\Specs; |
| 4 | |
| 5 | /** |
| 6 | * Error codes for message errors as defined in the Agentic Commerce Protocol. |
| 7 | */ |
| 8 | class ErrorCode { |
| 9 | /** |
| 10 | * Required field is missing. |
| 11 | */ |
| 12 | const MISSING = 'missing'; |
| 13 | |
| 14 | /** |
| 15 | * Field value is invalid. |
| 16 | */ |
| 17 | const INVALID = 'invalid'; |
| 18 | |
| 19 | /** |
| 20 | * Product is out of stock. |
| 21 | */ |
| 22 | const OUT_OF_STOCK = 'out_of_stock'; |
| 23 | |
| 24 | /** |
| 25 | * Payment was declined. |
| 26 | */ |
| 27 | const PAYMENT_DECLINED = 'payment_declined'; |
| 28 | |
| 29 | /** |
| 30 | * User sign-in is required. |
| 31 | */ |
| 32 | const REQUIRES_SIGN_IN = 'requires_sign_in'; |
| 33 | |
| 34 | /** |
| 35 | * 3D Secure authentication is required. |
| 36 | */ |
| 37 | const REQUIRES_3DS = 'requires_3ds'; |
| 38 | } |
| 39 |