class Ingenico::Connect::SDK::Domain::Payment::CardPaymentMethodSpecificInputBase
@attr [Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureBase] three_d_secure
Attributes
three_d_secure[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::Domain::Payment::AbstractCardPaymentMethodSpecificInput#from_hash
# File lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb, line 24 def from_hash(hash) super if hash.has_key? 'threeDSecure' raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecure']] unless hash['threeDSecure'].is_a? Hash @three_d_secure = Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureBase.new_from_hash(hash['threeDSecure']) end end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::Domain::Payment::AbstractCardPaymentMethodSpecificInput#to_h
# File lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb, line 18 def to_h hash = super hash['threeDSecure'] = @three_d_secure.to_h unless @three_d_secure.nil? hash end