target.apidocs.com.google.api.services.content.model.OrderShipment.html Maven / Gradle / Ivy
OrderShipment (Content API for Shopping v2.1-rev20190215-1.27.0)
com.google.api.services.content.model
Class OrderShipment
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.content.model.OrderShipment
-
public final class OrderShipment
extends com.google.api.client.json.GenericJson
Model definition for OrderShipment.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation
see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
OrderShipment()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
OrderShipment
clone()
String
getCarrier()
The carrier handling the shipment.
String
getCreationDate()
Date on which the shipment has been created, in ISO 8601 format.
String
getDeliveryDate()
Date on which the shipment has been delivered, in ISO 8601 format.
String
getId()
The id of the shipment.
List<OrderShipmentLineItemShipment>
getLineItems()
The line items that are shipped.
String
getStatus()
The status of the shipment.
String
getTrackingId()
The tracking id for the shipment.
OrderShipment
set(String fieldName,
Object value)
OrderShipment
setCarrier(String carrier)
The carrier handling the shipment.
OrderShipment
setCreationDate(String creationDate)
Date on which the shipment has been created, in ISO 8601 format.
OrderShipment
setDeliveryDate(String deliveryDate)
Date on which the shipment has been delivered, in ISO 8601 format.
OrderShipment
setId(String id)
The id of the shipment.
OrderShipment
setLineItems(List<OrderShipmentLineItemShipment> lineItems)
The line items that are shipped.
OrderShipment
setStatus(String status)
The status of the shipment.
OrderShipment
setTrackingId(String trackingId)
The tracking id for the shipment.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getCarrier
public String getCarrier()
The carrier handling the shipment.
Acceptable values for US are: - "gsx" - "ups" - "usps" - "fedex" - "dhl" - "ecourier" -
"cxt" - "google" - "ontrac" - "emsy" - "ont" - "deliv" - "dynamex" - "lasership" -
"mpx" - "uds"
Acceptable values for FR are: - "colissimo" - "chronopost"
- Returns:
- value or
null
for none
-
setCarrier
public OrderShipment setCarrier(String carrier)
The carrier handling the shipment.
Acceptable values for US are: - "gsx" - "ups" - "usps" - "fedex" - "dhl" - "ecourier" -
"cxt" - "google" - "ontrac" - "emsy" - "ont" - "deliv" - "dynamex" - "lasership" -
"mpx" - "uds"
Acceptable values for FR are: - "colissimo" - "chronopost"
- Parameters:
carrier
- carrier or null
for none
-
getCreationDate
public String getCreationDate()
Date on which the shipment has been created, in ISO 8601 format.
- Returns:
- value or
null
for none
-
setCreationDate
public OrderShipment setCreationDate(String creationDate)
Date on which the shipment has been created, in ISO 8601 format.
- Parameters:
creationDate
- creationDate or null
for none
-
getDeliveryDate
public String getDeliveryDate()
Date on which the shipment has been delivered, in ISO 8601 format. Present only if status is
delivered
- Returns:
- value or
null
for none
-
setDeliveryDate
public OrderShipment setDeliveryDate(String deliveryDate)
Date on which the shipment has been delivered, in ISO 8601 format. Present only if status is
delivered
- Parameters:
deliveryDate
- deliveryDate or null
for none
-
getId
public String getId()
The id of the shipment.
- Returns:
- value or
null
for none
-
setId
public OrderShipment setId(String id)
The id of the shipment.
- Parameters:
id
- id or null
for none
-
getLineItems
public List<OrderShipmentLineItemShipment> getLineItems()
The line items that are shipped.
- Returns:
- value or
null
for none
-
setLineItems
public OrderShipment setLineItems(List<OrderShipmentLineItemShipment> lineItems)
The line items that are shipped.
- Parameters:
lineItems
- lineItems or null
for none
-
getStatus
public String getStatus()
The status of the shipment.
- Returns:
- value or
null
for none
-
setStatus
public OrderShipment setStatus(String status)
The status of the shipment.
- Parameters:
status
- status or null
for none
-
getTrackingId
public String getTrackingId()
The tracking id for the shipment.
- Returns:
- value or
null
for none
-
setTrackingId
public OrderShipment setTrackingId(String trackingId)
The tracking id for the shipment.
- Parameters:
trackingId
- trackingId or null
for none
-
set
public OrderShipment set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public OrderShipment clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy