HasId
, MetadataStore<Charge>
public class Refund extends APIResource implements MetadataStore<Charge>, HasId
APIResource.RequestMethod, APIResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor | Description |
---|---|
Refund() |
Modifier and Type | Method | Description |
---|---|---|
static RefundCollection |
all(java.util.Map<java.lang.String,java.lang.Object> params) |
Deprecated.
Use the
list(Map) method instead.
This method will be removed in the next major version. |
static RefundCollection |
all(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options) |
Deprecated.
Use the
list(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
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.
|
boolean |
equals(java.lang.Object o) |
|
java.lang.Long |
getAmount() |
|
java.lang.String |
getBalanceTransaction() |
|
BalanceTransaction |
getBalanceTransactionObject() |
|
java.lang.String |
getCharge() |
|
Charge |
getChargeObject() |
|
java.lang.Long |
getCreated() |
|
java.lang.String |
getCurrency() |
|
java.lang.String |
getDescription() |
|
java.lang.String |
getId() |
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata() |
|
java.lang.String |
getObject() |
|
java.lang.String |
getReason() |
|
java.lang.String |
getReceiptNumber() |
|
java.lang.String |
getStatus() |
|
int |
hashCode() |
|
static RefundCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params) |
List all refunds.
|
static RefundCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options) |
List all refunds.
|
static Refund |
retrieve(java.lang.String id) |
Retrieve a refund.
|
static Refund |
retrieve(java.lang.String id,
RequestOptions options) |
Retrieve a refund.
|
static Refund |
retrieve(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options) |
Retrieve a refund.
|
void |
setAmount(java.lang.Long amount) |
|
void |
setBalanceTransaction(java.lang.String balanceTransactionID) |
|
void |
setBalanceTransactionObject(BalanceTransaction c) |
|
void |
setCharge(java.lang.String chargeID) |
|
void |
setChargeObject(Charge c) |
|
void |
setCreated(java.lang.Long created) |
|
void |
setCurrency(java.lang.String currency) |
|
void |
setDescription(java.lang.String description) |
|
void |
setId(java.lang.String id) |
|
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata) |
|
void |
setObject(java.lang.String object) |
|
void |
setReason(java.lang.String reason) |
|
void |
setReceiptNumber(java.lang.String receiptNumber) |
|
void |
setStatus(java.lang.String status) |
|
Refund |
update(java.util.Map<java.lang.String,java.lang.Object> params) |
Update a refund.
|
Refund |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options) |
Update a refund.
|
Refund |
update(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String apiKey) |
Deprecated.
Use the
update(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
classURL, classURL, instanceURL, instanceURL, multipartRequest, request, requestCollection, setExpandableFieldID, setStripeResponseGetter, singleClassURL, singleClassURL, subresourceURL, urlEncode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
equals, getLastResponse, setLastResponse, toJson, toString
public java.lang.String getBalanceTransaction()
public void setBalanceTransaction(java.lang.String balanceTransactionID)
public BalanceTransaction getBalanceTransactionObject()
public void setBalanceTransactionObject(BalanceTransaction c)
public java.lang.String getCharge()
public void setCharge(java.lang.String chargeID)
public Charge getChargeObject()
public void setChargeObject(Charge c)
@Deprecated public static RefundCollection all(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
list(Map)
method instead.
This method will be removed in the next major version.@Deprecated public static RefundCollection all(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
list(Map, RequestOptions)
method instead.
This method will be removed in the next major version.public static Refund create(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Refund create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static RefundCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static RefundCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Refund retrieve(java.lang.String id) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Refund retrieve(java.lang.String id, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Refund retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Refund update(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update
in interface MetadataStore<Charge>
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
public Refund update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update
in interface MetadataStore<Charge>
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
@Deprecated public Refund update(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update(Map, RequestOptions)
method instead.
This method will be removed in the next major version.public java.lang.String getObject()
public java.lang.Long getAmount()
public java.lang.Long getCreated()
public java.lang.String getCurrency()
public java.lang.String getDescription()
public java.lang.String getReason()
public java.lang.String getReceiptNumber()
public java.lang.String getStatus()
public void setId(java.lang.String id)
public void setObject(java.lang.String object)
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 setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
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.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata
in interface MetadataStore<Charge>