Class: Transbank::TransaccionCompleta::TransactionRefundResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/transbank/sdk/transaccion_completa/responses/transaction_refund_response.rb

Constant Summary collapse

FIELDS =
i(
type authorization_code authorization_date
nullified_amount balance response_code
)

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ TransactionRefundResponse

Returns a new instance of TransactionRefundResponse.



9
10
11
# File 'lib/transbank/sdk/transaccion_completa/responses/transaction_refund_response.rb', line 9

def initialize(json)
  FIELDS.each { |field| send("#{field}=", json["#{field}"])}
end