Fixed schema to include instance_id for shipping_lines

This commit is contained in:
Claudio Sanches 2018-09-08 19:10:45 -03:00
parent ca36e368c5
commit a0145c0265
1 changed files with 5 additions and 0 deletions

View File

@ -1397,6 +1397,11 @@ class WC_REST_Orders_V2_Controller extends WC_REST_Legacy_Orders_Controller {
'type' => 'mixed',
'context' => array( 'view', 'edit' ),
),
'instance_id' => array(
'description' => __( 'Shipping instance ID.', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),
),
'total' => array(
'description' => __( 'Line total (after discounts).', 'woocommerce' ),
'type' => 'string',