Class

org.mdedetrich.stripe.v1.Charges

Charge

Related Doc: package Charges

Permalink

case class Charge(id: String, amount: BigDecimal, amountRefunded: BigDecimal, applicationFee: Option[String], balanceTransaction: String, captured: Boolean, created: OffsetDateTime, currency: Currency, customer: Option[String], description: Option[String], destination: Option[String], dispute: Option[Dispute], failureCode: Option[Type], failureMessage: Option[String], fraudDetails: Option[FraudDetails], invoice: Option[String], livemode: Boolean, metadata: Option[Map[String, String]], order: Option[String], paid: Boolean, receiptEmail: Option[String], receiptNumber: Option[String], refunded: Boolean, refunds: Option[RefundList], shipping: Option[Shipping], source: MaskedSource, sourceTransfer: Option[String], statementDescriptor: Option[String], status: Status) extends Product with Serializable

https://stripe.com/docs/api#charges

amount

Amount charged in cents

amountRefunded

Amount in cents refunded (can be less than the amount attribute on the charge if a partial refund was issued).

applicationFee

The application fee (if any) for the charge. See the Connect documentation for details.

balanceTransaction

ID of the balance transaction that describes the impact of this charge on your account balance (not including refunds or disputes).

captured

If the charge was created without capturing, this boolean represents whether or not it is still uncaptured or has since been captured.

currency

Three-letter ISO currency code representing the currency in which the charge was made.

customer

ID of the customer this charge is for if one exists.

destination

The account (if any) the charge was made on behalf of. See the Connect documentation for details.

dispute

Details about the dispute if the charge has been disputed.

failureCode

Error code explaining reason for charge failure if available (see the errors section for a list of codes).

failureMessage

Message to user further explaining reason for charge failure if available.

fraudDetails

Hash with information on fraud assessments for the charge. Assessments reported by you have the key FraudDetails.UserReport and, if set, possible values of FraudDetails.UserReport.Safe and FraudDetails.UserReport.Fraudulent. Assessments from Stripe have the key FraudDetails.StripeReport and, if set, the value FraudDetails.StripeReport.Fraudulent.

invoice

ID of the invoice this charge is for if one exists.

metadata

A set of key/value pairs that you can attach to a charge object. It can be useful for storing additional information about the charge in a structured format.

order

ID of the order this charge is for if one exists.

paid

true if the charge succeeded, or was successfully authorized for later capture.

receiptEmail

This is the email address that the receipt for this charge was sent to.

receiptNumber

This is the transaction number that appears on email receipts sent for this charge.

refunded

Whether or not the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false.

refunds

A list of refunds that have been applied to the charge.

shipping

Shipping information for the charge.

source

For most Stripe users, the source of every charge is a credit or debit card. This hash is then the card object describing that card.

sourceTransfer

The transfer ID which created this charge. Only present if the charge came from another Stripe account. See the Connect documentation for details.

statementDescriptor

Extra information about a charge. This will appear on your customer’s credit card statement.

status

The status of the payment is either Status.Succeeded, Status.Pending, or Status.Failed.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Charge
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Charge(id: String, amount: BigDecimal, amountRefunded: BigDecimal, applicationFee: Option[String], balanceTransaction: String, captured: Boolean, created: OffsetDateTime, currency: Currency, customer: Option[String], description: Option[String], destination: Option[String], dispute: Option[Dispute], failureCode: Option[Type], failureMessage: Option[String], fraudDetails: Option[FraudDetails], invoice: Option[String], livemode: Boolean, metadata: Option[Map[String, String]], order: Option[String], paid: Boolean, receiptEmail: Option[String], receiptNumber: Option[String], refunded: Boolean, refunds: Option[RefundList], shipping: Option[Shipping], source: MaskedSource, sourceTransfer: Option[String], statementDescriptor: Option[String], status: Status)

    Permalink

    amount

    Amount charged in cents

    amountRefunded

    Amount in cents refunded (can be less than the amount attribute on the charge if a partial refund was issued).

    applicationFee

    The application fee (if any) for the charge. See the Connect documentation for details.

    balanceTransaction

    ID of the balance transaction that describes the impact of this charge on your account balance (not including refunds or disputes).

    captured

    If the charge was created without capturing, this boolean represents whether or not it is still uncaptured or has since been captured.

    currency

    Three-letter ISO currency code representing the currency in which the charge was made.

    customer

    ID of the customer this charge is for if one exists.

    destination

    The account (if any) the charge was made on behalf of. See the Connect documentation for details.

    dispute

    Details about the dispute if the charge has been disputed.

    failureCode

    Error code explaining reason for charge failure if available (see the errors section for a list of codes).

    failureMessage

    Message to user further explaining reason for charge failure if available.

    fraudDetails

    Hash with information on fraud assessments for the charge. Assessments reported by you have the key FraudDetails.UserReport and, if set, possible values of FraudDetails.UserReport.Safe and FraudDetails.UserReport.Fraudulent. Assessments from Stripe have the key FraudDetails.StripeReport and, if set, the value FraudDetails.StripeReport.Fraudulent.

    invoice

    ID of the invoice this charge is for if one exists.

    metadata

    A set of key/value pairs that you can attach to a charge object. It can be useful for storing additional information about the charge in a structured format.

    order

    ID of the order this charge is for if one exists.

    paid

    true if the charge succeeded, or was successfully authorized for later capture.

    receiptEmail

    This is the email address that the receipt for this charge was sent to.

    receiptNumber

    This is the transaction number that appears on email receipts sent for this charge.

    refunded

    Whether or not the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false.

    refunds

    A list of refunds that have been applied to the charge.

    shipping

    Shipping information for the charge.

    source

    For most Stripe users, the source of every charge is a credit or debit card. This hash is then the card object describing that card.

    sourceTransfer

    The transfer ID which created this charge. Only present if the charge came from another Stripe account. See the Connect documentation for details.

    statementDescriptor

    Extra information about a charge. This will appear on your customer’s credit card statement.

    status

    The status of the payment is either Status.Succeeded, Status.Pending, or Status.Failed.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val amount: BigDecimal

    Permalink

    Amount charged in cents

  5. val amountRefunded: BigDecimal

    Permalink

    Amount in cents refunded (can be less than the amount attribute on the charge if a partial refund was issued).

  6. val applicationFee: Option[String]

    Permalink

    The application fee (if any) for the charge.

    The application fee (if any) for the charge. See the Connect documentation for details.

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. val balanceTransaction: String

    Permalink

    ID of the balance transaction that describes the impact of this charge on your account balance (not including refunds or disputes).

  9. val captured: Boolean

    Permalink

    If the charge was created without capturing, this boolean represents whether or not it is still uncaptured or has since been captured.

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val created: OffsetDateTime

    Permalink
  12. val currency: Currency

    Permalink

    Three-letter ISO currency code representing the currency in which the charge was made.

  13. val customer: Option[String]

    Permalink

    ID of the customer this charge is for if one exists.

  14. val description: Option[String]

    Permalink
  15. val destination: Option[String]

    Permalink

    The account (if any) the charge was made on behalf of.

    The account (if any) the charge was made on behalf of. See the Connect documentation for details.

  16. val dispute: Option[Dispute]

    Permalink

    Details about the dispute if the charge has been disputed.

  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. val failureCode: Option[Type]

    Permalink

    Error code explaining reason for charge failure if available (see the errors section for a list of codes).

  19. val failureMessage: Option[String]

    Permalink

    Message to user further explaining reason for charge failure if available.

  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. val fraudDetails: Option[FraudDetails]

    Permalink

    Hash with information on fraud assessments for the charge.

    Hash with information on fraud assessments for the charge. Assessments reported by you have the key FraudDetails.UserReport and, if set, possible values of FraudDetails.UserReport.Safe and FraudDetails.UserReport.Fraudulent. Assessments from Stripe have the key FraudDetails.StripeReport and, if set, the value FraudDetails.StripeReport.Fraudulent.

  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. val id: String

    Permalink
  24. val invoice: Option[String]

    Permalink

    ID of the invoice this charge is for if one exists.

  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. val livemode: Boolean

    Permalink
  27. val metadata: Option[Map[String, String]]

    Permalink

    A set of key/value pairs that you can attach to a charge object.

    A set of key/value pairs that you can attach to a charge object. It can be useful for storing additional information about the charge in a structured format.

  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. val order: Option[String]

    Permalink

    ID of the order this charge is for if one exists.

  32. val paid: Boolean

    Permalink

    true if the charge succeeded, or was successfully authorized for later capture.

  33. val receiptEmail: Option[String]

    Permalink

    This is the email address that the receipt for this charge was sent to.

  34. val receiptNumber: Option[String]

    Permalink

    This is the transaction number that appears on email receipts sent for this charge.

  35. val refunded: Boolean

    Permalink

    Whether or not the charge has been fully refunded.

    Whether or not the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false.

  36. val refunds: Option[RefundList]

    Permalink

    A list of refunds that have been applied to the charge.

  37. val shipping: Option[Shipping]

    Permalink

    Shipping information for the charge.

  38. val source: MaskedSource

    Permalink

    For most Stripe users, the source of every charge is a credit or debit card.

    For most Stripe users, the source of every charge is a credit or debit card. This hash is then the card object describing that card.

  39. val sourceTransfer: Option[String]

    Permalink

    The transfer ID which created this charge.

    The transfer ID which created this charge. Only present if the charge came from another Stripe account. See the Connect documentation for details.

  40. val statementDescriptor: Option[String]

    Permalink

    Extra information about a charge.

    Extra information about a charge. This will appear on your customer’s credit card statement.

  41. val status: Status

    Permalink

    The status of the payment is either Status.Succeeded, Status.Pending, or Status.Failed.

  42. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  43. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped