Class: OnlinePayments::SDK::Domain::PaymentProduct3209SpecificInput
- Inherits:
-
OnlinePayments::SDK::DataObject
- Object
- OnlinePayments::SDK::DataObject
- OnlinePayments::SDK::Domain::PaymentProduct3209SpecificInput
- Defined in:
- lib/onlinepayments/sdk/domain/payment_product3209_specific_input.rb
Instance Attribute Summary collapse
-
#merchant_finance_code ⇒ String
The current value of merchant_finance_code.
Instance Method Summary collapse
Methods inherited from OnlinePayments::SDK::DataObject
Instance Attribute Details
#merchant_finance_code ⇒ String
Returns the current value of merchant_finance_code.
10 11 12 |
# File 'lib/onlinepayments/sdk/domain/payment_product3209_specific_input.rb', line 10 def merchant_finance_code @merchant_finance_code end |
Instance Method Details
#from_hash(hash) ⇒ Object
20 21 22 23 |
# File 'lib/onlinepayments/sdk/domain/payment_product3209_specific_input.rb', line 20 def from_hash(hash) super @merchant_finance_code = hash['merchantFinanceCode'] if hash.key? 'merchantFinanceCode' end |
#to_h ⇒ Hash
14 15 16 17 18 |
# File 'lib/onlinepayments/sdk/domain/payment_product3209_specific_input.rb', line 14 def to_h hash = super hash['merchantFinanceCode'] = @merchant_finance_code unless @merchant_finance_code.nil? hash end |