lib/recurly/requests/plan_create.rb in recurly-3.0.0.beta.2 vs lib/recurly/requests/plan_create.rb in recurly-3.0.0.beta.3

- old
+ new

@@ -5,19 +5,23 @@ # @!attribute accounting_code # @return [String] Accounting code for invoice line items for the plan. If no value is provided, it defaults to plan's code. define_attribute :accounting_code, String # @!attribute add_ons - # @return [Array[String]] Add Ons - define_attribute :add_ons, Array, {:item_type => String} + # @return [Array[AddOnCreate]] Add Ons + define_attribute :add_ons, Array, {:item_type => :AddOnCreate} + # @!attribute auto_renew + # @return [Boolean] Subscriptions will automatically inherit this value once they are active. If `auto_renew` is `true`, then a subscription will automatically renew its term at renewal. If `auto_renew` is `false`, then a subscription will expire at the end of its term. `auto_renew` can be overridden on the subscription record itself. + define_attribute :auto_renew, :Boolean + # @!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[String]] Pricing - define_attribute :currencies, Array, {:item_type => String} + # @return [Array[Hash]] Pricing + define_attribute :currencies, Array, {:item_type => Hash} # @!attribute description # @return [String] Optional description, not displayed. define_attribute :description, String