Class: Ingenico::Connect::SDK::Domain::Token::MandateSepaDirectDebit
- Inherits:
-
MandateSepaDirectDebitWithMandateId
- Object
- Ingenico::Connect::SDK::DataObject
- MandateSepaDirectDebitWithoutCreditor
- MandateSepaDirectDebitWithMandateId
- Ingenico::Connect::SDK::Domain::Token::MandateSepaDirectDebit
- Defined in:
- lib/ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit.rb
Instance Attribute Summary collapse
-
#creditor ⇒ Ingenico::Connect::SDK::Domain::Token::Creditor
The current value of creditor.
Attributes inherited from MandateSepaDirectDebitWithMandateId
Attributes inherited from MandateSepaDirectDebitWithoutCreditor
#bank_account_iban, #customer_contract_identifier, #debtor, #is_recurring, #mandate_approval, #pre_notification
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#creditor ⇒ Ingenico::Connect::SDK::Domain::Token::Creditor
Returns the current value of creditor.
13 14 15 |
# File 'lib/ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit.rb', line 13 def creditor @creditor end |
Instance Method Details
#from_hash(hash) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit.rb', line 24 def from_hash(hash) super if hash.has_key? 'creditor' raise TypeError, "value '%s' is not a Hash" % [hash['creditor']] unless hash['creditor'].is_a? Hash @creditor = Ingenico::Connect::SDK::Domain::Token::Creditor.new_from_hash(hash['creditor']) end end |
#to_h ⇒ Hash
18 19 20 21 22 |
# File 'lib/ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit.rb', line 18 def to_h hash = super hash['creditor'] = @creditor.to_h unless @creditor.nil? hash end |