Class: Transbank::Webpay::Oneclick::MallDeferredTransactionCaptureResponse

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

Constant Summary collapse

FIELDS =
i[authorization_code authorization_date captured_amount response_code]

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ MallDeferredTransactionCaptureResponse

Returns a new instance of MallDeferredTransactionCaptureResponse.



9
10
11
# File 'lib/transbank/sdk/oneclick/mall_deferred/responses/mall_deferred_transaction_capture_response.rb', line 9

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