Automattic\WooCommerce\StoreApi\Routes\V1\Agentic
CheckoutSessionsComplete::get_args
Get method arguments for this REST route.
Method of the class: CheckoutSessionsComplete{}
No Hooks.
Returns
Array. An array of endpoints.
Usage
$CheckoutSessionsComplete = new CheckoutSessionsComplete(); $CheckoutSessionsComplete->get_args();
CheckoutSessionsComplete::get_args() CheckoutSessionsComplete::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_complete_params(),
],
'schema' => [ $this->schema, 'get_public_item_schema' ],
];
}