AI
1 year ago
Agentic
7 months ago
AbstractAddressSchema.php
1 year ago
AbstractSchema.php
1 month ago
BatchSchema.php
2 years ago
BillingAddressSchema.php
2 years ago
CartCouponSchema.php
1 year ago
CartExtensionsSchema.php
1 year ago
CartFeeSchema.php
2 years ago
CartItemSchema.php
1 month ago
CartSchema.php
2 months ago
CartShippingRateSchema.php
1 month ago
CheckoutOrderSchema.php
2 years ago
CheckoutSchema.php
1 month ago
ErrorSchema.php
2 years ago
ImageAttachmentSchema.php
3 months ago
ItemSchema.php
11 months ago
OrderCouponSchema.php
2 years ago
OrderFeeSchema.php
2 years ago
OrderItemSchema.php
1 month ago
OrderSchema.php
2 months ago
PatternsSchema.php
1 year ago
ProductAttributeSchema.php
2 years ago
ProductAttributeTermSchema.php
1 month ago
ProductBrandSchema.php
1 year ago
ProductCategorySchema.php
2 years ago
ProductCollectionDataSchema.php
11 months ago
ProductReviewSchema.php
2 years ago
ProductSchema.php
1 month ago
ShippingAddressSchema.php
2 years ago
ShopperListItemSchema.php
1 month ago
ShopperListSchema.php
1 month ago
TermSchema.php
2 years ago
CheckoutOrderSchema.php
38 lines
| 1 | <?php |
| 2 | namespace Automattic\WooCommerce\StoreApi\Schemas\V1; |
| 3 | |
| 4 | use Automattic\WooCommerce\StoreApi\SchemaController; |
| 5 | use Automattic\WooCommerce\StoreApi\Payments\PaymentResult; |
| 6 | use Automattic\WooCommerce\StoreApi\Schemas\ExtendSchema; |
| 7 | |
| 8 | |
| 9 | /** |
| 10 | * CheckoutOrderSchema class. |
| 11 | */ |
| 12 | class CheckoutOrderSchema extends CheckoutSchema { |
| 13 | /** |
| 14 | * The schema item name. |
| 15 | * |
| 16 | * @var string |
| 17 | */ |
| 18 | protected $title = 'checkout-order'; |
| 19 | |
| 20 | /** |
| 21 | * The schema item identifier. |
| 22 | * |
| 23 | * @var string |
| 24 | */ |
| 25 | const IDENTIFIER = 'checkout-order'; |
| 26 | |
| 27 | /** |
| 28 | * Checkout schema properties. |
| 29 | * |
| 30 | * @return array |
| 31 | */ |
| 32 | public function get_properties() { |
| 33 | $parent_properties = parent::get_properties(); |
| 34 | unset( $parent_properties['create_account'] ); |
| 35 | return $parent_properties; |
| 36 | } |
| 37 | } |
| 38 |