Package com.adyen.model.management
Class TerminalOrder
- java.lang.Object
-
- com.adyen.model.management.TerminalOrder
-
public class TerminalOrder extends Object
TerminalOrder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTerminalOrder.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BILLING_ENTITYstatic StringSERIALIZED_NAME_CUSTOMER_ORDER_REFERENCEstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_ITEMSstatic StringSERIALIZED_NAME_ORDER_DATEstatic StringSERIALIZED_NAME_SHIPPING_LOCATIONstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_TRACKING_URL
-
Constructor Summary
Constructors Constructor Description TerminalOrder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TerminalOrderaddItemsItem(OrderItem itemsItem)TerminalOrderbillingEntity(BillingEntity billingEntity)TerminalOrdercustomerOrderReference(String customerOrderReference)booleanequals(Object o)static TerminalOrderfromJson(String jsonString)Create an instance of TerminalOrder given an JSON stringBillingEntitygetBillingEntity()Get billingEntityStringgetCustomerOrderReference()The merchant-defined purchase order number.StringgetId()The unique identifier of the order.List<OrderItem>getItems()The products included in the order.StringgetOrderDate()The date and time that the order was placed, in UTC ISO 8601 format.ShippingLocationgetShippingLocation()Get shippingLocationStringgetStatus()The processing status of the order.StringgetTrackingUrl()The URL, provided by the carrier company, where the shipment can be tracked.inthashCode()TerminalOrderid(String id)TerminalOrderitems(List<OrderItem> items)TerminalOrderorderDate(String orderDate)voidsetBillingEntity(BillingEntity billingEntity)voidsetCustomerOrderReference(String customerOrderReference)voidsetId(String id)voidsetItems(List<OrderItem> items)voidsetOrderDate(String orderDate)voidsetShippingLocation(ShippingLocation shippingLocation)voidsetStatus(String status)voidsetTrackingUrl(String trackingUrl)TerminalOrdershippingLocation(ShippingLocation shippingLocation)TerminalOrderstatus(String status)StringtoJson()Convert an instance of TerminalOrder to an JSON stringStringtoString()TerminalOrdertrackingUrl(String trackingUrl)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_BILLING_ENTITY
public static final String SERIALIZED_NAME_BILLING_ENTITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CUSTOMER_ORDER_REFERENCE
public static final String SERIALIZED_NAME_CUSTOMER_ORDER_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ITEMS
public static final String SERIALIZED_NAME_ITEMS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ORDER_DATE
public static final String SERIALIZED_NAME_ORDER_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHIPPING_LOCATION
public static final String SERIALIZED_NAME_SHIPPING_LOCATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TRACKING_URL
public static final String SERIALIZED_NAME_TRACKING_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
billingEntity
public TerminalOrder billingEntity(BillingEntity billingEntity)
-
getBillingEntity
public BillingEntity getBillingEntity()
Get billingEntity- Returns:
- billingEntity
-
setBillingEntity
public void setBillingEntity(BillingEntity billingEntity)
-
customerOrderReference
public TerminalOrder customerOrderReference(String customerOrderReference)
-
getCustomerOrderReference
public String getCustomerOrderReference()
The merchant-defined purchase order number. This will be printed on the packing list.- Returns:
- customerOrderReference
-
setCustomerOrderReference
public void setCustomerOrderReference(String customerOrderReference)
-
id
public TerminalOrder id(String id)
-
getId
public String getId()
The unique identifier of the order.- Returns:
- id
-
setId
public void setId(String id)
-
items
public TerminalOrder items(List<OrderItem> items)
-
addItemsItem
public TerminalOrder addItemsItem(OrderItem itemsItem)
-
orderDate
public TerminalOrder orderDate(String orderDate)
-
getOrderDate
public String getOrderDate()
The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\".- Returns:
- orderDate
-
setOrderDate
public void setOrderDate(String orderDate)
-
shippingLocation
public TerminalOrder shippingLocation(ShippingLocation shippingLocation)
-
getShippingLocation
public ShippingLocation getShippingLocation()
Get shippingLocation- Returns:
- shippingLocation
-
setShippingLocation
public void setShippingLocation(ShippingLocation shippingLocation)
-
status
public TerminalOrder status(String status)
-
getStatus
public String getStatus()
The processing status of the order.- Returns:
- status
-
setStatus
public void setStatus(String status)
-
trackingUrl
public TerminalOrder trackingUrl(String trackingUrl)
-
getTrackingUrl
public String getTrackingUrl()
The URL, provided by the carrier company, where the shipment can be tracked.- Returns:
- trackingUrl
-
setTrackingUrl
public void setTrackingUrl(String trackingUrl)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to TerminalOrder
-
fromJson
public static TerminalOrder fromJson(String jsonString) throws IOException
Create an instance of TerminalOrder given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TerminalOrder
- Throws:
IOException- if the JSON string is invalid with respect to TerminalOrder
-
toJson
public String toJson()
Convert an instance of TerminalOrder to an JSON string- Returns:
- JSON string
-
-