zendesk2 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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: :array
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
@@ -1,3 +1,3 @@
1
1
  module Zendesk2
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zendesk2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: