public class Charge extends APIResource implements MetadataStore<Charge>, HasId
APIResource.RequestMethod, APIResource.RequestType| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FRAUD_DETAILS |
CHARSET, GSONPRETTY_PRINT_GSON| Constructor and Description |
|---|
Charge() |
| Modifier and Type | Method and Description |
|---|---|
static ChargeCollection |
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 ChargeCollection |
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. |
static ChargeCollection |
all(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String apiKey)
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) |
Charge |
capture()
Capture a charge.
|
Charge |
capture(java.util.Map<java.lang.String,java.lang.Object> params)
Capture a charge.
|
Charge |
capture(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Capture a charge.
|
Charge |
capture(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String apiKey)
Deprecated.
Use the
capture(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
Charge |
capture(RequestOptions options)
Capture a charge.
|
Charge |
capture(java.lang.String apiKey)
Deprecated.
Use the
capture(RequestOptions) method instead.
This method will be removed in the next major version. |
Dispute |
closeDispute()
Deprecated.
Use the
Dispute.close() method instead.
This method will be removed in the next major version. |
Dispute |
closeDispute(RequestOptions options)
Deprecated.
Use the
Dispute.close(RequestOptions) method instead.
This method will be removed in the next major version. |
Dispute |
closeDispute(java.lang.String apiKey)
Deprecated.
Use the
Dispute.close(RequestOptions) method instead.
This method will be removed in the next major version. |
static Charge |
create(java.util.Map<java.lang.String,java.lang.Object> params)
Create a charge.
|
static Charge |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Create a charge.
|
static Charge |
create(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String apiKey)
Deprecated.
Use the
create(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
boolean |
equals(java.lang.Object o) |
AlternateStatementDescriptors |
getAlternateStatementDescriptors() |
java.lang.Long |
getAmount() |
java.lang.Long |
getAmountRefunded() |
java.lang.String |
getApplication() |
java.lang.String |
getApplicationFee() |
ApplicationFee |
getApplicationFeeObject() |
Application |
getApplicationObject() |
java.lang.String |
getBalanceTransaction() |
BalanceTransaction |
getBalanceTransactionObject() |
java.lang.Boolean |
getCaptured() |
Card |
getCard()
Deprecated.
Prefer using the
source attribute instead. |
java.lang.Long |
getCreated() |
java.lang.String |
getCurrency() |
java.lang.String |
getCustomer() |
Customer |
getCustomerObject() |
java.lang.String |
getDescription() |
java.lang.String |
getDestination() |
Account |
getDestinationObject() |
java.lang.String |
getDispute() |
java.lang.Boolean |
getDisputed()
Deprecated.
Prefer using the
dispute attribute instead. |
Dispute |
getDisputeObject() |
java.lang.String |
getFailureCode() |
java.lang.String |
getFailureMessage() |
FraudDetails |
getFraudDetails() |
java.lang.String |
getId() |
java.lang.String |
getInvoice() |
Invoice |
getInvoiceObject() |
ChargeLevel3 |
getLevel3() |
java.lang.Boolean |
getLivemode() |
java.util.Map<java.lang.String,java.lang.String> |
getMetadata() |
java.lang.String |
getObject() |
java.lang.String |
getOnBehalfOf() |
Account |
getOnBehalfOfObject() |
java.lang.String |
getOrder() |
Order |
getOrderObject() |
ChargeOutcome |
getOutcome() |
java.lang.Boolean |
getPaid() |
java.lang.String |
getReceiptEmail() |
java.lang.String |
getReceiptNumber() |
java.lang.Boolean |
getRefunded() |
ChargeRefundCollection |
getRefunds()
Returns the
refunds list. |
java.lang.String |
getReview() |
Review |
getReviewObject() |
ShippingDetails |
getShipping() |
ExternalAccount |
getSource() |
java.lang.String |
getSourceTransfer() |
Transfer |
getSourceTransferObject() |
java.lang.String |
getStatementDescription()
Deprecated.
Prefer using the
statementDescriptor attribute instead. |
java.lang.String |
getStatementDescriptor() |
java.lang.String |
getStatus() |
java.lang.String |
getTransfer() |
java.lang.String |
getTransferGroup() |
Transfer |
getTransferObject() |
int |
hashCode() |
static ChargeCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
List all charges.
|
static ChargeCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
List all charges.
|
Charge |
markFraudulent(RequestOptions options)
Mark the charge as fraudulent.
|
Charge |
markSafe(RequestOptions options)
Mark the charge as safe.
|
Charge |
refund()
Deprecated.
Prefer using the
Refund.create(Map) method instead. |
Charge |
refund(java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
Prefer using the
Refund.create(Map) method instead. |
Charge |
refund(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Deprecated.
Prefer using the
Refund.create(Map, RequestOptions) method instead. |
Charge |
refund(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String apiKey)
Deprecated.
Use the
refund(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
Charge |
refund(RequestOptions options)
Deprecated.
Prefer using the
Refund.create(Map, RequestOptions) method instead. |
Charge |
refund(java.lang.String apiKey)
Deprecated.
Use the
refund(RequestOptions) method instead.
This method will be removed in the next major version. |
static Charge |
retrieve(java.lang.String id)
Retrieve a charge.
|
static Charge |
retrieve(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieve a charge.
|
static Charge |
retrieve(java.lang.String id,
RequestOptions options)
Retrieve a charge.
|
static Charge |
retrieve(java.lang.String id,
java.lang.String apiKey)
Deprecated.
Use the
retrieve(String, RequestOptions) method instead.
This method will be removed in the next major version. |
void |
setAlternateStatementDescriptors(AlternateStatementDescriptors alternateStatementDescriptors) |
void |
setAmount(java.lang.Long amount) |
void |
setAmountRefunded(java.lang.Long amountRefunded) |
void |
setApplication(java.lang.String applicationID) |
void |
setApplicationFee(java.lang.String applicationFeeID) |
void |
setApplicationFeeObject(ApplicationFee c) |
void |
setApplicationObject(Application c) |
void |
setBalanceTransaction(java.lang.String balanceTransactionID) |
void |
setBalanceTransactionObject(BalanceTransaction c) |
void |
setCaptured(java.lang.Boolean captured) |
void |
setCard(Card card)
Deprecated.
Prefer using the
source attribute instead. |
void |
setCreated(java.lang.Long created) |
void |
setCurrency(java.lang.String currency) |
void |
setCustomer(java.lang.String customerID) |
void |
setCustomerObject(Customer c) |
void |
setDescription(java.lang.String description) |
void |
setDestination(java.lang.String destinationID) |
void |
setDestinationObject(Account c) |
void |
setDispute(java.lang.String dispute) |
void |
setDisputed(java.lang.Boolean disputed)
Deprecated.
Prefer using the
dispute attribute instead. |
void |
setDisputeObject(Dispute dispute) |
void |
setFailureCode(java.lang.String failureCode) |
void |
setFailureMessage(java.lang.String failureMessage) |
void |
setFraudDetails(FraudDetails fraudDetails) |
void |
setId(java.lang.String id) |
void |
setInvoice(java.lang.String invoiceID) |
void |
setInvoiceObject(Invoice c) |
void |
setLevel3(ChargeLevel3 level3) |
void |
setLivemode(java.lang.Boolean livemode) |
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata) |
void |
setObject(java.lang.String object) |
void |
setOnBehalfOf(java.lang.String onBehalfOfID) |
void |
setOnBehalfOfObject(Account c) |
void |
setOrder(java.lang.String orderID) |
void |
setOrderObject(Order c) |
void |
setOutcome(ChargeOutcome outcome) |
void |
setPaid(java.lang.Boolean paid) |
void |
setReceiptEmail(java.lang.String receiptEmail) |
void |
setReceiptNumber(java.lang.String receiptNumber) |
void |
setRefunded(java.lang.Boolean refunded) |
void |
setRefunds(ChargeRefundCollection refunds) |
void |
setReview(java.lang.String reviewID) |
void |
setReviewObject(Review r) |
void |
setShipping(ShippingDetails shipping) |
void |
setSource(ExternalAccount source) |
void |
setSourceTransfer(java.lang.String sourceTransferID) |
void |
setSourceTransferObject(Transfer c) |
void |
setStatementDescription(java.lang.String statementDescription)
Deprecated.
Prefer using the
statementDescriptor attribute instead. |
void |
setStatementDescriptor(java.lang.String statementDescriptor) |
void |
setStatus(java.lang.String status) |
void |
setTransfer(java.lang.String transferID) |
void |
setTransferGroup(java.lang.String transferGroup) |
void |
setTransferObject(Transfer c) |
Charge |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Update a charge.
|
Charge |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Update a charge.
|
Charge |
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. |
Dispute |
updateDispute(java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
Use the
Dispute.update(Map) method instead.
This method will be removed in the next major version. |
Dispute |
updateDispute(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Deprecated.
Use the
Dispute.update(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
Dispute |
updateDispute(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String apiKey)
Deprecated.
Use the
Dispute.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, urlEncodeequals, getLastResponse, setLastResponse, toJson, toStringpublic static final java.lang.String FRAUD_DETAILS
public java.lang.String getApplication()
public void setApplication(java.lang.String applicationID)
public Application getApplicationObject()
public void setApplicationObject(Application c)
public java.lang.String getApplicationFee()
public void setApplicationFee(java.lang.String applicationFeeID)
public ApplicationFee getApplicationFeeObject()
public void setApplicationFeeObject(ApplicationFee c)
public java.lang.String getBalanceTransaction()
public void setBalanceTransaction(java.lang.String balanceTransactionID)
public BalanceTransaction getBalanceTransactionObject()
public void setBalanceTransactionObject(BalanceTransaction c)
public java.lang.String getCustomer()
public void setCustomer(java.lang.String customerID)
public Customer getCustomerObject()
public void setCustomerObject(Customer c)
public java.lang.String getDestination()
public void setDestination(java.lang.String destinationID)
public Account getDestinationObject()
public void setDestinationObject(Account c)
public java.lang.String getDispute()
public void setDispute(java.lang.String dispute)
public Dispute getDisputeObject()
public void setDisputeObject(Dispute dispute)
public java.lang.String getInvoice()
public void setInvoice(java.lang.String invoiceID)
public Invoice getInvoiceObject()
public void setInvoiceObject(Invoice c)
public java.lang.String getOnBehalfOf()
public void setOnBehalfOf(java.lang.String onBehalfOfID)
public Account getOnBehalfOfObject()
public void setOnBehalfOfObject(Account c)
public java.lang.String getOrder()
public void setOrder(java.lang.String orderID)
public Order getOrderObject()
public void setOrderObject(Order c)
public ChargeRefundCollection getRefunds()
refunds list.refunds listpublic java.lang.String getReview()
public void setReview(java.lang.String reviewID)
public Review getReviewObject()
public void setReviewObject(Review r)
public java.lang.String getSourceTransfer()
public void setSourceTransfer(java.lang.String sourceTransferID)
public Transfer getSourceTransferObject()
public void setSourceTransferObject(Transfer c)
public java.lang.String getTransfer()
public void setTransfer(java.lang.String transferID)
public Transfer getTransferObject()
public void setTransferObject(Transfer c)
@Deprecated public static ChargeCollection 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 ChargeCollection 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.@Deprecated public static ChargeCollection all(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
list(Map, RequestOptions) method instead.
This method will be removed in the next major version.public Charge capture() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Charge capture(RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public Charge capture(java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
capture(RequestOptions) method instead.
This method will be removed in the next major version.public Charge capture(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Charge capture(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public Charge capture(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
capture(Map, RequestOptions) method instead.
This method will be removed in the next major version.@Deprecated public Dispute closeDispute() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
Dispute.close() method instead.
This method will be removed in the next major version.@Deprecated public Dispute closeDispute(RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
Dispute.close(RequestOptions) method instead.
This method will be removed in the next major version.@Deprecated public Dispute closeDispute(java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
Dispute.close(RequestOptions) method instead.
This method will be removed in the next major version.public static Charge create(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Charge create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static Charge create(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
create(Map, RequestOptions) method instead.
This method will be removed in the next major version.public static ChargeCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static ChargeCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Charge markFraudulent(RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Charge markSafe(RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public Charge refund() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
Refund.create(Map) method instead.@Deprecated public Charge refund(RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
Refund.create(Map, RequestOptions) method instead.@Deprecated public Charge refund(java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
refund(RequestOptions) method instead.
This method will be removed in the next major version.@Deprecated public Charge refund(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
Refund.create(Map) method instead.@Deprecated public Charge refund(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
Refund.create(Map, RequestOptions) method instead.@Deprecated public Charge refund(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
refund(Map, RequestOptions) method instead.
This method will be removed in the next major version.public static Charge retrieve(java.lang.String id) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Charge retrieve(java.lang.String id, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static Charge retrieve(java.lang.String id, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
retrieve(String, RequestOptions) method instead.
This method will be removed in the next major version.public static Charge retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Charge update(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update in interface MetadataStore<Charge>AuthenticationExceptionInvalidRequestExceptionAPIConnectionExceptionCardExceptionAPIExceptionpublic Charge update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update in interface MetadataStore<Charge>AuthenticationExceptionInvalidRequestExceptionAPIConnectionExceptionCardExceptionAPIException@Deprecated public Charge 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.@Deprecated public Dispute updateDispute(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
Dispute.update(Map) method instead.
This method will be removed in the next major version.@Deprecated public Dispute updateDispute(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
Dispute.update(Map, RequestOptions) method instead.
This method will be removed in the next major version.@Deprecated public Dispute updateDispute(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
Dispute.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 getAmountRefunded()
public AlternateStatementDescriptors getAlternateStatementDescriptors()
public java.lang.Boolean getCaptured()
public java.lang.Long getCreated()
public java.lang.String getCurrency()
public java.lang.String getDescription()
public java.lang.String getFailureCode()
public java.lang.String getFailureMessage()
public FraudDetails getFraudDetails()
public ChargeLevel3 getLevel3()
public java.lang.Boolean getLivemode()
public ChargeOutcome getOutcome()
public java.lang.Boolean getPaid()
public java.lang.String getReceiptEmail()
public java.lang.String getReceiptNumber()
public java.lang.Boolean getRefunded()
public ShippingDetails getShipping()
public ExternalAccount getSource()
public java.lang.String getStatementDescriptor()
public java.lang.String getStatus()
public java.lang.String getTransferGroup()
@Deprecated public Card getCard()
source attribute instead.card attribute.card attribute@Deprecated public java.lang.Boolean getDisputed()
dispute attribute instead.disputed attribute.disputed attribute@Deprecated public java.lang.String getStatementDescription()
statementDescriptor attribute instead.statement_description attribute.cards attributepublic void setId(java.lang.String id)
public void setObject(java.lang.String object)
public void setAmount(java.lang.Long amount)
public void setAmountRefunded(java.lang.Long amountRefunded)
public void setAlternateStatementDescriptors(AlternateStatementDescriptors alternateStatementDescriptors)
public void setCaptured(java.lang.Boolean captured)
public void setCreated(java.lang.Long created)
public void setCurrency(java.lang.String currency)
public void setDescription(java.lang.String description)
public void setFailureCode(java.lang.String failureCode)
public void setFailureMessage(java.lang.String failureMessage)
public void setFraudDetails(FraudDetails fraudDetails)
public void setLevel3(ChargeLevel3 level3)
public void setLivemode(java.lang.Boolean livemode)
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setOutcome(ChargeOutcome outcome)
public void setPaid(java.lang.Boolean paid)
public void setReceiptEmail(java.lang.String receiptEmail)
public void setReceiptNumber(java.lang.String receiptNumber)
public void setRefunded(java.lang.Boolean refunded)
public void setRefunds(ChargeRefundCollection refunds)
public void setShipping(ShippingDetails shipping)
public void setSource(ExternalAccount source)
public void setStatementDescriptor(java.lang.String statementDescriptor)
public void setStatus(java.lang.String status)
public void setTransferGroup(java.lang.String transferGroup)
@Deprecated public void setCard(Card card)
source attribute instead.card attribute.@Deprecated public void setDisputed(java.lang.Boolean disputed)
dispute attribute instead.disputed attribute.@Deprecated public void setStatementDescription(java.lang.String statementDescription)
statementDescriptor attribute instead.statement_description attribute.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Objectpublic java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata in interface MetadataStore<Charge>