Class: Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentMethodSpecificOutput

Inherits:
AbstractPaymentMethodSpecificOutput show all
Defined in:
lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_output.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractPaymentMethodSpecificOutput

#payment_product_id

Instance Method Summary collapse

Methods inherited from Ingenico::Connect::SDK::DataObject

new_from_hash

Instance Attribute Details

#bank_account_ibanObject



18
19
20
# File 'lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_output.rb', line 18

def 
  
end

#fraud_resultsObject



21
22
23
# File 'lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_output.rb', line 21

def fraud_results
  @fraud_results
end

#payment_product836_specific_outputObject



24
25
26
# File 'lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_output.rb', line 24

def payment_product836_specific_output
  @payment_product836_specific_output
end

#payment_product840_specific_outputObject



27
28
29
# File 'lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_output.rb', line 27

def payment_product840_specific_output
  @payment_product840_specific_output
end

Instance Method Details

#from_hash(hash) ⇒ Object



38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_output.rb', line 38

def from_hash(hash)
  super
  if hash.has_key?('bankAccountIban')
    if !(hash['bankAccountIban'].is_a? Hash)
      raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountIban']]
    end
     = Ingenico::Connect::SDK::Domain::Definitions::BankAccountIban.new_from_hash(hash['bankAccountIban'])
  end
  if hash.has_key?('fraudResults')
    if !(hash['fraudResults'].is_a? Hash)
      raise TypeError, "value '%s' is not a Hash" % [hash['fraudResults']]
    end
    @fraud_results = Ingenico::Connect::SDK::Domain::Definitions::FraudResults.new_from_hash(hash['fraudResults'])
  end
  if hash.has_key?('paymentProduct836SpecificOutput')
    if !(hash['paymentProduct836SpecificOutput'].is_a? Hash)
      raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct836SpecificOutput']]
    end
    @payment_product836_specific_output = Ingenico::Connect::SDK::Domain::Payment::PaymentProduct836SpecificOutput.new_from_hash(hash['paymentProduct836SpecificOutput'])
  end
  if hash.has_key?('paymentProduct840SpecificOutput')
    if !(hash['paymentProduct840SpecificOutput'].is_a? Hash)
      raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct840SpecificOutput']]
    end
    @payment_product840_specific_output = Ingenico::Connect::SDK::Domain::Payment::PaymentProduct840SpecificOutput.new_from_hash(hash['paymentProduct840SpecificOutput'])
  end
end

#to_hObject



29
30
31
32
33
34
35
36
# File 'lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_output.rb', line 29

def to_h
  hash = super
  add_to_hash(hash, 'bankAccountIban', )
  add_to_hash(hash, 'fraudResults', @fraud_results)
  add_to_hash(hash, 'paymentProduct836SpecificOutput', @payment_product836_specific_output)
  add_to_hash(hash, 'paymentProduct840SpecificOutput', @payment_product840_specific_output)
  hash
end