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 class
Dispute.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 boolean
canEqual(java.lang.Object other)
static Dispute
create(DisputeCreateParams params)
Creates an IssuingDispute
object.static Dispute
create(DisputeCreateParams params, RequestOptions options)
Creates an IssuingDispute
object.static Dispute
create(java.util.Map<java.lang.String,java.lang.Object> params)
Creates an IssuingDispute
object.static Dispute
create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Creates an IssuingDispute
object.boolean
equals(java.lang.Object o)
java.lang.Long
getAmount()
Disputed amount.java.util.List<BalanceTransaction>
getBalanceTransactions()
List of balance transactions associated with the dispute.java.lang.Long
getCreated()
Time at which the object was created.java.lang.String
getCurrency()
The currency thetransaction
was made in.Dispute.Evidence
getEvidence()
java.lang.String
getId()
Unique identifier for the object.java.lang.Boolean
getLivemode()
Has the valuetrue
if the object exists in live mode or the valuefalse
if 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.String
getObject()
String representing the object's type.java.lang.String
getStatus()
Current status of the dispute.java.lang.String
getTransaction()
Get ID of expandabletransaction
object.Transaction
getTransactionObject()
Get expandedtransaction
.int
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
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of IssuingDispute
objects.static DisputeCollection
list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Returns a list of IssuingDispute
objects.static Dispute
retrieve(java.lang.String dispute)
Retrieves an IssuingDispute
object.static Dispute
retrieve(java.lang.String dispute, RequestOptions options)
Retrieves an IssuingDispute
object.static Dispute
retrieve(java.lang.String dispute, DisputeRetrieveParams params, RequestOptions options)
Retrieves an IssuingDispute
object.static Dispute
retrieve(java.lang.String dispute, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Retrieves an IssuingDispute
object.void
setAmount(java.lang.Long amount)
Disputed amount.void
setBalanceTransactions(java.util.List<BalanceTransaction> balanceTransactions)
List of balance transactions associated with the dispute.void
setCreated(java.lang.Long created)
Time at which the object was created.void
setCurrency(java.lang.String currency)
The currency thetransaction
was made in.void
setEvidence(Dispute.Evidence evidence)
void
setId(java.lang.String id)
Unique identifier for the object.void
setLivemode(java.lang.Boolean livemode)
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object.void
setObject(java.lang.String object)
String representing the object's type.void
setStatus(java.lang.String status)
Current status of the dispute.void
setTransaction(java.lang.String id)
void
setTransactionObject(Transaction expandableObject)
Dispute
submit()
Submits an IssuingDispute
to the card network.Dispute
submit(RequestOptions options)
Submits an IssuingDispute
to the card network.Dispute
submit(DisputeSubmitParams params)
Submits an IssuingDispute
to the card network.Dispute
submit(DisputeSubmitParams params, RequestOptions options)
Submits an IssuingDispute
to the card network.Dispute
submit(java.util.Map<java.lang.String,java.lang.Object> params)
Submits an IssuingDispute
to the card network.Dispute
submit(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Submits an IssuingDispute
to the card network.Dispute
update(DisputeUpdateParams params)
Updates the specified IssuingDispute
object by setting the values of the parameters passed.Dispute
update(DisputeUpdateParams params, RequestOptions options)
Updates the specified IssuingDispute
object by setting the values of the parameters passed.Dispute
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates the specified IssuingDispute
object by setting the values of the parameters passed.Dispute
update(java.util.Map<java.lang.String,java.lang.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, 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
-
-
-
-
Method Detail
-
getTransaction
public java.lang.String getTransaction()
Get ID of expandabletransaction
object.
-
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 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(java.util.Map<java.lang.String,java.lang.Object> 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
-
list
public static DisputeCollection list(DisputeListParams params) 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
-
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
-
create
public static Dispute create(java.util.Map<java.lang.String,java.lang.Object> params) 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
-
create
public static Dispute create(java.util.Map<java.lang.String,java.lang.Object> 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
-
create
public static Dispute create(DisputeCreateParams params) 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
-
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
-
update
public Dispute update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
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
public Dispute update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
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
public Dispute update(DisputeUpdateParams params) throws StripeException
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
public Dispute update(DisputeUpdateParams params, RequestOptions options) throws StripeException
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
-
retrieve
public static Dispute retrieve(java.lang.String dispute) throws StripeException
Retrieves an IssuingDispute
object.- Throws:
StripeException
-
retrieve
public static Dispute retrieve(java.lang.String dispute, RequestOptions options) throws StripeException
Retrieves an IssuingDispute
object.- 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 IssuingDispute
object.- Throws:
StripeException
-
retrieve
public static Dispute retrieve(java.lang.String dispute, DisputeRetrieveParams params, RequestOptions options) throws StripeException
Retrieves an IssuingDispute
object.- Throws:
StripeException
-
submit
public Dispute submit() throws StripeException
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
public Dispute submit(RequestOptions options) throws StripeException
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
public Dispute submit(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
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
public Dispute submit(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
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
public Dispute submit(DisputeSubmitParams params) throws StripeException
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
public Dispute submit(DisputeSubmitParams params, RequestOptions options) throws StripeException
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
-
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 thetransaction
was made in.
-
getEvidence
public Dispute.Evidence getEvidence()
-
getLivemode
public java.lang.Boolean getLivemode()
Has the valuetrue
if the object exists in live mode or the valuefalse
if 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 thetransaction
was 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 valuetrue
if the object exists in live mode or the valuefalse
if 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:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in 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:
getMetadata
in interfaceMetadataStore<Dispute>
-
-