Package com.adyen.model.management
Class ReceiptOptions
- java.lang.Object
-
- com.adyen.model.management.ReceiptOptions
-
public class ReceiptOptions extends Object
ReceiptOptions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReceiptOptions.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_LOGOstatic StringSERIALIZED_NAME_QR_CODE_DATA
-
Constructor Summary
Constructors Constructor Description ReceiptOptions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ReceiptOptionsfromJson(String jsonString)Create an instance of ReceiptOptions given an JSON stringStringgetLogo()The receipt logo converted to a Base64-encoded string.StringgetQrCodeData()Data to print on the receipt as a QR code.inthashCode()ReceiptOptionslogo(String logo)ReceiptOptionsqrCodeData(String qrCodeData)voidsetLogo(String logo)voidsetQrCodeData(String qrCodeData)StringtoJson()Convert an instance of ReceiptOptions to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_LOGO
public static final String SERIALIZED_NAME_LOGO
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_QR_CODE_DATA
public static final String SERIALIZED_NAME_QR_CODE_DATA
- See Also:
- Constant Field Values
-
-
Method Detail
-
logo
public ReceiptOptions logo(String logo)
-
getLogo
public String getLogo()
The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < 256 KB, dimensions 240 (H) x 384 (W) px.- Returns:
- logo
-
setLogo
public void setLogo(String logo)
-
qrCodeData
public ReceiptOptions qrCodeData(String qrCodeData)
-
getQrCodeData
public String getQrCodeData()
Data to print on the receipt as a QR code. This can include static text and the following variables: - `${merchantreference}`: the merchant reference of the transaction. - `${pspreference}`: the PSP reference of the transaction. For example, **http://www.example.com/order/${pspreference}/${merchantreference}**.- Returns:
- qrCodeData
-
setQrCodeData
public void setQrCodeData(String qrCodeData)
-
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 ReceiptOptions
-
fromJson
public static ReceiptOptions fromJson(String jsonString) throws IOException
Create an instance of ReceiptOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ReceiptOptions
- Throws:
IOException- if the JSON string is invalid with respect to ReceiptOptions
-
toJson
public String toJson()
Convert an instance of ReceiptOptions to an JSON string- Returns:
- JSON string
-
-