case class Card(id: String, brand: String, expMonth: Int, expYear: Int, fingerprint: String, funding: String, last4: String, addressCity: Option[String] = None, addressCountry: Option[String] = None, addressLine1: Option[String] = None, addressLine1Check: Option[String] = None, addressLine2: Option[String] = None, addressState: Option[String] = None, addressZip: Option[String] = None, addressZipCheck: Option[String] = None, country: Option[String] = None, customer: Option[String] = None, cvcCheck: Option[String] = None, dynamicLast4: Option[String] = None, name: Option[String] = None, receipient: Option[String] = None, raw: Option[JValue] = None) extends StripeObject with Product with Serializable
Implementation of the Charge data structure in Stripe's API. See https://stripe.com/docs/api#card_object
- Alphabetic
- By Inheritance
- Card
- Serializable
- Serializable
- Product
- Equals
- StripeObject
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Card(id: String, brand: String, expMonth: Int, expYear: Int, fingerprint: String, funding: String, last4: String, addressCity: Option[String] = None, addressCountry: Option[String] = None, addressLine1: Option[String] = None, addressLine1Check: Option[String] = None, addressLine2: Option[String] = None, addressState: Option[String] = None, addressZip: Option[String] = None, addressZipCheck: Option[String] = None, country: Option[String] = None, customer: Option[String] = None, cvcCheck: Option[String] = None, dynamicLast4: Option[String] = None, name: Option[String] = None, receipient: Option[String] = None, raw: Option[JValue] = None)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val addressCity: Option[String]
- val addressCountry: Option[String]
- val addressLine1: Option[String]
- val addressLine1Check: Option[String]
- val addressLine2: Option[String]
- val addressState: Option[String]
- val addressZip: Option[String]
- val addressZipCheck: Option[String]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val brand: String
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- val country: Option[String]
- val customer: Option[String]
- val cvcCheck: Option[String]
- val dynamicLast4: Option[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val expMonth: Int
- val expYear: Int
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val fingerprint: String
-
implicit
val
formats: DefaultFormats.type
- Definition Classes
- StripeObject
- val funding: String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val id: String
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val last4: String
- val name: Option[String]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
raw: Option[JValue]
- Definition Classes
- Card → StripeObject
- val receipient: Option[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
valueFor[T](transformer: (JValue) ⇒ JValue)(implicit mf: Manifest[T]): Box[T]
Transform the underlyingData of this StripeObject then attempt to extract an instance of the class T from it.
Transform the underlyingData of this StripeObject then attempt to extract an instance of the class T from it. This is the general implementation of extracting values from the JSON API response from Stripe.
You should only use this if you're accessing a piece of data from the raw response that we don't support. If you do find need to use this, we'd love it if you opened a pull request!
- transformer
The function that transforms the original data into the structure containing the data we want.
- returns
A Full[T] if the extraction was successful, a Failure otherwise.
- Definition Classes
- StripeObject
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
withRaw(raw: JValue): Card
Create a copy of the StripeObject with the raw JValue representation attached.
Create a copy of the StripeObject with the raw JValue representation attached.
- raw
The raw JValue representation to attach.
- Definition Classes
- Card → StripeObject