Method: Unit::Fee.reverse_fee

Defined in:
lib/unit/models/fee/fee.rb

.reverse_fee(account_id:, transaction_id:, description:, tags: nil, idempotency_key: nil) ⇒ Object

Request to reverse a fee

Parameters:

  • account_id (String)
  • transaction_id (Integer)
  • description (String)
  • tags (Hash) (defaults to: nil)
    • optional

  • idempotency_key (String) (defaults to: nil)
    • optional

See Also:



28
29
30
31
# File 'lib/unit/models/fee/fee.rb', line 28

def reverse_fee(account_id:, transaction_id:, description:, tags: nil, idempotency_key: nil)
  request = ReverseFeeRequest.new(, transaction_id, description, tags, idempotency_key)
  Unit::Resource::FeeResource.reverse_fee(request)
end