lib/centaman/service/update_member.rb in centaman-3.1.1 vs lib/centaman/service/update_member.rb in centaman-3.1.2
- old
+ new
@@ -53,17 +53,17 @@
def home_address
return if !address
{
'street1': address[:street_address],
'street2': '',
- 'suburb': address[:city],
- 'city': address[:city],
+ 'suburb': address[:suburb],
+ 'city': address[:suburb] || address[:city],
'state': address[:state],
'postcode': address[:zip],
'country': address[:country],
'homePhone': phone,
- 'workPhone': '',
- 'mobilePhone': ''
+ 'workPhone': address[:work_phone],
+ 'mobilePhone': address[:mobile_phone]
}
end
def update_error(resp)
message = { error: resp.parsed_response || 'Unable to update member record.' }