Package com.adyen.model.management
Class TerminalOrderRequest
- java.lang.Object
-
- com.adyen.model.management.TerminalOrderRequest
-
public class TerminalOrderRequest extends Object
TerminalOrderRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BILLING_ENTITY_IDstatic StringJSON_PROPERTY_CUSTOMER_ORDER_REFERENCEstatic StringJSON_PROPERTY_ITEMSstatic StringJSON_PROPERTY_ORDER_TYPEstatic StringJSON_PROPERTY_SHIPPING_LOCATION_IDstatic StringJSON_PROPERTY_TAX_ID
-
Constructor Summary
Constructors Constructor Description TerminalOrderRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TerminalOrderRequestaddItemsItem(OrderItem itemsItem)TerminalOrderRequestbillingEntityId(String billingEntityId)The identification of the billing entity to use for the order.TerminalOrderRequestcustomerOrderReference(String customerOrderReference)The merchant-defined purchase order reference.booleanequals(Object o)Return true if this TerminalOrderRequest object is equal to o.static TerminalOrderRequestfromJson(String jsonString)Create an instance of TerminalOrderRequest given an JSON stringStringgetBillingEntityId()The identification of the billing entity to use for the order.StringgetCustomerOrderReference()The merchant-defined purchase order reference.List<OrderItem>getItems()The products included in the order.StringgetOrderType()Type of orderStringgetShippingLocationId()The identification of the shipping location to use for the order.StringgetTaxId()The tax number of the billing entity.inthashCode()TerminalOrderRequestitems(List<OrderItem> items)The products included in the order.TerminalOrderRequestorderType(String orderType)Type of ordervoidsetBillingEntityId(String billingEntityId)The identification of the billing entity to use for the order.voidsetCustomerOrderReference(String customerOrderReference)The merchant-defined purchase order reference.voidsetItems(List<OrderItem> items)The products included in the order.voidsetOrderType(String orderType)Type of ordervoidsetShippingLocationId(String shippingLocationId)The identification of the shipping location to use for the order.voidsetTaxId(String taxId)The tax number of the billing entity.TerminalOrderRequestshippingLocationId(String shippingLocationId)The identification of the shipping location to use for the order.TerminalOrderRequesttaxId(String taxId)The tax number of the billing entity.StringtoJson()Convert an instance of TerminalOrderRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_BILLING_ENTITY_ID
public static final String JSON_PROPERTY_BILLING_ENTITY_ID
- 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_ITEMS
public static final String JSON_PROPERTY_ITEMS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ORDER_TYPE
public static final String JSON_PROPERTY_ORDER_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHIPPING_LOCATION_ID
public static final String JSON_PROPERTY_SHIPPING_LOCATION_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TAX_ID
public static final String JSON_PROPERTY_TAX_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
billingEntityId
public TerminalOrderRequest billingEntityId(String billingEntityId)
The identification of the billing entity to use for the order. > When ordering products in Brazil, you do not need to include the `billingEntityId` in the request.- Parameters:
billingEntityId-- Returns:
- the current
TerminalOrderRequestinstance, allowing for method chaining
-
getBillingEntityId
public String getBillingEntityId()
The identification of the billing entity to use for the order. > When ordering products in Brazil, you do not need to include the `billingEntityId` in the request.- Returns:
- billingEntityId
-
setBillingEntityId
public void setBillingEntityId(String billingEntityId)
The identification of the billing entity to use for the order. > When ordering products in Brazil, you do not need to include the `billingEntityId` in the request.- Parameters:
billingEntityId-
-
customerOrderReference
public TerminalOrderRequest customerOrderReference(String customerOrderReference)
The merchant-defined purchase order reference.- Parameters:
customerOrderReference-- Returns:
- the current
TerminalOrderRequestinstance, allowing for method chaining
-
getCustomerOrderReference
public String getCustomerOrderReference()
The merchant-defined purchase order reference.- Returns:
- customerOrderReference
-
setCustomerOrderReference
public void setCustomerOrderReference(String customerOrderReference)
The merchant-defined purchase order reference.- Parameters:
customerOrderReference-
-
items
public TerminalOrderRequest items(List<OrderItem> items)
The products included in the order.- Parameters:
items-- Returns:
- the current
TerminalOrderRequestinstance, allowing for method chaining
-
addItemsItem
public TerminalOrderRequest addItemsItem(OrderItem itemsItem)
-
setItems
public void setItems(List<OrderItem> items)
The products included in the order.- Parameters:
items-
-
orderType
public TerminalOrderRequest orderType(String orderType)
Type of order- Parameters:
orderType-- Returns:
- the current
TerminalOrderRequestinstance, allowing for method chaining
-
getOrderType
public String getOrderType()
Type of order- Returns:
- orderType
-
setOrderType
public void setOrderType(String orderType)
Type of order- Parameters:
orderType-
-
shippingLocationId
public TerminalOrderRequest shippingLocationId(String shippingLocationId)
The identification of the shipping location to use for the order.- Parameters:
shippingLocationId-- Returns:
- the current
TerminalOrderRequestinstance, allowing for method chaining
-
getShippingLocationId
public String getShippingLocationId()
The identification of the shipping location to use for the order.- Returns:
- shippingLocationId
-
setShippingLocationId
public void setShippingLocationId(String shippingLocationId)
The identification of the shipping location to use for the order.- Parameters:
shippingLocationId-
-
taxId
public TerminalOrderRequest taxId(String taxId)
The tax number of the billing entity.- Parameters:
taxId-- Returns:
- the current
TerminalOrderRequestinstance, allowing for method chaining
-
getTaxId
public String getTaxId()
The tax number of the billing entity.- Returns:
- taxId
-
setTaxId
public void setTaxId(String taxId)
The tax number of the billing entity.- Parameters:
taxId-
-
equals
public boolean equals(Object o)
Return true if this TerminalOrderRequest object is equal to o.
-
fromJson
public static TerminalOrderRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TerminalOrderRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TerminalOrderRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TerminalOrderRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TerminalOrderRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-