Package model

Class Dispute

java.lang.Object
model.Dispute

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]") public class Dispute extends Object
A `Dispute` objected created for a chargeback or customer disputes.
  • Field Details

  • Constructor Details

    • Dispute

      public Dispute()
  • Method Details

    • tags

      public Dispute tags(Map<String,String> tags)
    • putTagsItem

      public Dispute putTagsItem(String key, String tagsItem)
    • getTags

      @Nullable public Map<String,String> getTags()
      Key value pair for annotating custom meta data (e.g. order numbers).
      Returns:
      tags
    • setTags

      public void setTags(Map<String,String> tags)
    • id

      public Dispute id(String id)
    • getId

      @Nullable public String getId()
      The ID of the `Dispute` resource.
      Returns:
      id
    • 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)
    • action

      public Dispute action(String action)
    • getAction

      @Nullable public String getAction()
      The next `action` required to move forward with the `Dispute`.
      Returns:
      action
    • setAction

      public void setAction(String action)
    • amount

      public Dispute amount(Long amount)
    • getAmount

      @Nullable public Long getAmount()
      The total amount of the `Dispute` (in cents).
      Returns:
      amount
    • setAmount

      public void setAmount(Long amount)
    • application

      public Dispute application(String application)
    • getApplication

      @Nullable public String getApplication()
      The ID of the `Application` resource the `Dispute` was created under.
      Returns:
      application
    • setApplication

      public void setApplication(String application)
    • currency

      public Dispute currency(Currency currency)
    • getCurrency

      @Nullable public Currency getCurrency()
      Get currency
      Returns:
      currency
    • setCurrency

      public void setCurrency(Currency currency)
    • disputeDetails

      public Dispute disputeDetails(Map<String,Object> disputeDetails)
    • putDisputeDetailsItem

      public Dispute putDisputeDetailsItem(String key, Object disputeDetailsItem)
    • getDisputeDetails

      @Nullable public Map<String,Object> getDisputeDetails()
      Details about the `Dispute` recieved by the `Processor`.
      Returns:
      disputeDetails
    • setDisputeDetails

      public void setDisputeDetails(Map<String,Object> disputeDetails)
    • identity

      public Dispute identity(String identity)
    • getIdentity

      @Nullable public String getIdentity()
      The ID of the resource.
      Returns:
      identity
    • setIdentity

      public void setIdentity(String identity)
    • message

      public Dispute message(String message)
    • 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>**CLERICAL**<li>**FRAUD**<li>**TECHNICAL**</ul>
      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)
    • transfer

      public Dispute transfer(String transfer)
    • getTransfer

      @Nullable public String getTransfer()
      ID of the `Transfer` resource.
      Returns:
      transfer
    • 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)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates 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