Class Dispute
- All Implemented Interfaces:
BalanceTransactionSource
,HasId
,MetadataStore<Dispute>
,StripeActiveObject
,StripeObjectInterface
Related guide: Disputes and fraud
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
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.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.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.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.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.close
(Map<String, 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.boolean
Disputed amount.List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your Stripe account as a result of this dispute.Get ID of expandablecharge
object.Get expandedcharge
.Time at which the object was created.Three-letter ISO currency code, in lowercase.getId()
Unique identifier for the object.If true, it's still possible to refund the disputed payment.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.Set of key-value pairs that you can attach to an object.Network-dependent reason code for the dispute.String representing the object's type.Get ID of expandablepaymentIntent
object.Get expandedpaymentIntent
.Reason given by cardholder for dispute.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
Returns a list of your disputes.static DisputeCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of your disputes.static Dispute
Retrieves the dispute with the given ID.static Dispute
retrieve
(String dispute, RequestOptions options) Retrieves the dispute with the given ID.static Dispute
retrieve
(String dispute, DisputeRetrieveParams params, RequestOptions options) Retrieves the dispute with the given ID.static Dispute
Retrieves the dispute with the given ID.void
Disputed amount.void
setBalanceTransactions
(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
void
setChargeObject
(Charge expandableObject) void
setCreated
(Long created) Time at which the object was created.void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase.void
setEvidence
(Dispute.Evidence evidence) void
setEvidenceDetails
(Dispute.EvidenceDetails evidenceDetails) void
Unique identifier for the object.void
setIsChargeRefundable
(Boolean isChargeRefundable) If true, it's still possible to refund the disputed payment.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
setNetworkReasonCode
(String networkReasonCode) Network-dependent reason code for the dispute.void
String representing the object's type.void
void
setPaymentIntentObject
(PaymentIntent expandableObject) void
setPaymentMethodDetails
(Dispute.PaymentMethodDetails paymentMethodDetails) void
Reason given by cardholder for dispute.void
setResponseGetter
(StripeResponseGetter responseGetter) The reason for the dispute as defined by PayPal.void
Current status of dispute.update
(DisputeUpdateParams params) When you get a dispute, contacting your customer is always the best first step.update
(DisputeUpdateParams params, RequestOptions options) When you get a dispute, contacting your customer is always the best first step.When you get a dispute, contacting your customer is always the best first step.update
(Map<String, Object> params, RequestOptions options) When you get a dispute, contacting your customer is always the best first step.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
Methods inherited from interface com.stripe.model.StripeObjectInterface
getLastResponse, setLastResponse
-
Constructor Details
-
Dispute
public Dispute()
-
-
Method Details
-
getCharge
Get ID of expandablecharge
object. -
setCharge
-
getChargeObject
Get expandedcharge
. -
setChargeObject
-
getPaymentIntent
Get ID of expandablepaymentIntent
object. -
setPaymentIntent
-
getPaymentIntentObject
Get expandedpaymentIntent
. -
setPaymentIntentObject
-
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.The status of the dispute will change from
needs_response
tolost
. Closing a dispute is irreversible.- Throws:
StripeException
-
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.The status of the dispute will change from
needs_response
tolost
. Closing a dispute is irreversible.- Throws:
StripeException
-
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.The status of the dispute will change from
needs_response
tolost
. Closing a dispute is irreversible.- Throws:
StripeException
-
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.The status of the dispute will change from
needs_response
tolost
. Closing a dispute is irreversible.- Throws:
StripeException
-
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.The status of the dispute will change from
needs_response
tolost
. Closing a dispute is irreversible.- Throws:
StripeException
-
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.The status of the dispute will change from
needs_response
tolost
. Closing a dispute is irreversible.- Throws:
StripeException
-
list
Returns a list of your disputes.- Throws:
StripeException
-
list
public static DisputeCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of your disputes.- Throws:
StripeException
-
list
Returns a list of your disputes.- Throws:
StripeException
-
list
public static DisputeCollection list(DisputeListParams params, RequestOptions options) throws StripeException Returns a list of your disputes.- Throws:
StripeException
-
retrieve
Retrieves the dispute with the given ID.- Throws:
StripeException
-
retrieve
Retrieves the dispute with the given ID.- Throws:
StripeException
-
retrieve
public static Dispute retrieve(String dispute, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the dispute with the given ID.- Throws:
StripeException
-
retrieve
public static Dispute retrieve(String dispute, DisputeRetrieveParams params, RequestOptions options) throws StripeException Retrieves the dispute with the given ID.- Throws:
StripeException
-
update
When you get a dispute, contacting your customer is always the best first step. If that doesn’t work, you can submit evidence to help us resolve the dispute in your favor. You can do this in your dashboard, but if you prefer, you can use the API to submit evidence programmatically.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.
- Specified by:
update
in interfaceMetadataStore<Dispute>
- Throws:
StripeException
-
update
When you get a dispute, contacting your customer is always the best first step. If that doesn’t work, you can submit evidence to help us resolve the dispute in your favor. You can do this in your dashboard, but if you prefer, you can use the API to submit evidence programmatically.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.
- Specified by:
update
in interfaceMetadataStore<Dispute>
- Throws:
StripeException
-
update
When you get a dispute, contacting your customer is always the best first step. If that doesn’t work, you can submit evidence to help us resolve the dispute in your favor. You can do this in your dashboard, but if you prefer, you can use the API to submit evidence programmatically.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.
- Throws:
StripeException
-
update
When you get a dispute, contacting your customer is always the best first step. If that doesn’t work, you can submit evidence to help us resolve the dispute in your favor. You can do this in your dashboard, but if you prefer, you can use the API to submit evidence programmatically.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.
- Throws:
StripeException
-
setResponseGetter
The reason for the dispute as defined by PayPal.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getAmount
Disputed amount. Usually the amount of the charge, but it can differ (usually because of currency fluctuation or because only part of the order is disputed). -
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. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getEvidence
-
getEvidenceDetails
-
getIsChargeRefundable
If true, it's still possible to refund the disputed payment. After the payment has been fully refunded, no further funds are withdrawn from your Stripe account as a result of this dispute. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getNetworkReasonCode
Network-dependent reason code for the dispute. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
dispute
. -
getPaymentMethodDetails
-
getReason
Reason given by cardholder for dispute. Possible values arebank_cannot_process
,check_returned
,credit_not_processed
,customer_initiated
,debit_not_authorized
,duplicate
,fraudulent
,general
,incorrect_account_details
,insufficient_funds
,product_not_received
,product_unacceptable
,subscription_canceled
, orunrecognized
. Learn more about dispute reasons. -
getStatus
Current status of dispute. Possible values arewarning_needs_response
,warning_under_review
,warning_closed
,needs_response
,under_review
,won
, orlost
.One of
lost
,needs_response
,under_review
,warning_closed
,warning_needs_response
,warning_under_review
, orwon
. -
setAmount
Disputed amount. Usually the amount of the charge, but it can differ (usually because of currency fluctuation or because only part of the order is disputed). -
setBalanceTransactions
List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your Stripe account as a result of this dispute. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setEvidence
-
setEvidenceDetails
-
setId
Unique identifier for the object. -
setIsChargeRefundable
If true, it's still possible to refund the disputed payment. After the payment has been fully refunded, no further funds are withdrawn from your Stripe account as a result of this dispute. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
setNetworkReasonCode
Network-dependent reason code for the dispute. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
dispute
. -
setPaymentMethodDetails
-
setReason
Reason given by cardholder for dispute. Possible values arebank_cannot_process
,check_returned
,credit_not_processed
,customer_initiated
,debit_not_authorized
,duplicate
,fraudulent
,general
,incorrect_account_details
,insufficient_funds
,product_not_received
,product_unacceptable
,subscription_canceled
, orunrecognized
. Learn more about dispute reasons. -
setStatus
Current status of dispute. Possible values arewarning_needs_response
,warning_under_review
,warning_closed
,needs_response
,under_review
,won
, orlost
.One of
lost
,needs_response
,under_review
,warning_closed
,warning_needs_response
,warning_under_review
, orwon
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.- Specified by:
getMetadata
in interfaceMetadataStore<Dispute>
-