lib/paddle/models/customer.rb in paddle-2.1.0 vs lib/paddle/models/customer.rb in paddle-2.1.1

- old
+ new

@@ -7,10 +7,10 @@ response = Client.get_request("customers", params: params) Collection.from_response(response, type: Customer) end def create(email:, **params) - attrs = {email: email} + attrs = {email: email.gsub(/\s+/, "")} response = Client.post_request("customers", body: attrs.merge(params)) Customer.new(response.body["data"]) end def retrieve(id:)