chargebee / chargebee-ruby

Ruby library for the Chargebee API.
https://apidocs.chargebee.com/docs/api?lang=ruby
MIT License
32 stars 60 forks source link

ChargeBee::Customer.list filter param operators ("email[is]") do not work #13

Closed benwoodward closed 8 years ago

benwoodward commented 8 years ago
ChargeBee::Customer.list({
    limit: 2,
    "email[is]" => "a-user@example.com"
})

The above code fails to find the user with the specified email. Instead it just lists all customers, most recent first.

EDIT: I have verified that this does work with curl, so it's not an API bug.

EDIT: I have tested this in 1.7.2 and 1.6.3

EDIT: Just realised I'm using V2 API code with V1 API client (1.7.2), hence why it's not working