Class: EML::UK::Payload::Card::Activation

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

Constant Summary collapse

REQUIRED_VALUES =
T.let(
  %i[amount location.name location.country sales_channel].freeze,
  T::Array[Symbol]
)
REQUIRED_CONFIG =
T.let(%i[merchant_group].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) ⇒ Activation

Returns a new instance of Activation.



16
17
18
19
20
21
22
# File 'lib/eml/uk/payload/card/activation.rb', line 16

def initialize(payload)
  super

  @client_reference_number = T.let(nil, T.nilable(String))
  @client_tracking_id = T.let(nil, T.nilable(String))
  @location = T.let(nil, T.nilable(EML::UK::Payload::Location))
end