Class: Worldline::Connect::SDK::V1::Domain::PaymentAccountOnFile

Inherits:
Domain::DataObject show all
Defined in:
lib/worldline/connect/sdk/v1/domain/payment_account_on_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#create_dateString

Returns the current value of create_date.

Returns:

  • (String)

    the current value of create_date



14
15
16
# File 'lib/worldline/connect/sdk/v1/domain/payment_account_on_file.rb', line 14

def create_date
  @create_date
end

#number_of_card_on_file_creation_attempts_last24_hoursInteger

Returns the current value of number_of_card_on_file_creation_attempts_last24_hours.

Returns:

  • (Integer)

    the current value of number_of_card_on_file_creation_attempts_last24_hours



14
15
16
# File 'lib/worldline/connect/sdk/v1/domain/payment_account_on_file.rb', line 14

def number_of_card_on_file_creation_attempts_last24_hours
  @number_of_card_on_file_creation_attempts_last24_hours
end

Instance Method Details

#from_hash(hash) ⇒ Object



28
29
30
31
32
33
34
35
36
# File 'lib/worldline/connect/sdk/v1/domain/payment_account_on_file.rb', line 28

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_hHash

Returns:

  • (Hash)


21
22
23
24
25
26
# File 'lib/worldline/connect/sdk/v1/domain/payment_account_on_file.rb', line 21

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