Package com.adyen.model.disputewebhooks
Class DisputeEventNotification
- java.lang.Object
-
- com.adyen.model.disputewebhooks.DisputeEventNotification
-
public class DisputeEventNotification extends Object
DisputeEventNotification
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDisputeEventNotification.TypeEnumThe type of dispute raised for the transaction.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ARNstatic StringJSON_PROPERTY_BALANCE_PLATFORMstatic StringJSON_PROPERTY_CREATION_DATEstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_DISPUTED_AMOUNTstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_STATUS_DETAILstatic StringJSON_PROPERTY_TRANSACTION_IDstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description DisputeEventNotification()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DisputeEventNotificationarn(String arn)The unique Acquirer Reference Number (arn) generated by the card scheme for each capture.DisputeEventNotificationbalancePlatform(String balancePlatform)The unique identifier of the balance platform.DisputeEventNotificationcreationDate(OffsetDateTime creationDate)The date and time when the event was triggered, in ISO 8601 extended format.DisputeEventNotificationdescription(String description)Contains information about the dispute.DisputeEventNotificationdisputedAmount(Amount disputedAmount)disputedAmountbooleanequals(Object o)Return true if this DisputeEventNotification object is equal to o.static DisputeEventNotificationfromJson(String jsonString)Create an instance of DisputeEventNotification given an JSON stringStringgetArn()The unique Acquirer Reference Number (arn) generated by the card scheme for each capture.StringgetBalancePlatform()The unique identifier of the balance platform.OffsetDateTimegetCreationDate()The date and time when the event was triggered, in ISO 8601 extended format.StringgetDescription()Contains information about the dispute.AmountgetDisputedAmount()disputedAmountStringgetId()The ID of the resource.StringgetStatus()The current status of the dispute.StringgetStatusDetail()Additional information about the status of the dispute, when available.StringgetTransactionId()The unique reference of the transaction for which the dispute is requested.DisputeEventNotification.TypeEnumgetType()The type of dispute raised for the transaction.inthashCode()DisputeEventNotificationid(String id)The ID of the resource.voidsetArn(String arn)The unique Acquirer Reference Number (arn) generated by the card scheme for each capture.voidsetBalancePlatform(String balancePlatform)The unique identifier of the balance platform.voidsetCreationDate(OffsetDateTime creationDate)The date and time when the event was triggered, in ISO 8601 extended format.voidsetDescription(String description)Contains information about the dispute.voidsetDisputedAmount(Amount disputedAmount)disputedAmountvoidsetId(String id)The ID of the resource.voidsetStatus(String status)The current status of the dispute.voidsetStatusDetail(String statusDetail)Additional information about the status of the dispute, when available.voidsetTransactionId(String transactionId)The unique reference of the transaction for which the dispute is requested.voidsetType(DisputeEventNotification.TypeEnum type)The type of dispute raised for the transaction.DisputeEventNotificationstatus(String status)The current status of the dispute.DisputeEventNotificationstatusDetail(String statusDetail)Additional information about the status of the dispute, when available.StringtoJson()Convert an instance of DisputeEventNotification to an JSON stringStringtoString()DisputeEventNotificationtransactionId(String transactionId)The unique reference of the transaction for which the dispute is requested.DisputeEventNotificationtype(DisputeEventNotification.TypeEnum type)The type of dispute raised for the transaction.
-
-
-
Field Detail
-
JSON_PROPERTY_ARN
public static final String JSON_PROPERTY_ARN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BALANCE_PLATFORM
public static final String JSON_PROPERTY_BALANCE_PLATFORM
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CREATION_DATE
public static final String JSON_PROPERTY_CREATION_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DISPUTED_AMOUNT
public static final String JSON_PROPERTY_DISPUTED_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS_DETAIL
public static final String JSON_PROPERTY_STATUS_DETAIL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRANSACTION_ID
public static final String JSON_PROPERTY_TRANSACTION_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
arn
public DisputeEventNotification arn(String arn)
The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle.- Parameters:
arn-- Returns:
- the current
DisputeEventNotificationinstance, allowing for method chaining
-
getArn
public String getArn()
The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle.- Returns:
- arn
-
setArn
public void setArn(String arn)
The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle.- Parameters:
arn-
-
balancePlatform
public DisputeEventNotification balancePlatform(String balancePlatform)
The unique identifier of the balance platform.- Parameters:
balancePlatform-- Returns:
- the current
DisputeEventNotificationinstance, allowing for method chaining
-
getBalancePlatform
public String getBalancePlatform()
The unique identifier of the balance platform.- Returns:
- balancePlatform
-
setBalancePlatform
public void setBalancePlatform(String balancePlatform)
The unique identifier of the balance platform.- Parameters:
balancePlatform-
-
creationDate
public DisputeEventNotification creationDate(OffsetDateTime creationDate)
The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.- Parameters:
creationDate-- Returns:
- the current
DisputeEventNotificationinstance, allowing for method chaining
-
getCreationDate
public OffsetDateTime getCreationDate()
The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.- Returns:
- creationDate
-
setCreationDate
public void setCreationDate(OffsetDateTime creationDate)
The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.- Parameters:
creationDate-
-
description
public DisputeEventNotification description(String description)
Contains information about the dispute.- Parameters:
description-- Returns:
- the current
DisputeEventNotificationinstance, allowing for method chaining
-
getDescription
public String getDescription()
Contains information about the dispute.- Returns:
- description
-
setDescription
public void setDescription(String description)
Contains information about the dispute.- Parameters:
description-
-
disputedAmount
public DisputeEventNotification disputedAmount(Amount disputedAmount)
disputedAmount- Parameters:
disputedAmount-- Returns:
- the current
DisputeEventNotificationinstance, allowing for method chaining
-
getDisputedAmount
public Amount getDisputedAmount()
disputedAmount- Returns:
- disputedAmount
-
setDisputedAmount
public void setDisputedAmount(Amount disputedAmount)
disputedAmount- Parameters:
disputedAmount-
-
id
public DisputeEventNotification id(String id)
The ID of the resource.- Parameters:
id-- Returns:
- the current
DisputeEventNotificationinstance, allowing for method chaining
-
getId
public String getId()
The ID of the resource.- Returns:
- id
-
setId
public void setId(String id)
The ID of the resource.- Parameters:
id-
-
status
public DisputeEventNotification status(String status)
The current status of the dispute.- Parameters:
status-- Returns:
- the current
DisputeEventNotificationinstance, allowing for method chaining
-
getStatus
public String getStatus()
The current status of the dispute.- Returns:
- status
-
setStatus
public void setStatus(String status)
The current status of the dispute.- Parameters:
status-
-
statusDetail
public DisputeEventNotification statusDetail(String statusDetail)
Additional information about the status of the dispute, when available.- Parameters:
statusDetail-- Returns:
- the current
DisputeEventNotificationinstance, allowing for method chaining
-
getStatusDetail
public String getStatusDetail()
Additional information about the status of the dispute, when available.- Returns:
- statusDetail
-
setStatusDetail
public void setStatusDetail(String statusDetail)
Additional information about the status of the dispute, when available.- Parameters:
statusDetail-
-
transactionId
public DisputeEventNotification transactionId(String transactionId)
The unique reference of the transaction for which the dispute is requested.- Parameters:
transactionId-- Returns:
- the current
DisputeEventNotificationinstance, allowing for method chaining
-
getTransactionId
public String getTransactionId()
The unique reference of the transaction for which the dispute is requested.- Returns:
- transactionId
-
setTransactionId
public void setTransactionId(String transactionId)
The unique reference of the transaction for which the dispute is requested.- Parameters:
transactionId-
-
type
public DisputeEventNotification type(DisputeEventNotification.TypeEnum type)
The type of dispute raised for the transaction.- Parameters:
type-- Returns:
- the current
DisputeEventNotificationinstance, allowing for method chaining
-
getType
public DisputeEventNotification.TypeEnum getType()
The type of dispute raised for the transaction.- Returns:
- type
-
setType
public void setType(DisputeEventNotification.TypeEnum type)
The type of dispute raised for the transaction.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this DisputeEventNotification object is equal to o.
-
fromJson
public static DisputeEventNotification fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of DisputeEventNotification given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DisputeEventNotification
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to DisputeEventNotification
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of DisputeEventNotification to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-