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.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.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()TerminalOrderRequestincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.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.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.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- 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:
- 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 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.
-
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- 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.
-
customerOrderReference
public TerminalOrderRequest customerOrderReference(String customerOrderReference)
The merchant-defined purchase order reference.- Parameters:
customerOrderReference- The merchant-defined purchase order reference.- Returns:
- the current
TerminalOrderRequestinstance, allowing for method chaining
-
getCustomerOrderReference
public String getCustomerOrderReference()
The merchant-defined purchase order reference.- Returns:
- customerOrderReference The merchant-defined purchase order reference.
-
setCustomerOrderReference
public void setCustomerOrderReference(String customerOrderReference)
The merchant-defined purchase order reference.- Parameters:
customerOrderReference- The merchant-defined purchase order reference.
-
items
public TerminalOrderRequest items(List<OrderItem> items)
The products included in the order.- Parameters:
items- The products included in the order.- Returns:
- the current
TerminalOrderRequestinstance, allowing for method chaining
-
addItemsItem
public TerminalOrderRequest addItemsItem(OrderItem itemsItem)
-
getItems
public List<OrderItem> getItems()
The products included in the order.- Returns:
- items The products included in the order.
-
setItems
public void setItems(List<OrderItem> items)
The products included in the order.- Parameters:
items- The products included in the order.
-
orderType
public TerminalOrderRequest orderType(String orderType)
Type of order- Parameters:
orderType- Type of order- Returns:
- the current
TerminalOrderRequestinstance, allowing for method chaining
-
getOrderType
public String getOrderType()
Type of order- Returns:
- orderType Type of order
-
setOrderType
public void setOrderType(String orderType)
Type of order- Parameters:
orderType- Type of order
-
shippingLocationId
public TerminalOrderRequest shippingLocationId(String shippingLocationId)
The identification of the shipping location to use for the order.- Parameters:
shippingLocationId- The identification of the shipping location to use for the order.- 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 The identification of the shipping location to use for the order.
-
setShippingLocationId
public void setShippingLocationId(String shippingLocationId)
The identification of the shipping location to use for the order.- Parameters:
shippingLocationId- The identification of the shipping location to use for the order.
-
taxId
public TerminalOrderRequest taxId(String taxId)
The tax number of the billing entity.- Parameters:
taxId- The tax number of the billing entity.- Returns:
- the current
TerminalOrderRequestinstance, allowing for method chaining
-
getTaxId
public String getTaxId()
The tax number of the billing entity.- Returns:
- taxId The tax number of the billing entity.
-
setTaxId
public void setTaxId(String taxId)
The tax number of the billing entity.- Parameters:
taxId- The tax number of the billing entity.
-
includeNullValues
public TerminalOrderRequest includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this TerminalOrderRequest object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
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
-
-