Class: Worldline::Acquiring::SDK::V1::Domain::SubsequentCardOnFileData

Inherits:
Domain::DataObject
  • Object
show all
Defined in:
lib/worldline/acquiring/sdk/v1/domain/subsequent_card_on_file_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#card_on_file_initiatorString

Returns the current value of card_on_file_initiator.

Returns:

  • (String)

    the current value of card_on_file_initiator



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

def card_on_file_initiator
  @card_on_file_initiator
end

#initial_scheme_transaction_idString

Returns the current value of initial_scheme_transaction_id.

Returns:

  • (String)

    the current value of initial_scheme_transaction_id



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

def initial_scheme_transaction_id
  @initial_scheme_transaction_id
end

#transaction_typeString

Returns the current value of transaction_type.

Returns:

  • (String)

    the current value of transaction_type



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

def transaction_type
  @transaction_type
end

Instance Method Details

#from_hash(hash) ⇒ Object



31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/worldline/acquiring/sdk/v1/domain/subsequent_card_on_file_data.rb', line 31

def from_hash(hash)
  super
  if hash.has_key? 'cardOnFileInitiator'
    @card_on_file_initiator = hash['cardOnFileInitiator']
  end
  if hash.has_key? 'initialSchemeTransactionId'
    @initial_scheme_transaction_id = hash['initialSchemeTransactionId']
  end
  if hash.has_key? 'transactionType'
    @transaction_type = hash['transactionType']
  end
end

#to_hHash

Returns:

  • (Hash)


23
24
25
26
27
28
29
# File 'lib/worldline/acquiring/sdk/v1/domain/subsequent_card_on_file_data.rb', line 23

def to_h
  hash = super
  hash['cardOnFileInitiator'] = @card_on_file_initiator unless @card_on_file_initiator.nil?
  hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
  hash['transactionType'] = @transaction_type unless @transaction_type.nil?
  hash
end