lib/zendesk2/client/models/organization.rb in zendesk2-0.0.12 vs lib/zendesk2/client/models/organization.rb in zendesk2-0.0.13

- old
+ new

@@ -7,11 +7,11 @@ attribute :group_id, type: :integer attribute :shared_comments, type: :boolean attribute :shared_tickets, type: :boolean attribute :tags, type: :array attribute :name, type: :string - attribute :notes, type: :array + attribute :notes, type: :string attribute :updated_at, type: :time def destroy! requires :identity @@ -54,8 +54,11 @@ end private def params - Cistern::Hash.slice(Zendesk2.stringify_keys(attributes), "id", "details", "domain_names", "external_id", "group_id", "shared_comments", "shared_tickets", "tags", "name", "notes") + writable_attributes = Cistern::Hash.slice(Zendesk2.stringify_keys(attributes), "id", "details", "domain_names", "external_id", "group_id", "shared_comments", "shared_tickets", "tags", "name", "notes") + writable_attributes.delete("external_id") if writable_attributes["external_id"].to_s == "0" + writable_attributes.delete("group_id") if writable_attributes["group_id"].to_s == "0" + writable_attributes end end