lib/recurly/requests/subscription_change_create.rb in recurly-3.18.1 vs lib/recurly/requests/subscription_change_create.rb in recurly-3.19.0

- old
+ new

@@ -8,10 +8,14 @@ # @!attribute add_ons # @return [Array[SubscriptionAddOnUpdate]] If this value is omitted your existing add-ons will be removed. If you provide a value for this field it will replace any existing add-ons. So, when adding or modifying an add-on, you need to include the existing subscription add-ons. Unchanged add-ons can be included just using the subscription add-on's ID: `{"id": "abc123"}`. If a subscription add-on's `code` is supplied without the `id`, `{"code": "def456"}`, the subscription add-on attributes will be set to the current values of the plan add-on unless provided in the request. - If an `id` is passed, any attributes not passed in will pull from the existing subscription add-on - If a `code` is passed, any attributes not passed in will pull from the current values of the plan add-on - Attributes passed in as part of the request will override either of the above scenarios define_attribute :add_ons, Array, { :item_type => :SubscriptionAddOnUpdate } + # @!attribute billing_info + # @return [SubscriptionChangeBillingInfoCreate] + define_attribute :billing_info, :SubscriptionChangeBillingInfoCreate + # @!attribute collection_method # @return [String] Collection method define_attribute :collection_method, String # @!attribute coupon_codes @@ -47,9 +51,13 @@ define_attribute :revenue_schedule_type, String # @!attribute shipping # @return [SubscriptionChangeShippingCreate] The shipping address can currently only be changed immediately, using SubscriptionUpdate. define_attribute :shipping, :SubscriptionChangeShippingCreate + + # @!attribute tax_inclusive + # @return [Boolean] Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to use this flag. + define_attribute :tax_inclusive, :Boolean # @!attribute timeframe # @return [String] The timeframe parameter controls when the upgrade or downgrade takes place. The subscription change can occur now, when the subscription is next billed, or when the subscription term ends. Generally, if you're performing an upgrade, you will want the change to occur immediately (now). If you're performing a downgrade, you should set the timeframe to `term_end` or `bill_date` so the change takes effect at a scheduled billing date. The `renewal` timeframe option is accepted as an alias for `term_end`. define_attribute :timeframe, String