CartSchema
CartSchema class.
Description Description
Source Source
File: packages/woocommerce-blocks/src/StoreApi/Schemas/CartSchema.php
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
Methods Methods
- __construct — Constructor.
- get_cart_errors — Get cart validation errors.
- get_item_response — Convert a woo cart into an object suitable for the response.
- get_properties — Cart schema properties.
- get_tax_lines — Get tax lines from the cart and format to match schema.