PHP 클래스 WC_REST_Order_Refunds_Controller

상속: extends WC_REST_Orders_Controller
파일 보기 프로젝트 열기: woocommerce/woocommerce

보호된 프로퍼티들

프로퍼티 타입 설명
$namespace string Endpoint namespace.
$post_type string Post type.
$request array Stores the request.
$rest_base string Route base.

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
prepare_links ( WC_Order_Refund $refund, WP_REST_Request $request ) : array Prepare links for the request.

메소드 상세

__construct() 공개 메소드

Order refunds actions.
public __construct ( )

create_item() 공개 메소드

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.
리턴 WP_Error | WP_REST_Response

get_collection_params() 공개 메소드

Get the query params for collections.
public get_collection_params ( ) : array
리턴 array

get_item_schema() 공개 메소드

Get the Order's schema, conforming to JSON Schema.
public get_item_schema ( ) : array
리턴 array

prepare_item_for_response() 공개 메소드

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.
리턴 WP_REST_Response $data

query_args() 공개 메소드

Query args.
public query_args ( array $args, WP_REST_Request $request ) : array
$args array
$request WP_REST_Request
리턴 array

register_routes() 공개 메소드

Register the routes for order refunds.
public register_routes ( )

프로퍼티 상세

$namespace 보호되어 있는 프로퍼티

Endpoint namespace.
protected string $namespace
리턴 string

$post_type 보호되어 있는 프로퍼티

Post type.
protected string $post_type
리턴 string

$request 보호되어 있는 프로퍼티

Stores the request.
protected array $request
리턴 array

$rest_base 보호되어 있는 프로퍼티

Route base.
protected string $rest_base
리턴 string