Skip to content

Commit 0e3d74b

Browse files
committed
finish describing query params
1 parent 8800f0e commit 0e3d74b

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

src/Rest/AbandonedCarts/Schema.php

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,27 @@ class Schema {
2626
* */
2727
public static function get_collection_params() {
2828
return [
29-
'page' => [],
30-
'per_page' => [],
31-
'date_min' => [],
32-
'date_max' => [],
29+
'page' => [
30+
'description' => esc_html__( 'Current page of paginated results.', 'woocommerce' ),
31+
'required' => false,
32+
'type' => 'integer',
33+
],
34+
'per_page' => [
35+
'description' => esc_html__( 'How many abandoned carts to show per page.', 'woocommerce' ),
36+
'required' => false,
37+
'type' => 'integer',
38+
'default' => 10,
39+
],
40+
'date_min' => [
41+
'description' => esc_html__( 'Filters results to only show abandoned carts created after this date. Accepts dates in any format acceptable for comparison of MySQL DATETIME column values.', 'woocommerce' ),
42+
'required' => false,
43+
'type' => 'string',
44+
],
45+
'date_max' => [
46+
'description' => esc_html__( 'Filters results to only show abandoned carts created before this date. Accepts dates in any format acceptable for comparison of MySQL DATETIME column values.', 'woocommerce' ),
47+
'required' => false,
48+
'type' => 'string',
49+
],
3350
];
3451
}
3552

0 commit comments

Comments
 (0)