chartmogul-ruby 4.14.0 → 4.16.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61fce0fe848312e4a28d7cc9cf5baf8bf62bf7a92da434789bfbffa3099c78ef
4
- data.tar.gz: 26ab5587c9a0d6c4dc543aca4ff558d4bbe9a89d3e309642c0b933cae2f81433
3
+ metadata.gz: 3b48a5b6b3b2809df09366a69371c17feeaa6e5d2cb24007293a2f4808ec67b2
4
+ data.tar.gz: fd6bc4894e3652d6cbb5bcbfd5dcfddff6700f8f37604382c49de973fdeef564
5
5
  SHA512:
6
- metadata.gz: b28f66fa79c6ac41497911e0a2811ce4e419c7ec9a143d0acc8adbe85c5ef21ec71c87533855cf5cf119f0a3fdef519ca1717e0f4cc712c258ac35b363f7dd19
7
- data.tar.gz: b6ce9397538e1d1cad6c799e697c4ee4d0a33b2de8d31d628bc6cfe9d34e1902f2f5257ecf343ca4e316cb828e8c4615e1208dc3bb25ce5265716c7c50131f08
6
+ metadata.gz: 22d02d4b4e1d0b11d0a1d2cb04268a954c261504dc4357ef55b380e484ca140e89f9bcabafc6ec7f28379b1a90091b6317c2365f7976752692dd5545f2ba4a8e
7
+ data.tar.gz: f8b288fbce0af561e5b75f4501bc56467cd290a3104f369fd3f1f1a5cd8c73185c9d28becf91005aab75c8a45190a237b5967afa0181242f0753757a0f2ef8cf
@@ -16,7 +16,8 @@ module ChartMogul
16
16
  end
17
17
  end
18
18
 
19
- json = ChartMogul::Utils::JSONParser.parse(resp.body, immutable_keys: self.class.immutable_keys)
19
+ parsed_body = resp.body.empty? ? '{}' : resp.body
20
+ json = ChartMogul::Utils::JSONParser.parse(parsed_body, immutable_keys: self.class.immutable_keys)
20
21
 
21
22
  assign_all_attributes(json)
22
23
  end
@@ -31,7 +32,8 @@ module ChartMogul
31
32
  req.body = JSON.dump(resource.serialize_for_write)
32
33
  end
33
34
  end
34
- json = ChartMogul::Utils::JSONParser.parse(resp.body, immutable_keys: immutable_keys)
35
+ parsed_body = resp.body.empty? ? '{}' : resp.body
36
+ json = ChartMogul::Utils::JSONParser.parse(parsed_body, immutable_keys: immutable_keys)
35
37
 
36
38
  new_from_json(json)
37
39
  end
@@ -7,6 +7,7 @@ module ChartMogul
7
7
  set_immutable_keys([:custom])
8
8
 
9
9
  readonly_attr :uuid
10
+ readonly_attr :historical_values
10
11
 
11
12
  writeable_attr :customer_uuid
12
13
  writeable_attr :data_source_uuid
@@ -20,8 +21,10 @@ module ChartMogul
20
21
  writeable_attr :linked_in
21
22
  writeable_attr :twitter
22
23
  writeable_attr :notes
24
+ writeable_attr :last_seen
23
25
  writeable_attr :external_id
24
26
  writeable_attr :custom
27
+ writeable_attr :overrides
25
28
 
26
29
  include API::Actions::Create
27
30
  include API::Actions::Custom
@@ -38,6 +41,22 @@ module ChartMogul
38
41
  true
39
42
  end
40
43
 
44
+ def tasks(options = {})
45
+ Tasks.all(options.merge(contact_uuid: uuid))
46
+ end
47
+
48
+ def create_task(options = {})
49
+ Task.create!(with_associated_object_identifier(options))
50
+ end
51
+
52
+ def entity_notes(options = {})
53
+ EntityNotes.all(options.merge(contact_uuid: uuid))
54
+ end
55
+
56
+ def create_entity_note(options = {})
57
+ EntityNote.create!(with_associated_object_identifier(options))
58
+ end
59
+
41
60
  def serialize_for_write
42
61
  super.tap do |attributes|
43
62
  attributes.clone.each do |attribute_name, attribute_value|
@@ -55,6 +74,42 @@ module ChartMogul
55
74
  attributes[:external_id] = nil if instance_variable_defined?(:@external_id) && external_id.nil?
56
75
  end
57
76
  end
77
+
78
+ # Responses echo the current override state, so only overrides assigned by
79
+ # the caller are serialized: replaying an echoed `true` flag on a later
80
+ # update! would re-protect stale in-memory values on the server. The echoed
81
+ # hash is deep-frozen and `dup` copies only the top level — request changes
82
+ # by assigning a freshly built hash, not by editing or duplicating the
83
+ # reader's result. Assigned intent is cleared by the response
84
+ # of the successful write (every write endpoint echoes `overrides`); an
85
+ # endpoint that stopped echoing would leave it set and resend it on the
86
+ # next update!.
87
+ def overrides=(value)
88
+ @overrides_requested = true
89
+ @overrides = value
90
+ end
91
+
92
+ def serialize_overrides
93
+ overrides if @overrides_requested
94
+ end
95
+
96
+ private
97
+
98
+ def set_overrides(value)
99
+ @overrides_requested = false
100
+ @overrides = freeze_nested(value)
101
+ end
102
+
103
+ def freeze_nested(value)
104
+ value.each_value { |nested| freeze_nested(nested) } if value.is_a?(Hash)
105
+ value.freeze
106
+ end
107
+
108
+ def with_associated_object_identifier(options)
109
+ return options if options[:customer_uuid] || options[:associated_object_identifier]
110
+
111
+ options.merge(associated_object_identifier: { associated_object: 'contact', method: 'uuid', value: uuid })
112
+ end
58
113
  end
59
114
 
60
115
  class Contacts < APIResource
@@ -5,7 +5,7 @@ module ChartMogul
5
5
  class Customer < APIResource
6
6
  set_resource_name 'Customer'
7
7
  set_resource_path '/v1/customers'
8
- set_immutable_keys(%i[attributes custom])
8
+ set_immutable_keys(%i[attributes custom overrides historical_values])
9
9
 
10
10
  readonly_attr :uuid
11
11
  readonly_attr :id
@@ -22,6 +22,7 @@ module ChartMogul
22
22
  readonly_attr :currency_sign
23
23
  readonly_attr :data_source_uuids
24
24
  readonly_attr :external_ids
25
+ readonly_attr :historical_values
25
26
 
26
27
  writeable_attr :attributes
27
28
  writeable_attr :external_id
@@ -38,6 +39,7 @@ module ChartMogul
38
39
  writeable_attr :owner
39
40
  writeable_attr :primary_contact
40
41
  writeable_attr :website_url
42
+ writeable_attr :overrides
41
43
 
42
44
  include API::Actions::Create
43
45
  include API::Actions::Custom
@@ -53,20 +55,34 @@ module ChartMogul
53
55
  Customers.search(email, options)
54
56
  end
55
57
 
58
+ # exclude: true also adds the customer to the account's exclude list so it
59
+ # is not re-imported; see ChartMogul::ExcludedCustomer.
60
+ def self.destroy!(options = {})
61
+ params = options[:exclude] ? { exclude: true } : nil
62
+ handling_errors do
63
+ connection.delete("#{resource_path.apply(options)}/#{options[:uuid]}", params)
64
+ end
65
+ true
66
+ end
67
+
56
68
  def self.find_by_external_id(external_id)
57
69
  all(external_id: external_id).first
58
70
  end
59
71
 
60
- def self.retrieve_attributes(customer_uuid)
61
- custom_without_assign!(:get, "/v1/customers/#{customer_uuid}/attributes")
72
+ def self.retrieve_attributes(customer_uuid, options = {})
73
+ path = ChartMogul::ResourcePath.new("/v1/customers/#{customer_uuid}/attributes")
74
+ custom_without_assign!(:get, path.apply_with_get_params(options))
62
75
  end
63
76
 
64
77
  def self.add_tags_by_email!(email, *tags)
65
78
  custom_without_assign!(:post, '/v1/customers/attributes/tags', email: email, tags: tags)
66
79
  end
67
80
 
68
- def self.add_custom_attributes_by_email!(email, *custom_attrs)
69
- custom_without_assign!(:post, '/v1/customers/attributes/custom', email: email, custom: custom_attrs)
81
+ def self.add_custom_attributes_by_email!(email, *custom_attrs, overrides: nil, **brace_less_attr)
82
+ custom_attrs << brace_less_attr unless brace_less_attr.empty?
83
+ body = { email: email, custom: custom_attrs }
84
+ body[:overrides] = overrides if overrides
85
+ custom_without_assign!(:post, '/v1/customers/attributes/custom', body)
70
86
  end
71
87
 
72
88
  def self.merge!(into_uuid:, from_uuid:)
@@ -89,6 +105,10 @@ module ChartMogul
89
105
  true
90
106
  end
91
107
 
108
+ def destroy!(exclude: false)
109
+ self.class.destroy!(uuid: uuid, exclude: exclude)
110
+ end
111
+
92
112
  def subscriptions(options = {})
93
113
  @subscriptions ||= ChartMogul::Subscription.all(uuid, options)
94
114
  end
@@ -109,14 +129,26 @@ module ChartMogul
109
129
  Contact.create!(options.merge(customer_uuid: uuid))
110
130
  end
111
131
 
132
+ # @deprecated Use {#entity_notes} instead.
112
133
  def notes(options = {})
134
+ warn 'DEPRECATION WARNING: the method ChartMogul::Customer#notes is deprecated. Use ChartMogul::Customer#entity_notes instead.'
113
135
  Notes.all(options.merge(customer_uuid: uuid))
114
136
  end
115
137
 
138
+ # @deprecated Use {#create_entity_note} instead.
116
139
  def create_note(options = {})
140
+ warn 'DEPRECATION WARNING: the method ChartMogul::Customer#create_note is deprecated. Use ChartMogul::Customer#create_entity_note instead.'
117
141
  Note.create!(options.merge(customer_uuid: uuid))
118
142
  end
119
143
 
144
+ def entity_notes(options = {})
145
+ EntityNotes.all(options.merge(customer_uuid: uuid))
146
+ end
147
+
148
+ def create_entity_note(options = {})
149
+ EntityNote.create!(options.merge(customer_uuid: uuid))
150
+ end
151
+
120
152
  def opportunities(options = {})
121
153
  Opportnities.all(options.merge(customer_uuid: uuid))
122
154
  end
@@ -154,26 +186,49 @@ module ChartMogul
154
186
  tags: tags)[:tags]
155
187
  end
156
188
 
157
- def add_custom_attributes!(*custom_attrs)
158
- self.custom_attributes = custom_without_assign!(:post,
159
- "/v1/customers/#{uuid}/attributes/custom",
160
- custom: custom_attrs)[:custom]
161
- end
162
-
163
- def update_custom_attributes!(custom_attrs = {})
164
- self.custom_attributes = custom_without_assign!(:put,
165
- "/v1/customers/#{uuid}/attributes/custom",
166
- custom: custom_attrs)[:custom]
167
- end
168
-
169
- def remove_custom_attributes!(*custom_attrs)
170
- self.custom_attributes = custom_without_assign!(:delete,
171
- "/v1/customers/#{uuid}/attributes/custom",
172
- custom: custom_attrs)
173
- end
174
-
175
- def retrieve_attributes
176
- custom_without_assign!(:get, "/v1/customers/#{uuid}/attributes")
189
+ # The custom attribute helpers (including .add_custom_attributes_by_email!)
190
+ # take override flags via the overrides: keyword, shaped
191
+ # { custom: { Name: true } } — unlike create!/update!, where the same flags
192
+ # nest under { attributes: { custom: { Name: true } } }. In
193
+ # update_custom_attributes!, an attribute literally named `overrides` must
194
+ # be passed in a braced hash, since the bare keyword is taken:
195
+ # update_custom_attributes!({ overrides: 'value' }) updates the attribute
196
+ # update_custom_attributes!(overrides: { ... }) sends override flags
197
+ def add_custom_attributes!(*custom_attrs, overrides: nil, **brace_less_attr)
198
+ custom_attrs << brace_less_attr unless brace_less_attr.empty?
199
+ body = { custom: custom_attrs }
200
+ body[:overrides] = overrides if overrides
201
+ response = custom_without_assign!(:post,
202
+ "/v1/customers/#{uuid}/attributes/custom",
203
+ body)
204
+ sync_custom_attribute_overrides(response)
205
+ self.custom_attributes = response[:custom]
206
+ end
207
+
208
+ def update_custom_attributes!(custom_attrs = {}, overrides: nil, **brace_less_attrs)
209
+ body = { custom: custom_attrs.merge(brace_less_attrs) }
210
+ body[:overrides] = overrides if overrides
211
+ response = custom_without_assign!(:put,
212
+ "/v1/customers/#{uuid}/attributes/custom",
213
+ body)
214
+ sync_custom_attribute_overrides(response)
215
+ self.custom_attributes = response[:custom]
216
+ end
217
+
218
+ def remove_custom_attributes!(*custom_attrs, overrides: nil, **brace_less_attr)
219
+ custom_attrs << brace_less_attr unless brace_less_attr.empty?
220
+ body = { custom: custom_attrs }
221
+ body[:overrides] = overrides if overrides
222
+ response = custom_without_assign!(:delete,
223
+ "/v1/customers/#{uuid}/attributes/custom",
224
+ body)
225
+ sync_custom_attribute_overrides(response)
226
+ self.custom_attributes = response[:custom]
227
+ response
228
+ end
229
+
230
+ def retrieve_attributes(options = {})
231
+ self.class.retrieve_attributes(uuid, options)
177
232
  end
178
233
 
179
234
  def merge_into!(other_customer)
@@ -194,8 +249,49 @@ module ChartMogul
194
249
  )
195
250
  end
196
251
 
252
+ # Responses echo the current override state, so only overrides assigned by
253
+ # the caller are serialized: replaying an echoed `true` flag on a later
254
+ # update! would re-protect stale in-memory values on the server. The echoed
255
+ # hash is deep-frozen and `dup` copies only the top level — request changes
256
+ # by assigning a freshly built hash, not by editing or duplicating the
257
+ # reader's result. Assigned intent is cleared by the response
258
+ # of the successful write (every write endpoint echoes `overrides`); an
259
+ # endpoint that stopped echoing would leave it set and resend it on the
260
+ # next update!.
261
+ def overrides=(value)
262
+ @overrides_requested = true
263
+ @overrides = value
264
+ end
265
+
266
+ def serialize_overrides
267
+ overrides if @overrides_requested
268
+ end
269
+
197
270
  private
198
271
 
272
+ def set_overrides(value)
273
+ @overrides_requested = false
274
+ @overrides = freeze_nested(value)
275
+ end
276
+
277
+ def freeze_nested(value)
278
+ value.each_value { |nested| freeze_nested(nested) } if value.is_a?(Hash)
279
+ value.freeze
280
+ end
281
+
282
+ # The custom attribute endpoints echo the customer's current custom
283
+ # attribute overrides, in the shape overrides[:attributes] uses. Synced
284
+ # through the read-only path so the flags are never marked for
285
+ # serialization; a pending explicitly assigned hash is not clobbered,
286
+ # keeping the serialize-exactly-once contract.
287
+ def sync_custom_attribute_overrides(response)
288
+ return if @overrides_requested || !response.key?(:overrides)
289
+
290
+ updated = (overrides || {}).reject { |key, _| key == :attributes }
291
+ updated[:attributes] = response[:overrides] unless response[:overrides].empty?
292
+ set_overrides(updated)
293
+ end
294
+
199
295
  def tags=(tags)
200
296
  @attributes[:tags] = tags
201
297
  end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ChartMogul
4
+ class EntityNote < APIResource
5
+ set_resource_name 'EntityNote'
6
+ set_resource_path '/v1/notes'
7
+
8
+ readonly_attr :uuid
9
+ readonly_attr :associated_object
10
+ readonly_attr :associated_object_uuid
11
+ readonly_attr :author
12
+
13
+ writeable_attr :customer_uuid
14
+ writeable_attr :associated_object_identifier
15
+ writeable_attr :type
16
+ writeable_attr :text
17
+ writeable_attr :author_email
18
+ writeable_attr :call_duration
19
+ writeable_attr :created_at
20
+ writeable_attr :updated_at
21
+
22
+ include API::Actions::Create
23
+ include API::Actions::Destroy
24
+ include API::Actions::Retrieve
25
+ include API::Actions::Update
26
+
27
+ def self.all(options = {})
28
+ EntityNotes.all(options)
29
+ end
30
+ end
31
+
32
+ class EntityNotes < APIResource
33
+ set_resource_name 'EntityNotes'
34
+ set_resource_path '/v1/notes'
35
+
36
+ include Concerns::Entries
37
+ include Concerns::PageableWithCursor
38
+
39
+ set_entry_class EntityNote
40
+ end
41
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ChartMogul
4
+ class ExcludedCustomer < APIResource
5
+ set_resource_name 'ExcludedCustomer'
6
+ set_resource_path '/v1/excluded_customers'
7
+
8
+ readonly_attr :customer_uuid
9
+ readonly_attr :data_source_uuid
10
+ readonly_attr :external_id
11
+ readonly_attr :name
12
+ readonly_attr :email
13
+ readonly_attr :excluded_at, type: :time
14
+
15
+ include API::Actions::Custom
16
+
17
+ def self.all(options = {})
18
+ ExcludedCustomers.all(options)
19
+ end
20
+
21
+ # Removes the customer from the exclude list. The returned
22
+ # ReincludedCustomer's status is 'reimporting' or 'manual_reimport_required'.
23
+ def self.reinclude!(customer_uuid)
24
+ json = custom_without_assign!(:delete, "#{resource_path.path}/#{customer_uuid}")
25
+ ReincludedCustomer.new_from_json(json)
26
+ end
27
+
28
+ def reinclude!
29
+ self.class.reinclude!(customer_uuid)
30
+ end
31
+ end
32
+
33
+ class ExcludedCustomers < APIResource
34
+ set_resource_name 'ExcludedCustomers'
35
+ set_resource_path '/v1/excluded_customers'
36
+
37
+ include Concerns::Entries
38
+ include Concerns::PageableWithCursor
39
+
40
+ set_entry_class ExcludedCustomer
41
+ end
42
+ end
@@ -3,6 +3,7 @@
3
3
  require 'forwardable'
4
4
 
5
5
  module ChartMogul
6
+ # @deprecated Use {ChartMogul::EntityNote} instead. /v1/customer_notes is superseded by /v1/notes.
6
7
  class Note < APIResource
7
8
  set_resource_name 'CustomerNote'
8
9
  set_resource_path '/v1/customer_notes'
@@ -23,11 +24,55 @@ module ChartMogul
23
24
  include API::Actions::Retrieve
24
25
  include API::Actions::Update
25
26
 
27
+ # @deprecated Use {ChartMogul::EntityNote.all} instead.
26
28
  def self.all(options = {})
27
29
  Notes.all(options)
28
30
  end
31
+
32
+ # @deprecated Use {ChartMogul::EntityNote.create!} instead.
33
+ def self.create!(attributes = {})
34
+ warn 'DEPRECATION WARNING: the method ChartMogul::Note.create! is deprecated. Use ChartMogul::EntityNote.create! instead.'
35
+ super
36
+ end
37
+
38
+ # @deprecated Use {ChartMogul::EntityNote.retrieve} instead.
39
+ def self.retrieve(uuid, options = {})
40
+ warn 'DEPRECATION WARNING: the method ChartMogul::Note.retrieve is deprecated. Use ChartMogul::EntityNote.retrieve instead.'
41
+ super
42
+ end
43
+
44
+ # @deprecated Use {ChartMogul::EntityNote.update!} instead.
45
+ def self.update!(uuid, attributes = {})
46
+ warn 'DEPRECATION WARNING: the method ChartMogul::Note.update! is deprecated. Use ChartMogul::EntityNote.update! instead.'
47
+ super
48
+ end
49
+
50
+ # @deprecated Use {ChartMogul::EntityNote.destroy!} instead.
51
+ def self.destroy!(options = {})
52
+ warn 'DEPRECATION WARNING: the method ChartMogul::Note.destroy! is deprecated. Use ChartMogul::EntityNote.destroy! instead.'
53
+ super
54
+ end
55
+
56
+ # @deprecated Use {ChartMogul::EntityNote#create!} instead.
57
+ def create!
58
+ warn 'DEPRECATION WARNING: the method ChartMogul::Note#create! is deprecated. Use ChartMogul::EntityNote#create! instead.'
59
+ super
60
+ end
61
+
62
+ # @deprecated Use {ChartMogul::EntityNote#update!} instead.
63
+ def update!
64
+ warn 'DEPRECATION WARNING: the method ChartMogul::Note#update! is deprecated. Use ChartMogul::EntityNote#update! instead.'
65
+ super
66
+ end
67
+
68
+ # @deprecated Use {ChartMogul::EntityNote#destroy!} instead.
69
+ def destroy!
70
+ warn 'DEPRECATION WARNING: the method ChartMogul::Note#destroy! is deprecated. Use ChartMogul::EntityNote#destroy! instead.'
71
+ super
72
+ end
29
73
  end
30
74
 
75
+ # @deprecated Use {ChartMogul::EntityNotes} instead.
31
76
  class Notes < APIResource
32
77
  set_resource_name 'CustomerNotes'
33
78
  set_resource_path '/v1/customer_notes'
@@ -36,5 +81,11 @@ module ChartMogul
36
81
  include Concerns::PageableWithCursor
37
82
 
38
83
  set_entry_class Note
84
+
85
+ # @deprecated Use {ChartMogul::EntityNotes.all} instead.
86
+ def self.all(options = {})
87
+ warn 'DEPRECATION WARNING: the method ChartMogul::Notes.all is deprecated. Use ChartMogul::EntityNotes.all instead.'
88
+ super
89
+ end
39
90
  end
40
91
  end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ChartMogul
4
+ class ReincludedCustomer < ChartMogul::Object
5
+ readonly_attr :customer_uuid
6
+ readonly_attr :status
7
+ end
8
+ end
@@ -42,6 +42,7 @@ module ChartMogul
42
42
  end
43
43
 
44
44
  def self.all(customer_uuid, options = {})
45
+ warn 'DEPRECATION WARNING: the method ChartMogul::Subscription.all is deprecated. Use ChartMogul::Metrics::Customers::Subscriptions.all instead.'
45
46
  Subscriptions.all(customer_uuid, options)
46
47
  end
47
48
 
@@ -71,6 +72,7 @@ module ChartMogul
71
72
  set_entry_class Subscription
72
73
 
73
74
  def self.all(customer_uuid, options = {})
75
+ warn 'DEPRECATION WARNING: the method ChartMogul::Subscriptions.all is deprecated. Use ChartMogul::Metrics::Customers::Subscriptions.all instead.'
74
76
  super(options.merge(customer_uuid: customer_uuid))
75
77
  end
76
78
 
@@ -8,10 +8,13 @@ module ChartMogul
8
8
  set_resource_path '/v1/tasks'
9
9
 
10
10
  readonly_attr :task_uuid
11
+ readonly_attr :associated_object
12
+ readonly_attr :associated_object_uuid
11
13
  readonly_attr :created_at
12
14
  readonly_attr :updated_at
13
15
 
14
16
  writeable_attr :customer_uuid
17
+ writeable_attr :associated_object_identifier
15
18
  writeable_attr :task_details
16
19
  writeable_attr :assignee
17
20
  writeable_attr :due_date
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ChartMogul
4
- VERSION = '4.14.0'
4
+ VERSION = '4.16.0'
5
5
  end
data/lib/chartmogul.rb CHANGED
@@ -60,6 +60,9 @@ require 'chartmogul/invoice'
60
60
  require 'chartmogul/customer_invoices'
61
61
  require 'chartmogul/customer'
62
62
  require 'chartmogul/note'
63
+ require 'chartmogul/entity_note'
64
+ require 'chartmogul/excluded_customer'
65
+ require 'chartmogul/reincluded_customer'
63
66
  require 'chartmogul/contact'
64
67
  require 'chartmogul/data_source'
65
68
  require 'chartmogul/data_source_settings/auto_churn_subscription_setting'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chartmogul-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.14.0
4
+ version: 4.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petr Kopac
@@ -230,6 +230,7 @@ files:
230
230
  - lib/chartmogul/data_source_settings/auto_churn_subscription_setting.rb
231
231
  - lib/chartmogul/data_source_settings/processing_status.rb
232
232
  - lib/chartmogul/enrichment/customer.rb
233
+ - lib/chartmogul/entity_note.rb
233
234
  - lib/chartmogul/errors/chartmogul_error.rb
234
235
  - lib/chartmogul/errors/configuration_error.rb
235
236
  - lib/chartmogul/errors/deprecated_parameter_error.rb
@@ -239,6 +240,7 @@ files:
239
240
  - lib/chartmogul/errors/schema_invalid_error.rb
240
241
  - lib/chartmogul/errors/server_error.rb
241
242
  - lib/chartmogul/errors/unauthorized_error.rb
243
+ - lib/chartmogul/excluded_customer.rb
242
244
  - lib/chartmogul/invoice.rb
243
245
  - lib/chartmogul/json_import.rb
244
246
  - lib/chartmogul/line_item.rb
@@ -265,6 +267,7 @@ files:
265
267
  - lib/chartmogul/plan.rb
266
268
  - lib/chartmogul/plan_group.rb
267
269
  - lib/chartmogul/plan_groups/plans.rb
270
+ - lib/chartmogul/reincluded_customer.rb
268
271
  - lib/chartmogul/resource_path.rb
269
272
  - lib/chartmogul/subscription.rb
270
273
  - lib/chartmogul/subscription_event.rb