Class: TerminalShop::Models::OrderAPI::Tracking

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/terminal_shop/models/order.rb

Overview

See Also:

Defined Under Namespace

Modules: Status

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, meta_info, new_coerce_state, 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(number: nil, service: nil, status: nil, status_details: nil, status_updated_at: nil, url: nil) ⇒ Object

Tracking information of the order.

Parameters:

  • number (String) (defaults to: nil)

    Tracking number of the order.

  • service (String) (defaults to: nil)

    Shipping service of the order.

  • status (Symbol, TerminalShop::Models::OrderAPI::Tracking::Status) (defaults to: nil)

    Current tracking status of the shipment.

  • status_details (String) (defaults to: nil)

    Additional details about the tracking status.

  • status_updated_at (String) (defaults to: nil)

    When the tracking status was last updated.

  • url (String) (defaults to: nil)

    Tracking URL of the order.



# File 'lib/terminal_shop/models/order.rb', line 244

Instance Attribute Details

#numberString?

Tracking number of the order.

Returns:

  • (String, nil)


212
# File 'lib/terminal_shop/models/order.rb', line 212

optional :number, String

#serviceString?

Shipping service of the order.

Returns:

  • (String, nil)


218
# File 'lib/terminal_shop/models/order.rb', line 218

optional :service, String

#statusSymbol, ...

Current tracking status of the shipment.



224
# File 'lib/terminal_shop/models/order.rb', line 224

optional :status, enum: -> { TerminalShop::OrderAPI::Tracking::Status }

#status_detailsString?

Additional details about the tracking status.

Returns:

  • (String, nil)


230
# File 'lib/terminal_shop/models/order.rb', line 230

optional :status_details, String, api_name: :statusDetails

#status_updated_atString?

When the tracking status was last updated.

Returns:

  • (String, nil)


236
# File 'lib/terminal_shop/models/order.rb', line 236

optional :status_updated_at, String, api_name: :statusUpdatedAt

#urlString?

Tracking URL of the order.

Returns:

  • (String, nil)


242
# File 'lib/terminal_shop/models/order.rb', line 242

optional :url, String