[REST API] Fixed item description and type in orders refunds schema

This commit is contained in:
Claudio Sanches 2016-05-30 17:25:39 -03:00
parent 2442ec9f4d
commit f526fe3938
1 changed files with 2 additions and 2 deletions

View File

@ -360,7 +360,7 @@ class WC_REST_Order_Refunds_Controller extends WC_REST_Posts_Controller {
'context' => array( 'view', 'edit' ),
),
'reason' => array(
'description' => __( 'Reason for refund', 'woocommerce' ),
'description' => __( 'Reason for refund.', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),
),
@ -404,7 +404,7 @@ class WC_REST_Order_Refunds_Controller extends WC_REST_Posts_Controller {
),
'tax_class' => array(
'description' => __( 'Tax class of product.', 'woocommerce' ),
'type' => 'integer',
'type' => 'string',
'context' => array( 'view', 'edit' ),
'readonly' => true,
),