zendesk2 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ class Zendesk2::Client::Organization < Cistern::Model
|
|
9
9
|
attribute :shared_tickets, type: :boolean
|
10
10
|
attribute :tags, type: :array
|
11
11
|
attribute :name, type: :string
|
12
|
-
attribute :notes, type: :
|
12
|
+
attribute :notes, type: :string
|
13
13
|
attribute :updated_at, type: :time
|
14
14
|
|
15
15
|
def destroy!
|
@@ -56,6 +56,9 @@ class Zendesk2::Client::Organization < Cistern::Model
|
|
56
56
|
private
|
57
57
|
|
58
58
|
def params
|
59
|
-
Cistern::Hash.slice(Zendesk2.stringify_keys(attributes), "id", "details", "domain_names", "external_id", "group_id", "shared_comments", "shared_tickets", "tags", "name", "notes")
|
59
|
+
writable_attributes = Cistern::Hash.slice(Zendesk2.stringify_keys(attributes), "id", "details", "domain_names", "external_id", "group_id", "shared_comments", "shared_tickets", "tags", "name", "notes")
|
60
|
+
writable_attributes.delete("external_id") if writable_attributes["external_id"].to_s == "0"
|
61
|
+
writable_attributes.delete("group_id") if writable_attributes["group_id"].to_s == "0"
|
62
|
+
writable_attributes
|
60
63
|
end
|
61
64
|
end
|
data/lib/zendesk2/version.rb
CHANGED