lib/intercom/request.rb in intercom-3.7.5 vs lib/intercom/request.rb in intercom-3.7.6

- old
+ new

@@ -177,9 +177,11 @@ raise Intercom::AdminNotFound.new(error_details['message'], error_context) when "rate_limit_exceeded" raise Intercom::RateLimitExceeded.new(error_details['message'], error_context) when "custom_data_limit_reached" raise Intercom::CDALimitReachedError.new(error_details['message'], error_context) + when "invalid_document" + raise Intercom::InvalidDocumentError.new(error_details['message'], error_context) when 'service_unavailable' raise Intercom::ServiceUnavailableError.new(error_details['message'], error_context) when 'conflict', 'unique_user_constraint' raise Intercom::MultipleMatchingUsersError.new(error_details['message'], error_context) when 'resource_conflict'