Class: Ingenico::Connect::SDK::Domain::Payment::SepaDirectDebitPaymentProduct771SpecificInput
- Inherits:
-
AbstractSepaDirectDebitPaymentProduct771SpecificInput
- Object
- Ingenico::Connect::SDK::DataObject
- AbstractSepaDirectDebitPaymentProduct771SpecificInput
- Ingenico::Connect::SDK::Domain::Payment::SepaDirectDebitPaymentProduct771SpecificInput
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input.rb
Instance Attribute Summary collapse
-
#existing_unique_mandate_reference ⇒ String
The current value of existing_unique_mandate_reference.
-
#mandate ⇒ Ingenico::Connect::SDK::Domain::Mandates::CreateMandateWithReturnUrl
The current value of mandate.
Attributes inherited from AbstractSepaDirectDebitPaymentProduct771SpecificInput
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#existing_unique_mandate_reference ⇒ String
Returns the current value of existing_unique_mandate_reference.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input.rb', line 14 def existing_unique_mandate_reference @existing_unique_mandate_reference end |
#mandate ⇒ Ingenico::Connect::SDK::Domain::Mandates::CreateMandateWithReturnUrl
Returns the current value of mandate.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input.rb', line 14 def mandate @mandate end |
Instance Method Details
#from_hash(hash) ⇒ Object
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input.rb', line 28 def from_hash(hash) super if hash.has_key? 'existingUniqueMandateReference' @existing_unique_mandate_reference = hash['existingUniqueMandateReference'] end if hash.has_key? 'mandate' raise TypeError, "value '%s' is not a Hash" % [hash['mandate']] unless hash['mandate'].is_a? Hash @mandate = Ingenico::Connect::SDK::Domain::Mandates::CreateMandateWithReturnUrl.new_from_hash(hash['mandate']) end end |
#to_h ⇒ Hash
21 22 23 24 25 26 |
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input.rb', line 21 def to_h hash = super hash['existingUniqueMandateReference'] = @existing_unique_mandate_reference unless @existing_unique_mandate_reference.nil? hash['mandate'] = @mandate.to_h unless @mandate.nil? hash end |