class Ingenico::Connect::SDK::Domain::Payment::NonSepaDirectDebitPaymentProduct705SpecificInput
@attr [String] authorisation_id
@attr [Ingenico::Connect::SDK::Domain::Definitions::BankAccountBban] bank_account_bban
@attr [String] transaction_type
Attributes
bank_account_bban[RW]
transaction_type[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::DataObject#from_hash
# File lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_product705_specific_input.rb, line 32 def from_hash(hash) super if hash.has_key? 'authorisationId' @authorisation_id = hash['authorisationId'] end if hash.has_key? 'bankAccountBban' raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountBban']] unless hash['bankAccountBban'].is_a? Hash @bank_account_bban = Ingenico::Connect::SDK::Domain::Definitions::BankAccountBban.new_from_hash(hash['bankAccountBban']) end if hash.has_key? 'transactionType' @transaction_type = hash['transactionType'] 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/payment/non_sepa_direct_debit_payment_product705_specific_input.rb, line 24 def to_h hash = super hash['authorisationId'] = @authorisation_id unless @authorisation_id.nil? hash['bankAccountBban'] = @bank_account_bban.to_h unless @bank_account_bban.nil? hash['transactionType'] = @transaction_type unless @transaction_type.nil? hash end