chartmogul-ruby 2.1.0 → 3.0.2
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/.github/workflows/test.yml +1 -1
- data/.rspec +0 -0
- data/README.md +4 -6
- data/changelog.md +13 -0
- data/chartmogul-ruby.gemspec +6 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARPA/behaves_like_Metrics_API_resource/should_have_entries.yml +1 -1
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARR/behaves_like_Metrics_API_resource/should_have_entries.yml +1 -1
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ASP/behaves_like_Metrics_API_resource/should_have_entries.yml +1 -1
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_AllKeyMetric/should_have_entries.yml +1 -1
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_AllKeyMetric/should_have_summary.yml +42 -0
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml +1 -1
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerCount/behaves_like_Metrics_API_resource/should_have_entries.yml +1 -1
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_LTV/behaves_like_Metrics_API_resource/should_have_entries.yml +1 -1
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRR/should_have_entries.yml +1 -1
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRRChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml +1 -1
- data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/creates_a_new_subscription_event.yml +320 -0
- data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/deletes_the_subscription_event.yml +377 -0
- data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/lists_all_subscription_events.yml +320 -0
- data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/updates_the_subscription_event.yml +377 -0
- data/lib/chartmogul/api/actions/destroy_with_params.rb +29 -0
- data/lib/chartmogul/api_resource.rb +2 -2
- data/lib/chartmogul/concerns/summary_all.rb +21 -0
- data/lib/chartmogul/configuration.rb +1 -2
- data/lib/chartmogul/line_items/one_time.rb +4 -1
- data/lib/chartmogul/line_items/subscription.rb +3 -0
- data/lib/chartmogul/metrics/all_key_metrics.rb +9 -0
- data/lib/chartmogul/metrics/arpa.rb +1 -0
- data/lib/chartmogul/metrics/arr.rb +1 -0
- data/lib/chartmogul/metrics/asp.rb +1 -0
- data/lib/chartmogul/metrics/customer_churn_rate.rb +1 -0
- data/lib/chartmogul/metrics/customer_count.rb +1 -0
- data/lib/chartmogul/metrics/ltv.rb +1 -0
- data/lib/chartmogul/metrics/mrr.rb +1 -0
- data/lib/chartmogul/metrics/mrr_churn_rate.rb +1 -0
- data/lib/chartmogul/subscription_event.rb +62 -0
- data/lib/chartmogul/summary_all.rb +30 -0
- data/lib/chartmogul/version.rb +1 -1
- data/lib/chartmogul.rb +5 -2
- data/pre-commit.example +0 -0
- metadata +19 -5
data/lib/chartmogul.rb
CHANGED
|
@@ -25,11 +25,13 @@ require 'chartmogul/object'
|
|
|
25
25
|
require 'chartmogul/resource_path'
|
|
26
26
|
require 'chartmogul/api_resource'
|
|
27
27
|
require 'chartmogul/summary'
|
|
28
|
+
require 'chartmogul/summary_all'
|
|
28
29
|
|
|
29
30
|
require 'chartmogul/api/actions/all'
|
|
30
31
|
require 'chartmogul/api/actions/create'
|
|
31
32
|
require 'chartmogul/api/actions/custom'
|
|
32
33
|
require 'chartmogul/api/actions/destroy'
|
|
34
|
+
require 'chartmogul/api/actions/destroy_with_params'
|
|
33
35
|
require 'chartmogul/api/actions/retrieve'
|
|
34
36
|
require 'chartmogul/api/actions/update'
|
|
35
37
|
|
|
@@ -41,6 +43,7 @@ require 'chartmogul/transactions/refund'
|
|
|
41
43
|
|
|
42
44
|
require 'chartmogul/concerns/entries'
|
|
43
45
|
require 'chartmogul/concerns/summary'
|
|
46
|
+
require 'chartmogul/concerns/summary_all'
|
|
44
47
|
require 'chartmogul/concerns/pageable'
|
|
45
48
|
require 'chartmogul/concerns/pageable2'
|
|
46
49
|
require 'chartmogul/concerns/pageable_with_anchor'
|
|
@@ -55,6 +58,7 @@ require 'chartmogul/plan'
|
|
|
55
58
|
require 'chartmogul/plan_group'
|
|
56
59
|
require 'chartmogul/plan_groups/plans'
|
|
57
60
|
require 'chartmogul/account'
|
|
61
|
+
require 'chartmogul/subscription_event'
|
|
58
62
|
|
|
59
63
|
require 'chartmogul/metrics/arpa'
|
|
60
64
|
require 'chartmogul/metrics/arr'
|
|
@@ -92,8 +96,7 @@ module ChartMogul
|
|
|
92
96
|
Thread.current[CONFIG_THREAD_KEY] ||= ChartMogul::Configuration.new
|
|
93
97
|
end
|
|
94
98
|
|
|
95
|
-
config_accessor :
|
|
96
|
-
config_accessor :secret_key
|
|
99
|
+
config_accessor :api_key
|
|
97
100
|
config_accessor :max_retries, MAX_RETRIES
|
|
98
101
|
config_accessor :api_base, API_BASE
|
|
99
102
|
end
|
data/pre-commit.example
CHANGED
|
File without changes
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chartmogul-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Petr Kopac
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-07-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -228,6 +228,7 @@ files:
|
|
|
228
228
|
- fixtures/vcr_cassettes/ChartMogul_Metrics_Activity/behaves_like_PageableWithAnchor/should_be_pageable.yml
|
|
229
229
|
- fixtures/vcr_cassettes/ChartMogul_Metrics_Activity/should_have_Activity_entries.yml
|
|
230
230
|
- fixtures/vcr_cassettes/ChartMogul_Metrics_AllKeyMetric/should_have_entries.yml
|
|
231
|
+
- fixtures/vcr_cassettes/ChartMogul_Metrics_AllKeyMetric/should_have_summary.yml
|
|
231
232
|
- fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerChurnRate/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml
|
|
232
233
|
- fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml
|
|
233
234
|
- fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerCount/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml
|
|
@@ -267,6 +268,10 @@ files:
|
|
|
267
268
|
- fixtures/vcr_cassettes/ChartMogul_Subscription/_update_cancellation_dates/when_array_includes_invalid_entries/raises_an_exception.yml
|
|
268
269
|
- fixtures/vcr_cassettes/ChartMogul_Subscription/_update_cancellation_dates/when_array_includes_valid_entries/is_setting_the_cancellation_dates_of_the_subscription.yml
|
|
269
270
|
- fixtures/vcr_cassettes/ChartMogul_Subscription/_update_cancellation_dates/when_array_is_empty/makes_an_API_call_and_removes_the_cancellation_dates.yml
|
|
271
|
+
- fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/creates_a_new_subscription_event.yml
|
|
272
|
+
- fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/deletes_the_subscription_event.yml
|
|
273
|
+
- fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/lists_all_subscription_events.yml
|
|
274
|
+
- fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/updates_the_subscription_event.yml
|
|
270
275
|
- fixtures/vcr_cassettes/ChartMogul_Transactions_Payment/API_Interactions/correctly_interracts_with_the_API.yml
|
|
271
276
|
- lib/chartmogul.rb
|
|
272
277
|
- lib/chartmogul/account.rb
|
|
@@ -274,6 +279,7 @@ files:
|
|
|
274
279
|
- lib/chartmogul/api/actions/create.rb
|
|
275
280
|
- lib/chartmogul/api/actions/custom.rb
|
|
276
281
|
- lib/chartmogul/api/actions/destroy.rb
|
|
282
|
+
- lib/chartmogul/api/actions/destroy_with_params.rb
|
|
277
283
|
- lib/chartmogul/api/actions/retrieve.rb
|
|
278
284
|
- lib/chartmogul/api/actions/update.rb
|
|
279
285
|
- lib/chartmogul/api_resource.rb
|
|
@@ -282,6 +288,7 @@ files:
|
|
|
282
288
|
- lib/chartmogul/concerns/pageable2.rb
|
|
283
289
|
- lib/chartmogul/concerns/pageable_with_anchor.rb
|
|
284
290
|
- lib/chartmogul/concerns/summary.rb
|
|
291
|
+
- lib/chartmogul/concerns/summary_all.rb
|
|
285
292
|
- lib/chartmogul/config_attributes.rb
|
|
286
293
|
- lib/chartmogul/configuration.rb
|
|
287
294
|
- lib/chartmogul/customer.rb
|
|
@@ -320,7 +327,9 @@ files:
|
|
|
320
327
|
- lib/chartmogul/plan_groups/plans.rb
|
|
321
328
|
- lib/chartmogul/resource_path.rb
|
|
322
329
|
- lib/chartmogul/subscription.rb
|
|
330
|
+
- lib/chartmogul/subscription_event.rb
|
|
323
331
|
- lib/chartmogul/summary.rb
|
|
332
|
+
- lib/chartmogul/summary_all.rb
|
|
324
333
|
- lib/chartmogul/transactions/payment.rb
|
|
325
334
|
- lib/chartmogul/transactions/refund.rb
|
|
326
335
|
- lib/chartmogul/utils/hash_snake_caser.rb
|
|
@@ -331,7 +340,12 @@ homepage: https://github.com/chartmogul/chartmogul-ruby
|
|
|
331
340
|
licenses:
|
|
332
341
|
- MIT
|
|
333
342
|
metadata: {}
|
|
334
|
-
post_install_message:
|
|
343
|
+
post_install_message: "\n Starting October 29 2021, we are updating our developer
|
|
344
|
+
libraries to support the enhanced API Access Management. Please use the same API
|
|
345
|
+
Key for both API Token and Secret Key.\n [Deprecation] - account_token/secret_key
|
|
346
|
+
combo is deprecated. Please use API key for both fields.\n Version 3.x will introduce
|
|
347
|
+
a breaking change in authentication configuration. For more details, please visit:
|
|
348
|
+
https://dev.chartmogul.com/docs/authentication\n "
|
|
335
349
|
rdoc_options: []
|
|
336
350
|
require_paths:
|
|
337
351
|
- lib
|
|
@@ -347,7 +361,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
347
361
|
version: '0'
|
|
348
362
|
requirements: []
|
|
349
363
|
rubygems_version: 3.1.4
|
|
350
|
-
signing_key:
|
|
364
|
+
signing_key:
|
|
351
365
|
specification_version: 4
|
|
352
366
|
summary: Chartmogul API Ruby Client
|
|
353
367
|
test_files: []
|