Class Dispute
- All Implemented Interfaces:
BalanceTransactionSource
,HasId
,MetadataStore<Dispute>
,StripeActiveObject
,StripeObjectInterface
Related guide: Issuing disputes
-
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, INTERNAL_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.The enum that describes the dispute loss outcome.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
setLossReason
(String lossReason) The enum that describes the dispute loss outcome.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
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.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, 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
-
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
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
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. -
getLossReason
The enum that describes the dispute loss outcome. If the dispute is not lost, this field will be absent. New enum values may be added in the future, so be sure to handle unknown values.One of
cardholder_authentication_issuer_liability
,eci5_token_transaction_with_tavv
,excess_disputes_in_timeframe
,has_not_met_the_minimum_dispute_amount_requirements
,invalid_duplicate_dispute
,invalid_incorrect_amount_dispute
,invalid_no_authorization
,invalid_use_of_disputes
,merchandise_delivered_or_shipped
,merchandise_or_service_as_described
,not_cancelled
,other
,refund_issued
,submitted_beyond_allowable_time_limit
,transaction_3ds_required
,transaction_approved_after_prior_fraud_dispute
,transaction_authorized
,transaction_electronically_read
,transaction_qualifies_for_visa_easy_payment_service
, ortransaction_unattended
. -
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. -
setLossReason
The enum that describes the dispute loss outcome. If the dispute is not lost, this field will be absent. New enum values may be added in the future, so be sure to handle unknown values.One of
cardholder_authentication_issuer_liability
,eci5_token_transaction_with_tavv
,excess_disputes_in_timeframe
,has_not_met_the_minimum_dispute_amount_requirements
,invalid_duplicate_dispute
,invalid_incorrect_amount_dispute
,invalid_no_authorization
,invalid_use_of_disputes
,merchandise_delivered_or_shipped
,merchandise_or_service_as_described
,not_cancelled
,other
,refund_issued
,submitted_beyond_allowable_time_limit
,transaction_3ds_required
,transaction_approved_after_prior_fraud_dispute
,transaction_authorized
,transaction_electronically_read
,transaction_qualifies_for_visa_easy_payment_service
, ortransaction_unattended
. -
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>
-