Class: EML::UK::Payload::Card::Register

Inherits:
EML::UK::Payload show all
Includes:
ISO
Defined in:
lib/eml/uk/payload/card/register.rb

Constant Summary collapse

REQUIRED_VALUES =
T.let(
  %i[first_name last_name address1 city country email].freeze,
  T::Array[Symbol]
)

Constants inherited from Payload

Payload::ENDPOINT_CLASS_TYPE

Instance Method Summary collapse

Methods inherited from EML::UK::Payload

convert

Methods inherited from Payload

convert, #to_h

Constructor Details

#initialize(payload) ⇒ Register

Returns a new instance of Register.



18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/eml/uk/payload/card/register.rb', line 18

def initialize(payload)
  super

  @first_name = T.let(nil, T.nilable(String))
  @last_name = T.let(nil, T.nilable(String))
  @address1 = T.let(nil, T.nilable(String))
  @address2 = T.let(nil, T.nilable(String))
  @city = T.let(nil, T.nilable(String))
  @dob = T.let(nil, T.nilable(T.any(Date, String, Time)))
  @email = T.let(nil, T.nilable(String))
  @phone = T.let(nil, T.nilable(String))
end