abstract class StripeObject extends AnyRef
The common ancestor of any class that represents a Stripe data structure.
- Alphabetic
- By Inheritance
- StripeObject
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new StripeObject()
Abstract Value Members
-
abstract
def
raw: Option[JValue]
Return the raw JSON AST representation of the Stripe data structure this class represents.
Return the raw JSON AST representation of the Stripe data structure this class represents. Use this only if the class representing your data structure doesn't already provide a method for accessing the field you need.
I'll try really hard to make sure that doesn't happen too often, but no guarantees. :)
-
abstract
def
withRaw(raw: JValue): StripeObject
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.
Concrete 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- implicit val formats: DefaultFormats.type
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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.
-
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( ... )