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

Inherits:
DataObject
  • Object
show all
Defined in:
lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#entity_idString

Returns the current value of entity_id.

Returns:

  • (String)

    the current value of entity_id



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

def entity_id
  @entity_id
end

#payment_end_dateString

Returns the current value of payment_end_date.

Returns:

  • (String)

    the current value of payment_end_date



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

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



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

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



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

def payment_start_date
  @payment_start_date
end

Instance Method Details

#from_hash(hash) ⇒ Object



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb', line 33

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

#to_hHash

Returns:

  • (Hash)


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

def to_h
  hash = super
  hash['entityId'] = @entity_id unless @entity_id.nil?
  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