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 classA representation of an amount of money, consisting of an amount and a currency.static classA representation of an amount of money, consisting of an amount and a currency.static classA representation of an amount of money, consisting of an amount and a currency.static classA representation of an amount of money, consisting of an amount and a currency.static classA representation of an amount of money, consisting of an amount and a currency.static classA representation of an amount of money, consisting of an amount and a currency.static classA representation of an amount of money, consisting of an amount and a currency.static classInformation about the customer for this payment.static classDetails about the Payment Method used in this payment attempt.static classProcessor information associated with this payment.static classThe 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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanA 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 valuetrueif the object exists in live mode or the valuefalseif 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.inthashCode()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 PaymentAttemptRecordRetrieves a Payment Attempt Record with the given ID.static PaymentAttemptRecordretrieve(String id, RequestOptions options) Retrieves a Payment Attempt Record with the given ID.static PaymentAttemptRecordretrieve(String id, PaymentAttemptRecordRetrieveParams params, RequestOptions options) Retrieves a Payment Attempt Record with the given ID.static PaymentAttemptRecordRetrieves a Payment Attempt Record with the given ID.voidsetAmount(PaymentAttemptRecord.Amount amount) A representation of an amount of money, consisting of an amount and a currency.voidsetAmountAuthorized(PaymentAttemptRecord.AmountAuthorized amountAuthorized) A representation of an amount of money, consisting of an amount and a currency.voidsetAmountCanceled(PaymentAttemptRecord.AmountCanceled amountCanceled) A representation of an amount of money, consisting of an amount and a currency.voidsetAmountFailed(PaymentAttemptRecord.AmountFailed amountFailed) A representation of an amount of money, consisting of an amount and a currency.voidsetAmountGuaranteed(PaymentAttemptRecord.AmountGuaranteed amountGuaranteed) A representation of an amount of money, consisting of an amount and a currency.voidsetAmountRefunded(PaymentAttemptRecord.AmountRefunded amountRefunded) A representation of an amount of money, consisting of an amount and a currency.voidsetAmountRequested(PaymentAttemptRecord.AmountRequested amountRequested) A representation of an amount of money, consisting of an amount and a currency.voidsetApplication(String application) ID of the Connect application that created the PaymentAttemptRecord.voidsetCreated(Long created) Time at which the object was created.voidsetCustomerDetails(PaymentAttemptRecord.CustomerDetails customerDetails) Customer information for this payment.voidsetCustomerPresence(String customerPresence) Indicates whether the customer was present in your checkout flow during this payment.voidsetDescription(String description) An arbitrary string attached to the object.voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidString representing the object's type.voidsetPaymentMethodDetails(PaymentAttemptRecord.PaymentMethodDetails paymentMethodDetails) Information about the Payment Method debited for this payment.voidsetPaymentRecord(String paymentRecord) ID of the Payment Record this Payment Attempt Record belongs to.voidsetProcessorDetails(PaymentAttemptRecord.ProcessorDetails processorDetails) Processor information associated with this payment.voidsetReportedBy(String reportedBy) Indicates who reported the payment.voidsetResponseGetter(StripeResponseGetter responseGetter) State, county, province, or region.voidsetShippingDetails(PaymentAttemptRecord.ShippingDetails shippingDetails) Shipping information for this payment.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance 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 valuetrueif the object exists in live mode or the valuefalseif 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 valuetrueif the object exists in live mode or the valuefalseif 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.
-