Class: Worldline::Connect::SDK::V1::Domain::MandateSepaDirectDebitWithoutCreditor
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::MandateSepaDirectDebitWithoutCreditor
- Defined in:
- lib/worldline/connect/sdk/v1/domain/mandate_sepa_direct_debit_without_creditor.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#bank_account_iban ⇒ Worldline::Connect::SDK::V1::Domain::BankAccountIban
The current value of bank_account_iban.
-
#customer_contract_identifier ⇒ String
The current value of customer_contract_identifier.
-
#debtor ⇒ Worldline::Connect::SDK::V1::Domain::Debtor
The current value of debtor.
-
#is_recurring ⇒ true/false
The current value of is_recurring.
-
#mandate_approval ⇒ Worldline::Connect::SDK::V1::Domain::MandateApproval
The current value of mandate_approval.
-
#pre_notification ⇒ String
The current value of pre_notification.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#bank_account_iban ⇒ Worldline::Connect::SDK::V1::Domain::BankAccountIban
Returns the current value of bank_account_iban.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/mandate_sepa_direct_debit_without_creditor.rb', line 21 def bank_account_iban @bank_account_iban end |
#customer_contract_identifier ⇒ String
Returns the current value of customer_contract_identifier.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/mandate_sepa_direct_debit_without_creditor.rb', line 21 def customer_contract_identifier @customer_contract_identifier end |
#debtor ⇒ Worldline::Connect::SDK::V1::Domain::Debtor
Returns the current value of debtor.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/mandate_sepa_direct_debit_without_creditor.rb', line 21 def debtor @debtor end |
#is_recurring ⇒ true/false
Returns the current value of is_recurring.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/mandate_sepa_direct_debit_without_creditor.rb', line 21 def is_recurring @is_recurring end |
#mandate_approval ⇒ Worldline::Connect::SDK::V1::Domain::MandateApproval
Returns the current value of mandate_approval.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/mandate_sepa_direct_debit_without_creditor.rb', line 21 def mandate_approval @mandate_approval end |
#pre_notification ⇒ String
Returns the current value of pre_notification.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/mandate_sepa_direct_debit_without_creditor.rb', line 21 def pre_notification @pre_notification end |
Instance Method Details
#from_hash(hash) ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/worldline/connect/sdk/v1/domain/mandate_sepa_direct_debit_without_creditor.rb', line 47 def from_hash(hash) super if hash.has_key? 'bankAccountIban' raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountIban']] unless hash['bankAccountIban'].is_a? Hash @bank_account_iban = Worldline::Connect::SDK::V1::Domain::BankAccountIban.new_from_hash(hash['bankAccountIban']) end if hash.has_key? 'customerContractIdentifier' @customer_contract_identifier = hash['customerContractIdentifier'] end if hash.has_key? 'debtor' raise TypeError, "value '%s' is not a Hash" % [hash['debtor']] unless hash['debtor'].is_a? Hash @debtor = Worldline::Connect::SDK::V1::Domain::Debtor.new_from_hash(hash['debtor']) end if hash.has_key? 'isRecurring' @is_recurring = hash['isRecurring'] end if hash.has_key? 'mandateApproval' raise TypeError, "value '%s' is not a Hash" % [hash['mandateApproval']] unless hash['mandateApproval'].is_a? Hash @mandate_approval = Worldline::Connect::SDK::V1::Domain::MandateApproval.new_from_hash(hash['mandateApproval']) end if hash.has_key? 'preNotification' @pre_notification = hash['preNotification'] end end |
#to_h ⇒ Hash
36 37 38 39 40 41 42 43 44 45 |
# File 'lib/worldline/connect/sdk/v1/domain/mandate_sepa_direct_debit_without_creditor.rb', line 36 def to_h hash = super hash['bankAccountIban'] = @bank_account_iban.to_h unless @bank_account_iban.nil? hash['customerContractIdentifier'] = @customer_contract_identifier unless @customer_contract_identifier.nil? hash['debtor'] = @debtor.to_h unless @debtor.nil? hash['isRecurring'] = @is_recurring unless @is_recurring.nil? hash['mandateApproval'] = @mandate_approval.to_h unless @mandate_approval.nil? hash['preNotification'] = @pre_notification unless @pre_notification.nil? hash end |