This commit is contained in:
Mike Jolley 2016-12-07 18:13:17 +00:00
parent 1ad852443b
commit e8d119c42c
5 changed files with 12 additions and 12 deletions

View File

@ -509,7 +509,7 @@ class WC_REST_Coupons_Controller extends WC_REST_Posts_Controller {
'properties' => array(
'id' => array(
'description' => __( 'Meta ID.', 'woocommerce' ),
'type' => 'int',
'type' => 'integer',
'context' => array( 'view', 'edit' ),
'readonly' => true,
),

View File

@ -804,7 +804,7 @@ class WC_REST_Customers_Controller extends WC_REST_Controller {
'properties' => array(
'id' => array(
'description' => __( 'Meta ID.', 'woocommerce' ),
'type' => 'int',
'type' => 'integer',
'context' => array( 'view', 'edit' ),
'readonly' => true,
),

View File

@ -392,7 +392,7 @@ class WC_REST_Order_Notes_Controller extends WC_REST_Controller {
public function get_item_schema() {
$schema = array(
'$schema' => 'http://json-schema.org/draft-04/schema#',
'title' => 'tax',
'title' => 'order_note',
'type' => 'object',
'properties' => array(
'id' => array(

View File

@ -329,7 +329,7 @@ class WC_REST_Order_Refunds_Controller extends WC_REST_Orders_Controller {
),
'refunded_by' => array(
'description' => __( 'User ID of user who created the refund.', 'woocommerce' ),
'type' => 'int',
'type' => 'integer',
'context' => array( 'view' ),
),
'meta_data' => array(
@ -341,7 +341,7 @@ class WC_REST_Order_Refunds_Controller extends WC_REST_Orders_Controller {
'properties' => array(
'id' => array(
'description' => __( 'Meta ID.', 'woocommerce' ),
'type' => 'int',
'type' => 'integer',
'context' => array( 'view', 'edit' ),
'readonly' => true,
),
@ -453,7 +453,7 @@ class WC_REST_Order_Refunds_Controller extends WC_REST_Orders_Controller {
'properties' => array(
'id' => array(
'description' => __( 'Meta ID.', 'woocommerce' ),
'type' => 'int',
'type' => 'integer',
'context' => array( 'view', 'edit' ),
'readonly' => true,
),

View File

@ -1067,7 +1067,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller {
'properties' => array(
'id' => array(
'description' => __( 'Meta ID.', 'woocommerce' ),
'type' => 'int',
'type' => 'integer',
'context' => array( 'view', 'edit' ),
'readonly' => true,
),
@ -1179,7 +1179,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller {
'properties' => array(
'id' => array(
'description' => __( 'Meta ID.', 'woocommerce' ),
'type' => 'int',
'type' => 'integer',
'context' => array( 'view', 'edit' ),
'readonly' => true,
),
@ -1299,7 +1299,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller {
'properties' => array(
'id' => array(
'description' => __( 'Meta ID.', 'woocommerce' ),
'type' => 'int',
'type' => 'integer',
'context' => array( 'view', 'edit' ),
'readonly' => true,
),
@ -1385,7 +1385,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller {
'properties' => array(
'id' => array(
'description' => __( 'Meta ID.', 'woocommerce' ),
'type' => 'int',
'type' => 'integer',
'context' => array( 'view', 'edit' ),
'readonly' => true,
),
@ -1483,7 +1483,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller {
'properties' => array(
'id' => array(
'description' => __( 'Meta ID.', 'woocommerce' ),
'type' => 'int',
'type' => 'integer',
'context' => array( 'view', 'edit' ),
'readonly' => true,
),
@ -1541,7 +1541,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller {
'properties' => array(
'id' => array(
'description' => __( 'Meta ID.', 'woocommerce' ),
'type' => 'int',
'type' => 'integer',
'context' => array( 'view', 'edit' ),
'readonly' => true,
),