lib/recurly/requests/subscription_change_create.rb in recurly-4.5.0 vs lib/recurly/requests/subscription_change_create.rb in recurly-4.6.0

- old
+ new

@@ -8,9 +8,13 @@ # @!attribute add_ons # @return [Array[SubscriptionAddOnUpdate]] 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 this value is omitted your existing add-ons will be unaffected. To remove all existing add-ons, this value should be an empty array.' 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