Sha256: 29b55949b550227dcf1af7181b6b4b3669bbcf7d4268b5717a32b0063fde6b61
Contents?: true
Size: 626 Bytes
Versions: 41
Compression:
Stored size: 626 Bytes
Contents
# frozen_string_literal: true module IronBank module Actions # Use the amend call to change a subscription # https://www.zuora.com/developer/api-reference/#operation/Action_POSTamend # class Amend < Action 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 def params { requests: requests } end def requests IronBank::Object.new(args.fetch(:requests)).deep_camelize(type: :upper) end end end end
Version data entries
41 entries across 41 versions & 1 rubygems