Package com.adyen.model.checkout
Class LevelTwoThree
- java.lang.Object
-
- com.adyen.model.checkout.LevelTwoThree
-
public class LevelTwoThree extends Object
LevelTwoThree
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CUSTOMER_REFERENCE_NUMBERstatic StringJSON_PROPERTY_DESTINATIONstatic StringJSON_PROPERTY_DUTY_AMOUNTstatic StringJSON_PROPERTY_FREIGHT_AMOUNTstatic StringJSON_PROPERTY_ITEM_DETAIL_LINESstatic StringJSON_PROPERTY_ORDER_DATEstatic StringJSON_PROPERTY_SHIP_FROM_POSTAL_CODEstatic StringJSON_PROPERTY_TOTAL_TAX_AMOUNT
-
Constructor Summary
Constructors Constructor Description LevelTwoThree()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LevelTwoThreeaddItemDetailLinesItem(ItemDetailLine itemDetailLinesItem)LevelTwoThreecustomerReferenceNumber(String customerReferenceNumber)The reference number to identify the customer and their order. * Format: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros.LevelTwoThreedestination(Destination destination)destinationLevelTwoThreedutyAmount(Long dutyAmount)The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000booleanequals(Object o)Return true if this LevelTwoThree object is equal to o.LevelTwoThreefreightAmount(Long freightAmount)The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000static LevelTwoThreefromJson(String jsonString)Create an instance of LevelTwoThree given an JSON stringStringgetCustomerReferenceNumber()The reference number to identify the customer and their order. * Format: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros.DestinationgetDestination()Get destinationLonggetDutyAmount()The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.LonggetFreightAmount()The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000List<ItemDetailLine>getItemDetailLines()The list of item detail lines.LocalDategetOrderDate()The date of the order. * Min Length: 10 characters * Max Length: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-ddStringgetShipFromPostalCode()The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * For the US, it must be in five or nine digits format.LonggetTotalTaxAmount()The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * For L2 data: must not be all zeroes. * For L3 data: can be zero.inthashCode()LevelTwoThreeincludeNullValues(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.LevelTwoThreeitemDetailLines(List<ItemDetailLine> itemDetailLines)The list of item detail lines.LevelTwoThreeorderDate(LocalDate orderDate)The date of the order. * Min Length: 10 characters * Max Length: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-ddvoidsetCustomerReferenceNumber(String customerReferenceNumber)The reference number to identify the customer and their order. * Format: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros.voidsetDestination(Destination destination)destinationvoidsetDutyAmount(Long dutyAmount)The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000voidsetFreightAmount(Long freightAmount)The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetItemDetailLines(List<ItemDetailLine> itemDetailLines)The list of item detail lines.voidsetOrderDate(LocalDate orderDate)The date of the order. * Min Length: 10 characters * Max Length: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-ddvoidsetShipFromPostalCode(String shipFromPostalCode)The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * For the US, it must be in five or nine digits format.voidsetTotalTaxAmount(Long totalTaxAmount)The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * For L2 data: must not be all zeroes. * For L3 data: can be zero.LevelTwoThreeshipFromPostalCode(String shipFromPostalCode)The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * For the US, it must be in five or nine digits format.StringtoJson()Convert an instance of LevelTwoThree to an JSON stringStringtoString()LevelTwoThreetotalTaxAmount(Long totalTaxAmount)The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * For L2 data: must not be all zeroes. * For L3 data: can be zero.
-
-
-
Field Detail
-
JSON_PROPERTY_CUSTOMER_REFERENCE_NUMBER
public static final String JSON_PROPERTY_CUSTOMER_REFERENCE_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESTINATION
public static final String JSON_PROPERTY_DESTINATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DUTY_AMOUNT
public static final String JSON_PROPERTY_DUTY_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FREIGHT_AMOUNT
public static final String JSON_PROPERTY_FREIGHT_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ITEM_DETAIL_LINES
public static final String JSON_PROPERTY_ITEM_DETAIL_LINES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ORDER_DATE
public static final String JSON_PROPERTY_ORDER_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHIP_FROM_POSTAL_CODE
public static final String JSON_PROPERTY_SHIP_FROM_POSTAL_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOTAL_TAX_AMOUNT
public static final String JSON_PROPERTY_TOTAL_TAX_AMOUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
customerReferenceNumber
public LevelTwoThree customerReferenceNumber(String customerReferenceNumber)
The reference number to identify the customer and their order. * Format: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros.- Parameters:
customerReferenceNumber- The reference number to identify the customer and their order. * Format: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros.- Returns:
- the current
LevelTwoThreeinstance, allowing for method chaining
-
getCustomerReferenceNumber
public String getCustomerReferenceNumber()
The reference number to identify the customer and their order. * Format: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros.- Returns:
- customerReferenceNumber The reference number to identify the customer and their order. * Format: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros.
-
setCustomerReferenceNumber
public void setCustomerReferenceNumber(String customerReferenceNumber)
The reference number to identify the customer and their order. * Format: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros.- Parameters:
customerReferenceNumber- The reference number to identify the customer and their order. * Format: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros.
-
destination
public LevelTwoThree destination(Destination destination)
destination- Parameters:
destination-- Returns:
- the current
LevelTwoThreeinstance, allowing for method chaining
-
getDestination
public Destination getDestination()
Get destination- Returns:
- destination
-
setDestination
public void setDestination(Destination destination)
destination- Parameters:
destination-
-
dutyAmount
public LevelTwoThree dutyAmount(Long dutyAmount)
The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000- Parameters:
dutyAmount- The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000- Returns:
- the current
LevelTwoThreeinstance, allowing for method chaining
-
getDutyAmount
public Long getDutyAmount()
The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000- Returns:
- dutyAmount The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000
-
setDutyAmount
public void setDutyAmount(Long dutyAmount)
The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000- Parameters:
dutyAmount- The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000
-
freightAmount
public LevelTwoThree freightAmount(Long freightAmount)
The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000- Parameters:
freightAmount- The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000- Returns:
- the current
LevelTwoThreeinstance, allowing for method chaining
-
getFreightAmount
public Long getFreightAmount()
The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000- Returns:
- freightAmount The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000
-
setFreightAmount
public void setFreightAmount(Long freightAmount)
The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000- Parameters:
freightAmount- The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000
-
itemDetailLines
public LevelTwoThree itemDetailLines(List<ItemDetailLine> itemDetailLines)
The list of item detail lines.- Parameters:
itemDetailLines- The list of item detail lines.- Returns:
- the current
LevelTwoThreeinstance, allowing for method chaining
-
addItemDetailLinesItem
public LevelTwoThree addItemDetailLinesItem(ItemDetailLine itemDetailLinesItem)
-
getItemDetailLines
public List<ItemDetailLine> getItemDetailLines()
The list of item detail lines.- Returns:
- itemDetailLines The list of item detail lines.
-
setItemDetailLines
public void setItemDetailLines(List<ItemDetailLine> itemDetailLines)
The list of item detail lines.- Parameters:
itemDetailLines- The list of item detail lines.
-
orderDate
public LevelTwoThree orderDate(LocalDate orderDate)
The date of the order. * Min Length: 10 characters * Max Length: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd- Parameters:
orderDate- The date of the order. * Min Length: 10 characters * Max Length: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd- Returns:
- the current
LevelTwoThreeinstance, allowing for method chaining
-
getOrderDate
public LocalDate getOrderDate()
The date of the order. * Min Length: 10 characters * Max Length: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd- Returns:
- orderDate The date of the order. * Min Length: 10 characters * Max Length: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd
-
setOrderDate
public void setOrderDate(LocalDate orderDate)
The date of the order. * Min Length: 10 characters * Max Length: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd- Parameters:
orderDate- The date of the order. * Min Length: 10 characters * Max Length: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd
-
shipFromPostalCode
public LevelTwoThree shipFromPostalCode(String shipFromPostalCode)
The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5.- Parameters:
shipFromPostalCode- The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5.- Returns:
- the current
LevelTwoThreeinstance, allowing for method chaining
-
getShipFromPostalCode
public String getShipFromPostalCode()
The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5.- Returns:
- shipFromPostalCode The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5.
-
setShipFromPostalCode
public void setShipFromPostalCode(String shipFromPostalCode)
The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5.- Parameters:
shipFromPostalCode- The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5.
-
totalTaxAmount
public LevelTwoThree totalTaxAmount(Long totalTaxAmount)
The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * For L2 data: must not be all zeroes. * For L3 data: can be zero.- Parameters:
totalTaxAmount- The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * For L2 data: must not be all zeroes. * For L3 data: can be zero.- Returns:
- the current
LevelTwoThreeinstance, allowing for method chaining
-
getTotalTaxAmount
public Long getTotalTaxAmount()
The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * For L2 data: must not be all zeroes. * For L3 data: can be zero.- Returns:
- totalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * For L2 data: must not be all zeroes. * For L3 data: can be zero.
-
setTotalTaxAmount
public void setTotalTaxAmount(Long totalTaxAmount)
The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * For L2 data: must not be all zeroes. * For L3 data: can be zero.- Parameters:
totalTaxAmount- The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * For L2 data: must not be all zeroes. * For L3 data: can be zero.
-
includeNullValues
public LevelTwoThree 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 LevelTwoThree 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 LevelTwoThree fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of LevelTwoThree given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LevelTwoThree
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to LevelTwoThree
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of LevelTwoThree to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-