public class Card extends ApiResource implements HasId, MetadataStore<Card>
Modifier and Type | Class and Description |
---|---|
static class |
Card.AuthorizationControls |
static class |
Card.Shipping |
static class |
Card.SpendingLimit |
ApiResource.RequestMethod, ApiResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
Card() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
static Card |
create(CardCreateParams params)
Creates an Issuing
Card object. |
static Card |
create(CardCreateParams params,
RequestOptions options)
Creates an Issuing
Card object. |
static Card |
create(java.util.Map<java.lang.String,java.lang.Object> params)
Creates an Issuing
Card object. |
static Card |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Creates an Issuing
Card object. |
CardDetails |
details()
For virtual cards only.
|
CardDetails |
details(CardDetailsParams params)
For virtual cards only.
|
CardDetails |
details(CardDetailsParams params,
RequestOptions options)
For virtual cards only.
|
CardDetails |
details(java.util.Map<java.lang.String,java.lang.Object> params)
For virtual cards only.
|
CardDetails |
details(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
For virtual cards only.
|
boolean |
equals(java.lang.Object o) |
Card.AuthorizationControls |
getAuthorizationControls() |
java.lang.String |
getBrand()
The brand of the card.
|
Cardholder |
getCardholder()
The [Cardholder](https://stripe.com/docs/api#issuing_cardholder_object) object to which the
card belongs.
|
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.String |
getCurrency()
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase.
|
java.lang.Long |
getExpMonth()
The expiration month of the card.
|
java.lang.Long |
getExpYear()
The expiration year of the card.
|
java.lang.String |
getId()
Unique identifier for the object.
|
java.lang.String |
getLast4()
The last 4 digits of the card number.
|
java.lang.Boolean |
getLivemode()
Has the value `true` if the object exists in live mode or the value `false` if the object
exists in test mode.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
java.lang.String |
getName()
The name of the cardholder, printed on the card.
|
java.lang.String |
getObject()
String representing the object's type.
|
java.lang.String |
getReplacementFor()
Get id of expandable `replacementFor` object.
|
Card |
getReplacementForObject()
Get expanded `replacementFor`.
|
java.lang.String |
getReplacementReason()
Why the card that this card replaces (if any) needed to be replaced.
|
Card.Shipping |
getShipping()
Where and how the card will be shipped.
|
java.lang.String |
getStatus()
One of `active`, `inactive`, `canceled`, `lost`, `stolen`, or `pending`.
|
java.lang.String |
getType()
One of `virtual` or `physical`.
|
int |
hashCode() |
static CardCollection |
list(CardListParams params)
Returns a list of Issuing
Card objects. |
static CardCollection |
list(CardListParams params,
RequestOptions options)
Returns a list of Issuing
Card objects. |
static CardCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of Issuing
Card objects. |
static CardCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of Issuing
Card objects. |
static Card |
retrieve(java.lang.String card)
Retrieves an Issuing
Card object. |
static Card |
retrieve(java.lang.String card,
CardRetrieveParams params,
RequestOptions options)
Retrieves an Issuing
Card object. |
static Card |
retrieve(java.lang.String card,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves an Issuing
Card object. |
static Card |
retrieve(java.lang.String card,
RequestOptions options)
Retrieves an Issuing
Card object. |
void |
setAuthorizationControls(Card.AuthorizationControls authorizationControls) |
void |
setBrand(java.lang.String brand)
The brand of the card.
|
void |
setCardholder(Cardholder cardholder)
The [Cardholder](https://stripe.com/docs/api#issuing_cardholder_object) object to which the
card belongs.
|
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setCurrency(java.lang.String currency)
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase.
|
void |
setExpMonth(java.lang.Long expMonth)
The expiration month of the card.
|
void |
setExpYear(java.lang.Long expYear)
The expiration year of the card.
|
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setLast4(java.lang.String last4)
The last 4 digits of the card number.
|
void |
setLivemode(java.lang.Boolean livemode)
Has the value `true` if the object exists in live mode or the value `false` if the object
exists in test mode.
|
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object.
|
void |
setName(java.lang.String name)
The name of the cardholder, printed on the card.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setReplacementFor(java.lang.String id) |
void |
setReplacementForObject(Card expandableObject) |
void |
setReplacementReason(java.lang.String replacementReason)
Why the card that this card replaces (if any) needed to be replaced.
|
void |
setShipping(Card.Shipping shipping)
Where and how the card will be shipped.
|
void |
setStatus(java.lang.String status)
One of `active`, `inactive`, `canceled`, `lost`, `stolen`, or `pending`.
|
void |
setType(java.lang.String type)
One of `virtual` or `physical`.
|
Card |
update(CardUpdateParams params)
Updates the specified Issuing
Card object by setting the values of the parameters
passed. |
Card |
update(CardUpdateParams params,
RequestOptions options)
Updates the specified Issuing
Card object by setting the values of the parameters
passed. |
Card |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates the specified Issuing
Card object by setting the values of the parameters
passed. |
Card |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Updates the specified Issuing
Card object by setting the values of the parameters
passed. |
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getReplacementFor()
public void setReplacementFor(java.lang.String id)
public Card getReplacementForObject()
public void setReplacementForObject(Card expandableObject)
public static CardCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Card
objects. The objects are sorted in descending order
by creation date, with the most recently created object appearing first.StripeException
public static CardCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Card
objects. The objects are sorted in descending order
by creation date, with the most recently created object appearing first.StripeException
public static CardCollection list(CardListParams params) throws StripeException
Card
objects. The objects are sorted in descending order
by creation date, with the most recently created object appearing first.StripeException
public static CardCollection list(CardListParams params, RequestOptions options) throws StripeException
Card
objects. The objects are sorted in descending order
by creation date, with the most recently created object appearing first.StripeException
public static Card create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Card
object.StripeException
public static Card create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Card
object.StripeException
public static Card create(CardCreateParams params) throws StripeException
Card
object.StripeException
public static Card create(CardCreateParams params, RequestOptions options) throws StripeException
Card
object.StripeException
public static Card retrieve(java.lang.String card) throws StripeException
Card
object.StripeException
public static Card retrieve(java.lang.String card, RequestOptions options) throws StripeException
Card
object.StripeException
public static Card retrieve(java.lang.String card, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Card
object.StripeException
public static Card retrieve(java.lang.String card, CardRetrieveParams params, RequestOptions options) throws StripeException
Card
object.StripeException
public Card update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Card
object by setting the values of the parameters
passed. Any parameters not provided will be left unchanged.update
in interface MetadataStore<Card>
StripeException
public Card update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Card
object by setting the values of the parameters
passed. Any parameters not provided will be left unchanged.update
in interface MetadataStore<Card>
StripeException
public Card update(CardUpdateParams params) throws StripeException
Card
object by setting the values of the parameters
passed. Any parameters not provided will be left unchanged.StripeException
public Card update(CardUpdateParams params, RequestOptions options) throws StripeException
Card
object by setting the values of the parameters
passed. Any parameters not provided will be left unchanged.StripeException
public CardDetails details() throws StripeException
Card_details
object that contains the sensitive details of a virtual
card.StripeException
public CardDetails details(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Card_details
object that contains the sensitive details of a virtual
card.StripeException
public CardDetails details(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Card_details
object that contains the sensitive details of a virtual
card.StripeException
public CardDetails details(CardDetailsParams params) throws StripeException
Card_details
object that contains the sensitive details of a virtual
card.StripeException
public CardDetails details(CardDetailsParams params, RequestOptions options) throws StripeException
Card_details
object that contains the sensitive details of a virtual
card.StripeException
public Card.AuthorizationControls getAuthorizationControls()
public java.lang.String getBrand()
public Cardholder getCardholder()
public java.lang.Long getCreated()
public java.lang.String getCurrency()
public java.lang.Long getExpMonth()
public java.lang.Long getExpYear()
public java.lang.String getLast4()
public java.lang.Boolean getLivemode()
public java.lang.String getName()
public java.lang.String getObject()
public java.lang.String getReplacementReason()
public Card.Shipping getShipping()
public java.lang.String getStatus()
public java.lang.String getType()
public void setAuthorizationControls(Card.AuthorizationControls authorizationControls)
public void setBrand(java.lang.String brand)
public void setCardholder(Cardholder cardholder)
public void setCreated(java.lang.Long created)
public void setCurrency(java.lang.String currency)
public void setExpMonth(java.lang.Long expMonth)
public void setExpYear(java.lang.Long expYear)
public void setId(java.lang.String id)
public void setLast4(java.lang.String last4)
public void setLivemode(java.lang.Boolean livemode)
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setName(java.lang.String name)
public void setObject(java.lang.String object)
public void setReplacementReason(java.lang.String replacementReason)
public void setShipping(Card.Shipping shipping)
public void setStatus(java.lang.String status)
public void setType(java.lang.String type)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getId()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata
in interface MetadataStore<Card>