Package com.stripe.model
Class PaymentRecord
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.PaymentRecord
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
A Payment Record is a resource that allows you to represent payments that occur on- or
off-Stripe. For example, you can create a Payment Record to model a payment made on a different
payment processor, in order to mark an Invoice as paid and a Subscription as active. Payment
Records consist of one or more Payment Attempt Records, which represent individual attempts made
on a payment network.
-
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 PaymentRecord.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.ID of the latest Payment Attempt Record attached to this Payment Record.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.Processor information associated with this payment.Shipping information for this payment.int
hashCode()
static PaymentRecord
Report a new Payment Record.static PaymentRecord
reportPayment
(PaymentRecordReportPaymentParams params, RequestOptions options) Report a new Payment Record.static PaymentRecord
reportPayment
(Map<String, Object> params) Report a new Payment Record.static PaymentRecord
reportPayment
(Map<String, Object> params, RequestOptions options) Report a new Payment Record.Report a new payment attempt on the specified Payment Record.reportPaymentAttempt
(PaymentRecordReportPaymentAttemptParams params, RequestOptions options) Report a new payment attempt on the specified Payment Record.reportPaymentAttempt
(Map<String, Object> params) Report a new payment attempt on the specified Payment Record.reportPaymentAttempt
(Map<String, Object> params, RequestOptions options) Report a new payment attempt on the specified Payment Record.Report that the most recent payment attempt on the specified Payment Record was canceled.reportPaymentAttemptCanceled
(PaymentRecordReportPaymentAttemptCanceledParams params, RequestOptions options) Report that the most recent payment attempt on the specified Payment Record was canceled.reportPaymentAttemptCanceled
(Map<String, Object> params) Report that the most recent payment attempt on the specified Payment Record was canceled.reportPaymentAttemptCanceled
(Map<String, Object> params, RequestOptions options) Report that the most recent payment attempt on the specified Payment Record was canceled.Report that the most recent payment attempt on the specified Payment Record failed or errored.reportPaymentAttemptFailed
(PaymentRecordReportPaymentAttemptFailedParams params, RequestOptions options) Report that the most recent payment attempt on the specified Payment Record failed or errored.reportPaymentAttemptFailed
(Map<String, Object> params) Report that the most recent payment attempt on the specified Payment Record failed or errored.reportPaymentAttemptFailed
(Map<String, Object> params, RequestOptions options) Report that the most recent payment attempt on the specified Payment Record failed or errored.Report that the most recent payment attempt on the specified Payment Record was guaranteed.reportPaymentAttemptGuaranteed
(PaymentRecordReportPaymentAttemptGuaranteedParams params, RequestOptions options) Report that the most recent payment attempt on the specified Payment Record was guaranteed.reportPaymentAttemptGuaranteed
(Map<String, Object> params) Report that the most recent payment attempt on the specified Payment Record was guaranteed.reportPaymentAttemptGuaranteed
(Map<String, Object> params, RequestOptions options) Report that the most recent payment attempt on the specified Payment Record was guaranteed.static PaymentRecord
Retrieves a Payment Record with the given ID.static PaymentRecord
retrieve
(String id, RequestOptions options) Retrieves a Payment Record with the given ID.static PaymentRecord
retrieve
(String id, PaymentRecordRetrieveParams params, RequestOptions options) Retrieves a Payment Record with the given ID.static PaymentRecord
Retrieves a Payment Record with the given ID.void
setAmount
(PaymentRecord.Amount amount) A representation of an amount of money, consisting of an amount and a currency.void
setAmountAuthorized
(PaymentRecord.AmountAuthorized amountAuthorized) A representation of an amount of money, consisting of an amount and a currency.void
setAmountCanceled
(PaymentRecord.AmountCanceled amountCanceled) A representation of an amount of money, consisting of an amount and a currency.void
setAmountFailed
(PaymentRecord.AmountFailed amountFailed) A representation of an amount of money, consisting of an amount and a currency.void
setAmountGuaranteed
(PaymentRecord.AmountGuaranteed amountGuaranteed) A representation of an amount of money, consisting of an amount and a currency.void
setAmountRefunded
(PaymentRecord.AmountRefunded amountRefunded) A representation of an amount of money, consisting of an amount and a currency.void
setAmountRequested
(PaymentRecord.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 PaymentRecord.void
setCreated
(Long created) Time at which the object was created.void
setCustomerDetails
(PaymentRecord.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
setLatestPaymentAttemptRecord
(String latestPaymentAttemptRecord) ID of the latest Payment Attempt Record attached to this Payment Record.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
(PaymentRecord.PaymentMethodDetails paymentMethodDetails) Information about the Payment Method debited for this payment.void
setProcessorDetails
(PaymentRecord.ProcessorDetails processorDetails) Processor information associated with this payment.void
setResponseGetter
(StripeResponseGetter responseGetter) State, county, province, or region.void
setShippingDetails
(PaymentRecord.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
-
PaymentRecord
public PaymentRecord()
-
-
Method Details
-
reportPayment
Report a new Payment Record. You may report a Payment Record as it is initialized and later report updates through the other report_* methods, or report Payment Records in a terminal state directly, through this method.- Throws:
StripeException
-
reportPayment
public static PaymentRecord reportPayment(Map<String, Object> params, RequestOptions options) throws StripeExceptionReport a new Payment Record. You may report a Payment Record as it is initialized and later report updates through the other report_* methods, or report Payment Records in a terminal state directly, through this method.- Throws:
StripeException
-
reportPayment
public static PaymentRecord reportPayment(PaymentRecordReportPaymentParams params) throws StripeException Report a new Payment Record. You may report a Payment Record as it is initialized and later report updates through the other report_* methods, or report Payment Records in a terminal state directly, through this method.- Throws:
StripeException
-
reportPayment
public static PaymentRecord reportPayment(PaymentRecordReportPaymentParams params, RequestOptions options) throws StripeException Report a new Payment Record. You may report a Payment Record as it is initialized and later report updates through the other report_* methods, or report Payment Records in a terminal state directly, through this method.- Throws:
StripeException
-
reportPaymentAttempt
Report a new payment attempt on the specified Payment Record. A new payment attempt can only be specified if all other payment attempts are canceled or failed.- Throws:
StripeException
-
reportPaymentAttempt
public PaymentRecord reportPaymentAttempt(Map<String, Object> params, RequestOptions options) throws StripeExceptionReport a new payment attempt on the specified Payment Record. A new payment attempt can only be specified if all other payment attempts are canceled or failed.- Throws:
StripeException
-
reportPaymentAttempt
public PaymentRecord reportPaymentAttempt(PaymentRecordReportPaymentAttemptParams params) throws StripeException Report a new payment attempt on the specified Payment Record. A new payment attempt can only be specified if all other payment attempts are canceled or failed.- Throws:
StripeException
-
reportPaymentAttempt
public PaymentRecord reportPaymentAttempt(PaymentRecordReportPaymentAttemptParams params, RequestOptions options) throws StripeException Report a new payment attempt on the specified Payment Record. A new payment attempt can only be specified if all other payment attempts are canceled or failed.- Throws:
StripeException
-
reportPaymentAttemptCanceled
Report that the most recent payment attempt on the specified Payment Record was canceled.- Throws:
StripeException
-
reportPaymentAttemptCanceled
public PaymentRecord reportPaymentAttemptCanceled(Map<String, Object> params, RequestOptions options) throws StripeExceptionReport that the most recent payment attempt on the specified Payment Record was canceled.- Throws:
StripeException
-
reportPaymentAttemptCanceled
public PaymentRecord reportPaymentAttemptCanceled(PaymentRecordReportPaymentAttemptCanceledParams params) throws StripeException Report that the most recent payment attempt on the specified Payment Record was canceled.- Throws:
StripeException
-
reportPaymentAttemptCanceled
public PaymentRecord reportPaymentAttemptCanceled(PaymentRecordReportPaymentAttemptCanceledParams params, RequestOptions options) throws StripeException Report that the most recent payment attempt on the specified Payment Record was canceled.- Throws:
StripeException
-
reportPaymentAttemptFailed
Report that the most recent payment attempt on the specified Payment Record failed or errored.- Throws:
StripeException
-
reportPaymentAttemptFailed
public PaymentRecord reportPaymentAttemptFailed(Map<String, Object> params, RequestOptions options) throws StripeExceptionReport that the most recent payment attempt on the specified Payment Record failed or errored.- Throws:
StripeException
-
reportPaymentAttemptFailed
public PaymentRecord reportPaymentAttemptFailed(PaymentRecordReportPaymentAttemptFailedParams params) throws StripeException Report that the most recent payment attempt on the specified Payment Record failed or errored.- Throws:
StripeException
-
reportPaymentAttemptFailed
public PaymentRecord reportPaymentAttemptFailed(PaymentRecordReportPaymentAttemptFailedParams params, RequestOptions options) throws StripeException Report that the most recent payment attempt on the specified Payment Record failed or errored.- Throws:
StripeException
-
reportPaymentAttemptGuaranteed
public PaymentRecord reportPaymentAttemptGuaranteed(Map<String, Object> params) throws StripeExceptionReport that the most recent payment attempt on the specified Payment Record was guaranteed.- Throws:
StripeException
-
reportPaymentAttemptGuaranteed
public PaymentRecord reportPaymentAttemptGuaranteed(Map<String, Object> params, RequestOptions options) throws StripeExceptionReport that the most recent payment attempt on the specified Payment Record was guaranteed.- Throws:
StripeException
-
reportPaymentAttemptGuaranteed
public PaymentRecord reportPaymentAttemptGuaranteed(PaymentRecordReportPaymentAttemptGuaranteedParams params) throws StripeException Report that the most recent payment attempt on the specified Payment Record was guaranteed.- Throws:
StripeException
-
reportPaymentAttemptGuaranteed
public PaymentRecord reportPaymentAttemptGuaranteed(PaymentRecordReportPaymentAttemptGuaranteedParams params, RequestOptions options) throws StripeException Report that the most recent payment attempt on the specified Payment Record was guaranteed.- Throws:
StripeException
-
retrieve
Retrieves a Payment Record with the given ID.- Throws:
StripeException
-
retrieve
Retrieves a Payment Record with the given ID.- Throws:
StripeException
-
retrieve
public static PaymentRecord retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a Payment Record with the given ID.- Throws:
StripeException
-
retrieve
public static PaymentRecord retrieve(String id, PaymentRecordRetrieveParams params, RequestOptions options) throws StripeException Retrieves a Payment 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 PaymentRecord. -
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. -
getLatestPaymentAttemptRecord
ID of the latest Payment Attempt Record attached to this Payment Record. -
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_record
. -
getPaymentMethodDetails
Information about the Payment Method debited for this payment. -
getProcessorDetails
Processor information associated with this payment. -
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 PaymentRecord. -
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. -
setLatestPaymentAttemptRecord
ID of the latest Payment Attempt Record attached to this Payment Record. -
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_record
. -
setPaymentMethodDetails
Information about the Payment Method debited for this payment. -
setProcessorDetails
Processor information associated with this payment. -
setShippingDetails
Shipping information for this payment. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-