Package com.adyen.model.management
Class CardholderReceipt
- java.lang.Object
-
- com.adyen.model.management.CardholderReceipt
-
public class CardholderReceipt extends Object
CardholderReceipt
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCardholderReceipt.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_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)static CardholderReceiptfromJson(String jsonString)Create an instance of CardholderReceipt given an JSON stringStringgetHeaderForAuthorizedReceipt()A custom header to show on the shopper receipt for an authorised transaction.inthashCode()CardholderReceiptheaderForAuthorizedReceipt(String headerForAuthorizedReceipt)voidsetHeaderForAuthorizedReceipt(String headerForAuthorizedReceipt)StringtoJson()Convert an instance of CardholderReceipt to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
headerForAuthorizedReceipt
public CardholderReceipt headerForAuthorizedReceipt(String headerForAuthorizedReceipt)
-
getHeaderForAuthorizedReceipt
public String getHeaderForAuthorizedReceipt()
A custom header to show on the shopper receipt for an authorised transaction. Allows one or two comma-separated header lines, and blank lines. For example, `header,header,filler`- Returns:
- headerForAuthorizedReceipt
-
setHeaderForAuthorizedReceipt
public void setHeaderForAuthorizedReceipt(String headerForAuthorizedReceipt)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to CardholderReceipt
-
fromJson
public static CardholderReceipt fromJson(String jsonString) throws IOException
Create an instance of CardholderReceipt given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CardholderReceipt
- Throws:
IOException- if the JSON string is invalid with respect to CardholderReceipt
-
toJson
public String toJson()
Convert an instance of CardholderReceipt to an JSON string- Returns:
- JSON string
-
-