class Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentMethodSpecificInput

@attr [true/false] is_recurring @attr [Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct4101SpecificInput] payment_product4101_specific_input @attr [Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct809SpecificInput] payment_product809_specific_input @attr [Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct816SpecificInput] payment_product816_specific_input @attr [Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct840SpecificInput] payment_product840_specific_input @attr [Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct861SpecificInput] payment_product861_specific_input @attr [Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct863SpecificInput] payment_product863_specific_input @attr [Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct869SpecificInput] payment_product869_specific_input @attr [Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct882SpecificInput] payment_product882_specific_input @attr [Ingenico::Connect::SDK::Domain::Payment::RedirectionData] redirection_data @attr [String] return_url

Attributes

is_recurring[RW]
payment_product4101_specific_input[RW]
payment_product809_specific_input[RW]
payment_product816_specific_input[RW]
payment_product840_specific_input[RW]
payment_product861_specific_input[RW]
payment_product863_specific_input[RW]
payment_product869_specific_input[RW]
payment_product882_specific_input[RW]
redirection_data[RW]
return_url[RW]

@deprecated Use redirectionData.returnUrl instead

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input.rb, line 74
def from_hash(hash)
  super
  if hash.has_key? 'isRecurring'
    @is_recurring = hash['isRecurring']
  end
  if hash.has_key? 'paymentProduct4101SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct4101SpecificInput']] unless hash['paymentProduct4101SpecificInput'].is_a? Hash
    @payment_product4101_specific_input = Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct4101SpecificInput.new_from_hash(hash['paymentProduct4101SpecificInput'])
  end
  if hash.has_key? 'paymentProduct809SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct809SpecificInput']] unless hash['paymentProduct809SpecificInput'].is_a? Hash
    @payment_product809_specific_input = Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct809SpecificInput.new_from_hash(hash['paymentProduct809SpecificInput'])
  end
  if hash.has_key? 'paymentProduct816SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct816SpecificInput']] unless hash['paymentProduct816SpecificInput'].is_a? Hash
    @payment_product816_specific_input = Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct816SpecificInput.new_from_hash(hash['paymentProduct816SpecificInput'])
  end
  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::RedirectPaymentProduct840SpecificInput.new_from_hash(hash['paymentProduct840SpecificInput'])
  end
  if hash.has_key? 'paymentProduct861SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct861SpecificInput']] unless hash['paymentProduct861SpecificInput'].is_a? Hash
    @payment_product861_specific_input = Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct861SpecificInput.new_from_hash(hash['paymentProduct861SpecificInput'])
  end
  if hash.has_key? 'paymentProduct863SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct863SpecificInput']] unless hash['paymentProduct863SpecificInput'].is_a? Hash
    @payment_product863_specific_input = Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct863SpecificInput.new_from_hash(hash['paymentProduct863SpecificInput'])
  end
  if hash.has_key? 'paymentProduct869SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct869SpecificInput']] unless hash['paymentProduct869SpecificInput'].is_a? Hash
    @payment_product869_specific_input = Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct869SpecificInput.new_from_hash(hash['paymentProduct869SpecificInput'])
  end
  if hash.has_key? 'paymentProduct882SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct882SpecificInput']] unless hash['paymentProduct882SpecificInput'].is_a? Hash
    @payment_product882_specific_input = Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct882SpecificInput.new_from_hash(hash['paymentProduct882SpecificInput'])
  end
  if hash.has_key? 'redirectionData'
    raise TypeError, "value '%s' is not a Hash" % [hash['redirectionData']] unless hash['redirectionData'].is_a? Hash
    @redirection_data = Ingenico::Connect::SDK::Domain::Payment::RedirectionData.new_from_hash(hash['redirectionData'])
  end
  if hash.has_key? 'returnUrl'
    @return_url = hash['returnUrl']
  end
end
to_h() click to toggle source

@return (Hash)

# File lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input.rb, line 58
def to_h
  hash = super
  hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
  hash['paymentProduct4101SpecificInput'] = @payment_product4101_specific_input.to_h unless @payment_product4101_specific_input.nil?
  hash['paymentProduct809SpecificInput'] = @payment_product809_specific_input.to_h unless @payment_product809_specific_input.nil?
  hash['paymentProduct816SpecificInput'] = @payment_product816_specific_input.to_h unless @payment_product816_specific_input.nil?
  hash['paymentProduct840SpecificInput'] = @payment_product840_specific_input.to_h unless @payment_product840_specific_input.nil?
  hash['paymentProduct861SpecificInput'] = @payment_product861_specific_input.to_h unless @payment_product861_specific_input.nil?
  hash['paymentProduct863SpecificInput'] = @payment_product863_specific_input.to_h unless @payment_product863_specific_input.nil?
  hash['paymentProduct869SpecificInput'] = @payment_product869_specific_input.to_h unless @payment_product869_specific_input.nil?
  hash['paymentProduct882SpecificInput'] = @payment_product882_specific_input.to_h unless @payment_product882_specific_input.nil?
  hash['redirectionData'] = @redirection_data.to_h unless @redirection_data.nil?
  hash['returnUrl'] = @return_url unless @return_url.nil?
  hash
end