Package com.stripe.model
Class PaymentAttemptRecord
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.PaymentAttemptRecord
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
A Payment Attempt Record represents an individual attempt at making a payment, on or off Stripe.
Each payment attempt tries to collect a fixed amount of money from a fixed customer and payment
method. Payment Attempt Records are attached to Payment Records. Only one attempt per Payment
Record can have guaranteed funds.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A representation of an amount of money, consisting of an amount and a currency.static class
A representation of an amount of money, consisting of an amount and a currency.static class
A representation of an amount of money, consisting of an amount and a currency.static class
A representation of an amount of money, consisting of an amount and a currency.static class
A representation of an amount of money, consisting of an amount and a currency.static class
A representation of an amount of money, consisting of an amount and a currency.static class
A representation of an amount of money, consisting of an amount and a currency.static class
Information about the customer for this payment.static class
Details about the Payment Method used in this payment attempt.static class
Processor information associated with this payment.static class
The customer's shipping information associated with this payment.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
A representation of an amount of money, consisting of an amount and a currency.A representation of an amount of money, consisting of an amount and a currency.A representation of an amount of money, consisting of an amount and a currency.A representation of an amount of money, consisting of an amount and a currency.A representation of an amount of money, consisting of an amount and a currency.A representation of an amount of money, consisting of an amount and a currency.A representation of an amount of money, consisting of an amount and a currency.ID of the Connect application that created the PaymentAttemptRecord.Time at which the object was created.Customer information for this payment.Indicates whether the customer was present in your checkout flow during this payment.An arbitrary string attached to the object.getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.Set of key-value pairs that you can attach to an object.String representing the object's type.Information about the Payment Method debited for this payment.ID of the Payment Record this Payment Attempt Record belongs to.Processor information associated with this payment.Indicates who reported the payment.Shipping information for this payment.int
hashCode()
list
(PaymentAttemptRecordListParams params) List all the Payment Attempt Records attached to the specified Payment Record.list
(PaymentAttemptRecordListParams params, RequestOptions options) List all the Payment Attempt Records attached to the specified Payment Record.List all the Payment Attempt Records attached to the specified Payment Record.list
(Map<String, Object> params, RequestOptions options) List all the Payment Attempt Records attached to the specified Payment Record.static PaymentAttemptRecord
Retrieves a Payment Attempt Record with the given ID.static PaymentAttemptRecord
retrieve
(String id, RequestOptions options) Retrieves a Payment Attempt Record with the given ID.static PaymentAttemptRecord
retrieve
(String id, PaymentAttemptRecordRetrieveParams params, RequestOptions options) Retrieves a Payment Attempt Record with the given ID.static PaymentAttemptRecord
Retrieves a Payment Attempt Record with the given ID.void
setAmount
(PaymentAttemptRecord.Amount amount) A representation of an amount of money, consisting of an amount and a currency.void
setAmountAuthorized
(PaymentAttemptRecord.AmountAuthorized amountAuthorized) A representation of an amount of money, consisting of an amount and a currency.void
setAmountCanceled
(PaymentAttemptRecord.AmountCanceled amountCanceled) A representation of an amount of money, consisting of an amount and a currency.void
setAmountFailed
(PaymentAttemptRecord.AmountFailed amountFailed) A representation of an amount of money, consisting of an amount and a currency.void
setAmountGuaranteed
(PaymentAttemptRecord.AmountGuaranteed amountGuaranteed) A representation of an amount of money, consisting of an amount and a currency.void
setAmountRefunded
(PaymentAttemptRecord.AmountRefunded amountRefunded) A representation of an amount of money, consisting of an amount and a currency.void
setAmountRequested
(PaymentAttemptRecord.AmountRequested amountRequested) A representation of an amount of money, consisting of an amount and a currency.void
setApplication
(String application) ID of the Connect application that created the PaymentAttemptRecord.void
setCreated
(Long created) Time at which the object was created.void
setCustomerDetails
(PaymentAttemptRecord.CustomerDetails customerDetails) Customer information for this payment.void
setCustomerPresence
(String customerPresence) Indicates whether the customer was present in your checkout flow during this payment.void
setDescription
(String description) An arbitrary string attached to the object.void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
String representing the object's type.void
setPaymentMethodDetails
(PaymentAttemptRecord.PaymentMethodDetails paymentMethodDetails) Information about the Payment Method debited for this payment.void
setPaymentRecord
(String paymentRecord) ID of the Payment Record this Payment Attempt Record belongs to.void
setProcessorDetails
(PaymentAttemptRecord.ProcessorDetails processorDetails) Processor information associated with this payment.void
setReportedBy
(String reportedBy) Indicates who reported the payment.void
setResponseGetter
(StripeResponseGetter responseGetter) State, county, province, or region.void
setShippingDetails
(PaymentAttemptRecord.ShippingDetails shippingDetails) Shipping information for this payment.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
PaymentAttemptRecord
public PaymentAttemptRecord()
-
-
Method Details
-
list
List all the Payment Attempt Records attached to the specified Payment Record.- Throws:
StripeException
-
list
public static PaymentAttemptRecordCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionList all the Payment Attempt Records attached to the specified Payment Record.- Throws:
StripeException
-
list
public static PaymentAttemptRecordCollection list(PaymentAttemptRecordListParams params) throws StripeException List all the Payment Attempt Records attached to the specified Payment Record.- Throws:
StripeException
-
list
public static PaymentAttemptRecordCollection list(PaymentAttemptRecordListParams params, RequestOptions options) throws StripeException List all the Payment Attempt Records attached to the specified Payment Record.- Throws:
StripeException
-
retrieve
Retrieves a Payment Attempt Record with the given ID.- Throws:
StripeException
-
retrieve
public static PaymentAttemptRecord retrieve(String id, RequestOptions options) throws StripeException Retrieves a Payment Attempt Record with the given ID.- Throws:
StripeException
-
retrieve
public static PaymentAttemptRecord retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a Payment Attempt Record with the given ID.- Throws:
StripeException
-
retrieve
public static PaymentAttemptRecord retrieve(String id, PaymentAttemptRecordRetrieveParams params, RequestOptions options) throws StripeException Retrieves a Payment Attempt Record with the given ID.- Throws:
StripeException
-
setResponseGetter
State, county, province, or region.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getAmount
A representation of an amount of money, consisting of an amount and a currency. -
getAmountAuthorized
A representation of an amount of money, consisting of an amount and a currency. -
getAmountCanceled
A representation of an amount of money, consisting of an amount and a currency. -
getAmountFailed
A representation of an amount of money, consisting of an amount and a currency. -
getAmountGuaranteed
A representation of an amount of money, consisting of an amount and a currency. -
getAmountRefunded
A representation of an amount of money, consisting of an amount and a currency. -
getAmountRequested
A representation of an amount of money, consisting of an amount and a currency. -
getApplication
ID of the Connect application that created the PaymentAttemptRecord. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCustomerDetails
Customer information for this payment. -
getCustomerPresence
Indicates whether the customer was present in your checkout flow during this payment.One of
off_session
, oron_session
. -
getDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
payment_attempt_record
. -
getPaymentMethodDetails
Information about the Payment Method debited for this payment. -
getPaymentRecord
ID of the Payment Record this Payment Attempt Record belongs to. -
getProcessorDetails
Processor information associated with this payment. -
getReportedBy
Indicates who reported the payment.One of
self
, orstripe
. -
getShippingDetails
Shipping information for this payment. -
setAmount
A representation of an amount of money, consisting of an amount and a currency. -
setAmountAuthorized
A representation of an amount of money, consisting of an amount and a currency. -
setAmountCanceled
A representation of an amount of money, consisting of an amount and a currency. -
setAmountFailed
A representation of an amount of money, consisting of an amount and a currency. -
setAmountGuaranteed
A representation of an amount of money, consisting of an amount and a currency. -
setAmountRefunded
A representation of an amount of money, consisting of an amount and a currency. -
setAmountRequested
A representation of an amount of money, consisting of an amount and a currency. -
setApplication
ID of the Connect application that created the PaymentAttemptRecord. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCustomerDetails
Customer information for this payment. -
setCustomerPresence
Indicates whether the customer was present in your checkout flow during this payment.One of
off_session
, oron_session
. -
setDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
payment_attempt_record
. -
setPaymentMethodDetails
Information about the Payment Method debited for this payment. -
setPaymentRecord
ID of the Payment Record this Payment Attempt Record belongs to. -
setProcessorDetails
Processor information associated with this payment. -
setReportedBy
Indicates who reported the payment.One of
self
, orstripe
. -
setShippingDetails
Shipping information for this payment. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-