Class: OnlinePayments::SDK::Domain::PaymentProduct5500SpecificOutput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from OnlinePayments::SDK::DataObject

new_from_hash

Instance Attribute Details

#payment_end_dateString

Returns the current value of payment_end_date.

Returns:

  • (String)

    the current value of payment_end_date



12
13
14
# File 'lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb', line 12

def payment_end_date
  @payment_end_date
end

#payment_referenceString

Returns the current value of payment_reference.

Returns:

  • (String)

    the current value of payment_reference



12
13
14
# File 'lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb', line 12

def payment_reference
  @payment_reference
end

#payment_start_dateString

Returns the current value of payment_start_date.

Returns:

  • (String)

    the current value of payment_start_date



12
13
14
# File 'lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb', line 12

def payment_start_date
  @payment_start_date
end

Instance Method Details

#from_hash(hash) ⇒ Object



26
27
28
29
30
31
# File 'lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb', line 26

def from_hash(hash)
  super
  @payment_end_date = hash['paymentEndDate'] if hash.key? 'paymentEndDate'
  @payment_reference = hash['paymentReference'] if hash.key? 'paymentReference'
  @payment_start_date = hash['paymentStartDate'] if hash.key? 'paymentStartDate'
end

#to_hHash

Returns:

  • (Hash)


18
19
20
21
22
23
24
# File 'lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb', line 18

def to_h
  hash = super
  hash['paymentEndDate'] = @payment_end_date unless @payment_end_date.nil?
  hash['paymentReference'] = @payment_reference unless @payment_reference.nil?
  hash['paymentStartDate'] = @payment_start_date unless @payment_start_date.nil?
  hash
end