Class: Worldline::Acquiring::SDK::V1::Domain::PinEncryptionData

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#pin_encryption_type ⇒ String

Possible values are: AES_UKPT, DUKPT, ZPK. Read-only.

Returns:

  • (String) —

    the current value of pin_encryption_type



12
13
14
# File 'lib/worldline/acquiring/sdk/v1/domain/pin_encryption_data.rb', line 12

def pin_encryption_type
  @pin_encryption_type
end

Instance Method Details

#from_hash(hash) ⇒ Object



25
26
27
28
29
30
# File 'lib/worldline/acquiring/sdk/v1/domain/pin_encryption_data.rb', line 25

def from_hash(hash)
  super
  if hash.has_key? 'pinEncryptionType'
    @pin_encryption_type = hash['pinEncryptionType']
  end
end

#to_h ⇒ Hash

Returns:

  • (Hash)


19
20
21
22
23
# File 'lib/worldline/acquiring/sdk/v1/domain/pin_encryption_data.rb', line 19

def to_h
  hash = super
  hash['pinEncryptionType'] = pin_encryption_type unless pin_encryption_type.nil?
  hash
end