Class PaymentFailureNotificationContent
- java.lang.Object
-
- com.adyen.model.marketpaywebhooks.PaymentFailureNotificationContent
-
public class PaymentFailureNotificationContent extends Object
PaymentFailureNotificationContent
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ERROR_FIELDSstatic StringJSON_PROPERTY_ERROR_MESSAGEstatic StringJSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCEstatic StringJSON_PROPERTY_MODIFICATION_PSP_REFERENCEstatic StringJSON_PROPERTY_PAYMENT_MERCHANT_REFERENCEstatic StringJSON_PROPERTY_PAYMENT_PSP_REFERENCE
-
Constructor Summary
Constructors Constructor Description PaymentFailureNotificationContent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentFailureNotificationContentaddErrorFieldsItem(ErrorFieldType errorFieldsItem)booleanequals(Object o)Return true if this PaymentFailureNotificationContent object is equal to o.PaymentFailureNotificationContenterrorFields(List<ErrorFieldType> errorFields)PaymentFailureNotificationContenterrorMessage(Message errorMessage)static PaymentFailureNotificationContentfromJson(String jsonString)Create an instance of PaymentFailureNotificationContent given an JSON stringList<ErrorFieldType>getErrorFields()Missing or invalid fields that caused the payment error.MessagegetErrorMessage()Get errorMessageStringgetModificationMerchantReference()The `reference` of the capture or refund.StringgetModificationPspReference()The `pspReference` of the capture or refund.StringgetPaymentMerchantReference()The `reference` of the payment.StringgetPaymentPspReference()The `pspReference` of the payment.inthashCode()PaymentFailureNotificationContentmodificationMerchantReference(String modificationMerchantReference)PaymentFailureNotificationContentmodificationPspReference(String modificationPspReference)PaymentFailureNotificationContentpaymentMerchantReference(String paymentMerchantReference)PaymentFailureNotificationContentpaymentPspReference(String paymentPspReference)voidsetErrorFields(List<ErrorFieldType> errorFields)voidsetErrorMessage(Message errorMessage)voidsetModificationMerchantReference(String modificationMerchantReference)voidsetModificationPspReference(String modificationPspReference)voidsetPaymentMerchantReference(String paymentMerchantReference)voidsetPaymentPspReference(String paymentPspReference)StringtoJson()Convert an instance of PaymentFailureNotificationContent to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ERROR_FIELDS
public static final String JSON_PROPERTY_ERROR_FIELDS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ERROR_MESSAGE
public static final String JSON_PROPERTY_ERROR_MESSAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE
public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MODIFICATION_PSP_REFERENCE
public static final String JSON_PROPERTY_MODIFICATION_PSP_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_MERCHANT_REFERENCE
public static final String JSON_PROPERTY_PAYMENT_MERCHANT_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_PSP_REFERENCE
public static final String JSON_PROPERTY_PAYMENT_PSP_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
errorFields
public PaymentFailureNotificationContent errorFields(List<ErrorFieldType> errorFields)
-
addErrorFieldsItem
public PaymentFailureNotificationContent addErrorFieldsItem(ErrorFieldType errorFieldsItem)
-
getErrorFields
public List<ErrorFieldType> getErrorFields()
Missing or invalid fields that caused the payment error.- Returns:
- errorFields
-
setErrorFields
public void setErrorFields(List<ErrorFieldType> errorFields)
-
errorMessage
public PaymentFailureNotificationContent errorMessage(Message errorMessage)
-
getErrorMessage
public Message getErrorMessage()
Get errorMessage- Returns:
- errorMessage
-
setErrorMessage
public void setErrorMessage(Message errorMessage)
-
modificationMerchantReference
public PaymentFailureNotificationContent modificationMerchantReference(String modificationMerchantReference)
-
getModificationMerchantReference
public String getModificationMerchantReference()
The `reference` of the capture or refund.- Returns:
- modificationMerchantReference
-
setModificationMerchantReference
public void setModificationMerchantReference(String modificationMerchantReference)
-
modificationPspReference
public PaymentFailureNotificationContent modificationPspReference(String modificationPspReference)
-
getModificationPspReference
public String getModificationPspReference()
The `pspReference` of the capture or refund.- Returns:
- modificationPspReference
-
setModificationPspReference
public void setModificationPspReference(String modificationPspReference)
-
paymentMerchantReference
public PaymentFailureNotificationContent paymentMerchantReference(String paymentMerchantReference)
-
getPaymentMerchantReference
public String getPaymentMerchantReference()
The `reference` of the payment.- Returns:
- paymentMerchantReference
-
setPaymentMerchantReference
public void setPaymentMerchantReference(String paymentMerchantReference)
-
paymentPspReference
public PaymentFailureNotificationContent paymentPspReference(String paymentPspReference)
-
getPaymentPspReference
public String getPaymentPspReference()
The `pspReference` of the payment.- Returns:
- paymentPspReference
-
setPaymentPspReference
public void setPaymentPspReference(String paymentPspReference)
-
equals
public boolean equals(Object o)
Return true if this PaymentFailureNotificationContent object is equal to o.
-
fromJson
public static PaymentFailureNotificationContent fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentFailureNotificationContent given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentFailureNotificationContent
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentFailureNotificationContent
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentFailureNotificationContent to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-