REST Resource: networks.shipments

Resource: Shipment

Shipment to perform.

JSON representation
{
  "name": string,
  "sourceHub": string,
  "destinationHub": string,
  "departureTime": {
    object (DateTime)
  },
  "arrivalTime": {
    object (DateTimeRange)
  },
  "arrivalEarlinessTardinessCost": {
    object (EarlinessTardiness)
  },
  "size": [
    {
      object (ValueDimension)
    }
  ],
  "revenue": number
}
Fields
name

string

Identifier. Cannot be updated.

sourceHub

string

Required. Hub at which the shipment is made available.

destinationHub

string

Required. Hub to which the shipment must be delivered.

departureTime

object (DateTime)

Required. Departure time.

arrivalTime

object (DateTimeRange)

Required. Expected arrival time (i.e. soft constraint).

arrivalEarlinessTardinessCost

object (EarlinessTardiness)

Optional. SLAs indicate that this time may be exceeded with some penalty. (If later than the maximum, the package is no more useful.) The penalty is given by a function of the delay (in minutes).

size[]

object (ValueDimension)

Optional. Used with vehicle and hub capacities.

revenue

number

Optional. Revenue from this package (only used to compute the reward), i.e. price paid by the paying party. If unset, revenue is computed by the system (depending on whether a new line is generated for this shipment or not).

Methods

delete

Deletes a Shipment.

get

Gets the details of a Shipment.

list

Lists the Shipments.

route

Route a new shipment.