Package com.adyen.model.management
Class ReceiptPrinting
- java.lang.Object
-
- com.adyen.model.management.ReceiptPrinting
-
public class ReceiptPrinting extends Object
ReceiptPrinting
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReceiptPrinting.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_MERCHANT_APPROVEDstatic StringSERIALIZED_NAME_MERCHANT_CANCELLEDstatic StringSERIALIZED_NAME_MERCHANT_CAPTURE_APPROVEDstatic StringSERIALIZED_NAME_MERCHANT_CAPTURE_REFUSEDstatic StringSERIALIZED_NAME_MERCHANT_REFUND_APPROVEDstatic StringSERIALIZED_NAME_MERCHANT_REFUND_REFUSEDstatic StringSERIALIZED_NAME_MERCHANT_REFUSEDstatic StringSERIALIZED_NAME_MERCHANT_VOIDstatic StringSERIALIZED_NAME_SHOPPER_APPROVEDstatic StringSERIALIZED_NAME_SHOPPER_CANCELLEDstatic StringSERIALIZED_NAME_SHOPPER_CAPTURE_APPROVEDstatic StringSERIALIZED_NAME_SHOPPER_CAPTURE_REFUSEDstatic StringSERIALIZED_NAME_SHOPPER_REFUND_APPROVEDstatic StringSERIALIZED_NAME_SHOPPER_REFUND_REFUSEDstatic StringSERIALIZED_NAME_SHOPPER_REFUSEDstatic StringSERIALIZED_NAME_SHOPPER_VOID
-
Constructor Summary
Constructors Constructor Description ReceiptPrinting()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ReceiptPrintingfromJson(String jsonString)Create an instance of ReceiptPrinting given an JSON stringBooleangetMerchantApproved()Print a merchant receipt when the payment is approved.BooleangetMerchantCancelled()Print a merchant receipt when the transaction is cancelled.BooleangetMerchantCaptureApproved()Print a merchant receipt when capturing the payment is approved.BooleangetMerchantCaptureRefused()Print a merchant receipt when capturing the payment is refused.BooleangetMerchantRefundApproved()Print a merchant receipt when the refund is approved.BooleangetMerchantRefundRefused()Print a merchant receipt when the refund is refused.BooleangetMerchantRefused()Print a merchant receipt when the payment is refused.BooleangetMerchantVoid()Print a merchant receipt when a previous transaction is voided.BooleangetShopperApproved()Print a shopper receipt when the payment is approved.BooleangetShopperCancelled()Print a shopper receipt when the transaction is cancelled.BooleangetShopperCaptureApproved()Print a shopper receipt when capturing the payment is approved.BooleangetShopperCaptureRefused()Print a shopper receipt when capturing the payment is refused.BooleangetShopperRefundApproved()Print a shopper receipt when the refund is approved.BooleangetShopperRefundRefused()Print a shopper receipt when the refund is refused.BooleangetShopperRefused()Print a shopper receipt when the payment is refused.BooleangetShopperVoid()Print a shopper receipt when a previous transaction is voided.inthashCode()ReceiptPrintingmerchantApproved(Boolean merchantApproved)ReceiptPrintingmerchantCancelled(Boolean merchantCancelled)ReceiptPrintingmerchantCaptureApproved(Boolean merchantCaptureApproved)ReceiptPrintingmerchantCaptureRefused(Boolean merchantCaptureRefused)ReceiptPrintingmerchantRefundApproved(Boolean merchantRefundApproved)ReceiptPrintingmerchantRefundRefused(Boolean merchantRefundRefused)ReceiptPrintingmerchantRefused(Boolean merchantRefused)ReceiptPrintingmerchantVoid(Boolean merchantVoid)voidsetMerchantApproved(Boolean merchantApproved)voidsetMerchantCancelled(Boolean merchantCancelled)voidsetMerchantCaptureApproved(Boolean merchantCaptureApproved)voidsetMerchantCaptureRefused(Boolean merchantCaptureRefused)voidsetMerchantRefundApproved(Boolean merchantRefundApproved)voidsetMerchantRefundRefused(Boolean merchantRefundRefused)voidsetMerchantRefused(Boolean merchantRefused)voidsetMerchantVoid(Boolean merchantVoid)voidsetShopperApproved(Boolean shopperApproved)voidsetShopperCancelled(Boolean shopperCancelled)voidsetShopperCaptureApproved(Boolean shopperCaptureApproved)voidsetShopperCaptureRefused(Boolean shopperCaptureRefused)voidsetShopperRefundApproved(Boolean shopperRefundApproved)voidsetShopperRefundRefused(Boolean shopperRefundRefused)voidsetShopperRefused(Boolean shopperRefused)voidsetShopperVoid(Boolean shopperVoid)ReceiptPrintingshopperApproved(Boolean shopperApproved)ReceiptPrintingshopperCancelled(Boolean shopperCancelled)ReceiptPrintingshopperCaptureApproved(Boolean shopperCaptureApproved)ReceiptPrintingshopperCaptureRefused(Boolean shopperCaptureRefused)ReceiptPrintingshopperRefundApproved(Boolean shopperRefundApproved)ReceiptPrintingshopperRefundRefused(Boolean shopperRefundRefused)ReceiptPrintingshopperRefused(Boolean shopperRefused)ReceiptPrintingshopperVoid(Boolean shopperVoid)StringtoJson()Convert an instance of ReceiptPrinting 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_MERCHANT_APPROVED
public static final String SERIALIZED_NAME_MERCHANT_APPROVED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_CANCELLED
public static final String SERIALIZED_NAME_MERCHANT_CANCELLED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_CAPTURE_APPROVED
public static final String SERIALIZED_NAME_MERCHANT_CAPTURE_APPROVED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_CAPTURE_REFUSED
public static final String SERIALIZED_NAME_MERCHANT_CAPTURE_REFUSED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_REFUND_APPROVED
public static final String SERIALIZED_NAME_MERCHANT_REFUND_APPROVED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_REFUND_REFUSED
public static final String SERIALIZED_NAME_MERCHANT_REFUND_REFUSED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_REFUSED
public static final String SERIALIZED_NAME_MERCHANT_REFUSED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_VOID
public static final String SERIALIZED_NAME_MERCHANT_VOID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_APPROVED
public static final String SERIALIZED_NAME_SHOPPER_APPROVED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_CANCELLED
public static final String SERIALIZED_NAME_SHOPPER_CANCELLED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_CAPTURE_APPROVED
public static final String SERIALIZED_NAME_SHOPPER_CAPTURE_APPROVED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_CAPTURE_REFUSED
public static final String SERIALIZED_NAME_SHOPPER_CAPTURE_REFUSED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_REFUND_APPROVED
public static final String SERIALIZED_NAME_SHOPPER_REFUND_APPROVED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_REFUND_REFUSED
public static final String SERIALIZED_NAME_SHOPPER_REFUND_REFUSED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_REFUSED
public static final String SERIALIZED_NAME_SHOPPER_REFUSED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_VOID
public static final String SERIALIZED_NAME_SHOPPER_VOID
- See Also:
- Constant Field Values
-
-
Method Detail
-
merchantApproved
public ReceiptPrinting merchantApproved(Boolean merchantApproved)
-
getMerchantApproved
public Boolean getMerchantApproved()
Print a merchant receipt when the payment is approved.- Returns:
- merchantApproved
-
setMerchantApproved
public void setMerchantApproved(Boolean merchantApproved)
-
merchantCancelled
public ReceiptPrinting merchantCancelled(Boolean merchantCancelled)
-
getMerchantCancelled
public Boolean getMerchantCancelled()
Print a merchant receipt when the transaction is cancelled.- Returns:
- merchantCancelled
-
setMerchantCancelled
public void setMerchantCancelled(Boolean merchantCancelled)
-
merchantCaptureApproved
public ReceiptPrinting merchantCaptureApproved(Boolean merchantCaptureApproved)
-
getMerchantCaptureApproved
public Boolean getMerchantCaptureApproved()
Print a merchant receipt when capturing the payment is approved.- Returns:
- merchantCaptureApproved
-
setMerchantCaptureApproved
public void setMerchantCaptureApproved(Boolean merchantCaptureApproved)
-
merchantCaptureRefused
public ReceiptPrinting merchantCaptureRefused(Boolean merchantCaptureRefused)
-
getMerchantCaptureRefused
public Boolean getMerchantCaptureRefused()
Print a merchant receipt when capturing the payment is refused.- Returns:
- merchantCaptureRefused
-
setMerchantCaptureRefused
public void setMerchantCaptureRefused(Boolean merchantCaptureRefused)
-
merchantRefundApproved
public ReceiptPrinting merchantRefundApproved(Boolean merchantRefundApproved)
-
getMerchantRefundApproved
public Boolean getMerchantRefundApproved()
Print a merchant receipt when the refund is approved.- Returns:
- merchantRefundApproved
-
setMerchantRefundApproved
public void setMerchantRefundApproved(Boolean merchantRefundApproved)
-
merchantRefundRefused
public ReceiptPrinting merchantRefundRefused(Boolean merchantRefundRefused)
-
getMerchantRefundRefused
public Boolean getMerchantRefundRefused()
Print a merchant receipt when the refund is refused.- Returns:
- merchantRefundRefused
-
setMerchantRefundRefused
public void setMerchantRefundRefused(Boolean merchantRefundRefused)
-
merchantRefused
public ReceiptPrinting merchantRefused(Boolean merchantRefused)
-
getMerchantRefused
public Boolean getMerchantRefused()
Print a merchant receipt when the payment is refused.- Returns:
- merchantRefused
-
setMerchantRefused
public void setMerchantRefused(Boolean merchantRefused)
-
merchantVoid
public ReceiptPrinting merchantVoid(Boolean merchantVoid)
-
getMerchantVoid
public Boolean getMerchantVoid()
Print a merchant receipt when a previous transaction is voided.- Returns:
- merchantVoid
-
setMerchantVoid
public void setMerchantVoid(Boolean merchantVoid)
-
shopperApproved
public ReceiptPrinting shopperApproved(Boolean shopperApproved)
-
getShopperApproved
public Boolean getShopperApproved()
Print a shopper receipt when the payment is approved.- Returns:
- shopperApproved
-
setShopperApproved
public void setShopperApproved(Boolean shopperApproved)
-
shopperCancelled
public ReceiptPrinting shopperCancelled(Boolean shopperCancelled)
-
getShopperCancelled
public Boolean getShopperCancelled()
Print a shopper receipt when the transaction is cancelled.- Returns:
- shopperCancelled
-
setShopperCancelled
public void setShopperCancelled(Boolean shopperCancelled)
-
shopperCaptureApproved
public ReceiptPrinting shopperCaptureApproved(Boolean shopperCaptureApproved)
-
getShopperCaptureApproved
public Boolean getShopperCaptureApproved()
Print a shopper receipt when capturing the payment is approved.- Returns:
- shopperCaptureApproved
-
setShopperCaptureApproved
public void setShopperCaptureApproved(Boolean shopperCaptureApproved)
-
shopperCaptureRefused
public ReceiptPrinting shopperCaptureRefused(Boolean shopperCaptureRefused)
-
getShopperCaptureRefused
public Boolean getShopperCaptureRefused()
Print a shopper receipt when capturing the payment is refused.- Returns:
- shopperCaptureRefused
-
setShopperCaptureRefused
public void setShopperCaptureRefused(Boolean shopperCaptureRefused)
-
shopperRefundApproved
public ReceiptPrinting shopperRefundApproved(Boolean shopperRefundApproved)
-
getShopperRefundApproved
public Boolean getShopperRefundApproved()
Print a shopper receipt when the refund is approved.- Returns:
- shopperRefundApproved
-
setShopperRefundApproved
public void setShopperRefundApproved(Boolean shopperRefundApproved)
-
shopperRefundRefused
public ReceiptPrinting shopperRefundRefused(Boolean shopperRefundRefused)
-
getShopperRefundRefused
public Boolean getShopperRefundRefused()
Print a shopper receipt when the refund is refused.- Returns:
- shopperRefundRefused
-
setShopperRefundRefused
public void setShopperRefundRefused(Boolean shopperRefundRefused)
-
shopperRefused
public ReceiptPrinting shopperRefused(Boolean shopperRefused)
-
getShopperRefused
public Boolean getShopperRefused()
Print a shopper receipt when the payment is refused.- Returns:
- shopperRefused
-
setShopperRefused
public void setShopperRefused(Boolean shopperRefused)
-
shopperVoid
public ReceiptPrinting shopperVoid(Boolean shopperVoid)
-
getShopperVoid
public Boolean getShopperVoid()
Print a shopper receipt when a previous transaction is voided.- Returns:
- shopperVoid
-
setShopperVoid
public void setShopperVoid(Boolean shopperVoid)
-
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 ReceiptPrinting
-
fromJson
public static ReceiptPrinting fromJson(String jsonString) throws IOException
Create an instance of ReceiptPrinting given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ReceiptPrinting
- Throws:
IOException- if the JSON string is invalid with respect to ReceiptPrinting
-
toJson
public String toJson()
Convert an instance of ReceiptPrinting to an JSON string- Returns:
- JSON string
-
-