Sha256: 4314f9deb9802ba02481b0854b016dafff3d3ce2ede09b35c5c8a4706516130a

Contents?: true

Size: 620 Bytes

Versions: 4

Compression:

Stored size: 620 Bytes

Contents

# frozen_string_literal: true

require 'we_ship_client/entities/base'
require 'we_ship_client/entities/address'
require 'we_ship_client/entities/order_items'

module WeShipClient
  module Entities
    # A single order with all the details.
    class Order < Base
      attribute :orderNo, Types::Strict::String
      attribute :orderDate, Types::Strict::String
      attribute :shipMethod, Types::Strict::String
      attribute :fulfillmentLocation, Types::Strict::String
      attribute? :billToAddress, Address.optional
      attribute :shipToAddress, Address
      attribute :orderItems, OrderItems
    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/order.rb
we_ship_client-1.1.1 lib/we_ship_client/entities/order.rb
we_ship_client-1.1.0 lib/we_ship_client/entities/order.rb
we_ship_client-1.0.0 lib/we_ship_client/entities/order.rb