class Ingenico::Connect::SDK::Domain::Payment::SepaDirectDebitPaymentMethodSpecificInput
@attr [String] date_collect
@attr [String] direct_debit_text
@attr [true/false] is_recurring
@attr [Ingenico::Connect::SDK::Domain::Payment::SepaDirectDebitPaymentProduct771SpecificInput] payment_product771_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_product771_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
Calls superclass method
Ingenico::Connect::SDK::Domain::Definitions::AbstractPaymentMethodSpecificInput#from_hash
# File lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb, line 52 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? 'paymentProduct771SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct771SpecificInput']] unless hash['paymentProduct771SpecificInput'].is_a? Hash @payment_product771_specific_input = Ingenico::Connect::SDK::Domain::Payment::SepaDirectDebitPaymentProduct771SpecificInput.new_from_hash(hash['paymentProduct771SpecificInput']) 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)
Calls superclass method
Ingenico::Connect::SDK::Domain::Definitions::AbstractPaymentMethodSpecificInput#to_h
# File lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb, line 39 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['paymentProduct771SpecificInput'] = @payment_product771_specific_input.to_h unless @payment_product771_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