Class: OnlinePayments::SDK::Domain::PaymentLinkSpecificInput
- Inherits:
-
OnlinePayments::SDK::DataObject
- Object
- OnlinePayments::SDK::DataObject
- OnlinePayments::SDK::Domain::PaymentLinkSpecificInput
- Defined in:
- lib/onlinepayments/sdk/domain/payment_link_specific_input.rb
Instance Attribute Summary collapse
-
#description ⇒ String
The current value of description.
-
#expiration_date ⇒ String
The current value of expiration_date.
-
#recipient_name ⇒ String
The current value of recipient_name.
Instance Method Summary collapse
Methods inherited from OnlinePayments::SDK::DataObject
Instance Attribute Details
#description ⇒ String
Returns the current value of description.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/payment_link_specific_input.rb', line 12 def description @description end |
#expiration_date ⇒ String
Returns the current value of expiration_date.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/payment_link_specific_input.rb', line 12 def expiration_date @expiration_date end |
#recipient_name ⇒ String
Returns the current value of recipient_name.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/payment_link_specific_input.rb', line 12 def recipient_name @recipient_name end |
Instance Method Details
#from_hash(hash) ⇒ Object
26 27 28 29 30 31 |
# File 'lib/onlinepayments/sdk/domain/payment_link_specific_input.rb', line 26 def from_hash(hash) super @description = hash['description'] if hash.key? 'description' @expiration_date = hash['expirationDate'] if hash.key? 'expirationDate' @recipient_name = hash['recipientName'] if hash.key? 'recipientName' end |
#to_h ⇒ Hash
18 19 20 21 22 23 24 |
# File 'lib/onlinepayments/sdk/domain/payment_link_specific_input.rb', line 18 def to_h hash = super hash['description'] = @description unless @description.nil? hash['expirationDate'] = @expiration_date unless @expiration_date.nil? hash['recipientName'] = @recipient_name unless @recipient_name.nil? hash end |