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
CheckoutSessionStatus.php
39 lines
| 1 | <?php |
| 2 | declare(strict_types=1); |
| 3 | namespace Automattic\WooCommerce\Internal\Agentic\Enums\Specs; |
| 4 | |
| 5 | /** |
| 6 | * Checkout session status values as defined in the Agentic Commerce Protocol. |
| 7 | */ |
| 8 | class CheckoutSessionStatus { |
| 9 | /** |
| 10 | * Session is not ready for payment (missing required information). |
| 11 | */ |
| 12 | const NOT_READY_FOR_PAYMENT = 'not_ready_for_payment'; |
| 13 | |
| 14 | /** |
| 15 | * Session is ready for payment. |
| 16 | */ |
| 17 | const READY_FOR_PAYMENT = 'ready_for_payment'; |
| 18 | |
| 19 | /** |
| 20 | * Session has been completed (payment successful). |
| 21 | */ |
| 22 | const COMPLETED = 'completed'; |
| 23 | |
| 24 | /** |
| 25 | * Session has been canceled. |
| 26 | */ |
| 27 | const CANCELED = 'canceled'; |
| 28 | |
| 29 | /** |
| 30 | * Session is in progress (payment initiated but not complete). |
| 31 | */ |
| 32 | const IN_PROGRESS = 'in_progress'; |
| 33 | |
| 34 | /** |
| 35 | * Allowed statuses for update operations. |
| 36 | */ |
| 37 | const ALLOWED_STATUSES_FOR_UPDATE = array( self::NOT_READY_FOR_PAYMENT, self::READY_FOR_PAYMENT ); |
| 38 | } |
| 39 |