Class: Ingenico::Direct::SDK::Domain::PaymentProduct5500SpecificOutput

Inherits:
Ingenico::Direct::SDK::DataObject show all
Defined in:
lib/ingenico/direct/sdk/domain/payment_product5500_specific_output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ingenico::Direct::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



13
14
15
# File 'lib/ingenico/direct/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/ingenico/direct/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/ingenico/direct/sdk/domain/payment_product5500_specific_output.rb', line 13

def payment_start_date
  @payment_start_date
end

Instance Method Details

#from_hash(hash) ⇒ Object



27
28
29
30
31
32
# File 'lib/ingenico/direct/sdk/domain/payment_product5500_specific_output.rb', line 27

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)


19
20
21
22
23
24
25
# File 'lib/ingenico/direct/sdk/domain/payment_product5500_specific_output.rb', line 19

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