class Ingenico::Direct::SDK::Domain::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/direct/sdk/domain/payment_account_on_file.rb, line 24
def from_hash(hash)
  super
  @create_date = hash['createDate'] if hash.key? 'createDate'
  @number_of_card_on_file_creation_attempts_last24_hours = hash['numberOfCardOnFileCreationAttemptsLast24Hours'] if hash.key? 'numberOfCardOnFileCreationAttemptsLast24Hours'
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_account_on_file.rb, line 17
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