chartmogul-ruby 4.12.0 → 4.15.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 +4 -4
- data/.claude/hooks/post-edit-lint.sh +14 -0
- data/.claude/hooks/post-stop-validate.sh +44 -0
- data/.claude/hooks/session-start-setup.sh +42 -0
- data/.claude/settings.json +74 -0
- data/.gitignore +19 -0
- data/README.md +17 -1
- data/changelog.md +2 -150
- data/chartmogul-ruby.gemspec +5 -7
- data/lib/chartmogul/account.rb +15 -2
- data/lib/chartmogul/api/actions/update.rb +4 -2
- data/lib/chartmogul/api_resource.rb +35 -0
- data/lib/chartmogul/concerns/external_id_operations.rb +68 -0
- data/lib/chartmogul/concerns/toggle_disabled.rb +24 -0
- data/lib/chartmogul/contact.rb +55 -0
- data/lib/chartmogul/customer.rb +111 -13
- data/lib/chartmogul/entity_note.rb +41 -0
- data/lib/chartmogul/invoice.rb +10 -0
- data/lib/chartmogul/json_import.rb +45 -0
- data/lib/chartmogul/line_item.rb +60 -0
- data/lib/chartmogul/note.rb +51 -0
- data/lib/chartmogul/subscription.rb +2 -0
- data/lib/chartmogul/subscription_event.rb +62 -0
- data/lib/chartmogul/task.rb +3 -0
- data/lib/chartmogul/transaction.rb +33 -0
- data/lib/chartmogul/version.rb +1 -1
- data/lib/chartmogul.rb +6 -0
- data/zizmor.yml +7 -0
- metadata +13 -9
- data/.github/workflows/test.yml +0 -23
data/lib/chartmogul.rb
CHANGED
|
@@ -52,12 +52,15 @@ require 'chartmogul/concerns/pageable_with_anchor'
|
|
|
52
52
|
require 'chartmogul/concerns/pageable_with_cursor'
|
|
53
53
|
require 'chartmogul/concerns/auto_churn_subscription_setting'
|
|
54
54
|
require 'chartmogul/concerns/processing_status'
|
|
55
|
+
require 'chartmogul/concerns/toggle_disabled'
|
|
56
|
+
require 'chartmogul/concerns/external_id_operations'
|
|
55
57
|
|
|
56
58
|
require 'chartmogul/subscription'
|
|
57
59
|
require 'chartmogul/invoice'
|
|
58
60
|
require 'chartmogul/customer_invoices'
|
|
59
61
|
require 'chartmogul/customer'
|
|
60
62
|
require 'chartmogul/note'
|
|
63
|
+
require 'chartmogul/entity_note'
|
|
61
64
|
require 'chartmogul/contact'
|
|
62
65
|
require 'chartmogul/data_source'
|
|
63
66
|
require 'chartmogul/data_source_settings/auto_churn_subscription_setting'
|
|
@@ -70,6 +73,9 @@ require 'chartmogul/account'
|
|
|
70
73
|
require 'chartmogul/subscription_event'
|
|
71
74
|
require 'chartmogul/opportunity'
|
|
72
75
|
require 'chartmogul/task'
|
|
76
|
+
require 'chartmogul/transaction'
|
|
77
|
+
require 'chartmogul/line_item'
|
|
78
|
+
require 'chartmogul/json_import'
|
|
73
79
|
|
|
74
80
|
require 'chartmogul/metrics/arpa'
|
|
75
81
|
require 'chartmogul/metrics/arr'
|
data/zizmor.yml
ADDED
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.
|
|
4
|
+
version: 4.15.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Petr Kopac
|
|
@@ -184,7 +184,10 @@ executables: []
|
|
|
184
184
|
extensions: []
|
|
185
185
|
extra_rdoc_files: []
|
|
186
186
|
files:
|
|
187
|
-
- ".
|
|
187
|
+
- ".claude/hooks/post-edit-lint.sh"
|
|
188
|
+
- ".claude/hooks/post-stop-validate.sh"
|
|
189
|
+
- ".claude/hooks/session-start-setup.sh"
|
|
190
|
+
- ".claude/settings.json"
|
|
188
191
|
- ".gitignore"
|
|
189
192
|
- ".rspec"
|
|
190
193
|
- 2.0-Upgrade.md
|
|
@@ -209,6 +212,7 @@ files:
|
|
|
209
212
|
- lib/chartmogul/api_resource.rb
|
|
210
213
|
- lib/chartmogul/concerns/auto_churn_subscription_setting.rb
|
|
211
214
|
- lib/chartmogul/concerns/entries.rb
|
|
215
|
+
- lib/chartmogul/concerns/external_id_operations.rb
|
|
212
216
|
- lib/chartmogul/concerns/pageable.rb
|
|
213
217
|
- lib/chartmogul/concerns/pageable2.rb
|
|
214
218
|
- lib/chartmogul/concerns/pageable_with_anchor.rb
|
|
@@ -216,6 +220,7 @@ files:
|
|
|
216
220
|
- lib/chartmogul/concerns/processing_status.rb
|
|
217
221
|
- lib/chartmogul/concerns/summary.rb
|
|
218
222
|
- lib/chartmogul/concerns/summary_all.rb
|
|
223
|
+
- lib/chartmogul/concerns/toggle_disabled.rb
|
|
219
224
|
- lib/chartmogul/config_attributes.rb
|
|
220
225
|
- lib/chartmogul/configuration.rb
|
|
221
226
|
- lib/chartmogul/contact.rb
|
|
@@ -225,6 +230,7 @@ files:
|
|
|
225
230
|
- lib/chartmogul/data_source_settings/auto_churn_subscription_setting.rb
|
|
226
231
|
- lib/chartmogul/data_source_settings/processing_status.rb
|
|
227
232
|
- lib/chartmogul/enrichment/customer.rb
|
|
233
|
+
- lib/chartmogul/entity_note.rb
|
|
228
234
|
- lib/chartmogul/errors/chartmogul_error.rb
|
|
229
235
|
- lib/chartmogul/errors/configuration_error.rb
|
|
230
236
|
- lib/chartmogul/errors/deprecated_parameter_error.rb
|
|
@@ -235,6 +241,8 @@ files:
|
|
|
235
241
|
- lib/chartmogul/errors/server_error.rb
|
|
236
242
|
- lib/chartmogul/errors/unauthorized_error.rb
|
|
237
243
|
- lib/chartmogul/invoice.rb
|
|
244
|
+
- lib/chartmogul/json_import.rb
|
|
245
|
+
- lib/chartmogul/line_item.rb
|
|
238
246
|
- lib/chartmogul/line_items/one_time.rb
|
|
239
247
|
- lib/chartmogul/line_items/subscription.rb
|
|
240
248
|
- lib/chartmogul/metrics/activities_export.rb
|
|
@@ -264,22 +272,18 @@ files:
|
|
|
264
272
|
- lib/chartmogul/summary.rb
|
|
265
273
|
- lib/chartmogul/summary_all.rb
|
|
266
274
|
- lib/chartmogul/task.rb
|
|
275
|
+
- lib/chartmogul/transaction.rb
|
|
267
276
|
- lib/chartmogul/transactions/payment.rb
|
|
268
277
|
- lib/chartmogul/transactions/refund.rb
|
|
269
278
|
- lib/chartmogul/utils/hash_snake_caser.rb
|
|
270
279
|
- lib/chartmogul/utils/json_parser.rb
|
|
271
280
|
- lib/chartmogul/version.rb
|
|
272
281
|
- pre-commit.example
|
|
282
|
+
- zizmor.yml
|
|
273
283
|
homepage: https://github.com/chartmogul/chartmogul-ruby
|
|
274
284
|
licenses:
|
|
275
285
|
- MIT
|
|
276
286
|
metadata: {}
|
|
277
|
-
post_install_message: "\n Starting October 29 2021, we are updating our developer
|
|
278
|
-
libraries to support the enhanced API Access Management. Please use the same API
|
|
279
|
-
Key for both API Token and Secret Key.\n [Deprecation] - account_token/secret_key
|
|
280
|
-
combo is deprecated. Please use API key for both fields.\n Version 3.x will introduce
|
|
281
|
-
a breaking change in authentication configuration. For more details, please visit:
|
|
282
|
-
https://dev.chartmogul.com/docs/authentication\n "
|
|
283
287
|
rdoc_options: []
|
|
284
288
|
require_paths:
|
|
285
289
|
- lib
|
|
@@ -294,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
294
298
|
- !ruby/object:Gem::Version
|
|
295
299
|
version: '0'
|
|
296
300
|
requirements: []
|
|
297
|
-
rubygems_version:
|
|
301
|
+
rubygems_version: 3.6.9
|
|
298
302
|
specification_version: 4
|
|
299
303
|
summary: Chartmogul API Ruby Client
|
|
300
304
|
test_files: []
|
data/.github/workflows/test.yml
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
name: Run specs
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches: [ main ]
|
|
5
|
-
pull_request:
|
|
6
|
-
branches: [ main ]
|
|
7
|
-
jobs:
|
|
8
|
-
test:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
strategy:
|
|
11
|
-
matrix:
|
|
12
|
-
ruby-version: [3.2, 3.3, 3.4, head]
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@v2
|
|
15
|
-
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
16
|
-
uses: ruby/setup-ruby@v1
|
|
17
|
-
with:
|
|
18
|
-
ruby-version: ${{ matrix.ruby-version }}
|
|
19
|
-
bundler-cache: true
|
|
20
|
-
- name: Install dependencies
|
|
21
|
-
run: bundle install
|
|
22
|
-
- name: Run tests
|
|
23
|
-
run: bundle exec rake
|