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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDispute.Evidence-
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
Constructors Constructor Description Dispute()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)static Disputecreate(DisputeCreateParams params)Creates an IssuingDisputeobject.static Disputecreate(DisputeCreateParams params, RequestOptions options)Creates an IssuingDisputeobject.static Disputecreate(java.util.Map<java.lang.String,java.lang.Object> params)Creates an IssuingDisputeobject.static Disputecreate(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Creates an IssuingDisputeobject.booleanequals(java.lang.Object o)java.lang.LonggetAmount()Disputed amount.java.util.List<BalanceTransaction>getBalanceTransactions()List of balance transactions associated with the dispute.java.lang.LonggetCreated()Time at which the object was created.java.lang.StringgetCurrency()The currency thetransactionwas made in.Dispute.EvidencegetEvidence()java.lang.StringgetId()Unique identifier for the object.java.lang.BooleangetLivemode()Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.java.util.Map<java.lang.String,java.lang.String>getMetadata()Set of key-value pairs that you can attach to an object.java.lang.StringgetObject()String representing the object's type.java.lang.StringgetStatus()Current status of the dispute.java.lang.StringgetTransaction()Get ID of expandabletransactionobject.TransactiongetTransactionObject()Get expandedtransaction.inthashCode()static DisputeCollectionlist(DisputeListParams params)Returns a list of IssuingDisputeobjects.static DisputeCollectionlist(DisputeListParams params, RequestOptions options)Returns a list of IssuingDisputeobjects.static DisputeCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params)Returns a list of IssuingDisputeobjects.static DisputeCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Returns a list of IssuingDisputeobjects.static Disputeretrieve(java.lang.String dispute)Retrieves an IssuingDisputeobject.static Disputeretrieve(java.lang.String dispute, RequestOptions options)Retrieves an IssuingDisputeobject.static Disputeretrieve(java.lang.String dispute, DisputeRetrieveParams params, RequestOptions options)Retrieves an IssuingDisputeobject.static Disputeretrieve(java.lang.String dispute, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Retrieves an IssuingDisputeobject.voidsetAmount(java.lang.Long amount)Disputed amount.voidsetBalanceTransactions(java.util.List<BalanceTransaction> balanceTransactions)List of balance transactions associated with the dispute.voidsetCreated(java.lang.Long created)Time at which the object was created.voidsetCurrency(java.lang.String currency)The currency thetransactionwas made in.voidsetEvidence(Dispute.Evidence evidence)voidsetId(java.lang.String id)Unique identifier for the object.voidsetLivemode(java.lang.Boolean livemode)Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)Set of key-value pairs that you can attach to an object.voidsetObject(java.lang.String object)String representing the object's type.voidsetStatus(java.lang.String status)Current status of the dispute.voidsetTransaction(java.lang.String id)voidsetTransactionObject(Transaction expandableObject)Disputesubmit()Submits an IssuingDisputeto the card network.Disputesubmit(RequestOptions options)Submits an IssuingDisputeto the card network.Disputesubmit(DisputeSubmitParams params)Submits an IssuingDisputeto the card network.Disputesubmit(DisputeSubmitParams params, RequestOptions options)Submits an IssuingDisputeto the card network.Disputesubmit(java.util.Map<java.lang.String,java.lang.Object> params)Submits an IssuingDisputeto the card network.Disputesubmit(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Submits an IssuingDisputeto the card network.Disputeupdate(DisputeUpdateParams params)Updates the specified IssuingDisputeobject by setting the values of the parameters passed.Disputeupdate(DisputeUpdateParams params, RequestOptions options)Updates the specified IssuingDisputeobject by setting the values of the parameters passed.Disputeupdate(java.util.Map<java.lang.String,java.lang.Object> params)Updates the specified IssuingDisputeobject by setting the values of the parameters passed.Disputeupdate(java.util.Map<java.lang.String,java.lang.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, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, 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
-
-
-
-
Method Detail
-
getTransaction
public java.lang.String getTransaction()
Get ID of expandabletransactionobject.
-
setTransaction
public void setTransaction(java.lang.String id)
-
getTransactionObject
public Transaction getTransactionObject()
Get expandedtransaction.
-
setTransactionObject
public void setTransactionObject(Transaction expandableObject)
-
list
public static DisputeCollection list(java.util.Map<java.lang.String,java.lang.Object> params) 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
-
list
public static DisputeCollection list(java.util.Map<java.lang.String,java.lang.Object> 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
-
list
public static DisputeCollection list(DisputeListParams params) 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
-
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
-
create
public static Dispute create(java.util.Map<java.lang.String,java.lang.Object> params) 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
-
create
public static Dispute create(java.util.Map<java.lang.String,java.lang.Object> 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
-
create
public static Dispute create(DisputeCreateParams params) 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
-
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
-
update
public Dispute update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
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
public Dispute update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
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
public Dispute update(DisputeUpdateParams params) throws StripeException
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
public Dispute update(DisputeUpdateParams params, RequestOptions options) throws StripeException
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
-
retrieve
public static Dispute retrieve(java.lang.String dispute) throws StripeException
Retrieves an IssuingDisputeobject.- Throws:
StripeException
-
retrieve
public static Dispute retrieve(java.lang.String dispute, RequestOptions options) throws StripeException
Retrieves an IssuingDisputeobject.- Throws:
StripeException
-
retrieve
public static Dispute retrieve(java.lang.String dispute, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Retrieves an IssuingDisputeobject.- Throws:
StripeException
-
retrieve
public static Dispute retrieve(java.lang.String dispute, DisputeRetrieveParams params, RequestOptions options) throws StripeException
Retrieves an IssuingDisputeobject.- Throws:
StripeException
-
submit
public Dispute submit() throws StripeException
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
public Dispute submit(RequestOptions options) throws StripeException
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
public Dispute submit(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
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
public Dispute submit(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
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
public Dispute submit(DisputeSubmitParams params) throws StripeException
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
public Dispute submit(DisputeSubmitParams params, RequestOptions options) throws StripeException
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
-
getAmount
public java.lang.Long getAmount()
Disputed amount. Usually the amount of thetransaction, but can differ (usually because of currency fluctuation).
-
getBalanceTransactions
public java.util.List<BalanceTransaction> getBalanceTransactions()
List of balance transactions associated with the dispute.
-
getCreated
public java.lang.Long getCreated()
Time at which the object was created. Measured in seconds since the Unix epoch.
-
getCurrency
public java.lang.String getCurrency()
The currency thetransactionwas made in.
-
getEvidence
public Dispute.Evidence getEvidence()
-
getLivemode
public java.lang.Boolean getLivemode()
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
issuing.dispute.
-
getStatus
public java.lang.String getStatus()
Current status of the dispute.One of
expired,lost,submitted,unsubmitted, orwon.
-
setAmount
public void setAmount(java.lang.Long amount)
Disputed amount. Usually the amount of thetransaction, but can differ (usually because of currency fluctuation).
-
setBalanceTransactions
public void setBalanceTransactions(java.util.List<BalanceTransaction> balanceTransactions)
List of balance transactions associated with the dispute.
-
setCreated
public void setCreated(java.lang.Long created)
Time at which the object was created. Measured in seconds since the Unix epoch.
-
setCurrency
public void setCurrency(java.lang.String currency)
The currency thetransactionwas made in.
-
setEvidence
public void setEvidence(Dispute.Evidence evidence)
-
setId
public void setId(java.lang.String id)
Unique identifier for the object.
-
setLivemode
public void setLivemode(java.lang.Boolean livemode)
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
-
setMetadata
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
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
public void setObject(java.lang.String object)
String representing the object's type. Objects of the same type share the same value.Equal to
issuing.dispute.
-
setStatus
public void setStatus(java.lang.String status)
Current status of the dispute.One of
expired,lost,submitted,unsubmitted, orwon.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getId
public java.lang.String getId()
Unique identifier for the object.
-
getMetadata
public java.util.Map<java.lang.String,java.lang.String> 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>
-
-