public class Refund extends ApiResource implements MetadataStore<Refund>, BalanceTransactionSource
ApiResource.RequestMethod
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
Refund() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
static Refund |
create(java.util.Map<java.lang.String,java.lang.Object> params)
Create a refund.
|
static Refund |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Create a refund.
|
static Refund |
create(RefundCreateParams params)
Create a refund.
|
static Refund |
create(RefundCreateParams params,
RequestOptions options)
Create a refund.
|
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getAmount()
Amount, in %s.
|
java.lang.String |
getBalanceTransaction()
Get ID of expandable
balanceTransaction object. |
BalanceTransaction |
getBalanceTransactionObject()
Get expanded
balanceTransaction . |
java.lang.String |
getCharge()
Get ID of expandable
charge object. |
Charge |
getChargeObject()
Get expanded
charge . |
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.String |
getCurrency()
Three-letter ISO currency code,
in lowercase.
|
java.lang.String |
getDescription()
An arbitrary string attached to the object.
|
java.lang.String |
getFailureBalanceTransaction()
Get ID of expandable
failureBalanceTransaction object. |
BalanceTransaction |
getFailureBalanceTransactionObject()
Get expanded
failureBalanceTransaction . |
java.lang.String |
getFailureReason()
If the refund failed, the reason for refund failure if known.
|
java.lang.String |
getId()
Unique identifier for the object.
|
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 |
getPaymentIntent()
Get ID of expandable
paymentIntent object. |
PaymentIntent |
getPaymentIntentObject()
Get expanded
paymentIntent . |
java.lang.String |
getReason()
Reason for the refund, either user-provided (
duplicate , fraudulent , or requested_by_customer ) or generated by Stripe internally (expired_uncaptured_charge ). |
java.lang.String |
getReceiptNumber()
This is the transaction number that appears on email receipts sent for this refund.
|
java.lang.String |
getSourceTransferReversal()
Get ID of expandable
sourceTransferReversal object. |
TransferReversal |
getSourceTransferReversalObject()
Get expanded
sourceTransferReversal . |
java.lang.String |
getStatus()
Status of the refund.
|
java.lang.String |
getTransferReversal()
Get ID of expandable
transferReversal object. |
TransferReversal |
getTransferReversalObject()
Get expanded
transferReversal . |
int |
hashCode() |
static RefundCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of all refunds you’ve previously created.
|
static RefundCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of all refunds you’ve previously created.
|
static RefundCollection |
list(RefundListParams params)
Returns a list of all refunds you’ve previously created.
|
static RefundCollection |
list(RefundListParams params,
RequestOptions options)
Returns a list of all refunds you’ve previously created.
|
static Refund |
retrieve(java.lang.String refund)
Retrieves the details of an existing refund.
|
static Refund |
retrieve(java.lang.String refund,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves the details of an existing refund.
|
static Refund |
retrieve(java.lang.String refund,
RefundRetrieveParams params,
RequestOptions options)
Retrieves the details of an existing refund.
|
static Refund |
retrieve(java.lang.String refund,
RequestOptions options)
Retrieves the details of an existing refund.
|
void |
setAmount(java.lang.Long amount)
Amount, in %s.
|
void |
setBalanceTransaction(java.lang.String id) |
void |
setBalanceTransactionObject(BalanceTransaction expandableObject) |
void |
setCharge(java.lang.String id) |
void |
setChargeObject(Charge expandableObject) |
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setCurrency(java.lang.String currency)
Three-letter ISO currency code,
in lowercase.
|
void |
setDescription(java.lang.String description)
An arbitrary string attached to the object.
|
void |
setFailureBalanceTransaction(java.lang.String id) |
void |
setFailureBalanceTransactionObject(BalanceTransaction expandableObject) |
void |
setFailureReason(java.lang.String failureReason)
If the refund failed, the reason for refund failure if known.
|
void |
setId(java.lang.String id)
Unique identifier for the object.
|
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 |
setPaymentIntent(java.lang.String id) |
void |
setPaymentIntentObject(PaymentIntent expandableObject) |
void |
setReason(java.lang.String reason)
Reason for the refund, either user-provided (
duplicate , fraudulent , or requested_by_customer ) or generated by Stripe internally (expired_uncaptured_charge ). |
void |
setReceiptNumber(java.lang.String receiptNumber)
This is the transaction number that appears on email receipts sent for this refund.
|
void |
setSourceTransferReversal(java.lang.String id) |
void |
setSourceTransferReversalObject(TransferReversal expandableObject) |
void |
setStatus(java.lang.String status)
Status of the refund.
|
void |
setTransferReversal(java.lang.String id) |
void |
setTransferReversalObject(TransferReversal expandableObject) |
Refund |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates the specified refund by setting the values of the parameters passed.
|
Refund |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Updates the specified refund by setting the values of the parameters passed.
|
Refund |
update(RefundUpdateParams params)
Updates the specified refund by setting the values of the parameters passed.
|
Refund |
update(RefundUpdateParams params,
RequestOptions options)
Updates the specified refund 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLastResponse, setLastResponse
public java.lang.String getBalanceTransaction()
balanceTransaction
object.public void setBalanceTransaction(java.lang.String id)
public BalanceTransaction getBalanceTransactionObject()
balanceTransaction
.public void setBalanceTransactionObject(BalanceTransaction expandableObject)
public java.lang.String getCharge()
charge
object.public void setCharge(java.lang.String id)
public Charge getChargeObject()
charge
.public void setChargeObject(Charge expandableObject)
public java.lang.String getFailureBalanceTransaction()
failureBalanceTransaction
object.public void setFailureBalanceTransaction(java.lang.String id)
public BalanceTransaction getFailureBalanceTransactionObject()
failureBalanceTransaction
.public void setFailureBalanceTransactionObject(BalanceTransaction expandableObject)
public java.lang.String getPaymentIntent()
paymentIntent
object.public void setPaymentIntent(java.lang.String id)
public PaymentIntent getPaymentIntentObject()
paymentIntent
.public void setPaymentIntentObject(PaymentIntent expandableObject)
public java.lang.String getSourceTransferReversal()
sourceTransferReversal
object.public void setSourceTransferReversal(java.lang.String id)
public TransferReversal getSourceTransferReversalObject()
sourceTransferReversal
.public void setSourceTransferReversalObject(TransferReversal expandableObject)
public java.lang.String getTransferReversal()
transferReversal
object.public void setTransferReversal(java.lang.String id)
public TransferReversal getTransferReversalObject()
transferReversal
.public void setTransferReversalObject(TransferReversal expandableObject)
public static RefundCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static RefundCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static RefundCollection list(RefundListParams params) throws StripeException
StripeException
public static RefundCollection list(RefundListParams params, RequestOptions options) throws StripeException
StripeException
public static Refund create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static Refund create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static Refund create(RefundCreateParams params) throws StripeException
StripeException
public static Refund create(RefundCreateParams params, RequestOptions options) throws StripeException
StripeException
public static Refund retrieve(java.lang.String refund) throws StripeException
StripeException
public static Refund retrieve(java.lang.String refund, RequestOptions options) throws StripeException
StripeException
public static Refund retrieve(java.lang.String refund, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static Refund retrieve(java.lang.String refund, RefundRetrieveParams params, RequestOptions options) throws StripeException
StripeException
public Refund update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
This request only accepts metadata
as an argument.
update
in interface MetadataStore<Refund>
StripeException
public Refund update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
This request only accepts metadata
as an argument.
update
in interface MetadataStore<Refund>
StripeException
public Refund update(RefundUpdateParams params) throws StripeException
This request only accepts metadata
as an argument.
StripeException
public Refund update(RefundUpdateParams params, RequestOptions options) throws StripeException
This request only accepts metadata
as an argument.
StripeException
public java.lang.Long getAmount()
public java.lang.Long getCreated()
public java.lang.String getCurrency()
public java.lang.String getDescription()
public java.lang.String getFailureReason()
lost_or_stolen_card
, expired_or_canceled_card
, or unknown
.public java.lang.String getObject()
Equal to refund
.
public java.lang.String getReason()
duplicate
, fraudulent
, or requested_by_customer
) or generated by Stripe internally (expired_uncaptured_charge
).public java.lang.String getReceiptNumber()
public java.lang.String getStatus()
pending
, succeeded
,
or failed
. For other types of refunds, it can be pending
, succeeded
,
failed
, or canceled
. Refer to our refunds documentation for more
details.public void setAmount(java.lang.Long amount)
public void setCreated(java.lang.Long created)
public void setCurrency(java.lang.String currency)
public void setDescription(java.lang.String description)
public void setFailureReason(java.lang.String failureReason)
lost_or_stolen_card
, expired_or_canceled_card
, or unknown
.public void setId(java.lang.String id)
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setObject(java.lang.String object)
Equal to refund
.
public void setReason(java.lang.String reason)
duplicate
, fraudulent
, or requested_by_customer
) or generated by Stripe internally (expired_uncaptured_charge
).public void setReceiptNumber(java.lang.String receiptNumber)
public void setStatus(java.lang.String status)
pending
, succeeded
,
or failed
. For other types of refunds, it can be pending
, succeeded
,
failed
, or canceled
. Refer to our refunds documentation for more
details.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<Refund>