@@ -79,69 +79,69 @@ public static function get_public_item_schema() {
7979 'properties ' => self ::get_products_properties (),
8080 ],
8181 'coupons ' => [
82- 'description ' => esc_html__ ( '' , 'cc-woo ' ),
83- 'type ' => 'string ' ,
82+ 'description ' => esc_html__ ( 'Array of coupon code strings used in the checkout. ' , 'cc-woo ' ),
83+ 'type ' => 'array ' ,
8484 'context ' => [ 'view ' ],
8585 'readonly ' => true ,
8686 ],
8787 ],
8888 ],
8989 'cart_updated ' => [
90- 'description ' => esc_html__ ( '' , 'cc-woo ' ),
90+ 'description ' => esc_html__ ( 'The MySQL-format datetime of when the cart was last updated, in GMT+0 time zone. ' , 'cc-woo ' ),
9191 'type ' => 'string ' ,
9292 'context ' => [ 'view ' ],
9393 'readonly ' => true ,
9494 ],
9595 'cart_updated_ts ' => [
96- 'description ' => esc_html__ ( '' , 'cc-woo ' ),
96+ 'description ' => esc_html__ ( 'Unix timestamp of when the cart was last updated, in GMT+0 time zone. ' , 'cc-woo ' ),
9797 'type ' => 'string ' ,
9898 'context ' => [ 'view ' ],
9999 'readonly ' => true ,
100100 ],
101101 'cart_created ' => [
102- 'description ' => esc_html__ ( '' , 'cc-woo ' ),
102+ 'description ' => esc_html__ ( 'The MySQL-format datetime of when the cart was first created, in GMT+0 time zone. ' , 'cc-woo ' ),
103103 'type ' => 'string ' ,
104104 'context ' => [ 'view ' ],
105105 'readonly ' => true ,
106106 ],
107107 'cart_created_ts ' => [
108- 'description ' => esc_html__ ( '' , 'cc-woo ' ),
108+ 'description ' => esc_html__ ( 'Unix timestamp of when the cart was first created, in GMT+0 time zone. ' , 'cc-woo ' ),
109109 'type ' => 'string ' ,
110110 'context ' => [ 'view ' ],
111111 'readonly ' => true ,
112112 ],
113113 'cart_hash ' => [
114- 'description ' => esc_html__ ( '' , 'cc-woo ' ),
114+ 'description ' => esc_html__ ( 'MD5 hash of cart \' s user ID and email address. ' , 'cc-woo ' ),
115115 'type ' => 'string ' ,
116116 'context ' => [ 'view ' ],
117117 'readonly ' => true ,
118118 ],
119119 'cart_subtotal ' => [
120- 'description ' => esc_html__ ( '' , 'cc-woo ' ),
120+ 'description ' => esc_html__ ( 'Cart subtotal. ' , 'cc-woo ' ),
121121 'type ' => 'string ' ,
122122 'context ' => [ 'view ' ],
123123 'readonly ' => true ,
124124 ],
125125 'cart_total ' => [
126- 'description ' => esc_html__ ( '' , 'cc-woo ' ),
126+ 'description ' => esc_html__ ( 'Cart total. ' , 'cc-woo ' ),
127127 'type ' => 'string ' ,
128128 'context ' => [ 'view ' ],
129129 'readonly ' => true ,
130130 ],
131131 'cart_subtotal_tax ' => [
132- 'description ' => esc_html__ ( '' , 'cc-woo ' ),
132+ 'description ' => esc_html__ ( 'Cart subtotal tax. ' , 'cc-woo ' ),
133133 'type ' => 'string ' ,
134134 'context ' => [ 'view ' ],
135135 'readonly ' => true ,
136136 ],
137137 'cart_total_tax ' => [
138- 'description ' => esc_html__ ( '' , 'cc-woo ' ),
138+ 'description ' => esc_html__ ( 'Cart total tax. ' , 'cc-woo ' ),
139139 'type ' => 'string ' ,
140140 'context ' => [ 'view ' ],
141141 'readonly ' => true ,
142142 ],
143143 'cart_recovery_url ' => [
144- 'description ' => esc_html__ ( '' , 'cc-woo ' ),
144+ 'description ' => esc_html__ ( 'Recovery URL that recreates cart the cart for checkout when visited. ' , 'cc-woo ' ),
145145 'type ' => 'string ' ,
146146 'context ' => [ 'view ' ],
147147 'readonly ' => true ,
0 commit comments