Class Dispute
- All Implemented Interfaces:
BalanceTransactionSource,HasId,MetadataStore<Dispute>,StripeActiveObject,StripeObjectInterface
Related guide: Issuing disputes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about Evidence, please refer to the API Reference.static classFor more details about Treasury, 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 booleanstatic Disputecreate(DisputeCreateParams params) Creates an IssuingDisputeobject.static Disputecreate(DisputeCreateParams params, RequestOptions options) Creates an IssuingDisputeobject.static DisputeCreates an IssuingDisputeobject.static Disputecreate(Map<String, Object> params, RequestOptions options) Creates an IssuingDisputeobject.booleanDisputed 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 thetransactionwas made in.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif 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 expandabletransactionobject.Get expandedtransaction.Treasury details related to this dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accountsinthashCode()static DisputeCollectionlist(DisputeListParams params) Returns a list of IssuingDisputeobjects.static DisputeCollectionlist(DisputeListParams params, RequestOptions options) Returns a list of IssuingDisputeobjects.static DisputeCollectionReturns a list of IssuingDisputeobjects.static DisputeCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of IssuingDisputeobjects.static DisputeRetrieves an IssuingDisputeobject.static Disputeretrieve(String dispute, RequestOptions options) Retrieves an IssuingDisputeobject.static Disputeretrieve(String dispute, DisputeRetrieveParams params, RequestOptions options) Retrieves an IssuingDisputeobject.static DisputeRetrieves an IssuingDisputeobject.voidDisputed amount in the card's currency and in the smallest currency unit.voidsetBalanceTransactions(List<BalanceTransaction> balanceTransactions) List of balance transactions associated with the dispute.voidsetCreated(Long created) Time at which the object was created.voidsetCurrency(String currency) The currency thetransactionwas made in.voidsetEvidence(Dispute.Evidence evidence) voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetLossReason(String lossReason) The enum that describes the dispute loss outcome.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidString representing the object's type.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidCurrent status of the dispute.voidsetTransaction(String id) voidsetTransactionObject(Transaction expandableObject) voidsetTreasury(Dispute.Treasury treasury) Treasury details related to this dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accountssubmit()Submits an IssuingDisputeto the card network.submit(RequestOptions options) Submits an IssuingDisputeto the card network.submit(DisputeSubmitParams params) Submits an IssuingDisputeto the card network.submit(DisputeSubmitParams params, RequestOptions options) Submits an IssuingDisputeto the card network.Submits an IssuingDisputeto the card network.submit(Map<String, Object> params, RequestOptions options) Submits an IssuingDisputeto the card network.update(DisputeUpdateParams params) Updates the specified IssuingDisputeobject by setting the values of the parameters passed.update(DisputeUpdateParams params, RequestOptions options) Updates the specified IssuingDisputeobject by setting the values of the parameters passed.Updates the specified IssuingDisputeobject by setting the values of the parameters passed.update(Map<String, Object> params, RequestOptions options) Updates the specified IssuingDisputeobject by setting the values of the parameters passed.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
-
getTransaction
Get ID of expandabletransactionobject. -
setTransaction
-
getTransactionObject
Get expandedtransaction. -
setTransactionObject
-
create
Creates an IssuingDisputeobject. Individual pieces of evidence within theevidenceobject 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 IssuingDisputeobject. Individual pieces of evidence within theevidenceobject 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 IssuingDisputeobject. Individual pieces of evidence within theevidenceobject 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 IssuingDisputeobject. Individual pieces of evidence within theevidenceobject 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 IssuingDisputeobjects. 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 IssuingDisputeobjects. 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 IssuingDisputeobjects. 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 IssuingDisputeobjects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
retrieve
Retrieves an IssuingDisputeobject.- Throws:
StripeException
-
retrieve
Retrieves an IssuingDisputeobject.- Throws:
StripeException
-
retrieve
public static Dispute retrieve(String dispute, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves an IssuingDisputeobject.- Throws:
StripeException
-
retrieve
public static Dispute retrieve(String dispute, DisputeRetrieveParams params, RequestOptions options) throws StripeException Retrieves an IssuingDisputeobject.- Throws:
StripeException
-
submit
Submits an IssuingDisputeto 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 IssuingDisputeto 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 IssuingDisputeto 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 IssuingDisputeto 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 IssuingDisputeto 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 IssuingDisputeto 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 IssuingDisputeobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on theevidenceobject can be unset by passing in an empty string.- Specified by:
updatein interfaceMetadataStore<Dispute>- Throws:
StripeException
-
update
Updates the specified IssuingDisputeobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on theevidenceobject can be unset by passing in an empty string.- Specified by:
updatein interfaceMetadataStore<Dispute>- Throws:
StripeException
-
update
Updates the specified IssuingDisputeobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on theevidenceobject can be unset by passing in an empty string.- Throws:
StripeException
-
update
Updates the specified IssuingDisputeobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on theevidenceobject can be unset by passing in an empty string.- 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 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 thetransactionwas made in. -
getEvidence
-
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif 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 thetransactionwas made in. -
setEvidence
-
setId
Unique identifier for the object. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif 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:
getMetadatain interfaceMetadataStore<Dispute>
-