class IronBank::Actions::Amend

Use the amend call to change a subscription www.zuora.com/developer/api-reference/#operation/Action_POSTamend

Public Instance Methods

call() click to toggle source
Calls superclass method IronBank::Action::call
# File lib/iron_bank/actions/amend.rb, line 9
def call
  # NOTE: The amend response wraps all results in an object, which is
  #       inconsistent with the rest of the `/v1/action` responses.
  super[:results]
end

Private Instance Methods

params() click to toggle source
# File lib/iron_bank/actions/amend.rb, line 17
def params
  { requests: requests }
end
requests() click to toggle source
# File lib/iron_bank/actions/amend.rb, line 21
def requests
  IronBank::Object.new(args.fetch(:requests)).deep_camelize(type: :upper)
end