lib/tessitura_rest/crm/constituents.rb in tessitura_rest-0.8.6.1 vs lib/tessitura_rest/crm/constituents.rb in tessitura_rest-0.8.6.2
- old
+ new
@@ -88,11 +88,13 @@
"OriginalSource": {
"Id": current["OriginalSource"]["Id"],
"Inactive": false
},
}
+ parameters.delete(:Prefix) unless params[:prefix].present?
+ parameters.delete(:Suffix) unless params[:suffix].present?
options.merge!(basic_auth: @auth, headers: @headers)
- options.merge!(:body => parameters)
+ options.merge!(:body => parameters.to_json, :headers => { 'Content-Type' => 'application/json' })
self.class.put(base_api_endpoint("CRM/Constituents/#{constituent_id}"), options)
end
end
def is_household?(snapshot)
\ No newline at end of file