Class: Worldline::Connect::SDK::V1::Domain::ClickToPayConfigurationVisa
- Inherits:
-
ClickToPaySchemeConfigurationBase
- Object
- Domain::DataObject
- ClickToPaySchemeConfigurationBase
- Worldline::Connect::SDK::V1::Domain::ClickToPayConfigurationVisa
- Defined in:
- lib/worldline/connect/sdk/v1/domain/click_to_pay_configuration_visa.rb
Instance Attribute Summary collapse
-
#encryption_key ⇒ String
The current value of encryption_key.
-
#n_modulus ⇒ String
The current value of n_modulus.
Attributes inherited from ClickToPaySchemeConfigurationBase
#src_dpa_id, #src_initiator_id
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#encryption_key ⇒ String
Returns 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_modulus ⇒ String
Returns 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_h ⇒ 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 |