woocommerce / wc-api-ruby

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

Add metadata to existing coupon #55

Open pbmolini opened 2 years ago

pbmolini commented 2 years ago

Hello, I try with the following and I get no errors

@wc_api_client.put("coupons/42", { meta_data: [{ key: "email", value: "email@example.com" }] })

but then nothing changes on the Coupon

@wc_api_client.get("coupons/42")['meta_data']
=> nil

What am I doing wrong?