class Ingenico::Direct::SDK::Domain::PaymentProduct130SpecificInput

@attr [Ingenico::Direct::SDK::Domain::PaymentProduct130SpecificThreeDSecure] three_d_secure

Attributes

three_d_secure[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/direct/sdk/domain/payment_product130_specific_input.rb, line 22
def from_hash(hash)
  super
  if hash.key? 'threeDSecure'
    raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecure']] unless hash['threeDSecure'].is_a? Hash
    @three_d_secure = Ingenico::Direct::SDK::Domain::PaymentProduct130SpecificThreeDSecure.new_from_hash(hash['threeDSecure'])
  end
end
to_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Direct::SDK::DataObject#to_h
# File lib/ingenico/direct/sdk/domain/payment_product130_specific_input.rb, line 16
def to_h
  hash = super
  hash['threeDSecure'] = @three_d_secure.to_h if @three_d_secure
  hash
end