public class Dispute extends ApiResource implements HasId, MetadataStore<Dispute>
Modifier and Type | Class and Description |
---|---|
static class |
Dispute.Evidence |
static class |
Dispute.EvidenceDuplicate |
static class |
Dispute.EvidenceFraudulent |
static class |
Dispute.EvidenceOther |
static class |
Dispute.EvidenceProductNotReceived |
ApiResource.RequestMethod
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
Dispute() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
static Dispute |
create(DisputeCreateParams params)
Creates an Issuing
Dispute object. |
static Dispute |
create(DisputeCreateParams params,
RequestOptions options)
Creates an Issuing
Dispute object. |
static Dispute |
create(java.util.Map<java.lang.String,java.lang.Object> params)
Creates an Issuing
Dispute object. |
static Dispute |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Creates an Issuing
Dispute object. |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getAmount()
Disputed amount.
|
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.String |
getCurrency()
The currency the
disputed_transaction was made in. |
java.lang.String |
getDisputedTransaction()
Get ID of expandable
disputedTransaction object. |
Transaction |
getDisputedTransactionObject()
Get expanded
disputedTransaction . |
Dispute.Evidence |
getEvidence() |
java.lang.String |
getId()
Unique identifier for the object.
|
java.lang.Boolean |
getLivemode()
Has the value
true if the object exists in live mode or the value false 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 |
getReason()
Reason for this dispute.
|
java.lang.String |
getStatus()
Current status of dispute.
|
int |
hashCode() |
static DisputeCollection |
list(DisputeListParams params)
Returns a list of Issuing
Dispute objects. |
static DisputeCollection |
list(DisputeListParams params,
RequestOptions options)
Returns a list of Issuing
Dispute objects. |
static DisputeCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of Issuing
Dispute objects. |
static DisputeCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of Issuing
Dispute objects. |
static Dispute |
retrieve(java.lang.String dispute)
Retrieves an Issuing
Dispute object. |
static Dispute |
retrieve(java.lang.String dispute,
DisputeRetrieveParams params,
RequestOptions options)
Retrieves an Issuing
Dispute object. |
static Dispute |
retrieve(java.lang.String dispute,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves an Issuing
Dispute object. |
static Dispute |
retrieve(java.lang.String dispute,
RequestOptions options)
Retrieves an Issuing
Dispute object. |
void |
setAmount(java.lang.Long amount)
Disputed amount.
|
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setCurrency(java.lang.String currency)
The currency the
disputed_transaction was made in. |
void |
setDisputedTransaction(java.lang.String id) |
void |
setDisputedTransactionObject(Transaction expandableObject) |
void |
setEvidence(Dispute.Evidence evidence) |
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setLivemode(java.lang.Boolean livemode)
Has the value
true if the object exists in live mode or the value false 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 |
setReason(java.lang.String reason)
Reason for this dispute.
|
void |
setStatus(java.lang.String status)
Current status of dispute.
|
Dispute |
update(DisputeUpdateParams params)
Updates the specified Issuing
Dispute object by setting the values of the
parameters passed. |
Dispute |
update(DisputeUpdateParams params,
RequestOptions options)
Updates the specified Issuing
Dispute object by setting the values of the
parameters passed. |
Dispute |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates the specified Issuing
Dispute 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 Issuing
Dispute object by setting the values of the
parameters passed. |
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getDisputedTransaction()
disputedTransaction
object.public void setDisputedTransaction(java.lang.String id)
public Transaction getDisputedTransactionObject()
disputedTransaction
.public void setDisputedTransactionObject(Transaction expandableObject)
public static DisputeCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Dispute
objects. The objects are sorted in descending
order by creation date, with the most recently created object appearing first.StripeException
public static DisputeCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Dispute
objects. The objects are sorted in descending
order by creation date, with the most recently created object appearing first.StripeException
public static DisputeCollection list(DisputeListParams params) throws StripeException
Dispute
objects. The objects are sorted in descending
order by creation date, with the most recently created object appearing first.StripeException
public static DisputeCollection list(DisputeListParams params, RequestOptions options) throws StripeException
Dispute
objects. The objects are sorted in descending
order by creation date, with the most recently created object appearing first.StripeException
public static Dispute create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Dispute
object.StripeException
public static Dispute create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Dispute
object.StripeException
public static Dispute create(DisputeCreateParams params) throws StripeException
Dispute
object.StripeException
public static Dispute create(DisputeCreateParams params, RequestOptions options) throws StripeException
Dispute
object.StripeException
public Dispute update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Dispute
object by setting the values of the
parameters passed. Any parameters not provided will be left unchanged.update
in interface MetadataStore<Dispute>
StripeException
public Dispute update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Dispute
object by setting the values of the
parameters passed. Any parameters not provided will be left unchanged.update
in interface MetadataStore<Dispute>
StripeException
public Dispute update(DisputeUpdateParams params) throws StripeException
Dispute
object by setting the values of the
parameters passed. Any parameters not provided will be left unchanged.StripeException
public Dispute update(DisputeUpdateParams params, RequestOptions options) throws StripeException
Dispute
object by setting the values of the
parameters passed. Any parameters not provided will be left unchanged.StripeException
public static Dispute retrieve(java.lang.String dispute) throws StripeException
Dispute
object.StripeException
public static Dispute retrieve(java.lang.String dispute, RequestOptions options) throws StripeException
Dispute
object.StripeException
public static Dispute retrieve(java.lang.String dispute, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Dispute
object.StripeException
public static Dispute retrieve(java.lang.String dispute, DisputeRetrieveParams params, RequestOptions options) throws StripeException
Dispute
object.StripeException
public java.lang.Long getAmount()
disputed_transaction
, but can differ
(usually because of currency fluctuation or because only part of the order is disputed).public java.lang.Long getCreated()
public java.lang.String getCurrency()
disputed_transaction
was made in.public Dispute.Evidence getEvidence()
public java.lang.Boolean getLivemode()
true
if the object exists in live mode or the value false
if the
object exists in test mode.public java.lang.String getObject()
Equal to issuing.dispute
.
public java.lang.String getReason()
duplicate
, product_not_received
, fraudulent
, or other
.public java.lang.String getStatus()
unsubmitted
, under_review
, won
, or
lost
.public void setAmount(java.lang.Long amount)
disputed_transaction
, but can differ
(usually because of currency fluctuation or because only part of the order is disputed).public void setCreated(java.lang.Long created)
public void setCurrency(java.lang.String currency)
disputed_transaction
was made in.public void setEvidence(Dispute.Evidence evidence)
public void setId(java.lang.String id)
public void setLivemode(java.lang.Boolean livemode)
true
if the object exists in live mode or the value false
if the
object exists in test mode.public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setObject(java.lang.String object)
Equal to issuing.dispute
.
public void setReason(java.lang.String reason)
duplicate
, product_not_received
, fraudulent
, or other
.public void setStatus(java.lang.String status)
unsubmitted
, under_review
, won
, or
lost
.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getId()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata
in interface MetadataStore<Dispute>