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
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about Shipping, please refer to the API Reference.static classFor more details about SpendingControls, please refer to the API Reference.static classstatic classFor more details about Wallets, please refer to the API Reference.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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic Cardcreate(CardCreateParams params) Creates an IssuingCardobject.static Cardcreate(CardCreateParams params, RequestOptions options) Creates an IssuingCardobject.static CardCreates an IssuingCardobject.static Cardcreate(Map<String, Object> params, RequestOptions options) Creates an IssuingCardobject.booleangetBrand()The brand of the card.The reason why the card was canceled.An IssuingCardholderobject 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 valuetrueif the object exists in live mode or the valuefalseif 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 expandablepersonalizationDesignobject.Get expandedpersonalizationDesign.Get ID of expandablereplacedByobject.Get expandedreplacedBy.Get ID of expandablereplacementForobject.Get expandedreplacementFor.The reason why the previous card needed to be replaced.Text separate from cardholder name, printed on the card.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).inthashCode()static CardCollectionlist(CardListParams params) Returns a list of IssuingCardobjects.static CardCollectionlist(CardListParams params, RequestOptions options) Returns a list of IssuingCardobjects.static CardCollectionReturns a list of IssuingCardobjects.static CardCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of IssuingCardobjects.static CardRetrieves an IssuingCardobject.static Cardretrieve(String card, RequestOptions options) Retrieves an IssuingCardobject.static Cardretrieve(String card, CardRetrieveParams params, RequestOptions options) Retrieves an IssuingCardobject.static CardRetrieves an IssuingCardobject.voidThe brand of the card.voidsetCancellationReason(String cancellationReason) The reason why the card was canceled.voidsetCardholder(Cardholder cardholder) An IssuingCardholderobject represents an individual or business entity who is issued cards.voidsetCreated(Long created) Time at which the object was created.voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase.voidThe card's CVC.voidsetExpMonth(Long expMonth) The expiration month of the card.voidsetExpYear(Long expYear) The expiration year of the card.voidsetFinancialAccount(String financialAccount) The financial account this card is attached to.voidUnique identifier for the object.voidThe last 4 digits of the card number.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidThe full unredacted card number.voidString representing the object's type.voidvoidsetPersonalizationDesignObject(PersonalizationDesign expandableObject) voidsetReplacedBy(String id) voidsetReplacedByObject(Card expandableObject) voidvoidsetReplacementForObject(Card expandableObject) voidsetReplacementReason(String replacementReason) The reason why the previous card needed to be replaced.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidsetSecondLine(String secondLine) Text separate from cardholder name, printed on the card.voidsetShipping(Card.Shipping shipping) Where and how the card will be shipped.voidsetSpendingControls(Card.SpendingControls spendingControls) voidWhether authorizations can be approved on this card.voidThe type of the card.voidsetWallets(Card.Wallets wallets) Information relating to digital wallets (like Apple Pay and Google Pay).update(CardUpdateParams params) Updates the specified IssuingCardobject by setting the values of the parameters passed.update(CardUpdateParams params, RequestOptions options) Updates the specified IssuingCardobject by setting the values of the parameters passed.Updates the specified IssuingCardobject by setting the values of the parameters passed.update(Map<String, Object> params, RequestOptions options) Updates the specified IssuingCardobject by setting the values of the parameters passed.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Card
public Card()
-
-
Method Details
-
getPersonalizationDesign
Get ID of expandablepersonalizationDesignobject. -
setPersonalizationDesign
-
getPersonalizationDesignObject
Get expandedpersonalizationDesign. -
setPersonalizationDesignObject
-
getReplacedBy
Get ID of expandablereplacedByobject. -
setReplacedBy
-
getReplacedByObject
Get expandedreplacedBy. -
setReplacedByObject
-
getReplacementFor
Get ID of expandablereplacementForobject. -
setReplacementFor
-
getReplacementForObject
Get expandedreplacementFor. -
setReplacementForObject
-
create
Creates an IssuingCardobject.- Throws:
StripeException
-
create
Creates an IssuingCardobject.- Throws:
StripeException
-
create
Creates an IssuingCardobject.- Throws:
StripeException
-
create
Creates an IssuingCardobject.- Throws:
StripeException
-
list
Returns a list of IssuingCardobjects. 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 IssuingCardobjects. 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 IssuingCardobjects. 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 IssuingCardobjects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
retrieve
Retrieves an IssuingCardobject.- Throws:
StripeException
-
retrieve
Retrieves an IssuingCardobject.- Throws:
StripeException
-
retrieve
public static Card retrieve(String card, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves an IssuingCardobject.- Throws:
StripeException
-
retrieve
public static Card retrieve(String card, CardRetrieveParams params, RequestOptions options) throws StripeException Retrieves an IssuingCardobject.- Throws:
StripeException
-
update
Updates the specified IssuingCardobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
updatein interfaceMetadataStore<Card>- Throws:
StripeException
-
update
Updates the specified IssuingCardobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
updatein interfaceMetadataStore<Card>- Throws:
StripeException
-
update
Updates the specified IssuingCardobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
update
Updates the specified IssuingCardobject 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:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance 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 IssuingCardholderobject 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 areusdin the US,eurin the EU, andgbpin 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 theexpandparameter. 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 valuetrueif the object exists in live mode or the valuefalseif 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 theexpandparameter. 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. -
getSecondLine
Text separate from cardholder name, printed on the card. -
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 IssuingCardholderobject 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 areusdin the US,eurin the EU, andgbpin 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 theexpandparameter. 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 valuetrueif the object exists in live mode or the valuefalseif 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 theexpandparameter. 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. -
setSecondLine
Text separate from cardholder name, printed on the card. -
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:
getMetadatain interfaceMetadataStore<Card>
-