lib/balanced/resources/card.rb in balanced-0.5.4 vs lib/balanced/resources/card.rb in balanced-0.5.5
- old
+ new
@@ -16,9 +16,17 @@
# Creates a Debit of funds from this Card to your Marketplace's escrow account.
#
# If +appears_on_statement_as+ is nil, then Balanced will use the
# +domain_name+ property from your Marketplace.
#
+ # @param [Array] args
+ # @option args [Integer] :amount the amount of the purchase in cents
+ # @option args [String] :appears_on_statement_as
+ # @option args [String] :hold_uri
+ # @option args [Hash] :meta a hash of data to save with the Debit
+ # @option args [String] :description
+ # @option args [String] :source_uri
+ #
# @return [Debit]
def debit *args
warn_on_positional args
options = args.last.is_a?(Hash) ? args.pop : {}
amount = args[0] || options.fetch(:amount) { nil }