Class: OnlinePayments::SDK::Domain::PaymentLinkSpecificInput

Inherits:
OnlinePayments::SDK::DataObject show all
Defined in:
lib/onlinepayments/sdk/domain/payment_link_specific_input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from OnlinePayments::SDK::DataObject

new_from_hash

Instance Attribute Details

#descriptionString

Returns the current value of description.

Returns:

  • (String)

    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_dateString

Returns the current value of expiration_date.

Returns:

  • (String)

    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_nameString

Returns the current value of recipient_name.

Returns:

  • (String)

    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_hHash

Returns:

  • (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