woocommerce / wc-api-ruby

A Ruby wrapper for the WooCommerce API.
MIT License
69 stars 73 forks source link

Filtering order notes #28

Closed josegrad closed 7 years ago

josegrad commented 7 years ago

Should the filter for order notes be possible? I would like to get the order notes that are only private or public.

shop_client.get "orders/112/notes", :customer_note => true
shop_client.get "orders/112/notes",{'filter' => {'customer_note' => true}}
shop_client.get "orders/112/notes?filter[customer_note]=true"

All of those always return all the notes for the order, regardless of the customer_note value. Or then my queries are wrong.

claudiosanches commented 7 years ago

Not an issue with this wrapper. Need to add support to filter notes in the new WooCommerce REST API.