lib/recurly/requests/plan_create.rb in recurly-3.6.0 vs lib/recurly/requests/plan_create.rb in recurly-3.7.0
- old
+ new
@@ -12,10 +12,14 @@
# @!attribute add_ons
# @return [Array[AddOnCreate]] Add Ons
define_attribute :add_ons, Array, { :item_type => :AddOnCreate }
+ # @!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
@@ -71,9 +75,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. Should not be used if billing info is needed for initial invoice due to existing uninvoiced charges or setup fee.
+ define_attribute :trial_requires_billing_info, :Boolean
# @!attribute trial_unit
# @return [String] Units for the plan's trial period.
define_attribute :trial_unit, String
end