Class: OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificOutput
- Inherits:
-
OnlinePayments::SDK::DataObject
- Object
- OnlinePayments::SDK::DataObject
- OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificOutput
- Defined in:
- lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_output.rb
Instance Attribute Summary collapse
-
#fraud_results ⇒ OnlinePayments::SDK::Domain::FraudResults
The current value of fraud_results.
-
#payment_product771_specific_output ⇒ OnlinePayments::SDK::Domain::PaymentProduct771SpecificOutput
The current value of payment_product771_specific_output.
-
#payment_product_id ⇒ Integer
The current value of payment_product_id.
Instance Method Summary collapse
Methods inherited from OnlinePayments::SDK::DataObject
Instance Attribute Details
#fraud_results ⇒ OnlinePayments::SDK::Domain::FraudResults
Returns the current value of fraud_results.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_output.rb', line 14 def fraud_results @fraud_results end |
#payment_product771_specific_output ⇒ OnlinePayments::SDK::Domain::PaymentProduct771SpecificOutput
Returns the current value of payment_product771_specific_output.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_output.rb', line 14 def payment_product771_specific_output @payment_product771_specific_output end |
#payment_product_id ⇒ Integer
Returns the current value of payment_product_id.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_output.rb', line 14 def payment_product_id @payment_product_id end |
Instance Method Details
#from_hash(hash) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_output.rb', line 28 def from_hash(hash) super if hash.key? 'fraudResults' raise TypeError, "value '%s' is not a Hash" % [hash['fraudResults']] unless hash['fraudResults'].is_a? Hash @fraud_results = OnlinePayments::SDK::Domain::FraudResults.new_from_hash(hash['fraudResults']) end if hash.key? 'paymentProduct771SpecificOutput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct771SpecificOutput']] unless hash['paymentProduct771SpecificOutput'].is_a? Hash @payment_product771_specific_output = OnlinePayments::SDK::Domain::PaymentProduct771SpecificOutput.new_from_hash(hash['paymentProduct771SpecificOutput']) end @payment_product_id = hash['paymentProductId'] if hash.key? 'paymentProductId' end |
#to_h ⇒ Hash
20 21 22 23 24 25 26 |
# File 'lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_output.rb', line 20 def to_h hash = super hash['fraudResults'] = @fraud_results.to_h if @fraud_results hash['paymentProduct771SpecificOutput'] = @payment_product771_specific_output.to_h if @payment_product771_specific_output hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil? hash end |