Package com.adyen.model.management
Class TerminalOrder
- java.lang.Object
-
- com.adyen.model.management.TerminalOrder
-
public class TerminalOrder extends Object
TerminalOrder
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BILLING_ENTITYstatic StringJSON_PROPERTY_CUSTOMER_ORDER_REFERENCEstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_ITEMSstatic StringJSON_PROPERTY_ORDER_DATEstatic StringJSON_PROPERTY_SHIPPING_LOCATIONstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_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)billingEntityTerminalOrdercustomerOrderReference(String customerOrderReference)The merchant-defined purchase order number.booleanequals(Object o)Return true if this TerminalOrder object is equal to o.static TerminalOrderfromJson(String jsonString)Create an instance of TerminalOrder given an JSON stringBillingEntitygetBillingEntity()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()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)The unique identifier of the order.TerminalOrderitems(List<OrderItem> items)The products included in the order.TerminalOrderorderDate(String orderDate)The date and time that the order was placed, in UTC ISO 8601 format.voidsetBillingEntity(BillingEntity billingEntity)billingEntityvoidsetCustomerOrderReference(String customerOrderReference)The merchant-defined purchase order number.voidsetId(String id)The unique identifier of the order.voidsetItems(List<OrderItem> items)The products included in the order.voidsetOrderDate(String orderDate)The date and time that the order was placed, in UTC ISO 8601 format.voidsetShippingLocation(ShippingLocation shippingLocation)shippingLocationvoidsetStatus(String status)The processing status of the order.voidsetTrackingUrl(String trackingUrl)The URL, provided by the carrier company, where the shipment can be tracked.TerminalOrdershippingLocation(ShippingLocation shippingLocation)shippingLocationTerminalOrderstatus(String status)The processing status of the order.StringtoJson()Convert an instance of TerminalOrder to an JSON stringStringtoString()TerminalOrdertrackingUrl(String trackingUrl)The URL, provided by the carrier company, where the shipment can be tracked.
-
-
-
Field Detail
-
JSON_PROPERTY_BILLING_ENTITY
public static final String JSON_PROPERTY_BILLING_ENTITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CUSTOMER_ORDER_REFERENCE
public static final String JSON_PROPERTY_CUSTOMER_ORDER_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ITEMS
public static final String JSON_PROPERTY_ITEMS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ORDER_DATE
public static final String JSON_PROPERTY_ORDER_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHIPPING_LOCATION
public static final String JSON_PROPERTY_SHIPPING_LOCATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRACKING_URL
public static final String JSON_PROPERTY_TRACKING_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
billingEntity
public TerminalOrder billingEntity(BillingEntity billingEntity)
billingEntity- Parameters:
billingEntity-- Returns:
- the current
TerminalOrderinstance, allowing for method chaining
-
getBillingEntity
public BillingEntity getBillingEntity()
billingEntity- Returns:
- billingEntity
-
setBillingEntity
public void setBillingEntity(BillingEntity billingEntity)
billingEntity- Parameters:
billingEntity-
-
customerOrderReference
public TerminalOrder customerOrderReference(String customerOrderReference)
The merchant-defined purchase order number. This will be printed on the packing list.- Parameters:
customerOrderReference-- Returns:
- the current
TerminalOrderinstance, allowing for method chaining
-
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)
The merchant-defined purchase order number. This will be printed on the packing list.- Parameters:
customerOrderReference-
-
id
public TerminalOrder id(String id)
The unique identifier of the order.- Parameters:
id-- Returns:
- the current
TerminalOrderinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the order.- Returns:
- id
-
setId
public void setId(String id)
The unique identifier of the order.- Parameters:
id-
-
items
public TerminalOrder items(List<OrderItem> items)
The products included in the order.- Parameters:
items-- Returns:
- the current
TerminalOrderinstance, allowing for method chaining
-
addItemsItem
public TerminalOrder addItemsItem(OrderItem itemsItem)
-
setItems
public void setItems(List<OrderItem> items)
The products included in the order.- Parameters:
items-
-
orderDate
public TerminalOrder orderDate(String orderDate)
The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\".- Parameters:
orderDate-- Returns:
- the current
TerminalOrderinstance, allowing for method chaining
-
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)
The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\".- Parameters:
orderDate-
-
shippingLocation
public TerminalOrder shippingLocation(ShippingLocation shippingLocation)
shippingLocation- Parameters:
shippingLocation-- Returns:
- the current
TerminalOrderinstance, allowing for method chaining
-
getShippingLocation
public ShippingLocation getShippingLocation()
shippingLocation- Returns:
- shippingLocation
-
setShippingLocation
public void setShippingLocation(ShippingLocation shippingLocation)
shippingLocation- Parameters:
shippingLocation-
-
status
public TerminalOrder status(String status)
The processing status of the order.- Parameters:
status-- Returns:
- the current
TerminalOrderinstance, allowing for method chaining
-
getStatus
public String getStatus()
The processing status of the order.- Returns:
- status
-
setStatus
public void setStatus(String status)
The processing status of the order.- Parameters:
status-
-
trackingUrl
public TerminalOrder trackingUrl(String trackingUrl)
The URL, provided by the carrier company, where the shipment can be tracked.- Parameters:
trackingUrl-- Returns:
- the current
TerminalOrderinstance, allowing for method chaining
-
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)
The URL, provided by the carrier company, where the shipment can be tracked.- Parameters:
trackingUrl-
-
equals
public boolean equals(Object o)
Return true if this TerminalOrder object is equal to o.
-
fromJson
public static TerminalOrder fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TerminalOrder given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TerminalOrder
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TerminalOrder
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TerminalOrder to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-