Package com.stripe.model.issuing
Class Dispute
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.issuing.Dispute
- All Implemented Interfaces:
BalanceTransactionSource
,HasId
,MetadataStore<Dispute>
,StripeObjectInterface
public class Dispute
extends ApiResource
implements MetadataStore<Dispute>, BalanceTransactionSource
As a card issuer, you can dispute transactions that
the cardholder does not recognize, suspects to be fraudulent, or has other issues with.
Related guide: Disputing Transactions
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Get expandedadditionalDocumentation
.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
static Dispute
create
(DisputeCreateParams params) Creates an IssuingDispute
object.static Dispute
create
(DisputeCreateParams params, RequestOptions options) Creates an IssuingDispute
object.static Dispute
Creates an IssuingDispute
object.static Dispute
create
(Map<String, Object> params, RequestOptions options) Creates an IssuingDispute
object.boolean
Disputed amount in the card's currency and in the smallest currency unit.List of balance transactions associated with the dispute.Time at which the object was created.The currency thetransaction
was made in.getId()
Unique identifier for the object.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.String representing the object's type.Current status of the dispute.Get ID of expandabletransaction
object.Get expandedtransaction
.Treasury details related to this dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accountsint
hashCode()
static DisputeCollection
list
(DisputeListParams params) Returns a list of IssuingDispute
objects.static DisputeCollection
list
(DisputeListParams params, RequestOptions options) Returns a list of IssuingDispute
objects.static DisputeCollection
Returns a list of IssuingDispute
objects.static DisputeCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of IssuingDispute
objects.static Dispute
Retrieves an IssuingDispute
object.static Dispute
retrieve
(String dispute, RequestOptions options) Retrieves an IssuingDispute
object.static Dispute
retrieve
(String dispute, DisputeRetrieveParams params, RequestOptions options) Retrieves an IssuingDispute
object.static Dispute
Retrieves an IssuingDispute
object.void
Disputed amount in the card's currency and in the smallest currency unit.void
setBalanceTransactions
(List<BalanceTransaction> balanceTransactions) List of balance transactions associated with the dispute.void
setCreated
(Long created) Time at which the object was created.void
setCurrency
(String currency) The currency thetransaction
was made in.void
setEvidence
(Dispute.Evidence evidence) void
Unique identifier for the object.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
String representing the object's type.void
Current status of the dispute.void
setTransaction
(String id) void
setTransactionObject
(Transaction expandableObject) void
setTreasury
(Dispute.Treasury treasury) Treasury details related to this dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accountssubmit()
Submits an IssuingDispute
to the card network.submit
(RequestOptions options) Submits an IssuingDispute
to the card network.submit
(DisputeSubmitParams params) Submits an IssuingDispute
to the card network.submit
(DisputeSubmitParams params, RequestOptions options) Submits an IssuingDispute
to the card network.Submits an IssuingDispute
to the card network.submit
(Map<String, Object> params, RequestOptions options) Submits an IssuingDispute
to the card network.update
(DisputeUpdateParams params) Updates the specified IssuingDispute
object by setting the values of the parameters passed.update
(DisputeUpdateParams params, RequestOptions options) Updates the specified IssuingDispute
object by setting the values of the parameters passed.Updates the specified IssuingDispute
object by setting the values of the parameters passed.update
(Map<String, Object> params, RequestOptions options) Updates the specified IssuingDispute
object by setting the values of the parameters passed.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, fullUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
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.StripeObjectInterface
getLastResponse, setLastResponse
-
Constructor Details
-
Dispute
public Dispute()
-
-
Method Details
-
getTransaction
Get ID of expandabletransaction
object. -
setTransaction
-
getTransactionObject
Get expandedtransaction
. -
setTransactionObject
-
create
Creates an IssuingDispute
object. Individual pieces of evidence within theevidence
object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to Dispute reasons and evidence for more details about evidence requirements.- Throws:
StripeException
-
create
public static Dispute create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates an IssuingDispute
object. Individual pieces of evidence within theevidence
object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to Dispute reasons and evidence for more details about evidence requirements.- Throws:
StripeException
-
create
Creates an IssuingDispute
object. Individual pieces of evidence within theevidence
object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to Dispute reasons and evidence for more details about evidence requirements.- Throws:
StripeException
-
create
public static Dispute create(DisputeCreateParams params, RequestOptions options) throws StripeException Creates an IssuingDispute
object. Individual pieces of evidence within theevidence
object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to Dispute reasons and evidence for more details about evidence requirements.- Throws:
StripeException
-
list
Returns a list of IssuingDispute
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static DisputeCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of IssuingDispute
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
Returns a list of IssuingDispute
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static DisputeCollection list(DisputeListParams params, RequestOptions options) throws StripeException Returns a list of IssuingDispute
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
retrieve
Retrieves an IssuingDispute
object.- Throws:
StripeException
-
retrieve
Retrieves an IssuingDispute
object.- Throws:
StripeException
-
retrieve
public static Dispute retrieve(String dispute, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves an IssuingDispute
object.- Throws:
StripeException
-
retrieve
public static Dispute retrieve(String dispute, DisputeRetrieveParams params, RequestOptions options) throws StripeException Retrieves an IssuingDispute
object.- Throws:
StripeException
-
submit
Submits an IssuingDispute
to the card network. Stripe validates that all evidence fields required for the dispute’s reason are present. For more details, see Dispute reasons and evidence.- Throws:
StripeException
-
submit
Submits an IssuingDispute
to the card network. Stripe validates that all evidence fields required for the dispute’s reason are present. For more details, see Dispute reasons and evidence.- Throws:
StripeException
-
submit
Submits an IssuingDispute
to the card network. Stripe validates that all evidence fields required for the dispute’s reason are present. For more details, see Dispute reasons and evidence.- Throws:
StripeException
-
submit
Submits an IssuingDispute
to the card network. Stripe validates that all evidence fields required for the dispute’s reason are present. For more details, see Dispute reasons and evidence.- Throws:
StripeException
-
submit
Submits an IssuingDispute
to the card network. Stripe validates that all evidence fields required for the dispute’s reason are present. For more details, see Dispute reasons and evidence.- Throws:
StripeException
-
submit
Submits an IssuingDispute
to the card network. Stripe validates that all evidence fields required for the dispute’s reason are present. For more details, see Dispute reasons and evidence.- Throws:
StripeException
-
update
Updates the specified IssuingDispute
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on theevidence
object can be unset by passing in an empty string.- Specified by:
update
in interfaceMetadataStore<Dispute>
- Throws:
StripeException
-
update
Updates the specified IssuingDispute
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on theevidence
object can be unset by passing in an empty string.- Specified by:
update
in interfaceMetadataStore<Dispute>
- Throws:
StripeException
-
update
Updates the specified IssuingDispute
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on theevidence
object can be unset by passing in an empty string.- Throws:
StripeException
-
update
Updates the specified IssuingDispute
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on theevidence
object can be unset by passing in an empty string.- Throws:
StripeException
-
getAmount
Disputed amount in the card's currency and in the smallest currency unit. Usually the amount of thetransaction
, but can differ (usually because of currency fluctuation). -
getBalanceTransactions
List of balance transactions associated with the dispute. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCurrency
The currency thetransaction
was made in. -
getEvidence
-
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
issuing.dispute
. -
getStatus
Current status of the dispute.One of
expired
,lost
,submitted
,unsubmitted
, orwon
. -
getTreasury
Treasury details related to this dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts -
setAmount
Disputed amount in the card's currency and in the smallest currency unit. Usually the amount of thetransaction
, but can differ (usually because of currency fluctuation). -
setBalanceTransactions
List of balance transactions associated with the dispute. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCurrency
The currency thetransaction
was made in. -
setEvidence
-
setId
Unique identifier for the object. -
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. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
issuing.dispute
. -
setStatus
Current status of the dispute.One of
expired
,lost
,submitted
,unsubmitted
, orwon
. -
setTreasury
Treasury details related to this dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts -
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>
-