class Ingenico::Connect::SDK::Domain::Payment::MobilePaymentProduct320SpecificInput

@attr [Ingenico::Connect::SDK::Domain::Payment::GPayThreeDSecure] three_d_secure

Attributes

three_d_secure[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/payment/mobile_payment_product320_specific_input.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::GPayThreeDSecure.new_from_hash(hash['threeDSecure'])
  end
end
to_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/payment/mobile_payment_product320_specific_input.rb, line 18
def to_h
  hash = super
  hash['threeDSecure'] = @three_d_secure.to_h unless @three_d_secure.nil?
  hash
end