class Ingenico::Connect::SDK::Domain::Token::TokenNonSepaDirectDebitPaymentProduct705SpecificData
@attr [String] authorisation_id
@attr [Ingenico::Connect::SDK::Domain::Definitions::BankAccountBban] bank_account_bban
Attributes
bank_account_bban[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/token/token_non_sepa_direct_debit_payment_product705_specific_data.rb, line 28 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 end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/token/token_non_sepa_direct_debit_payment_product705_specific_data.rb, line 21 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 end