Class Dispute
- All Implemented Interfaces:
BalanceTransactionSource,HasId,MetadataStore<Dispute>,StripeActiveObject,StripeObjectInterface
Related guide: Disputes and fraud
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about Evidence, please refer to the API Reference.static classFor more details about EvidenceDetails, please refer to the API Reference.static classFor more details about PaymentMethodDetails, please refer to the API Reference.static classFor more details about SmartDisputes, please refer to the API Reference.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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanclose()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.booleanDisputed 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 expandablechargeobject.Get expandedcharge.Time at which the object was created.Three-letter ISO currency code, in lowercase.List of eligibility types that are included inenhanced_evidence.getId()Unique identifier for the object.Intended submission method for the dispute.If true, it's still possible to refund the disputed payment.Has the valuetrueif the object exists in live mode or the valuefalseif 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 expandablepaymentIntentobject.Get expandedpaymentIntent.Reason given by cardholder for dispute.The current status of a dispute.inthashCode()static DisputeCollectionlist(DisputeListParams params) Returns a list of your disputes.static DisputeCollectionlist(DisputeListParams params, RequestOptions options) Returns a list of your disputes.static DisputeCollectionReturns a list of your disputes.static DisputeCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of your disputes.static DisputeRetrieves the dispute with the given ID.static Disputeretrieve(String dispute, RequestOptions options) Retrieves the dispute with the given ID.static Disputeretrieve(String dispute, DisputeRetrieveParams params, RequestOptions options) Retrieves the dispute with the given ID.static DisputeRetrieves the dispute with the given ID.voidDisputed amount.voidsetBalanceTransactions(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.voidvoidsetChargeObject(Charge expandableObject) voidsetCreated(Long created) Time at which the object was created.voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase.voidsetEnhancedEligibilityTypes(List<String> enhancedEligibilityTypes) List of eligibility types that are included inenhanced_evidence.voidsetEvidence(Dispute.Evidence evidence) voidsetEvidenceDetails(Dispute.EvidenceDetails evidenceDetails) voidUnique identifier for the object.voidsetIntendedSubmissionMethod(String intendedSubmissionMethod) Intended submission method for the dispute.voidsetIsChargeRefundable(Boolean isChargeRefundable) If true, it's still possible to refund the disputed payment.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidsetNetworkReasonCode(String networkReasonCode) Network-dependent reason code for the dispute.voidString representing the object's type.voidvoidsetPaymentIntentObject(PaymentIntent expandableObject) voidsetPaymentMethodDetails(Dispute.PaymentMethodDetails paymentMethodDetails) voidReason given by cardholder for dispute.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidsetSmartDisputes(Dispute.SmartDisputes smartDisputes) voidThe current status of a 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, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetterMethods inherited from interface com.stripe.model.StripeObjectInterface
getLastResponse, setLastResponse
-
Constructor Details
-
Dispute
public Dispute()
-
-
Method Details
-
getCharge
Get ID of expandablechargeobject. -
setCharge
-
getChargeObject
Get expandedcharge. -
setChargeObject
-
getPaymentIntent
Get ID of expandablepaymentIntentobject. -
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_responsetolost. 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_responsetolost. 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_responsetolost. 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_responsetolost. 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_responsetolost. 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_responsetolost. 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:
updatein 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:
updatein 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
Description copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance 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. -
getEnhancedEligibilityTypes
List of eligibility types that are included inenhanced_evidence. -
getEvidence
-
getEvidenceDetails
-
getIntendedSubmissionMethod
Intended submission method for the dispute.One of
manual,prefer_manual,prefer_smart_disputes, orsmart_disputes. -
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 valuetrueif the object exists in live mode or the valuefalseif 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,noncompliant,product_not_received,product_unacceptable,subscription_canceled, orunrecognized. Learn more about dispute reasons. -
getSmartDisputes
-
getStatus
The current status of a dispute. Possible values include:warning_needs_response,warning_under_review,warning_closed,needs_response,under_review,won,lost, orprevented.One of
lost,needs_response,prevented,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. -
setEnhancedEligibilityTypes
List of eligibility types that are included inenhanced_evidence. -
setEvidence
-
setEvidenceDetails
-
setId
Unique identifier for the object. -
setIntendedSubmissionMethod
Intended submission method for the dispute.One of
manual,prefer_manual,prefer_smart_disputes, orsmart_disputes. -
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 valuetrueif the object exists in live mode or the valuefalseif 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,noncompliant,product_not_received,product_unacceptable,subscription_canceled, orunrecognized. Learn more about dispute reasons. -
setSmartDisputes
-
setStatus
The current status of a dispute. Possible values include:warning_needs_response,warning_under_review,warning_closed,needs_response,under_review,won,lost, orprevented.One of
lost,needs_response,prevented,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:
getMetadatain interfaceMetadataStore<Dispute>
-