Sha256: 0fe92a2ce5b7fe340007640e8a738005d439e9c0d50648c6a74b295bc2a4f380

Contents?: true

Size: 401 Bytes

Versions: 4

Compression:

Stored size: 401 Bytes

Contents

# frozen_string_literal: true

require 'we_ship_client/entities/base'
require 'we_ship_client/entities/order_item'

module WeShipClient
  module Entities
    # Just a container for the order items list.
    # Note the singular "orderItem" name that may be confusing.
    class OrderItems < Base
      attribute :orderItem, Types::Strict::Array.of(OrderItem).constrained(min_size: 1)
    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_items.rb
we_ship_client-1.1.1 lib/we_ship_client/entities/order_items.rb
we_ship_client-1.1.0 lib/we_ship_client/entities/order_items.rb
we_ship_client-1.0.0 lib/we_ship_client/entities/order_items.rb