Class: Worldline::Connect::SDK::V1::Domain::ClickToPayConfigurationVisa

Inherits:
ClickToPaySchemeConfigurationBase show all
Defined in:
lib/worldline/connect/sdk/v1/domain/click_to_pay_configuration_visa.rb

Instance Attribute Summary collapse

Attributes inherited from ClickToPaySchemeConfigurationBase

#src_dpa_id, #src_initiator_id

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#encryption_keyString

Returns the current value of encryption_key.

Returns:

  • (String)

    the current value of encryption_key



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

def encryption_key
  @encryption_key
end

#n_modulusString

Returns the current value of n_modulus.

Returns:

  • (String)

    the current value of n_modulus



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

def n_modulus
  @n_modulus
end

Instance Method Details

#from_hash(hash) ⇒ Object



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

def from_hash(hash)
  super
  if hash.has_key? 'encryptionKey'
    @encryption_key = hash['encryptionKey']
  end
  if hash.has_key? 'nModulus'
    @n_modulus = hash['nModulus']
  end
end

#to_hHash

Returns:

  • (Hash)


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

def to_h
  hash = super
  hash['encryptionKey'] = @encryption_key unless @encryption_key.nil?
  hash['nModulus'] = @n_modulus unless @n_modulus.nil?
  hash
end