public class Dispute extends ApiResource implements BalanceTransactionSource, MetadataStore<Dispute>
Modifier and Type | Class and Description |
---|---|
static class |
Dispute.Evidence |
static class |
Dispute.EvidenceDetails |
ApiResource.RequestMethod, ApiResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
Dispute() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
Dispute |
close()
Closing the dispute for a charge indicates that you do not have any evidence to submit and are
essentially dismissing the dispute, acknowledging it as lost.
|
Dispute |
close(DisputeCloseParams params)
Closing the dispute for a charge indicates that you do not have any evidence to submit and are
essentially dismissing the dispute, acknowledging it as lost.
|
Dispute |
close(DisputeCloseParams params,
RequestOptions options)
Closing the dispute for a charge indicates that you do not have any evidence to submit and are
essentially dismissing the dispute, acknowledging it as lost.
|
Dispute |
close(java.util.Map<java.lang.String,java.lang.Object> params)
Closing the dispute for a charge indicates that you do not have any evidence to submit and are
essentially dismissing the dispute, acknowledging it as lost.
|
Dispute |
close(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Closing the dispute for a charge indicates that you do not have any evidence to submit and are
essentially dismissing the dispute, acknowledging it as lost.
|
Dispute |
close(RequestOptions options)
Closing the dispute for a charge indicates that you do not have any evidence to submit and are
essentially dismissing the dispute, acknowledging it as lost.
|
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getAmount()
Disputed amount.
|
java.util.List<BalanceTransaction> |
getBalanceTransactions()
List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your
Stripe account as a result of this dispute.
|
java.lang.String |
getCharge()
Get id of expandable `charge` object.
|
Charge |
getChargeObject()
Get expanded `charge`.
|
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.String |
getCurrency()
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase.
|
Dispute.Evidence |
getEvidence() |
Dispute.EvidenceDetails |
getEvidenceDetails() |
java.lang.String |
getId()
Unique identifier for the object.
|
java.lang.Boolean |
getIsChargeRefundable()
If true, it is still possible to refund the disputed payment.
|
java.lang.Boolean |
getLivemode()
Has the value `true` if the object exists in live mode or the value `false` if the object
exists in test mode.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
java.lang.String |
getNetworkReasonCode()
Network-dependent reason code for the dispute.
|
java.lang.String |
getObject()
String representing the object's type.
|
java.lang.String |
getReason()
Reason given by cardholder for dispute.
|
java.lang.String |
getStatus()
Current status of dispute.
|
int |
hashCode() |
static DisputeCollection |
list(DisputeListParams params)
Returns a list of your disputes.
|
static DisputeCollection |
list(DisputeListParams params,
RequestOptions options)
Returns a list of your disputes.
|
static DisputeCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of your disputes.
|
static DisputeCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of your disputes.
|
static Dispute |
retrieve(java.lang.String dispute)
Retrieves the dispute with the given ID.
|
static Dispute |
retrieve(java.lang.String dispute,
DisputeRetrieveParams params,
RequestOptions options)
Retrieves the dispute with the given ID.
|
static Dispute |
retrieve(java.lang.String dispute,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves the dispute with the given ID.
|
static Dispute |
retrieve(java.lang.String dispute,
RequestOptions options)
Retrieves the dispute with the given ID.
|
void |
setAmount(java.lang.Long amount)
Disputed amount.
|
void |
setBalanceTransactions(java.util.List<BalanceTransaction> balanceTransactions)
List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your
Stripe account as a result of this dispute.
|
void |
setCharge(java.lang.String id) |
void |
setChargeObject(Charge expandableObject) |
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setCurrency(java.lang.String currency)
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase.
|
void |
setEvidence(Dispute.Evidence evidence) |
void |
setEvidenceDetails(Dispute.EvidenceDetails evidenceDetails) |
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setIsChargeRefundable(java.lang.Boolean isChargeRefundable)
If true, it is still possible to refund the disputed payment.
|
void |
setLivemode(java.lang.Boolean livemode)
Has the value `true` if the object exists in live mode or the value `false` if the object
exists in test mode.
|
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object.
|
void |
setNetworkReasonCode(java.lang.String networkReasonCode)
Network-dependent reason code for the dispute.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setReason(java.lang.String reason)
Reason given by cardholder for dispute.
|
void |
setStatus(java.lang.String status)
Current status of dispute.
|
Dispute |
update(DisputeUpdateParams params)
When you get a dispute, contacting your customer is always the best first step.
|
Dispute |
update(DisputeUpdateParams params,
RequestOptions options)
When you get a dispute, contacting your customer is always the best first step.
|
Dispute |
update(java.util.Map<java.lang.String,java.lang.Object> params)
When you get a dispute, contacting your customer is always the best first step.
|
Dispute |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
When you get a dispute, contacting your customer is always the best first step.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, setLastResponse, toJson, toString
public java.lang.String getCharge()
public void setCharge(java.lang.String id)
public Charge getChargeObject()
public void setChargeObject(Charge expandableObject)
public static DisputeCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static DisputeCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static DisputeCollection list(DisputeListParams params) throws StripeException
StripeException
public static DisputeCollection list(DisputeListParams params, RequestOptions options) throws StripeException
StripeException
public static Dispute retrieve(java.lang.String dispute) throws StripeException
StripeException
public static Dispute retrieve(java.lang.String dispute, RequestOptions options) throws StripeException
StripeException
public static Dispute retrieve(java.lang.String dispute, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static Dispute retrieve(java.lang.String dispute, DisputeRetrieveParams params, RequestOptions options) throws StripeException
StripeException
public Dispute update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our guide to dispute types.
update
in interface MetadataStore<Dispute>
StripeException
public Dispute update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our guide to dispute types.
update
in interface MetadataStore<Dispute>
StripeException
public Dispute update(DisputeUpdateParams params) throws StripeException
Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our guide to dispute types.
StripeException
public Dispute update(DisputeUpdateParams params, RequestOptions options) throws StripeException
Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our guide to dispute types.
StripeException
public Dispute close() throws StripeException
The status of the dispute will change from needs_response
to lost
.
Closing a dispute is irreversible.
StripeException
public Dispute close(RequestOptions options) throws StripeException
The status of the dispute will change from needs_response
to lost
.
Closing a dispute is irreversible.
StripeException
public Dispute close(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
The status of the dispute will change from needs_response
to lost
.
Closing a dispute is irreversible.
StripeException
public Dispute close(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
The status of the dispute will change from needs_response
to lost
.
Closing a dispute is irreversible.
StripeException
public Dispute close(DisputeCloseParams params) throws StripeException
The status of the dispute will change from needs_response
to lost
.
Closing a dispute is irreversible.
StripeException
public Dispute close(DisputeCloseParams params, RequestOptions options) throws StripeException
The status of the dispute will change from needs_response
to lost
.
Closing a dispute is irreversible.
StripeException
public java.lang.Long getAmount()
public java.util.List<BalanceTransaction> getBalanceTransactions()
public java.lang.Long getCreated()
public java.lang.String getCurrency()
public Dispute.Evidence getEvidence()
public Dispute.EvidenceDetails getEvidenceDetails()
public java.lang.Boolean getIsChargeRefundable()
public java.lang.Boolean getLivemode()
public java.lang.String getNetworkReasonCode()
public java.lang.String getObject()
public java.lang.String getReason()
public java.lang.String getStatus()
public void setAmount(java.lang.Long amount)
public void setBalanceTransactions(java.util.List<BalanceTransaction> balanceTransactions)
public void setCreated(java.lang.Long created)
public void setCurrency(java.lang.String currency)
public void setEvidence(Dispute.Evidence evidence)
public void setEvidenceDetails(Dispute.EvidenceDetails evidenceDetails)
public void setId(java.lang.String id)
public void setIsChargeRefundable(java.lang.Boolean isChargeRefundable)
public void setLivemode(java.lang.Boolean livemode)
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setNetworkReasonCode(java.lang.String networkReasonCode)
public void setObject(java.lang.String object)
public void setReason(java.lang.String reason)
public void setStatus(java.lang.String status)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getId()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata
in interface MetadataStore<Dispute>