Class: Worldline::Connect::SDK::V1::Domain::SepaDirectDebitPaymentProduct771SpecificInput
- Inherits:
-
AbstractSepaDirectDebitPaymentProduct771SpecificInput
- Object
- Domain::DataObject
- AbstractSepaDirectDebitPaymentProduct771SpecificInput
- Worldline::Connect::SDK::V1::Domain::SepaDirectDebitPaymentProduct771SpecificInput
- Defined in:
- lib/worldline/connect/sdk/v1/domain/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 ⇒ Worldline::Connect::SDK::V1::Domain::CreateMandateWithReturnUrl
The current value of mandate.
Attributes inherited from AbstractSepaDirectDebitPaymentProduct771SpecificInput
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#existing_unique_mandate_reference ⇒ String
Returns the current value of existing_unique_mandate_reference.
15 16 17 |
# File 'lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_product771_specific_input.rb', line 15 def existing_unique_mandate_reference @existing_unique_mandate_reference end |
#mandate ⇒ Worldline::Connect::SDK::V1::Domain::CreateMandateWithReturnUrl
Returns the current value of mandate.
15 16 17 |
# File 'lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_product771_specific_input.rb', line 15 def mandate @mandate end |
Instance Method Details
#from_hash(hash) ⇒ Object
29 30 31 32 33 34 35 36 37 38 |
# File 'lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_product771_specific_input.rb', line 29 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 = Worldline::Connect::SDK::V1::Domain::CreateMandateWithReturnUrl.new_from_hash(hash['mandate']) end end |
#to_h ⇒ Hash
22 23 24 25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_product771_specific_input.rb', line 22 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 |