Package com.stripe.model.issuing
Class Card
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.issuing.Card
- All Implemented Interfaces:
HasId
,MetadataStore<Card>
,StripeActiveObject
,StripeObjectInterface
You can create physical or virtual cards that
are issued to cardholders.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
A registration number used for customs in Europe.static class
static class
Interval (or event) to which the amount applies.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
static Card
create
(CardCreateParams params) Creates an IssuingCard
object.static Card
create
(CardCreateParams params, RequestOptions options) Creates an IssuingCard
object.static Card
Creates an IssuingCard
object.static Card
create
(Map<String, Object> params, RequestOptions options) Creates an IssuingCard
object.boolean
getBrand()
The brand of the card.The reason why the card was canceled.An IssuingCardholder
object represents an individual or business entity who is issued cards.Time at which the object was created.Three-letter ISO currency code, in lowercase.getCvc()
The card's CVC.The expiration month of the card.The expiration year of the card.The financial account this card is attached to.getId()
Unique identifier for the object.getLast4()
The last 4 digits of the card number.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.Set of key-value pairs that you can attach to an object.The full unredacted card number.String representing the object's type.Get ID of expandablepersonalizationDesign
object.Get expandedpersonalizationDesign
.Get ID of expandablereplacedBy
object.Get expandedreplacedBy
.Get ID of expandablereplacementFor
object.Get expandedreplacementFor
.The reason why the previous card needed to be replaced.Where and how the card will be shipped.Whether authorizations can be approved on this card.Reason the card is ineligible for Google PaygetType()
The type of the card.Information relating to digital wallets (like Apple Pay and Google Pay).int
hashCode()
static CardCollection
list
(CardListParams params) Returns a list of IssuingCard
objects.static CardCollection
list
(CardListParams params, RequestOptions options) Returns a list of IssuingCard
objects.static CardCollection
Returns a list of IssuingCard
objects.static CardCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of IssuingCard
objects.static Card
Retrieves an IssuingCard
object.static Card
retrieve
(String card, RequestOptions options) Retrieves an IssuingCard
object.static Card
retrieve
(String card, CardRetrieveParams params, RequestOptions options) Retrieves an IssuingCard
object.static Card
Retrieves an IssuingCard
object.void
The brand of the card.void
setCancellationReason
(String cancellationReason) The reason why the card was canceled.void
setCardholder
(Cardholder cardholder) An IssuingCardholder
object represents an individual or business entity who is issued cards.void
setCreated
(Long created) Time at which the object was created.void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase.void
The card's CVC.void
setExpMonth
(Long expMonth) The expiration month of the card.void
setExpYear
(Long expYear) The expiration year of the card.void
setFinancialAccount
(String financialAccount) The financial account this card is attached to.void
Unique identifier for the object.void
The last 4 digits of the card number.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
The full unredacted card number.void
String representing the object's type.void
void
setPersonalizationDesignObject
(PersonalizationDesign expandableObject) void
setReplacedBy
(String id) void
setReplacedByObject
(Card expandableObject) void
void
setReplacementForObject
(Card expandableObject) void
setReplacementReason
(String replacementReason) The reason why the previous card needed to be replaced.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
setShipping
(Card.Shipping shipping) Where and how the card will be shipped.void
setSpendingControls
(Card.SpendingControls spendingControls) void
Whether authorizations can be approved on this card.void
The type of the card.void
setWallets
(Card.Wallets wallets) Information relating to digital wallets (like Apple Pay and Google Pay).update
(CardUpdateParams params) Updates the specified IssuingCard
object by setting the values of the parameters passed.update
(CardUpdateParams params, RequestOptions options) Updates the specified IssuingCard
object by setting the values of the parameters passed.Updates the specified IssuingCard
object by setting the values of the parameters passed.update
(Map<String, Object> params, RequestOptions options) Updates the specified IssuingCard
object by setting the values of the parameters passed.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Card
public Card()
-
-
Method Details
-
getPersonalizationDesign
Get ID of expandablepersonalizationDesign
object. -
setPersonalizationDesign
-
getPersonalizationDesignObject
Get expandedpersonalizationDesign
. -
setPersonalizationDesignObject
-
getReplacedBy
Get ID of expandablereplacedBy
object. -
setReplacedBy
-
getReplacedByObject
Get expandedreplacedBy
. -
setReplacedByObject
-
getReplacementFor
Get ID of expandablereplacementFor
object. -
setReplacementFor
-
getReplacementForObject
Get expandedreplacementFor
. -
setReplacementForObject
-
create
Creates an IssuingCard
object.- Throws:
StripeException
-
create
Creates an IssuingCard
object.- Throws:
StripeException
-
create
Creates an IssuingCard
object.- Throws:
StripeException
-
create
Creates an IssuingCard
object.- Throws:
StripeException
-
list
Returns a list of IssuingCard
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static CardCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of IssuingCard
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
Returns a list of IssuingCard
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static CardCollection list(CardListParams params, RequestOptions options) throws StripeException Returns a list of IssuingCard
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
retrieve
Retrieves an IssuingCard
object.- Throws:
StripeException
-
retrieve
Retrieves an IssuingCard
object.- Throws:
StripeException
-
retrieve
public static Card retrieve(String card, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves an IssuingCard
object.- Throws:
StripeException
-
retrieve
public static Card retrieve(String card, CardRetrieveParams params, RequestOptions options) throws StripeException Retrieves an IssuingCard
object.- Throws:
StripeException
-
update
Updates the specified IssuingCard
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
update
in interfaceMetadataStore<Card>
- Throws:
StripeException
-
update
Updates the specified IssuingCard
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
update
in interfaceMetadataStore<Card>
- Throws:
StripeException
-
update
Updates the specified IssuingCard
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
update
Updates the specified IssuingCard
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
getTestHelpers
Reason the card is ineligible for Google PayOne of
missing_agreement
,missing_cardholder_contact
, orunsupported_region
. -
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getBrand
The brand of the card. -
getCancellationReason
The reason why the card was canceled.One of
design_rejected
,lost
, orstolen
. -
getCardholder
An IssuingCardholder
object represents an individual or business entity who is issued cards.Related guide: How to create a cardholder
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCurrency
Three-letter ISO currency code, in lowercase. Supported currencies areusd
in the US,eur
in the EU, andgbp
in the UK. -
getCvc
The card's CVC. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with theexpand
parameter. Additionally, it's only available via the "Retrieve a card" endpoint, not via "List all cards" or any other endpoint. -
getExpMonth
The expiration month of the card. -
getExpYear
The expiration year of the card. -
getFinancialAccount
The financial account this card is attached to. -
getLast4
The last 4 digits of the card number. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getNumber
The full unredacted card number. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with theexpand
parameter. Additionally, it's only available via the "Retrieve a card" endpoint, not via "List all cards" or any other endpoint. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
issuing.card
. -
getReplacementReason
The reason why the previous card needed to be replaced.One of
damaged
,expired
,lost
, orstolen
. -
getShipping
Where and how the card will be shipped. -
getSpendingControls
-
getStatus
Whether authorizations can be approved on this card. May be blocked from activating cards depending on past-due Cardholder requirements. Defaults toinactive
.One of
active
,canceled
, orinactive
. -
getType
The type of the card.One of
physical
, orvirtual
. -
getWallets
Information relating to digital wallets (like Apple Pay and Google Pay). -
setBrand
The brand of the card. -
setCancellationReason
The reason why the card was canceled.One of
design_rejected
,lost
, orstolen
. -
setCardholder
An IssuingCardholder
object represents an individual or business entity who is issued cards.Related guide: How to create a cardholder
-
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCurrency
Three-letter ISO currency code, in lowercase. Supported currencies areusd
in the US,eur
in the EU, andgbp
in the UK. -
setCvc
The card's CVC. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with theexpand
parameter. Additionally, it's only available via the "Retrieve a card" endpoint, not via "List all cards" or any other endpoint. -
setExpMonth
The expiration month of the card. -
setExpYear
The expiration year of the card. -
setFinancialAccount
The financial account this card is attached to. -
setId
Unique identifier for the object. -
setLast4
The last 4 digits of the card number. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
setNumber
The full unredacted card number. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with theexpand
parameter. Additionally, it's only available via the "Retrieve a card" endpoint, not via "List all cards" or any other endpoint. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
issuing.card
. -
setReplacementReason
The reason why the previous card needed to be replaced.One of
damaged
,expired
,lost
, orstolen
. -
setShipping
Where and how the card will be shipped. -
setSpendingControls
-
setStatus
Whether authorizations can be approved on this card. May be blocked from activating cards depending on past-due Cardholder requirements. Defaults toinactive
.One of
active
,canceled
, orinactive
. -
setType
The type of the card.One of
physical
, orvirtual
. -
setWallets
Information relating to digital wallets (like Apple Pay and Google Pay). -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.- Specified by:
getMetadata
in interfaceMetadataStore<Card>
-