Class CustomNotification


  • public class CustomNotification
    extends Object
    CustomNotification
    • Constructor Detail

      • CustomNotification

        public CustomNotification()
    • Method Detail

      • getAmount

        public Amount getAmount()
        Get amount
        Returns:
        amount
      • setAmount

        public void setAmount​(Amount amount)
        amount
        Parameters:
        amount -
      • getEventCode

        public String getEventCode()
        The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA**
        Returns:
        eventCode
      • setEventCode

        public void setEventCode​(String eventCode)
        The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA**
        Parameters:
        eventCode -
      • getEventDate

        public OffsetDateTime getEventDate()
        The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD.
        Returns:
        eventDate
      • setEventDate

        public void setEventDate​(OffsetDateTime eventDate)
        The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD.
        Parameters:
        eventDate -
      • getMerchantReference

        public String getMerchantReference()
        Your reference for the custom test notification.
        Returns:
        merchantReference
      • setMerchantReference

        public void setMerchantReference​(String merchantReference)
        Your reference for the custom test notification.
        Parameters:
        merchantReference -
      • getPaymentMethod

        public String getPaymentMethod()
        The payment method for the payment that the notification is about. Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit**
        Returns:
        paymentMethod
      • setPaymentMethod

        public void setPaymentMethod​(String paymentMethod)
        The payment method for the payment that the notification is about. Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit**
        Parameters:
        paymentMethod -
      • getReason

        public String getReason()
        A descripton of what caused the notification.
        Returns:
        reason
      • setReason

        public void setReason​(String reason)
        A descripton of what caused the notification.
        Parameters:
        reason -
      • getSuccess

        public Boolean getSuccess()
        The outcome of the event which the notification is about. Set to either **true** or **false**.
        Returns:
        success
      • setSuccess

        public void setSuccess​(Boolean success)
        The outcome of the event which the notification is about. Set to either **true** or **false**.
        Parameters:
        success -
      • equals

        public boolean equals​(Object o)
        Return true if this CustomNotification object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static CustomNotification fromJson​(String jsonString)
                                           throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of CustomNotification given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of CustomNotification
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to CustomNotification
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of CustomNotification to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException