Package model
Class Dispute
- java.lang.Object
-
- model.Dispute
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Dispute extends Object
A `Dispute` objected created for a chargeback or customer disputes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDispute.CustomTypeAdapterFactorystatic classDispute.ReasonEnumThe system-defined reason for the `Dispute`.static classDispute.StateEnumThe current state of the `Dispute`.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACTIONstatic StringSERIALIZED_NAME_AMOUNTstatic StringSERIALIZED_NAME_APPLICATIONstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_CURRENCYstatic StringSERIALIZED_NAME_DISPUTE_DETAILSstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_IDENTITYstatic StringSERIALIZED_NAME_LINKSstatic StringSERIALIZED_NAME_MESSAGEstatic StringSERIALIZED_NAME_OCCURRED_ATstatic StringSERIALIZED_NAME_REASONstatic StringSERIALIZED_NAME_RESPOND_BYstatic StringSERIALIZED_NAME_STATEstatic StringSERIALIZED_NAME_TAGSstatic StringSERIALIZED_NAME_TRANSFERstatic StringSERIALIZED_NAME_UPDATED_AT
-
Constructor Summary
Constructors Constructor Description Dispute()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Disputeaction(String action)Disputeamount(Long amount)Disputeapplication(String application)DisputecreatedAt(OffsetDateTime createdAt)Disputecurrency(Currency currency)DisputedisputeDetails(Map<String,Object> disputeDetails)booleanequals(Object o)static DisputefromJson(String jsonString)Create an instance of Dispute given an JSON stringStringgetAction()The next `action` required to move forward with the `Dispute`.LonggetAmount()The total amount of the `Dispute` (in cents).StringgetApplication()The ID of the `Application` resource the `Dispute` was created under.OffsetDateTimegetCreatedAt()Timestamp of when the object was created.CurrencygetCurrency()Get currencyMap<String,Object>getDisputeDetails()Details about the `Dispute` recieved by the `Processor`.StringgetId()The ID of the `Dispute` resource.StringgetIdentity()The ID of the resource.DisputeLinksgetLinks()Get linksStringgetMessage()Message field that provides additional details.OffsetDateTimegetOccurredAt()Point in time when dispute occurred.Dispute.ReasonEnumgetReason()The system-defined reason for the `Dispute`.OffsetDateTimegetRespondBy()Point in time when dispute has to be resolved and the `Merchant` needs to respond by.Dispute.StateEnumgetState()The current state of the `Dispute`.Map<String,String>getTags()Key value pair for annotating custom meta data (e.g.StringgetTransfer()ID of the `Transfer` resource.OffsetDateTimegetUpdatedAt()Timestamp of when the object was last updated.inthashCode()Disputeid(String id)Disputeidentity(String identity)Disputelinks(DisputeLinks links)Disputemessage(String message)DisputeoccurredAt(OffsetDateTime occurredAt)DisputeputDisputeDetailsItem(String key, Object disputeDetailsItem)DisputeputTagsItem(String key, String tagsItem)Disputereason(Dispute.ReasonEnum reason)DisputerespondBy(OffsetDateTime respondBy)voidsetAction(String action)voidsetAmount(Long amount)voidsetApplication(String application)voidsetCreatedAt(OffsetDateTime createdAt)voidsetCurrency(Currency currency)voidsetDisputeDetails(Map<String,Object> disputeDetails)voidsetId(String id)voidsetIdentity(String identity)voidsetLinks(DisputeLinks links)voidsetMessage(String message)voidsetOccurredAt(OffsetDateTime occurredAt)voidsetReason(Dispute.ReasonEnum reason)voidsetRespondBy(OffsetDateTime respondBy)voidsetState(Dispute.StateEnum state)voidsetTags(Map<String,String> tags)voidsetTransfer(String transfer)voidsetUpdatedAt(OffsetDateTime updatedAt)Disputestate(Dispute.StateEnum state)Disputetags(Map<String,String> tags)StringtoJson()Convert an instance of Dispute to an JSON stringStringtoString()Disputetransfer(String transfer)DisputeupdatedAt(OffsetDateTime updatedAt)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACTION
public static final String SERIALIZED_NAME_ACTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AMOUNT
public static final String SERIALIZED_NAME_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_APPLICATION
public static final String SERIALIZED_NAME_APPLICATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CURRENCY
public static final String SERIALIZED_NAME_CURRENCY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DISPUTE_DETAILS
public static final String SERIALIZED_NAME_DISPUTE_DETAILS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IDENTITY
public static final String SERIALIZED_NAME_IDENTITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MESSAGE
public static final String SERIALIZED_NAME_MESSAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OCCURRED_AT
public static final String SERIALIZED_NAME_OCCURRED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REASON
public static final String SERIALIZED_NAME_REASON
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESPOND_BY
public static final String SERIALIZED_NAME_RESPOND_BY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATE
public static final String SERIALIZED_NAME_STATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TRANSFER
public static final String SERIALIZED_NAME_TRANSFER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINKS
public static final String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
-
Method Detail
-
setId
public void setId(String id)
-
createdAt
public Dispute createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
Timestamp of when the object was created.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
updatedAt
public Dispute updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nullable public OffsetDateTime getUpdatedAt()
Timestamp of when the object was last updated.- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
getAction
@Nullable public String getAction()
The next `action` required to move forward with the `Dispute`.- Returns:
- action
-
setAction
public void setAction(String action)
-
getAmount
@Nullable public Long getAmount()
The total amount of the `Dispute` (in cents).- Returns:
- amount
-
setAmount
public void setAmount(Long amount)
-
getApplication
@Nullable public String getApplication()
The ID of the `Application` resource the `Dispute` was created under.- Returns:
- application
-
setApplication
public void setApplication(String application)
-
setCurrency
public void setCurrency(Currency currency)
-
getDisputeDetails
@Nullable public Map<String,Object> getDisputeDetails()
Details about the `Dispute` recieved by the `Processor`. May be any type of data.- Returns:
- disputeDetails
-
setIdentity
public void setIdentity(String identity)
-
getMessage
@Nullable public String getMessage()
Message field that provides additional details. This field is typically **null**.- Returns:
- message
-
setMessage
public void setMessage(String message)
-
occurredAt
public Dispute occurredAt(OffsetDateTime occurredAt)
-
getOccurredAt
@Nullable public OffsetDateTime getOccurredAt()
Point in time when dispute occurred.- Returns:
- occurredAt
-
setOccurredAt
public void setOccurredAt(OffsetDateTime occurredAt)
-
reason
public Dispute reason(Dispute.ReasonEnum reason)
-
getReason
@Nullable public Dispute.ReasonEnum getReason()
The system-defined reason for the `Dispute`. Available values include:<ul><li>**INQUIRY**<li>**QUALITY**<li>**FRAUD**- Returns:
- reason
-
setReason
public void setReason(Dispute.ReasonEnum reason)
-
respondBy
public Dispute respondBy(OffsetDateTime respondBy)
-
getRespondBy
@Nullable public OffsetDateTime getRespondBy()
Point in time when dispute has to be resolved and the `Merchant` needs to respond by.- Returns:
- respondBy
-
setRespondBy
public void setRespondBy(OffsetDateTime respondBy)
-
state
public Dispute state(Dispute.StateEnum state)
-
getState
@Nullable public Dispute.StateEnum getState()
The current state of the `Dispute`.- Returns:
- state
-
setState
public void setState(Dispute.StateEnum state)
-
getTags
@Nullable public Map<String,String> getTags()
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
setTransfer
public void setTransfer(String transfer)
-
links
public Dispute links(DisputeLinks links)
-
getLinks
@Nullable public DisputeLinks getLinks()
Get links- Returns:
- links
-
setLinks
public void setLinks(DisputeLinks links)
-
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 Dispute
-
fromJson
public static Dispute fromJson(String jsonString) throws IOException
Create an instance of Dispute given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Dispute
- Throws:
IOException- if the JSON string is invalid with respect to Dispute
-
toJson
public String toJson()
Convert an instance of Dispute to an JSON string- Returns:
- JSON string
-
-