public class Card extends ApiResource implements HasId, MetadataStore<Card>
Modifier and Type | Class and Description |
---|---|
static class |
Card.Shipping |
static class |
Card.SpendingControls |
ApiResource.RequestMethod
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. |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getBrand()
The brand of the card.
|
java.lang.String |
getCancellationReason()
The reason why the card was canceled.
|
Cardholder |
getCardholder()
An Issuing
Cardholder object represents an individual or business entity who is issued cards. |
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.String |
getCurrency()
Three-letter ISO currency code,
in lowercase.
|
java.lang.String |
getCvc()
The card's CVC.
|
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 |
getNumber()
The full unredacted card number.
|
java.lang.String |
getObject()
String representing the object's type.
|
java.lang.String |
getReplacedBy()
Get ID of expandable
replacedBy object. |
Card |
getReplacedByObject()
Get expanded
replacedBy . |
java.lang.String |
getReplacementFor()
Get ID of expandable
replacementFor object. |
Card |
getReplacementForObject()
Get expanded
replacementFor . |
java.lang.String |
getReplacementReason()
The reason why the previous card needed to be replaced.
|
Card.Shipping |
getShipping()
Where and how the card will be shipped.
|
Card.SpendingControls |
getSpendingControls() |
java.lang.String |
getStatus()
Whether authorizations can be approved on this card.
|
java.lang.String |
getType()
The type of the card.
|
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 |
setBrand(java.lang.String brand)
The brand of the card.
|
void |
setCancellationReason(java.lang.String cancellationReason)
The reason why the card was canceled.
|
void |
setCardholder(Cardholder cardholder)
An Issuing
Cardholder object represents an individual or business entity who is issued cards. |
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setCurrency(java.lang.String currency)
Three-letter ISO currency code,
in lowercase.
|
void |
setCvc(java.lang.String cvc)
The card's CVC.
|
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 |
setNumber(java.lang.String number)
The full unredacted card number.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setReplacedBy(java.lang.String id) |
void |
setReplacedByObject(Card expandableObject) |
void |
setReplacementFor(java.lang.String id) |
void |
setReplacementForObject(Card expandableObject) |
void |
setReplacementReason(java.lang.String replacementReason)
The reason why the previous card needed to be replaced.
|
void |
setShipping(Card.Shipping shipping)
Where and how the card will be shipped.
|
void |
setSpendingControls(Card.SpendingControls spendingControls) |
void |
setStatus(java.lang.String status)
Whether authorizations can be approved on this card.
|
void |
setType(java.lang.String type)
The type of the card.
|
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, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getReplacedBy()
replacedBy
object.public void setReplacedBy(java.lang.String id)
public Card getReplacedByObject()
replacedBy
.public void setReplacedByObject(Card expandableObject)
public java.lang.String getReplacementFor()
replacementFor
object.public void setReplacementFor(java.lang.String id)
public Card getReplacementForObject()
replacementFor
.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 java.lang.String getBrand()
public java.lang.String getCancellationReason()
One of lost
, or stolen
.
public Cardholder getCardholder()
Cardholder
object represents an individual or business entity who is issued cards.
Related guide: How to create a Cardholder
public java.lang.Long getCreated()
public java.lang.String getCurrency()
public java.lang.String getCvc()
expand
parameter.
Additionally, it's only available via the "Retrieve a card"
endpoint, not via "List all cards" or any other endpoint.public java.lang.Long getExpMonth()
public java.lang.Long getExpYear()
public java.lang.String getLast4()
public java.lang.Boolean getLivemode()
true
if the object exists in live mode or the value false
if the
object exists in test mode.public java.lang.String getNumber()
expand
parameter.
Additionally, it's only available via the "Retrieve a card"
endpoint, not via "List all cards" or any other endpoint.public java.lang.String getObject()
Equal to issuing.card
.
public java.lang.String getReplacementReason()
One of damaged
, expired
, lost
, or stolen
.
public Card.Shipping getShipping()
public Card.SpendingControls getSpendingControls()
public java.lang.String getStatus()
One of active
, canceled
, or inactive
.
public java.lang.String getType()
One of physical
, or virtual
.
public void setBrand(java.lang.String brand)
public void setCancellationReason(java.lang.String cancellationReason)
One of lost
, or stolen
.
public void setCardholder(Cardholder cardholder)
Cardholder
object represents an individual or business entity who is issued cards.
Related guide: How to create a Cardholder
public void setCreated(java.lang.Long created)
public void setCurrency(java.lang.String currency)
public void setCvc(java.lang.String cvc)
expand
parameter.
Additionally, it's only available via the "Retrieve a card"
endpoint, not via "List all cards" or any other endpoint.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)
true
if the object exists in live mode or the value false
if the
object exists in test mode.public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setNumber(java.lang.String number)
expand
parameter.
Additionally, it's only available via the "Retrieve a card"
endpoint, not via "List all cards" or any other endpoint.public void setObject(java.lang.String object)
Equal to issuing.card
.
public void setReplacementReason(java.lang.String replacementReason)
One of damaged
, expired
, lost
, or stolen
.
public void setShipping(Card.Shipping shipping)
public void setSpendingControls(Card.SpendingControls spendingControls)
public void setStatus(java.lang.String status)
One of active
, canceled
, or inactive
.
public void setType(java.lang.String type)
One of physical
, or virtual
.
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>