# frozen_string_literal: true

# This file is generated. Do not edit.

require "structure"

module Peddler
  module Types
    module VendorDirectFulfillmentShipping20211228
      # Details about a shipment.
      ShipmentDetails = Structure.new do
        # @return [String] The shipment status.
        attribute(:shipment_status, String, from: "shipmentStatus")

        # @return [String] The date of the shipment's departure from vendor's location. Vendors send ASNs within 30
        # minutes of departure from their warehouse/distribution center or six hours prior to the appointment time at
        # the Amazon destination warehouse. The shipped date mentioned in the shipment confirmation cannot be in the
        # future.
        attribute(:shipped_date, String, from: "shippedDate")

        # @return [String] The date on which the shipment is expected to reach the buyer's warehouse. The date is
        # estimated based on the average transit time between the ship-from location and the destination. Usually, the
        # exact appointment time is unknown when creating the shipment confirmation and is later provided by the buyer.
        attribute?(:estimated_delivery_date, String, from: "estimatedDeliveryDate")

        # @return [:boolean] Provide the priority of the shipment.
        attribute?(:priority_shipment, :boolean, from: "isPriorityShipment")

        # @return [String] The vendor order number is a unique identifier generated by a vendor for their reference.
        attribute?(:vendor_order_number, String, from: "vendorOrderNumber")
      end
    end
  end
end
