public class PaymentIntent extends ApiResource implements MetadataStore<PaymentIntent>, HasId
| Modifier and Type | Class and Description |
|---|---|
static class |
PaymentIntent.TransferData |
ApiResource.RequestMethod, ApiResource.RequestTypeCHARSET, GSONPRETTY_PRINT_GSON| Constructor and Description |
|---|
PaymentIntent() |
| Modifier and Type | Method and Description |
|---|---|
PaymentIntent |
cancel()
Cancel a payment intent.
|
PaymentIntent |
cancel(java.util.Map<java.lang.String,java.lang.Object> params)
Cancel a payment intent.
|
PaymentIntent |
cancel(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Cancel a payment intent.
|
protected boolean |
canEqual(java.lang.Object other) |
PaymentIntent |
capture()
Capture a payment intent.
|
PaymentIntent |
capture(java.util.Map<java.lang.String,java.lang.Object> params)
Capture a payment intent.
|
PaymentIntent |
capture(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Capture a payment intent.
|
PaymentIntent |
confirm()
Confirm a payment intent.
|
PaymentIntent |
confirm(java.util.Map<java.lang.String,java.lang.Object> params)
Confirm a payment intent.
|
PaymentIntent |
confirm(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Confirm a payment intent.
|
static PaymentIntent |
create(java.util.Map<java.lang.String,java.lang.Object> params)
Create a payment intent.
|
static PaymentIntent |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Create a payment intent.
|
boolean |
equals(java.lang.Object o) |
java.util.List<java.lang.String> |
getAllowedSourceTypes() |
java.lang.Long |
getAmount() |
java.lang.Long |
getAmountCapturable() |
java.lang.Long |
getAmountReceived() |
java.lang.String |
getApplication() |
java.lang.Long |
getApplicationFeeAmount() |
Application |
getApplicationObject() |
java.lang.Long |
getCanceledAt() |
java.lang.String |
getCancellationReason() |
java.lang.String |
getCaptureMethod() |
ChargeCollection |
getCharges() |
java.lang.String |
getClientSecret() |
java.lang.String |
getConfirmationMethod() |
java.lang.Long |
getCreated() |
java.lang.String |
getCurrency() |
java.lang.String |
getCustomer() |
Customer |
getCustomerObject() |
java.lang.String |
getId() |
PaymentIntentLastPaymentError |
getLastPaymentError() |
java.lang.Boolean |
getLivemode() |
java.util.Map<java.lang.String,java.lang.String> |
getMetadata() |
PaymentIntentSourceAction |
getNextSourceAction() |
java.lang.String |
getObject() |
java.lang.String |
getOnBehalfOf() |
Account |
getOnBehalfOfObject() |
java.lang.String |
getReceiptEmail() |
java.lang.String |
getReturnUrl()
Deprecated.
This property is not supported anymore and is only present for legacy reasons.
|
java.lang.String |
getReview() |
Review |
getReviewObject() |
ShippingDetails |
getShipping() |
java.lang.String |
getSource() |
ExternalAccount |
getSourceObject() |
java.lang.String |
getStatementDescriptor() |
java.lang.String |
getStatus() |
PaymentIntent.TransferData |
getTransferData() |
int |
hashCode() |
static PaymentIntentCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
List all payment intents.
|
static PaymentIntentCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
List all payment intents.
|
static PaymentIntent |
retrieve(java.lang.String id)
Retrieve a payment intent.
|
static PaymentIntent |
retrieve(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieve a payment intent.
|
static PaymentIntent |
retrieve(java.lang.String id,
RequestOptions options)
Retrieve a payment intent.
|
void |
setAllowedSourceTypes(java.util.List<java.lang.String> allowedSourceTypes) |
void |
setAmount(java.lang.Long amount) |
void |
setAmountCapturable(java.lang.Long amountCapturable) |
void |
setAmountReceived(java.lang.Long amountReceived) |
void |
setApplication(java.lang.String applicationId) |
void |
setApplicationFeeAmount(java.lang.Long applicationFeeAmount) |
void |
setApplicationObject(Application c) |
void |
setCanceledAt(java.lang.Long canceledAt) |
void |
setCancellationReason(java.lang.String cancellationReason) |
void |
setCaptureMethod(java.lang.String captureMethod) |
void |
setCharges(ChargeCollection charges) |
void |
setClientSecret(java.lang.String clientSecret) |
void |
setConfirmationMethod(java.lang.String confirmationMethod) |
void |
setCreated(java.lang.Long created) |
void |
setCurrency(java.lang.String currency) |
void |
setCustomer(java.lang.String customerId) |
void |
setCustomerObject(Customer c) |
void |
setId(java.lang.String id) |
void |
setLastPaymentError(PaymentIntentLastPaymentError lastPaymentError) |
void |
setLivemode(java.lang.Boolean livemode) |
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata) |
void |
setNextSourceAction(PaymentIntentSourceAction nextSourceAction) |
void |
setObject(java.lang.String object) |
void |
setOnBehalfOf(java.lang.String onBehalfOfId) |
void |
setOnBehalfOfObject(Account c) |
void |
setReceiptEmail(java.lang.String receiptEmail) |
void |
setReturnUrl(java.lang.String returnUrl)
Deprecated.
This property is not supported anymore and is only present for legacy reasons.
|
void |
setReview(java.lang.String reviewId) |
void |
setReviewObject(Review c) |
void |
setShipping(ShippingDetails shipping) |
void |
setSource(java.lang.String sourceId) |
void |
setSourceObject(ExternalAccount c) |
void |
setStatementDescriptor(java.lang.String statementDescriptor) |
void |
setStatus(java.lang.String status) |
void |
setTransferData(PaymentIntent.TransferData transferData) |
PaymentIntent |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Update a payment intent.
|
PaymentIntent |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Update a payment intent.
|
classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncodeequals, getLastResponse, setLastResponse, toJson, toStringpublic java.lang.String getApplication()
public void setApplication(java.lang.String applicationId)
public Application getApplicationObject()
public void setApplicationObject(Application 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 getOnBehalfOf()
public void setOnBehalfOf(java.lang.String onBehalfOfId)
public Account getOnBehalfOfObject()
public void setOnBehalfOfObject(Account c)
public java.lang.String getReview()
public void setReview(java.lang.String reviewId)
public Review getReviewObject()
public void setReviewObject(Review c)
public java.lang.String getSource()
public void setSource(java.lang.String sourceId)
public ExternalAccount getSourceObject()
public void setSourceObject(ExternalAccount c)
public PaymentIntent cancel() throws StripeException
StripeExceptionpublic PaymentIntent cancel(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeExceptionpublic PaymentIntent cancel(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeExceptionpublic PaymentIntent capture() throws StripeException
StripeExceptionpublic PaymentIntent capture(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeExceptionpublic PaymentIntent capture(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeExceptionpublic PaymentIntent confirm() throws StripeException
StripeExceptionpublic PaymentIntent confirm(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeExceptionpublic PaymentIntent confirm(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeExceptionpublic static PaymentIntent create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeExceptionpublic static PaymentIntent create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeExceptionpublic static PaymentIntentCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeExceptionpublic static PaymentIntentCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeExceptionpublic static PaymentIntent retrieve(java.lang.String id) throws StripeException
StripeExceptionpublic static PaymentIntent retrieve(java.lang.String id, RequestOptions options) throws StripeException
StripeExceptionpublic static PaymentIntent retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeExceptionpublic PaymentIntent update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
update in interface MetadataStore<PaymentIntent>StripeExceptionpublic PaymentIntent update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
update in interface MetadataStore<PaymentIntent>StripeExceptionpublic java.lang.String getObject()
public java.util.List<java.lang.String> getAllowedSourceTypes()
public java.lang.Long getAmount()
public java.lang.Long getAmountCapturable()
public java.lang.Long getAmountReceived()
public java.lang.Long getApplicationFeeAmount()
public java.lang.Long getCanceledAt()
public java.lang.String getCancellationReason()
public java.lang.String getCaptureMethod()
public ChargeCollection getCharges()
public java.lang.String getClientSecret()
public java.lang.String getConfirmationMethod()
public java.lang.Long getCreated()
public java.lang.String getCurrency()
public PaymentIntentLastPaymentError getLastPaymentError()
public java.lang.Boolean getLivemode()
public PaymentIntentSourceAction getNextSourceAction()
public java.lang.String getReceiptEmail()
public ShippingDetails getShipping()
public java.lang.String getStatementDescriptor()
public PaymentIntent.TransferData getTransferData()
public java.lang.String getStatus()
@Deprecated public java.lang.String getReturnUrl()
returnUrl attribute.public void setId(java.lang.String id)
public void setObject(java.lang.String object)
public void setAllowedSourceTypes(java.util.List<java.lang.String> allowedSourceTypes)
public void setAmount(java.lang.Long amount)
public void setAmountCapturable(java.lang.Long amountCapturable)
public void setAmountReceived(java.lang.Long amountReceived)
public void setApplicationFeeAmount(java.lang.Long applicationFeeAmount)
public void setCanceledAt(java.lang.Long canceledAt)
public void setCancellationReason(java.lang.String cancellationReason)
public void setCaptureMethod(java.lang.String captureMethod)
public void setCharges(ChargeCollection charges)
public void setClientSecret(java.lang.String clientSecret)
public void setConfirmationMethod(java.lang.String confirmationMethod)
public void setCreated(java.lang.Long created)
public void setCurrency(java.lang.String currency)
public void setLastPaymentError(PaymentIntentLastPaymentError lastPaymentError)
public void setLivemode(java.lang.Boolean livemode)
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setNextSourceAction(PaymentIntentSourceAction nextSourceAction)
public void setReceiptEmail(java.lang.String receiptEmail)
public void setShipping(ShippingDetails shipping)
public void setStatementDescriptor(java.lang.String statementDescriptor)
public void setTransferData(PaymentIntent.TransferData transferData)
public void setStatus(java.lang.String status)
@Deprecated public void setReturnUrl(java.lang.String returnUrl)
returnUrl 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<PaymentIntent>