'description'=>__('Current page of the collection.','wc-admin'),
'type'=>'integer',
'default'=>1,
'sanitize_callback'=>'absint',
'validate_callback'=>'rest_validate_request_arg',
'minimum'=>1,
);
$params['per_page']=array(
'description'=>__('Maximum number of items to be returned in result set.','wc-admin'),
'type'=>'integer',
'default'=>10,
'minimum'=>1,
'maximum'=>100,
'sanitize_callback'=>'absint',
'validate_callback'=>'rest_validate_request_arg',
);
$params['after']=array(
'description'=>__('Limit response to resources published after a given ISO8601 compliant date.','wc-admin'),
'type'=>'string',
'format'=>'date-time',
'validate_callback'=>'rest_validate_request_arg',
);
$params['before']=array(
'description'=>__('Limit response to resources published before a given ISO8601 compliant date.','wc-admin'),
'type'=>'string',
'format'=>'date-time',
'validate_callback'=>'rest_validate_request_arg',
);
$params['order']=array(
'description'=>__('Order sort attribute ascending or descending.','wc-admin'),
'type'=>'string',
'default'=>'desc',
'enum'=>array('asc','desc'),
'validate_callback'=>'rest_validate_request_arg',
);
$params['orderby']=array(
'description'=>__('Sort collection by object attribute.','wc-admin'),
'type'=>'string',
'default'=>'date',
'enum'=>array(
'date',
'downloads_count',
),
'validate_callback'=>'rest_validate_request_arg',
);
$params['interval']=array(
'description'=>__('Time interval to use for buckets in the returned data.','wc-admin'),
'type'=>'string',
'default'=>'week',
'enum'=>array(
'hour',
'day',
'week',
'month',
'quarter',
'year',
),
'validate_callback'=>'rest_validate_request_arg',
);
$params['match']=array(
'description'=>__('Indicates whether all the conditions should be true for the resulting set, or if any one of them is sufficient. Match affects the following parameters: status_is, status_is_not, product_includes, product_excludes, coupon_includes, coupon_excludes, customer, categories','wc-admin'),
'type'=>'string',
'default'=>'all',
'enum'=>array(
'all',
'any',
),
'validate_callback'=>'rest_validate_request_arg',
);
$params['product_includes']=array(
'description'=>__('Limit result set to items that have the specified product(s) assigned.','wc-admin'),
'type'=>'array',
'items'=>array(
'type'=>'integer',
),
'default'=>array(),
'sanitize_callback'=>'wp_parse_id_list',
);
$params['product_excludes']=array(
'description'=>__('Limit result set to items that don\'t have the specified product(s) assigned.','wc-admin'),
'type'=>'array',
'items'=>array(
'type'=>'integer',
),
'default'=>array(),
'sanitize_callback'=>'wp_parse_id_list',
);
$params['order_includes']=array(
'description'=>__('Limit result set to items that have the specified order ids.','wc-admin'),
'type'=>'array',
'sanitize_callback'=>'wp_parse_id_list',
'validate_callback'=>'rest_validate_request_arg',
'items'=>array(
'type'=>'integer',
),
);
$params['order_excludes']=array(
'description'=>__('Limit result set to items that don\'t have the specified order ids.','wc-admin'),
'type'=>'array',
'sanitize_callback'=>'wp_parse_id_list',
'validate_callback'=>'rest_validate_request_arg',
'items'=>array(
'type'=>'integer',
),
);
$params['user_includes']=array(
'description'=>__('Limit response to objects that have the specified user ids.','wc-admin'),
'type'=>'array',
'sanitize_callback'=>'wp_parse_id_list',
'validate_callback'=>'rest_validate_request_arg',
'items'=>array(
'type'=>'integer',
),
);
$params['user_excludes']=array(
'description'=>__('Limit response to objects that don\'t have the specified user ids.','wc-admin'),
'type'=>'array',
'sanitize_callback'=>'wp_parse_id_list',
'validate_callback'=>'rest_validate_request_arg',
'items'=>array(
'type'=>'integer',
),
);
$params['ip_address_includes']=array(
'description'=>__('Limit response to objects that have a specified ip address.','wc-admin'),
'type'=>'array',
'validate_callback'=>'rest_validate_request_arg',
'items'=>array(
'type'=>'string',
),
);
$params['ip_address_excludes']=array(
'description'=>__('Limit response to objects that don\'t have a specified ip address.','wc-admin'),