Class: OnlinePayments::SDK::Domain::RedirectPaymentProduct5412SpecificInput
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::RedirectPaymentProduct5412SpecificInput
- Defined in:
- lib/onlinepayments/sdk/domain/redirect_payment_product5412_specific_input.rb
Instance Attribute Summary collapse
-
#adjustable_amount ⇒ true/false
The current value of adjustable_amount.
-
#beneficiary_id ⇒ String
The current value of beneficiary_id.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#adjustable_amount ⇒ true/false
Returns the current value of adjustable_amount.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5412_specific_input.rb', line 11 def adjustable_amount @adjustable_amount end |
#beneficiary_id ⇒ String
Returns the current value of beneficiary_id.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5412_specific_input.rb', line 11 def beneficiary_id @beneficiary_id end |
Instance Method Details
#from_hash(hash) ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5412_specific_input.rb', line 25 def from_hash(hash) super if hash.has_key? 'adjustableAmount' @adjustable_amount = hash['adjustableAmount'] end if hash.has_key? 'beneficiaryId' @beneficiary_id = hash['beneficiaryId'] end end |
#to_h ⇒ Hash
18 19 20 21 22 23 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product5412_specific_input.rb', line 18 def to_h hash = super hash['adjustableAmount'] = @adjustable_amount unless @adjustable_amount.nil? hash['beneficiaryId'] = @beneficiary_id unless @beneficiary_id.nil? hash end |