Class: Increase::Models::PhysicalCard::Shipment::Tracking::Update

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/physical_card.rb

Defined Under Namespace

Modules: Category

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(carrier_estimated_delivery_at: , category: , city: , created_at: , postal_code: , state: ) ⇒ Object

Some parameter documentations has been truncated, see Increase::Models::PhysicalCard::Shipment::Tracking::Update for more details.

Parameters:



320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
# File 'lib/increase/models/physical_card.rb', line 320

class Update < Increase::Internal::Type::BaseModel
  # @!attribute carrier_estimated_delivery_at
  #   The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time when the
  #   carrier expects the card to be delivered.
  #
  #   @return [Time, nil]
  required :carrier_estimated_delivery_at, Time, nil?: true

  # @!attribute category
  #   The type of tracking event.
  #
  #   @return [Symbol, Increase::Models::PhysicalCard::Shipment::Tracking::Update::Category]
  required :category, enum: -> { Increase::PhysicalCard::Shipment::Tracking::Update::Category }

  # @!attribute city
  #   The city where the event took place.
  #
  #   @return [String, nil]
  required :city, String, nil?: true

  # @!attribute created_at
  #   The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
  #   the tracking event took place.
  #
  #   @return [Time]
  required :created_at, Time

  # @!attribute postal_code
  #   The postal code where the event took place.
  #
  #   @return [String, nil]
  required :postal_code, String, nil?: true

  # @!attribute state
  #   The state where the event took place.
  #
  #   @return [String, nil]
  required :state, String, nil?: true

  # @!method initialize(carrier_estimated_delivery_at:, category:, city:, created_at:, postal_code:, state:)
  #   Some parameter documentations has been truncated, see
  #   {Increase::Models::PhysicalCard::Shipment::Tracking::Update} for more details.
  #
  #   @param carrier_estimated_delivery_at [Time, nil] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time when the ca
  #
  #   @param category [Symbol, Increase::Models::PhysicalCard::Shipment::Tracking::Update::Category] The type of tracking event.
  #
  #   @param city [String, nil] The city where the event took place.
  #
  #   @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
  #
  #   @param postal_code [String, nil] The postal code where the event took place.
  #
  #   @param state [String, nil] The state where the event took place.

  # The type of tracking event.
  #
  # @see Increase::Models::PhysicalCard::Shipment::Tracking::Update#category
  module Category
    extend Increase::Internal::Type::Enum

    # The physical card is in transit.
    IN_TRANSIT = :in_transit

    # The physical card has been processed for delivery.
    PROCESSED_FOR_DELIVERY = :processed_for_delivery

    # The physical card has been delivered.
    DELIVERED = :delivered

    # Delivery failed and the physical card was returned to sender.
    RETURNED_TO_SENDER = :returned_to_sender

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#carrier_estimated_delivery_atTime?

The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) date and time when the carrier expects the card to be delivered.

Returns:

  • (Time, nil)


326
# File 'lib/increase/models/physical_card.rb', line 326

required :carrier_estimated_delivery_at, Time, nil?: true

#categorySymbol, Increase::Models::PhysicalCard::Shipment::Tracking::Update::Category

The type of tracking event.



332
# File 'lib/increase/models/physical_card.rb', line 332

required :category, enum: -> { Increase::PhysicalCard::Shipment::Tracking::Update::Category }

#cityString?

The city where the event took place.

Returns:

  • (String, nil)


338
# File 'lib/increase/models/physical_card.rb', line 338

required :city, String, nil?: true

#created_atTime

The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) date and time at which the tracking event took place.

Returns:

  • (Time)


345
# File 'lib/increase/models/physical_card.rb', line 345

required :created_at, Time

#postal_codeString?

The postal code where the event took place.

Returns:

  • (String, nil)


351
# File 'lib/increase/models/physical_card.rb', line 351

required :postal_code, String, nil?: true

#stateString?

The state where the event took place.

Returns:

  • (String, nil)


357
# File 'lib/increase/models/physical_card.rb', line 357

required :state, String, nil?: true