Sha256: 4d3ac29c28789b3bdd8df921d9fdfa5032ff1b115fa62c1aaf89d1f3e8109730

Contents?: true

Size: 593 Bytes

Versions: 4

Compression:

Stored size: 593 Bytes

Contents

# frozen_string_literal: true

require 'we_ship_client/entities/base'

module WeShipClient
  module Entities
    module Responses
      # A single tracking item returned by `Interactors::GetTracking`.
      class TrackingItem < Base
        attribute :location, Types::Strict::String.optional
        attribute :message, Types::Strict::String
        attribute :status_type, Types::Strict::String
        attribute :tracking_item_date, Types::Strict::String.optional.default(nil)
        attribute :tracking_item_id, Types::Coercible::Integer.optional.default(nil)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
we_ship_client-1.2.0 lib/we_ship_client/entities/responses/tracking_item.rb
we_ship_client-1.1.1 lib/we_ship_client/entities/responses/tracking_item.rb
we_ship_client-1.1.0 lib/we_ship_client/entities/responses/tracking_item.rb
we_ship_client-1.0.0 lib/we_ship_client/entities/responses/tracking_item.rb