class Ingenico::Connect::SDK::Domain::Hostedcheckout::MobilePaymentProduct320SpecificInputHostedCheckout

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

Attributes

merchant_name[RW]
merchant_origin[RW]
three_d_secure[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_product320_specific_input_hosted_checkout.rb, line 32
def from_hash(hash)
  super
  if hash.has_key? 'merchantName'
    @merchant_name = hash['merchantName']
  end
  if hash.has_key? 'merchantOrigin'
    @merchant_origin = hash['merchantOrigin']
  end
  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/hostedcheckout/mobile_payment_product320_specific_input_hosted_checkout.rb, line 24
def to_h
  hash = super
  hash['merchantName'] = @merchant_name unless @merchant_name.nil?
  hash['merchantOrigin'] = @merchant_origin unless @merchant_origin.nil?
  hash['threeDSecure'] = @three_d_secure.to_h unless @three_d_secure.nil?
  hash
end