Class: Dinie::ProofOfAddressRequirement

Inherits:
KycRequirement show all
Defined in:
lib/dinie/generated/types/kyc.rb

Constant Summary

Constants inherited from Internal::Model

Internal::Model::REDACTED_ATTRIBUTES

Class Method Summary collapse

Methods inherited from Internal::Model

#==, attribute, attributes, #deconstruct_keys, #hash, inherited, #initialize, #inspect, #to_h

Constructor Details

This class inherits a constructor from Dinie::Internal::Model

Class Method Details

.deserialize(raw) ⇒ Object



322
323
324
325
326
327
328
329
330
331
# File 'lib/dinie/generated/types/kyc.rb', line 322

def self.deserialize(raw)
  new(
    label: raw[:label],
    mandatory: raw[:mandatory],
    requirement_id: raw[:requirement_id],
    requirement_type: raw[:requirement_type],
    subject: KycSubject.deserialize(raw[:subject]),
    submitted: raw[:submitted] && ProofOfAddressSubmitted.deserialize(raw[:submitted])
  )
end