LatestCharge

data class LatestCharge(val id: String?, val currency: String?, val created: Int?, val updated: Int?, val livemode: Boolean?, val captured: Boolean?, val disputed: Boolean?, val refunded: Boolean?, val description: String?, val status: ChargeIntentStatus?, val customer: String?, val amount: Int?, val failureMessage: String?, val paymentMethodDetails: FrameObjects.PaymentMethod?, val paymentMethod: String?, val chargeIntent: String?, val amountCaptured: Int?, val amountRefunded: Int?)

Represents the most recent charge attempt made against a charge intent.

Constructors

Link copied to clipboard
constructor(id: String?, currency: String?, created: Int?, updated: Int?, livemode: Boolean?, captured: Boolean?, disputed: Boolean?, refunded: Boolean?, description: String?, status: ChargeIntentStatus?, customer: String?, amount: Int?, failureMessage: String?, paymentMethodDetails: FrameObjects.PaymentMethod?, paymentMethod: String?, chargeIntent: String?, amountCaptured: Int?, amountRefunded: Int?)

Properties

Link copied to clipboard
val amount: Int?

Total charge amount in the smallest currency unit (e.g., cents).

Link copied to clipboard
@SerializedName(value = "amount_captured")
val amountCaptured: Int?

Amount that has been captured, in the smallest currency unit.

Link copied to clipboard
@SerializedName(value = "amount_refunded")
val amountRefunded: Int?

Amount that has been refunded, in the smallest currency unit.

Link copied to clipboard

true if the authorized funds have been captured.

Link copied to clipboard
@SerializedName(value = "charge_intent")
val chargeIntent: String?

ID of the parent charge intent.

Link copied to clipboard
val created: Int?

Unix timestamp of when the charge was created.

Link copied to clipboard

Three-letter ISO 4217 currency code.

Link copied to clipboard

ID of the customer associated with this charge.

Link copied to clipboard

Merchant-supplied description of the charge.

Link copied to clipboard

true if the customer has opened a dispute on this charge.

Link copied to clipboard
@SerializedName(value = "failure_message")
val failureMessage: String?

Human-readable explanation of why the charge failed, if applicable.

Link copied to clipboard
val id: String?

Unique identifier for the charge.

Link copied to clipboard

true if this charge was created in live mode; false for test mode.

Link copied to clipboard
@SerializedName(value = "payment_method")
val paymentMethod: String?

ID of the payment method used for this charge.

Link copied to clipboard
@SerializedName(value = "payment_method_details")
val paymentMethodDetails: FrameObjects.PaymentMethod?

Full details of the payment method used for this charge.

Link copied to clipboard

true if the charge has been refunded.

Link copied to clipboard

Current lifecycle status of the charge.

Link copied to clipboard
val updated: Int?

Unix timestamp of when the charge was last updated.