recurly 4.12.0 → 4.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/.bumpversion.cfg +1 -1
  3. data/CHANGELOG.md +34 -0
  4. data/GETTING_STARTED.md +9 -1
  5. data/lib/recurly/client/operations.rb +209 -136
  6. data/lib/recurly/client.rb +14 -2
  7. data/lib/recurly/errors/api_errors.rb +2 -0
  8. data/lib/recurly/requests/account_create.rb +1 -1
  9. data/lib/recurly/requests/account_purchase.rb +1 -1
  10. data/lib/recurly/requests/account_update.rb +1 -1
  11. data/lib/recurly/requests/add_on_create.rb +5 -1
  12. data/lib/recurly/requests/add_on_update.rb +5 -1
  13. data/lib/recurly/requests/billing_info_create.rb +8 -0
  14. data/lib/recurly/requests/percentage_tier.rb +18 -0
  15. data/lib/recurly/requests/percentage_tiers_by_currency.rb +18 -0
  16. data/lib/recurly/requests/plan_create.rb +1 -1
  17. data/lib/recurly/requests/plan_update.rb +1 -1
  18. data/lib/recurly/requests/subscription_add_on_create.rb +5 -1
  19. data/lib/recurly/requests/subscription_add_on_percentage_tier.rb +18 -0
  20. data/lib/recurly/requests/subscription_add_on_tier.rb +1 -1
  21. data/lib/recurly/requests/subscription_update.rb +1 -1
  22. data/lib/recurly/requests/tier.rb +2 -2
  23. data/lib/recurly/resources/account.rb +4 -4
  24. data/lib/recurly/resources/account_mini.rb +1 -1
  25. data/lib/recurly/resources/add_on.rb +4 -0
  26. data/lib/recurly/resources/invoice.rb +5 -1
  27. data/lib/recurly/resources/invoice_template.rb +34 -0
  28. data/lib/recurly/resources/percentage_tier.rb +18 -0
  29. data/lib/recurly/resources/{account_invoice_template.rb → percentage_tiers_by_currency.rb} +7 -7
  30. data/lib/recurly/resources/plan.rb +1 -1
  31. data/lib/recurly/resources/subscription_add_on.rb +5 -1
  32. data/lib/recurly/resources/subscription_add_on_percentage_tier.rb +18 -0
  33. data/lib/recurly/resources/subscription_add_on_tier.rb +1 -1
  34. data/lib/recurly/resources/tier.rb +2 -2
  35. data/lib/recurly/resources/usage.rb +5 -1
  36. data/lib/recurly/version.rb +1 -1
  37. data/openapi/api.yaml +552 -71
  38. metadata +10 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0876e485b804ec79b1a15203f09ffe4ee5d209775aa21b2c720d6fbf23b0aeb3'
4
- data.tar.gz: 7cc1dc915610febad9e7fffe2617efdaa6ab27ed01cbac429765d1bbcf32df7a
3
+ metadata.gz: 3e4b2e17dfb70a87cbb8e2578af8d64269d107a4759f1b44bfd1f248ea7d5903
4
+ data.tar.gz: c537f30a85ac92be2e5809dc1fc8eb4a8198324fa5b354ec8a7e1750b1f5cbfc
5
5
  SHA512:
6
- metadata.gz: 4b513a3e05b7b7d01588900fe8ffeef0c01d6b10e95fa8dd3c0738e9786705cdcbffe4c1e8604983de8b4fc5e17fd884e24e5b12dc2cdf407ceacd6119f165fa
7
- data.tar.gz: 5c0e860427fa02b6fbb4f31afe6d7ddee1bc842af631a380e85cde67a7d0dfa4ba3bc9a983b310d6060d32198f530d8a8bc706240ea33bda7ae11f9144bdcc44
6
+ metadata.gz: 5ef1c8fc07f6ab7338fe324ba22df7f909e4bdb9a96b3fa7035fc79a3bc0b80bb1b4cc609b201c6efcd486e6c074670029ba71c0d76bc431b8ca70af3f59c8b6
7
+ data.tar.gz: afdb01bf7ea1b5648f55396b5408f7b02ed139bd704a44fe55721bf240edae9631aaded8b803f0bcdf7b061132ca92a53fa6b376ba80d12b624c773f0f278dff
data/.bumpversion.cfg CHANGED
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 4.12.0
2
+ current_version = 4.15.0
3
3
  parse = (?P<major>\d+)
4
4
  \.(?P<minor>\d+)
5
5
  \.(?P<patch>\d+)
data/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.15.0](https://github.com/recurly/recurly-client-ruby/tree/4.15.0) (2022-03-14)
4
+
5
+ [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.14.0...4.15.0)
6
+
7
+
8
+ **Merged Pull Requests**
9
+
10
+ - Generated Latest Changes for v2021-02-25 (Percentage tiers feature) [#757](https://github.com/recurly/recurly-client-ruby/pull/757) ([recurly-integrations](https://github.com/recurly-integrations))
11
+
12
+
13
+
14
+ ## [4.14.0](https://github.com/recurly/recurly-client-ruby/tree/4.14.0) (2022-03-03)
15
+
16
+ [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.13.0...4.14.0)
17
+
18
+
19
+ **Merged Pull Requests**
20
+
21
+ - Generated Latest Changes for v2021-02-25 [#753](https://github.com/recurly/recurly-client-ruby/pull/753) ([recurly-integrations](https://github.com/recurly-integrations))
22
+
23
+
24
+
25
+ ## [4.13.0](https://github.com/recurly/recurly-client-ruby/tree/4.13.0) (2022-01-31)
26
+
27
+ [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.12.0...4.13.0)
28
+
29
+
30
+ **Merged Pull Requests**
31
+
32
+ - Generated Latest Changes for v2021-02-25 [#747](https://github.com/recurly/recurly-client-ruby/pull/747) ([recurly-integrations](https://github.com/recurly-integrations))
33
+ - Add region argument to client to connect in EU data center [#744](https://github.com/recurly/recurly-client-ruby/pull/744) ([FabricioCoutinho](https://github.com/FabricioCoutinho))
34
+
35
+
36
+
3
37
  ## [4.12.0](https://github.com/recurly/recurly-client-ruby/tree/4.12.0) (2022-01-28)
4
38
 
5
39
  [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.11.0...4.12.0)
data/GETTING_STARTED.md CHANGED
@@ -5,7 +5,7 @@ This repository houses the official ruby client for Recurly's V3 API.
5
5
  In your Gemfile, add `recurly` as a dependency.
6
6
 
7
7
  ```ruby
8
- gem 'recurly', '~> 4.12'
8
+ gem 'recurly', '~> 4.15'
9
9
  ```
10
10
 
11
11
  > *Note*: We try to follow [semantic versioning](https://semver.org/) and will only apply breaking changes to major versions.
@@ -22,6 +22,14 @@ client = Recurly::Client.new(api_key: API_KEY)
22
22
  sub = client.get_subscription(subscription_id: 'abcd123456')
23
23
  ```
24
24
 
25
+ To access Recurly API in Europe, you will need to specify the EU Region in the argument region.
26
+
27
+ ```ruby
28
+ API_KEY = '83749879bbde395b5fe0cc1a5abf8e5'
29
+ client = Recurly::Client.new(api_key: API_KEY, region: :eu)
30
+ sub = client.get_subscription(subscription_id: 'abcd123456')
31
+ ```
32
+
25
33
  You can also pass the initializer a block. This will give you a client scoped for just that block:
26
34
 
27
35
  ```ruby