Automattic\WooCommerce\StoreApi\Routes\V1\Agentic
CheckoutSessionsUpdate::get_args
Get method arguments for this REST route.
Method of the class: CheckoutSessionsUpdate{}
No Hooks.
Returns
Array. An array of endpoints.
Usage
$CheckoutSessionsUpdate = new CheckoutSessionsUpdate(); $CheckoutSessionsUpdate->get_args();
CheckoutSessionsUpdate::get_args() CheckoutSessionsUpdate::get args code WC 10.8.1
public function get_args() {
return [
'args' => [
'checkout_session_id' => [
'description' => __( 'The checkout session ID (Cart-Token JWT).', 'woocommerce' ),
'type' => 'string',
],
],
[
'methods' => \WP_REST_Server::CREATABLE,
'callback' => [ $this, 'get_response' ],
'permission_callback' => [ $this, 'is_authorized' ],
'args' => $this->get_update_params(),
],
'schema' => [ $this->schema, 'get_public_item_schema' ],
];
}