Interface Shipments
- All Known Implementing Classes:
ShipmentsImpl
Combines the shipment order APIs at /colocations/v2/orders/shipments and
/v1/orders/shipment. Shipments are scheduled and updated as orders; the resulting order
is tracked through Orders and OrderHistory, and a shipment is cancelled via
Orders.cancel(String, String).
order(ShipmentOrderRequest) and update(String, ShipmentUpdateRequest)
return the generated order id (parsed from the Location header). The typed
inbound/outbound/pending-storage submissions (orderInbound(InboundShipmentOrderRequest),
orderOutbound(OutboundShipmentOrderRequest),
orderPendingStorage(PendingStorageOrderRequest)) return the order number(s) in the
response body. The IBX locations where the current user may place shipment orders are available
via listLocations().
-
Method Summary
Modifier and TypeMethodDescriptionList<? extends ShipmentLocation> Lists the IBX locations, cages and cabinets where the current user may place shipment orders.List<? extends ShipmentLocation> listLocations(Boolean detail, String ibxs, String cages) Lists the IBX locations, cages and cabinets where the current user may place shipment orders, optionally filtered.order(ShipmentOrderRequest request) Schedules an inbound or outbound shipment.orderInbound(InboundShipmentOrderRequest request) Submits an inbound shipment order.Submits an outbound shipment order.List<? extends PendingStorageOrderResponse> Submits a pending inbound shipment (pending storage) order.update(String orderId, ShipmentUpdateRequest request) Updates a pending shipment order.
-
Method Details
-
order
Schedules an inbound or outbound shipment.Maps to
POST /colocations/v2/orders/shipments(Schedule inbound or outbound shipment).- Parameters:
request- the shipment order request body- Returns:
- the order submission result carrying the generated order id
-
update
Updates a pending shipment order.Maps to
PATCH /colocations/v2/orders/shipments/{orderId}(Update inbound or outbound shipment).- Parameters:
orderId- the identifier of the shipment orderrequest- the update request body- Returns:
- the order submission result carrying the order id
-
orderInbound
Submits an inbound shipment order.Maps to
POST /v1/orders/shipment/inbound(shipment-inbound).- Parameters:
request- the inbound shipment order request body- Returns:
- the order submission result carrying the generated order number
-
orderOutbound
Submits an outbound shipment order.Maps to
POST /v1/orders/shipment/outbound(outbound_shipment_submit).- Parameters:
request- the outbound shipment order request body- Returns:
- the order submission result carrying the generated order number
-
orderPendingStorage
Submits a pending inbound shipment (pending storage) order.Maps to
POST /v1/orders/shipment/pendingStorage(shipment-pending).- Parameters:
request- the pending storage order request body- Returns:
- one submission result per stored shipment submitted
-
listLocations
List<? extends ShipmentLocation> listLocations()Lists the IBX locations, cages and cabinets where the current user may place shipment orders.- Returns:
- the list of permitted locations
-
listLocations
Lists the IBX locations, cages and cabinets where the current user may place shipment orders, optionally filtered.Maps to
GET /v1/orders/shipment/locations(getLocation).- Parameters:
detail- whentrue, returns detailed permission with cages and cabinets, ornullfor the defaultibxs- a comma-separated list of IBX codes to filter by (e.g.AM1,AM2), ornullcages- a comma-separated list of cage ids to filter by (e.g.AM1:02:002MC1), ornull- Returns:
- the list of permitted locations
-