Class LevelTwoThree


  • public class LevelTwoThree
    extends Object
    LevelTwoThree
    • Constructor Summary

      Constructors 
      Constructor Description
      LevelTwoThree()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      LevelTwoThree addItemDetailLinesItem​(ItemDetailLine itemDetailLinesItem)  
      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.
      LevelTwoThree destination​(Destination destination)
      destination
      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
      boolean equals​(Object o)
      Return true if this LevelTwoThree object is equal to o.
      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
      static LevelTwoThree fromJson​(String jsonString)
      Create an instance of LevelTwoThree given an JSON string
      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.
      Destination getDestination()
      Get destination
      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
      Map<String,​Object> getExplicitNulls()
      Returns a map of properties to be merged into the JSON payload as explicit null values.
      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
      List<ItemDetailLine> getItemDetailLines()
      The list of item detail lines.
      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
      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.
      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.
      int hashCode()  
      LevelTwoThree includeNullValues​(boolean includeNullValues)
      Configures whether null values are explicitly serialized in the JSON payload.
      boolean isIncludeNullValues()
      Returns whether null values are explicitly serialized in the JSON payload.
      LevelTwoThree itemDetailLines​(List<ItemDetailLine> itemDetailLines)
      The list of item detail lines.
      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
      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.
      void setDestination​(Destination destination)
      destination
      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
      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
      void setIncludeNullValues​(boolean includeNullValues)
      Sets whether null values should be explicitly serialized in the JSON payload.
      void setItemDetailLines​(List<ItemDetailLine> itemDetailLines)
      The list of item detail lines.
      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
      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.
      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.
      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.
      String toJson()
      Convert an instance of LevelTwoThree to an JSON string
      String toString()  
      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.
    • Constructor Detail

      • LevelTwoThree

        public LevelTwoThree()
    • 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 LevelTwoThree instance, 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 LevelTwoThree instance, 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 LevelTwoThree instance, 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 LevelTwoThree instance, 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 LevelTwoThree instance, allowing for method chaining
      • 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 LevelTwoThree instance, 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 LevelTwoThree instance, 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 LevelTwoThree instance, 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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