chartmogul-ruby 3.0.0 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +1 -1
  3. data/changelog.md +7 -0
  4. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARPA/behaves_like_Metrics_API_resource/should_have_entries.yml +1 -1
  5. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARR/behaves_like_Metrics_API_resource/should_have_entries.yml +1 -1
  6. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ASP/behaves_like_Metrics_API_resource/should_have_entries.yml +1 -1
  7. data/fixtures/vcr_cassettes/ChartMogul_Metrics_AllKeyMetric/should_have_entries.yml +1 -1
  8. data/fixtures/vcr_cassettes/ChartMogul_Metrics_AllKeyMetric/should_have_summary.yml +42 -0
  9. data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml +1 -1
  10. data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerCount/behaves_like_Metrics_API_resource/should_have_entries.yml +1 -1
  11. data/fixtures/vcr_cassettes/ChartMogul_Metrics_LTV/behaves_like_Metrics_API_resource/should_have_entries.yml +1 -1
  12. data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRR/should_have_entries.yml +1 -1
  13. data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRRChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml +1 -1
  14. data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/creates_a_new_subscription_event.yml +320 -0
  15. data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/deletes_the_subscription_event.yml +377 -0
  16. data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/lists_all_subscription_events.yml +320 -0
  17. data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/updates_the_subscription_event.yml +377 -0
  18. data/lib/chartmogul/api/actions/destroy_with_params.rb +29 -0
  19. data/lib/chartmogul/api_resource.rb +1 -1
  20. data/lib/chartmogul/concerns/summary_all.rb +21 -0
  21. data/lib/chartmogul/metrics/all_key_metrics.rb +9 -0
  22. data/lib/chartmogul/metrics/arpa.rb +1 -0
  23. data/lib/chartmogul/metrics/arr.rb +1 -0
  24. data/lib/chartmogul/metrics/asp.rb +1 -0
  25. data/lib/chartmogul/metrics/customer_churn_rate.rb +1 -0
  26. data/lib/chartmogul/metrics/customer_count.rb +1 -0
  27. data/lib/chartmogul/metrics/ltv.rb +1 -0
  28. data/lib/chartmogul/metrics/mrr.rb +1 -0
  29. data/lib/chartmogul/metrics/mrr_churn_rate.rb +1 -0
  30. data/lib/chartmogul/subscription_event.rb +62 -0
  31. data/lib/chartmogul/summary_all.rb +30 -0
  32. data/lib/chartmogul/version.rb +1 -1
  33. data/lib/chartmogul.rb +4 -0
  34. metadata +12 -3
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: 3.0.0
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petr Kopac
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-20 00:00:00.000000000 Z
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
@@ -351,7 +360,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
351
360
  - !ruby/object:Gem::Version
352
361
  version: '0'
353
362
  requirements: []
354
- rubygems_version: 3.1.6
363
+ rubygems_version: 3.1.4
355
364
  signing_key:
356
365
  specification_version: 4
357
366
  summary: Chartmogul API Ruby Client