recurly 4.64.0 → 4.66.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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/.bumpversion.cfg +1 -1
  3. data/CHANGELOG.md +22 -0
  4. data/GETTING_STARTED.md +1 -1
  5. data/lib/recurly/client/operations.rb +55 -14
  6. data/lib/recurly/requests/account_acquisition_update.rb +4 -0
  7. data/lib/recurly/requests/billing_info_create.rb +4 -0
  8. data/lib/recurly/requests/external_product_reference_base.rb +2 -2
  9. data/lib/recurly/requests/external_product_reference_create.rb +2 -2
  10. data/lib/recurly/requests/external_product_reference_update.rb +2 -2
  11. data/lib/recurly/requests/plan_create.rb +6 -2
  12. data/lib/recurly/requests/plan_pricing.rb +6 -2
  13. data/lib/recurly/requests/plan_ramp_pricing.rb +4 -0
  14. data/lib/recurly/requests/plan_setup_pricing_create.rb +18 -0
  15. data/lib/recurly/requests/plan_update.rb +7 -3
  16. data/lib/recurly/requests/pricing.rb +1 -1
  17. data/lib/recurly/requests/subscription_change_create.rb +4 -0
  18. data/lib/recurly/requests/subscription_create.rb +4 -0
  19. data/lib/recurly/requests/subscription_purchase.rb +4 -0
  20. data/lib/recurly/requests/subscription_shipping_create.rb +4 -0
  21. data/lib/recurly/requests/subscription_shipping_purchase.rb +4 -0
  22. data/lib/recurly/requests/subscription_update.rb +4 -0
  23. data/lib/recurly/resources/account_acquisition.rb +4 -0
  24. data/lib/recurly/resources/plan.rb +29 -1
  25. data/lib/recurly/resources/plan_pricing.rb +6 -2
  26. data/lib/recurly/resources/plan_ramp_pricing.rb +4 -0
  27. data/lib/recurly/resources/plan_setup_pricing.rb +18 -0
  28. data/lib/recurly/resources/price_segment.rb +22 -0
  29. data/lib/recurly/resources/pricing.rb +1 -1
  30. data/lib/recurly/resources/subscription.rb +4 -0
  31. data/lib/recurly/version.rb +1 -1
  32. data/openapi/api.yaml +418 -554
  33. metadata +6 -3
@@ -0,0 +1,22 @@
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 PriceSegment < Resource
8
+
9
+ # @!attribute code
10
+ # @return [String] The price segment code, e.g. `my-price-segment`.
11
+ define_attribute :code, String
12
+
13
+ # @!attribute id
14
+ # @return [String] The price segment ID, e.g. `e28zov4fw0v2`.
15
+ define_attribute :id, String
16
+
17
+ # @!attribute object
18
+ # @return [String] Object type
19
+ define_attribute :object, String
20
+ end
21
+ end
22
+ end
@@ -15,7 +15,7 @@ module Recurly
15
15
  define_attribute :tax_inclusive, :Boolean
16
16
 
17
17
  # @!attribute unit_amount
18
- # @return [Float] Unit price
18
+ # @return [Float]
19
19
  define_attribute :unit_amount, Float
20
20
  end
21
21
  end
@@ -138,6 +138,10 @@ module Recurly
138
138
  # @return [String] For manual invoicing, this identifies the PO number associated with the subscription.
139
139
  define_attribute :po_number, String
140
140
 
141
+ # @!attribute price_segment_id
142
+ # @return [String] The price segment ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For requests, the code can also be used. Use prefix `code-`, e.g. `code-gold`.
143
+ define_attribute :price_segment_id, String
144
+
141
145
  # @!attribute quantity
142
146
  # @return [Integer] Subscription quantity
143
147
  define_attribute :quantity, Integer
@@ -1,3 +1,3 @@
1
1
  module Recurly
2
- VERSION = "4.64.0"
2
+ VERSION = "4.66.0"
3
3
  end