1 to 18 of 18
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;

use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
use Automattic\WooCommerce\Blocks\StoreApi\Schemas\AbstractSchema;
use Automattic\WooCommerce\Blocks\StoreApi\Schemas\CartSchema;

/* class AbstractCartRoute */
/* function AbstractCartRoute::__construct() – Constructor accepts two types of schema; one for the item being returned, and one for the cart as a whole. These
may be the same depending on the route. */
/* function AbstractCartRoute::get_response() – Get the route response based on the type of request. */
/* function AbstractCartRoute::add_nonce_headers() – Add nonce headers to a response object. */
/* function AbstractCartRoute::requires_nonce() – Checks if a nonce is required for the route. */
/* function AbstractCartRoute::calculate_totals() – Ensures the cart totals are calculated before an API response is generated. */
/* function AbstractCartRoute::maybe_release_stock() – If there is a draft order, releases stock. */
/* function AbstractCartRoute::check_nonce() – For non-GET endpoints, require and validate a nonce to prevent CSRF attacks. */
/* function AbstractCartRoute::get_route_error_response() – Get route response when something went wrong. */

 View on GitHub View on Trac

Called by

    Invoked by


      Call hooks

      API Letters: ,,,