lib/recurly/resources/plan.rb in recurly-3.6.0 vs lib/recurly/resources/plan.rb in recurly-3.7.0
- old
+ new
@@ -8,10 +8,14 @@
# @!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 allow_any_item_on_subscriptions
+ # @return [Boolean] Used to determine whether items can be assigned as add-ons to individual subscriptions. If `true`, items can be assigned as add-ons to individual subscription add-ons. If `false`, only plan add-ons can be used.
+ define_attribute :allow_any_item_on_subscriptions, :Boolean
+
# @!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
@@ -87,9 +91,13 @@
define_attribute :total_billing_cycles, Integer
# @!attribute trial_length
# @return [Integer] Length of plan's trial period in `trial_units`. `0` means `no trial`.
define_attribute :trial_length, Integer
+
+ # @!attribute trial_requires_billing_info
+ # @return [Boolean] Allow free trial subscriptions to be created without billing info.
+ define_attribute :trial_requires_billing_info, :Boolean
# @!attribute trial_unit
# @return [String] Units for the plan's trial period.
define_attribute :trial_unit, String