Class: Transbank::Webpay::Oneclick::MallTransactionAuthorizeResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/transbank/sdk/oneclick/mall/responses/mall_transaction_authorize_response.rb

Constant Summary collapse

FIELDS =
[:buy_order, :session_id, :card_detail, :expiration_date,
:accounting_date, :transaction_date, :details]

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ MallTransactionAuthorizeResponse

Returns a new instance of MallTransactionAuthorizeResponse.



10
11
12
# File 'lib/transbank/sdk/oneclick/mall/responses/mall_transaction_authorize_response.rb', line 10

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