Sha256: 3c746209a539cecd60d56445ac0305638c6b439d9a199e0799baa8d961d10b05

Contents?: true

Size: 719 Bytes

Versions: 2

Compression:

Stored size: 719 Bytes

Contents

require "pwinty/api_models/order_shipment_carrier"
require "pwinty/api_models/order_shipment_item"
require "pwinty/api_models/order_shipment_fulfillment_location"
require "pwinty/api_models/order_tracking"

module Pwinty
  class OrderShipment < Pwinty::Base
    """https://www.prodigi.com/print-api/docs/reference/#order-object-shipment"""
    attribute? :id, Types::String.optional
    attribute? :carrier, Pwinty::OrderShipmentCarrier.optional
    attribute? :tracking, Pwinty::OrderTracking.optional
    attribute? :dispatchDate, Types::String.optional
    attribute? :items, Types::Array.of(Pwinty::OrderShipmentItem).optional
    attribute? :fulfillmentLocation, Pwinty::OrderShipmentFulfillmentLocation
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pwinty-4.0.1 lib/pwinty/api_models/order_shipment.rb
pwinty-4.0.0 lib/pwinty/api_models/order_shipment.rb