class Ingenico::Connect::SDK::Domain::Payment::PaymentAccountOnFile

@attr [String] create_date @attr [Integer] number_of_card_on_file_creation_attempts_last24_hours

Attributes

create_date[RW]
number_of_card_on_file_creation_attempts_last24_hours[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/payment/payment_account_on_file.rb, line 27
def from_hash(hash)
  super
  if hash.has_key? 'createDate'
    @create_date = hash['createDate']
  end
  if hash.has_key? 'numberOfCardOnFileCreationAttemptsLast24Hours'
    @number_of_card_on_file_creation_attempts_last24_hours = hash['numberOfCardOnFileCreationAttemptsLast24Hours']
  end
end
to_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/payment/payment_account_on_file.rb, line 20
def to_h
  hash = super
  hash['createDate'] = @create_date unless @create_date.nil?
  hash['numberOfCardOnFileCreationAttemptsLast24Hours'] = @number_of_card_on_file_creation_attempts_last24_hours unless @number_of_card_on_file_creation_attempts_last24_hours.nil?
  hash
end