public class CustomerSource extends StripeJsonModel implements StripePaymentSource
Customer "source" object.| Modifier and Type | Method and Description |
|---|---|
Card |
asCard() |
Source |
asSource() |
static CustomerSource |
fromJson(org.json.JSONObject jsonObject) |
static CustomerSource |
fromString(java.lang.String jsonString) |
java.lang.String |
getId() |
java.lang.String |
getSourceType() |
StripePaymentSource |
getStripePaymentSource() |
java.lang.String |
getTokenizationMethod() |
org.json.JSONObject |
toJson() |
java.util.Map<java.lang.String,java.lang.Object> |
toMap() |
equals, hashCode, toStringpublic StripePaymentSource getStripePaymentSource()
public java.lang.String getId()
getId in interface StripePaymentSourcepublic Source asSource()
public java.lang.String getTokenizationMethod()
public Card asCard()
public java.lang.String getSourceType()
public static CustomerSource fromString(java.lang.String jsonString)
public static CustomerSource fromJson(org.json.JSONObject jsonObject)
public java.util.Map<java.lang.String,java.lang.Object> toMap()
toMap in class StripeJsonModelpublic org.json.JSONObject toJson()
toJson in class StripeJsonModel