class Ingenico::Connect::SDK::Domain::Payment::NonSepaDirectDebitPaymentMethodSpecificInput

@attr [String] date_collect @attr [String] direct_debit_text @attr [true/false] is_recurring @attr [Ingenico::Connect::SDK::Domain::Payment::NonSepaDirectDebitPaymentProduct705SpecificInput] payment_product705_specific_input @attr [Ingenico::Connect::SDK::Domain::Payment::NonSepaDirectDebitPaymentProduct730SpecificInput] payment_product730_specific_input @attr [String] recurring_payment_sequence_indicator @attr [true/false] requires_approval @attr [String] token @attr [true/false] tokenize

Attributes

date_collect[RW]
direct_debit_text[RW]
is_recurring[RW]
payment_product705_specific_input[RW]
payment_product730_specific_input[RW]
recurring_payment_sequence_indicator[RW]
requires_approval[RW]
token[RW]
tokenize[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_method_specific_input.rb, line 57
def from_hash(hash)
  super
  if hash.has_key? 'dateCollect'
    @date_collect = hash['dateCollect']
  end
  if hash.has_key? 'directDebitText'
    @direct_debit_text = hash['directDebitText']
  end
  if hash.has_key? 'isRecurring'
    @is_recurring = hash['isRecurring']
  end
  if hash.has_key? 'paymentProduct705SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct705SpecificInput']] unless hash['paymentProduct705SpecificInput'].is_a? Hash
    @payment_product705_specific_input = Ingenico::Connect::SDK::Domain::Payment::NonSepaDirectDebitPaymentProduct705SpecificInput.new_from_hash(hash['paymentProduct705SpecificInput'])
  end
  if hash.has_key? 'paymentProduct730SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct730SpecificInput']] unless hash['paymentProduct730SpecificInput'].is_a? Hash
    @payment_product730_specific_input = Ingenico::Connect::SDK::Domain::Payment::NonSepaDirectDebitPaymentProduct730SpecificInput.new_from_hash(hash['paymentProduct730SpecificInput'])
  end
  if hash.has_key? 'recurringPaymentSequenceIndicator'
    @recurring_payment_sequence_indicator = hash['recurringPaymentSequenceIndicator']
  end
  if hash.has_key? 'requiresApproval'
    @requires_approval = hash['requiresApproval']
  end
  if hash.has_key? 'token'
    @token = hash['token']
  end
  if hash.has_key? 'tokenize'
    @tokenize = hash['tokenize']
  end
end
to_h() click to toggle source

@return (Hash)

# File lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_method_specific_input.rb, line 43
def to_h
  hash = super
  hash['dateCollect'] = @date_collect unless @date_collect.nil?
  hash['directDebitText'] = @direct_debit_text unless @direct_debit_text.nil?
  hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
  hash['paymentProduct705SpecificInput'] = @payment_product705_specific_input.to_h unless @payment_product705_specific_input.nil?
  hash['paymentProduct730SpecificInput'] = @payment_product730_specific_input.to_h unless @payment_product730_specific_input.nil?
  hash['recurringPaymentSequenceIndicator'] = @recurring_payment_sequence_indicator unless @recurring_payment_sequence_indicator.nil?
  hash['requiresApproval'] = @requires_approval unless @requires_approval.nil?
  hash['token'] = @token unless @token.nil?
  hash['tokenize'] = @tokenize unless @tokenize.nil?
  hash
end