class Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentMethodSpecificInputBase

@attr [Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct840SpecificInputBase] payment_product840_specific_input

Attributes

payment_product840_specific_input[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input_base.rb, line 24
def from_hash(hash)
  super
  if hash.has_key? 'paymentProduct840SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct840SpecificInput']] unless hash['paymentProduct840SpecificInput'].is_a? Hash
    @payment_product840_specific_input = Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct840SpecificInputBase.new_from_hash(hash['paymentProduct840SpecificInput'])
  end
end
to_h() click to toggle source

@return (Hash)

# File lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input_base.rb, line 18
def to_h
  hash = super
  hash['paymentProduct840SpecificInput'] = @payment_product840_specific_input.to_h unless @payment_product840_specific_input.nil?
  hash
end