recurly 3.16.0 → 4.0.1

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.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.bumpversion.cfg +1 -1
  3. data/.github_changelog_generator +2 -2
  4. data/.travis.yml +1 -0
  5. data/CHANGELOG.md +144 -6
  6. data/GETTING_STARTED.md +20 -17
  7. data/lib/recurly/client.rb +41 -18
  8. data/lib/recurly/client/operations.rb +770 -549
  9. data/lib/recurly/errors.rb +5 -23
  10. data/lib/recurly/errors/api_errors.rb +3 -0
  11. data/lib/recurly/pager.rb +5 -15
  12. data/lib/recurly/requests/{account_acquisition_updatable.rb → account_acquisition_update.rb} +1 -1
  13. data/lib/recurly/requests/account_create.rb +2 -2
  14. data/lib/recurly/requests/account_purchase.rb +2 -2
  15. data/lib/recurly/requests/add_on_create.rb +2 -2
  16. data/lib/recurly/requests/add_on_pricing.rb +5 -1
  17. data/lib/recurly/requests/add_on_update.rb +2 -2
  18. data/lib/recurly/requests/address.rb +0 -8
  19. data/lib/recurly/requests/billing_info_create.rb +1 -25
  20. data/lib/recurly/requests/coupon_create.rb +1 -1
  21. data/lib/recurly/requests/coupon_redemption_create.rb +4 -0
  22. data/lib/recurly/requests/external_transaction.rb +1 -1
  23. data/lib/recurly/requests/{invoice_updatable.rb → invoice_update.rb} +1 -1
  24. data/lib/recurly/requests/line_item_create.rb +1 -1
  25. data/lib/recurly/requests/purchase_create.rb +4 -0
  26. data/lib/recurly/requests/subscription_add_on_create.rb +6 -2
  27. data/lib/recurly/requests/subscription_add_on_tier.rb +5 -1
  28. data/lib/recurly/requests/subscription_add_on_update.rb +6 -2
  29. data/lib/recurly/requests/subscription_change_create.rb +1 -1
  30. data/lib/recurly/requests/subscription_create.rb +7 -3
  31. data/lib/recurly/requests/tier.rb +2 -2
  32. data/lib/recurly/requests/tier_pricing.rb +22 -0
  33. data/lib/recurly/resources/add_on.rb +1 -1
  34. data/lib/recurly/resources/add_on_pricing.rb +5 -1
  35. data/lib/recurly/resources/address.rb +0 -8
  36. data/lib/recurly/resources/address_with_name.rb +46 -0
  37. data/lib/recurly/resources/coupon.rb +5 -17
  38. data/lib/recurly/resources/coupon_redemption.rb +4 -0
  39. data/lib/recurly/resources/invoice.rb +6 -2
  40. data/lib/recurly/resources/line_item.rb +4 -0
  41. data/lib/recurly/resources/plan.rb +1 -1
  42. data/lib/recurly/resources/subscription_add_on.rb +6 -2
  43. data/lib/recurly/resources/subscription_add_on_tier.rb +5 -1
  44. data/lib/recurly/resources/subscription_change.rb +0 -4
  45. data/lib/recurly/resources/tier.rb +2 -2
  46. data/lib/recurly/resources/tier_pricing.rb +22 -0
  47. data/lib/recurly/resources/transaction.rb +2 -2
  48. data/lib/recurly/resources/unique_coupon_code_params.rb +26 -0
  49. data/lib/recurly/resources/usage.rb +5 -1
  50. data/lib/recurly/version.rb +1 -1
  51. data/openapi/api.yaml +1896 -1846
  52. data/scripts/build +2 -2
  53. data/scripts/changelog +1 -1
  54. data/scripts/format +2 -2
  55. metadata +9 -8
  56. data/lib/recurly/errors/network_errors.rb +0 -10
  57. data/lib/recurly/resources/line_item_list.rb +0 -26
  58. data/lib/recurly/resources/subscription_change_preview.rb +0 -78
data/scripts/build CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
2
  set -e
3
3
 
4
- bundle install --binstubs --quiet
5
- ./bin/yard --quiet
4
+ bundle install --quiet
5
+ bundle exec yard --quiet
data/scripts/changelog CHANGED
@@ -7,7 +7,7 @@ else
7
7
  if [ "$1" == "--pending" ]; then
8
8
  github_changelog_generator -t $GITHUB_TOKEN --unreleased-only -o "$2"
9
9
  elif [ "$1" == "--release-tag" ]; then
10
- github_changelog_generator -t $GITHUB_TOKEN --unreleased true --unreleased-label "$2"
10
+ github_changelog_generator -t $GITHUB_TOKEN --unreleased true --future-release "$2"
11
11
  else
12
12
  github_changelog_generator -t $GITHUB_TOKEN
13
13
  fi
data/scripts/format CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
3
  if [ "$1" == "--check" ]; then
4
- ./bin/rufo . --check
4
+ bundle exec rufo . --check
5
5
  RESULT=$?
6
6
  if [ $RESULT != 0 ]; then
7
7
  echo "Code is not properly formatted. Please execute ./scripts/format to autoformat the code."
8
8
  exit $RESULT
9
9
  fi
10
10
  else
11
- ./bin/rufo . -x
11
+ bundle exec rufo . -x
12
12
  fi
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurly
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.16.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-24 00:00:00.000000000 Z
11
+ date: 2021-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -140,13 +140,12 @@ files:
140
140
  - lib/recurly/connection_pool.rb
141
141
  - lib/recurly/errors.rb
142
142
  - lib/recurly/errors/api_errors.rb
143
- - lib/recurly/errors/network_errors.rb
144
143
  - lib/recurly/http.rb
145
144
  - lib/recurly/pager.rb
146
145
  - lib/recurly/request.rb
147
146
  - lib/recurly/requests.rb
148
147
  - lib/recurly/requests/account_acquisition_cost.rb
149
- - lib/recurly/requests/account_acquisition_updatable.rb
148
+ - lib/recurly/requests/account_acquisition_update.rb
150
149
  - lib/recurly/requests/account_create.rb
151
150
  - lib/recurly/requests/account_purchase.rb
152
151
  - lib/recurly/requests/account_update.rb
@@ -167,7 +166,7 @@ files:
167
166
  - lib/recurly/requests/invoice_collect.rb
168
167
  - lib/recurly/requests/invoice_create.rb
169
168
  - lib/recurly/requests/invoice_refund.rb
170
- - lib/recurly/requests/invoice_updatable.rb
169
+ - lib/recurly/requests/invoice_update.rb
171
170
  - lib/recurly/requests/item_create.rb
172
171
  - lib/recurly/requests/item_update.rb
173
172
  - lib/recurly/requests/line_item_create.rb
@@ -200,6 +199,7 @@ files:
200
199
  - lib/recurly/requests/subscription_shipping_update.rb
201
200
  - lib/recurly/requests/subscription_update.rb
202
201
  - lib/recurly/requests/tier.rb
202
+ - lib/recurly/requests/tier_pricing.rb
203
203
  - lib/recurly/requests/usage_create.rb
204
204
  - lib/recurly/resource.rb
205
205
  - lib/recurly/resources.rb
@@ -214,6 +214,7 @@ files:
214
214
  - lib/recurly/resources/add_on_mini.rb
215
215
  - lib/recurly/resources/add_on_pricing.rb
216
216
  - lib/recurly/resources/address.rb
217
+ - lib/recurly/resources/address_with_name.rb
217
218
  - lib/recurly/resources/billing_info.rb
218
219
  - lib/recurly/resources/billing_info_updated_by.rb
219
220
  - lib/recurly/resources/binary_file.rb
@@ -240,7 +241,6 @@ files:
240
241
  - lib/recurly/resources/item.rb
241
242
  - lib/recurly/resources/item_mini.rb
242
243
  - lib/recurly/resources/line_item.rb
243
- - lib/recurly/resources/line_item_list.rb
244
244
  - lib/recurly/resources/measured_unit.rb
245
245
  - lib/recurly/resources/payment_method.rb
246
246
  - lib/recurly/resources/plan.rb
@@ -257,14 +257,15 @@ files:
257
257
  - lib/recurly/resources/subscription_add_on.rb
258
258
  - lib/recurly/resources/subscription_add_on_tier.rb
259
259
  - lib/recurly/resources/subscription_change.rb
260
- - lib/recurly/resources/subscription_change_preview.rb
261
260
  - lib/recurly/resources/subscription_shipping.rb
262
261
  - lib/recurly/resources/tax_info.rb
263
262
  - lib/recurly/resources/tier.rb
263
+ - lib/recurly/resources/tier_pricing.rb
264
264
  - lib/recurly/resources/transaction.rb
265
265
  - lib/recurly/resources/transaction_error.rb
266
266
  - lib/recurly/resources/transaction_payment_gateway.rb
267
267
  - lib/recurly/resources/unique_coupon_code.rb
268
+ - lib/recurly/resources/unique_coupon_code_params.rb
268
269
  - lib/recurly/resources/usage.rb
269
270
  - lib/recurly/resources/user.rb
270
271
  - lib/recurly/schema.rb
@@ -293,7 +294,7 @@ metadata:
293
294
  changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
294
295
  documentation_uri: https://recurly.github.io/recurly-client-ruby/
295
296
  homepage_uri: https://github.com/recurly/recurly-client-ruby
296
- source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/3.16.0
297
+ source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.0.1
297
298
  post_install_message:
298
299
  rdoc_options: []
299
300
  require_paths:
@@ -1,10 +0,0 @@
1
- module Recurly
2
- module Errors
3
- class NetworkError < StandardError; end
4
- class InvalidResponseError < NetworkError; end
5
- class TimeoutError < NetworkError; end
6
- class ConnectionFailedError < NetworkError; end
7
- class SSLError < NetworkError; end
8
- class UnavailableError < NetworkError; end
9
- end
10
- end
@@ -1,26 +0,0 @@
1
- # This file is automatically created by Recurly's OpenAPI generation process
2
- # and thus any edits you make by hand will be lost. If you wish to make a
3
- # change to this file, please create a Github issue explaining the changes you
4
- # need and we will usher them to the appropriate places.
5
- module Recurly
6
- module Resources
7
- class LineItemList < Resource
8
-
9
- # @!attribute data
10
- # @return [Array[LineItem]]
11
- define_attribute :data, Array, { :item_type => :LineItem }
12
-
13
- # @!attribute has_more
14
- # @return [Boolean] Indicates there are more results on subsequent pages.
15
- define_attribute :has_more, :Boolean
16
-
17
- # @!attribute next
18
- # @return [String] Path to subsequent page of results.
19
- define_attribute :next, String
20
-
21
- # @!attribute object
22
- # @return [String] Will always be List.
23
- define_attribute :object, String
24
- end
25
- end
26
- end
@@ -1,78 +0,0 @@
1
- # This file is automatically created by Recurly's OpenAPI generation process
2
- # and thus any edits you make by hand will be lost. If you wish to make a
3
- # change to this file, please create a Github issue explaining the changes you
4
- # need and we will usher them to the appropriate places.
5
- module Recurly
6
- module Resources
7
- class SubscriptionChangePreview < Resource
8
-
9
- # @!attribute activate_at
10
- # @return [DateTime] Activated at
11
- define_attribute :activate_at, DateTime
12
-
13
- # @!attribute activated
14
- # @return [Boolean] Returns `true` if the subscription change is activated.
15
- define_attribute :activated, :Boolean
16
-
17
- # @!attribute add_ons
18
- # @return [Array[SubscriptionAddOn]] These add-ons will be used when the subscription renews.
19
- define_attribute :add_ons, Array, { :item_type => :SubscriptionAddOn }
20
-
21
- # @!attribute created_at
22
- # @return [DateTime] Created at
23
- define_attribute :created_at, DateTime
24
-
25
- # @!attribute custom_fields
26
- # @return [Array[CustomField]] The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value.
27
- define_attribute :custom_fields, Array, { :item_type => :CustomField }
28
-
29
- # @!attribute deleted_at
30
- # @return [DateTime] Deleted at
31
- define_attribute :deleted_at, DateTime
32
-
33
- # @!attribute id
34
- # @return [String] The ID of the Subscription Change.
35
- define_attribute :id, String
36
-
37
- # @!attribute invoice_collection
38
- # @return [InvoiceCollection] Invoice Collection
39
- define_attribute :invoice_collection, :InvoiceCollection
40
-
41
- # @!attribute object
42
- # @return [String] Object type
43
- define_attribute :object, String
44
-
45
- # @!attribute plan
46
- # @return [PlanMini] Just the important parts.
47
- define_attribute :plan, :PlanMini
48
-
49
- # @!attribute quantity
50
- # @return [Integer] Subscription quantity
51
- define_attribute :quantity, Integer
52
-
53
- # @!attribute revenue_schedule_type
54
- # @return [String] Revenue schedule type
55
- define_attribute :revenue_schedule_type, String
56
-
57
- # @!attribute setup_fee_revenue_schedule_type
58
- # @return [String] Setup fee revenue schedule type
59
- define_attribute :setup_fee_revenue_schedule_type, String
60
-
61
- # @!attribute shipping
62
- # @return [SubscriptionShipping] Subscription shipping details
63
- define_attribute :shipping, :SubscriptionShipping
64
-
65
- # @!attribute subscription_id
66
- # @return [String] The ID of the subscription that is going to be changed.
67
- define_attribute :subscription_id, String
68
-
69
- # @!attribute unit_amount
70
- # @return [Float] Unit amount
71
- define_attribute :unit_amount, Float
72
-
73
- # @!attribute updated_at
74
- # @return [DateTime] Updated at
75
- define_attribute :updated_at, DateTime
76
- end
77
- end
78
- end