lib/centaman/service/update_member.rb in centaman-4.0.3 vs lib/centaman/service/update_member.rb in centaman-4.0.4
- old
+ new
@@ -34,11 +34,11 @@
def options_hash_no_json
{
'FirstName' => first_name.try(:upcase),
'LastName' => last_name.try(:upcase),
- 'homeAddress' => home_address.try(:upcase),
+ 'HomeAddress' => home_address,
'Gender' => gender.try(:upcase),
'Email' => email.try(:upcase),
'Password' => password,
'IsPrimary' => is_primary
}
@@ -54,9 +54,10 @@
return if !address
{
'street1': address[:street_address].try(:upcase),
'street2': '',
'suburb': address[:suburb].try(:upcase),
+ 'city': address[:city].try(:upcase),
'state': address[:state].try(:upcase),
'postcode': address[:zip].try(:upcase),
'country': address[:country].try(:upcase),
'homePhone': phone.try(:delete, "^0-9"),
'workPhone': address[:work_phone],