Class: Transbank::Webpay::WebpayPlus::TransactionStatusResponse
- Inherits:
-
Object
- Object
- Transbank::Webpay::WebpayPlus::TransactionStatusResponse
- Defined in:
- lib/transbank/sdk/webpay/webpay_plus/responses/transaction_status_response.rb
Constant Summary collapse
- FIELDS =
[:vci, :amount, :buy_order, :session_id, :card_detail, :accounting_date, :transaction_date, :authorization_code, :payment_type_code, :response_code, :installments_amount, :installments_number, :balance]
Instance Method Summary collapse
-
#initialize(json) ⇒ TransactionStatusResponse
constructor
A new instance of TransactionStatusResponse.
Constructor Details
#initialize(json) ⇒ TransactionStatusResponse
Returns a new instance of TransactionStatusResponse.
14 15 16 |
# File 'lib/transbank/sdk/webpay/webpay_plus/responses/transaction_status_response.rb', line 14 def initialize(json) FIELDS.each {|field| send("#{field}=", json["#{field}"]) } end |