lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb in twilio-ruby-7.0.2 vs lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb in twilio-ruby-7.1.1
- old
+ new
@@ -368,10 +368,11 @@
'status_callback' => payload['status_callback'],
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
'url' => payload['url'],
'links' => payload['links'],
+ 'errors' => payload['errors'],
}
# Context
@instance_context = nil
@params = { 'sid' => sid || @properties['sid'] , }
@@ -456,9 +457,15 @@
##
# @return [Hash] The URLs of the Assigned Items of the Customer-Profile resource.
def links
@properties['links']
+ end
+
+ ##
+ # @return [Array<Hash>] The error codes associated with the rejection of the Customer-Profile.
+ def errors
+ @properties['errors']
end
##
# Delete the CustomerProfilesInstance
# @return [Boolean] True if delete succeeds, false otherwise