PHP Class WC_REST_Order_Refunds_Controller

Inheritance: extends WC_REST_Orders_Controller
Afficher le fichier Open project: woocommerce/woocommerce

Protected Properties

Свойство Type Description
$namespace string Endpoint namespace.
$post_type string Post type.
$request array Stores the request.
$rest_base string Route base.

Méthodes publiques

Méthode Description
__construct ( ) Order refunds actions.
create_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response Create a single item.
get_collection_params ( ) : array Get the query params for collections.
get_item_schema ( ) : array Get the Order's schema, conforming to JSON Schema.
prepare_item_for_response ( WP_Post $post, WP_REST_Request $request ) : WP_REST_Response Prepare a single order refund output for response.
query_args ( array $args, WP_REST_Request $request ) : array Query args.
register_routes ( ) Register the routes for order refunds.

Méthodes protégées

Méthode Description
prepare_links ( WC_Order_Refund $refund, WP_REST_Request $request ) : array Prepare links for the request.

Method Details

__construct() public méthode

Order refunds actions.
public __construct ( )

create_item() public méthode

Create a single item.
public create_item ( WP_REST_Request $request ) : WP_Error | WP_REST_Response
$request WP_REST_Request Full details about the request.
Résultat WP_Error | WP_REST_Response

get_collection_params() public méthode

Get the query params for collections.
public get_collection_params ( ) : array
Résultat array

get_item_schema() public méthode

Get the Order's schema, conforming to JSON Schema.
public get_item_schema ( ) : array
Résultat array

prepare_item_for_response() public méthode

Prepare a single order refund output for response.
public prepare_item_for_response ( WP_Post $post, WP_REST_Request $request ) : WP_REST_Response
$post WP_Post Post object.
$request WP_REST_Request Request object.
Résultat WP_REST_Response $data

query_args() public méthode

Query args.
public query_args ( array $args, WP_REST_Request $request ) : array
$args array
$request WP_REST_Request
Résultat array

register_routes() public méthode

Register the routes for order refunds.
public register_routes ( )

Property Details

$namespace protected_oe property

Endpoint namespace.
protected string $namespace
Résultat string

$post_type protected_oe property

Post type.
protected string $post_type
Résultat string

$request protected_oe property

Stores the request.
protected array $request
Résultat array

$rest_base protected_oe property

Route base.
protected string $rest_base
Résultat string