Class: Dinie::Events::CustomerKycUpdatedData

Inherits:
Internal::Model show all
Defined in:
lib/dinie/generated/events/customer_kyc_updated.rb,
sig/dinie/generated/events/customer_kyc_updated.rbs

Constant Summary

Constants inherited from Internal::Model

Internal::Model::REDACTED_ATTRIBUTES

Instance Attribute Summary collapse

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

Instance Attribute Details

#external_id ⇒ String? (readonly)

Returns the value of attribute external_id.

Returns:

  • (String, nil)


7
8
9
# File 'sig/dinie/generated/events/customer_kyc_updated.rbs', line 7

def external_id
  @external_id
end

#id ⇒ customer_id (readonly)

Returns the value of attribute id.

Returns:

  • (customer_id)


8
9
10
# File 'sig/dinie/generated/events/customer_kyc_updated.rbs', line 8

def id
  @id
end

#kyc ⇒ Array[Kyc::Requirement] (readonly)

Returns the value of attribute kyc.

Returns:



9
10
11
# File 'sig/dinie/generated/events/customer_kyc_updated.rbs', line 9

def kyc
  @kyc
end

#status ⇒ customer_status (readonly)

Returns the value of attribute status.

Returns:

  • (customer_status)


10
11
12
# File 'sig/dinie/generated/events/customer_kyc_updated.rbs', line 10

def status
  @status
end

Class Method Details

.deserialize(raw) ⇒ CustomerKycUpdatedData

Parameters:

  • raw (Hash[Symbol, untyped])

Returns:



12
13
14
15
16
17
18
19
# File 'lib/dinie/generated/events/customer_kyc_updated.rb', line 12

def self.deserialize(raw)
  new(
    external_id: raw[:external_id],
    id: raw[:id],
    kyc: raw[:kyc].map { |requirement| Dinie.deserialize_kyc_requirement(requirement) },
    status: raw[:status]
  )
end