Class: OnlinePayments::SDK::Domain::PaymentLinkSpecificInput
- Inherits:
-
DataObject
- Object
- 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 ⇒ DateTime
The current value of expiration_date.
-
#recipient_name ⇒ String
The current value of recipient_name.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#description ⇒ String
Returns the current value of description.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/payment_link_specific_input.rb', line 14 def description @description end |
#expiration_date ⇒ DateTime
Returns the current value of expiration_date.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/payment_link_specific_input.rb', line 14 def expiration_date @expiration_date end |
#recipient_name ⇒ String
Returns the current value of recipient_name.
14 15 16 |
# File 'lib/onlinepayments/sdk/domain/payment_link_specific_input.rb', line 14 def recipient_name @recipient_name end |
Instance Method Details
#from_hash(hash) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/onlinepayments/sdk/domain/payment_link_specific_input.rb', line 31 def from_hash(hash) super if hash.has_key? 'description' @description = hash['description'] end if hash.has_key? 'expirationDate' @expiration_date = DateTime.parse(hash['expirationDate']) end if hash.has_key? 'recipientName' @recipient_name = hash['recipientName'] end end |
#to_h ⇒ Hash
23 24 25 26 27 28 29 |
# File 'lib/onlinepayments/sdk/domain/payment_link_specific_input.rb', line 23 def to_h hash = super hash['description'] = @description unless @description.nil? hash['expirationDate'] = @expiration_date.iso8601(3) unless @expiration_date.nil? hash['recipientName'] = @recipient_name unless @recipient_name.nil? hash end |