lib/recurly/requests/plan_update.rb in recurly-4.19.0 vs lib/recurly/requests/plan_update.rb in recurly-4.20.0
- old
+ new
@@ -29,11 +29,11 @@
# @!attribute code
# @return [String] Unique code to identify the plan. This is used in Hosted Payment Page URLs and in the invoice exports.
define_attribute :code, String
# @!attribute currencies
- # @return [Array[PlanPricing]] Pricing
+ # @return [Array[PlanPricing]] Optional when the pricing model is 'ramp'.
define_attribute :currencies, Array, { :item_type => :PlanPricing }
# @!attribute description
# @return [String] Optional description, not displayed.
define_attribute :description, String
@@ -51,9 +51,13 @@
define_attribute :id, String
# @!attribute name
# @return [String] This name describes your plan and will appear on the Hosted Payment Page and the subscriber's invoice.
define_attribute :name, String
+
+ # @!attribute ramp_intervals
+ # @return [Array[PlanRampInterval]] Ramp Intervals
+ define_attribute :ramp_intervals, Array, { :item_type => :PlanRampInterval }
# @!attribute revenue_schedule_type
# @return [String] Revenue schedule type
define_attribute :revenue_schedule_type, String