public class Refund extends ApiResource implements BalanceTransactionSource, MetadataStore<Refund>
ApiResource.RequestMethod, ApiResource.RequestType
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](https://www.iso.org/iso-4217-currency-codes.html), 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 |
getReason()
Reason for the refund.
|
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](https://www.iso.org/iso-4217-currency-codes.html), 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 |
setReason(java.lang.String reason)
Reason for the refund.
|
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, multipartRequest, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, setLastResponse, toJson, toString
public java.lang.String getBalanceTransaction()
public void setBalanceTransaction(java.lang.String id)
public BalanceTransaction getBalanceTransactionObject()
public void setBalanceTransactionObject(BalanceTransaction expandableObject)
public java.lang.String getCharge()
public void setCharge(java.lang.String id)
public Charge getChargeObject()
public void setChargeObject(Charge expandableObject)
public java.lang.String getFailureBalanceTransaction()
public void setFailureBalanceTransaction(java.lang.String id)
public BalanceTransaction getFailureBalanceTransactionObject()
public void setFailureBalanceTransactionObject(BalanceTransaction expandableObject)
public java.lang.String getSourceTransferReversal()
public void setSourceTransferReversal(java.lang.String id)
public TransferReversal getSourceTransferReversalObject()
public void setSourceTransferReversalObject(TransferReversal expandableObject)
public java.lang.String getTransferReversal()
public void setTransferReversal(java.lang.String id)
public TransferReversal getTransferReversalObject()
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()
public java.lang.String getObject()
public java.lang.String getReason()
public java.lang.String getReceiptNumber()
public java.lang.String getStatus()
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)
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)
public void setReason(java.lang.String reason)
public void setReceiptNumber(java.lang.String receiptNumber)
public void setStatus(java.lang.String status)
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>