Package com.adyen.model.management
Class CardholderReceipt
- java.lang.Object
-
- com.adyen.model.management.CardholderReceipt
-
public class CardholderReceipt extends Object
CardholderReceipt
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT
-
Constructor Summary
Constructors Constructor Description CardholderReceipt()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this CardholderReceipt object is equal to o.static CardholderReceiptfromJson(String jsonString)Create an instance of CardholderReceipt given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetHeaderForAuthorizedReceipt()The structure of the header to show on the shopper receipt.inthashCode()CardholderReceiptheaderForAuthorizedReceipt(String headerForAuthorizedReceipt)The structure of the header to show on the shopper receipt.CardholderReceiptincludeNullValues(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.voidsetHeaderForAuthorizedReceipt(String headerForAuthorizedReceipt)The structure of the header to show on the shopper receipt.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.StringtoJson()Convert an instance of CardholderReceipt to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT
public static final String JSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT
- See Also:
- Constant Field Values
-
-
Method Detail
-
headerForAuthorizedReceipt
public CardholderReceipt headerForAuthorizedReceipt(String headerForAuthorizedReceipt)
The structure of the header to show on the shopper receipt. You can define the order of one or two header lines and blank lines. For example, **header1,header2,filler**. The text of the header lines is defined in the Customer Area under **In-person payments** > **Terminal settings** > **Receipts** in the **Receipt lines** block.- Parameters:
headerForAuthorizedReceipt- The structure of the header to show on the shopper receipt. You can define the order of one or two header lines and blank lines. For example, **header1,header2,filler**. The text of the header lines is defined in the Customer Area under **In-person payments** > **Terminal settings** > **Receipts** in the **Receipt lines** block.- Returns:
- the current
CardholderReceiptinstance, allowing for method chaining
-
getHeaderForAuthorizedReceipt
public String getHeaderForAuthorizedReceipt()
The structure of the header to show on the shopper receipt. You can define the order of one or two header lines and blank lines. For example, **header1,header2,filler**. The text of the header lines is defined in the Customer Area under **In-person payments** > **Terminal settings** > **Receipts** in the **Receipt lines** block.- Returns:
- headerForAuthorizedReceipt The structure of the header to show on the shopper receipt. You can define the order of one or two header lines and blank lines. For example, **header1,header2,filler**. The text of the header lines is defined in the Customer Area under **In-person payments** > **Terminal settings** > **Receipts** in the **Receipt lines** block.
-
setHeaderForAuthorizedReceipt
public void setHeaderForAuthorizedReceipt(String headerForAuthorizedReceipt)
The structure of the header to show on the shopper receipt. You can define the order of one or two header lines and blank lines. For example, **header1,header2,filler**. The text of the header lines is defined in the Customer Area under **In-person payments** > **Terminal settings** > **Receipts** in the **Receipt lines** block.- Parameters:
headerForAuthorizedReceipt- The structure of the header to show on the shopper receipt. You can define the order of one or two header lines and blank lines. For example, **header1,header2,filler**. The text of the header lines is defined in the Customer Area under **In-person payments** > **Terminal settings** > **Receipts** in the **Receipt lines** block.
-
includeNullValues
public CardholderReceipt 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 CardholderReceipt 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 CardholderReceipt fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CardholderReceipt given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CardholderReceipt
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CardholderReceipt
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CardholderReceipt to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-