class Ingenico::Direct::SDK::Domain::PaymentProduct5500SpecificOutput

@attr [String] payment_end_date @attr [String] payment_reference @attr [String] payment_start_date

Attributes

payment_end_date[RW]
payment_reference[RW]
payment_start_date[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# 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_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Direct::SDK::DataObject#to_h
# 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