case class Customer(id: String, livemode: Boolean, sources: CardList, created: Long, accountBalance: Long, currency: String, delinquent: Boolean, defaultSource: Option[String], description: Option[String], discount: Option[Discount], email: Option[String], metadata: Map[String, String], subscriptions: Option[SubscriptionList], taxPercent: Option[Double], raw: Option[JValue] = None) extends StripeObject with Product with Serializable
Implementation of the Customer data structure in Stripe's API. See https://stripe.com/docs/api#customer_object
- Alphabetic
- By Inheritance
- Customer
- Serializable
- Serializable
- Product
- Equals
- StripeObject
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Customer(id: String, livemode: Boolean, sources: CardList, created: Long, accountBalance: Long, currency: String, delinquent: Boolean, defaultSource: Option[String], description: Option[String], discount: Option[Discount], email: Option[String], metadata: Map[String, String], subscriptions: Option[SubscriptionList], taxPercent: Option[Double], 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 accountBalance: Long
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- val created: Long
- val currency: String
- val defaultSource: Option[String]
- val delinquent: Boolean
- val description: Option[String]
- val discount: Option[Discount]
- val email: Option[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
implicit
val
formats: DefaultFormats.type
- Definition Classes
- StripeObject
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val id: String
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val livemode: Boolean
- val metadata: Map[String, 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
- Customer → StripeObject
- val sources: CardList
- val subscriptions: Option[SubscriptionList]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val taxPercent: Option[Double]
-
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): Customer
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
- Customer → StripeObject