lib/sellsy/customer.rb in sellsy-client-0.7.0 vs lib/sellsy/customer.rb in sellsy-client-0.8.0

- old
+ new

@@ -27,11 +27,11 @@ response['status'] == 'success' end def to_params { - 'id' => @id, + 'clientid' => @id, 'third' => { 'name' => person_type == 'pp' ? @name : @structure_name, 'type' => person_type == 'pp' ? 'person' : 'corporation', 'ident' => apidae_member_id, 'email' => @email, @@ -59,11 +59,10 @@ if response['response'] value = response['response']['client'] client.id = value['id'] client.name = value['name'] - client.type = value['type'] client.contacts = response['response']['contacts'] end client end @@ -80,9 +79,10 @@ if response['response'] response['response']['result'].each do |key, value| client = Customer.new client.id = key client.name = value['fullName'] + client.email = value['email'] clients << client end end clients