Package com.stripe.model.issuing
Class Cardholder
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.issuing.Cardholder
- All Implemented Interfaces:
HasId,MetadataStore<Cardholder>,StripeActiveObject,StripeObjectInterface
An Issuing
Cardholder object represents an individual or business entity who is issued cards.
Related guide: How to create a cardholder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about Billing, please refer to the API Reference.static classFor more details about Company, please refer to the API Reference.static classFor more details about Individual, please refer to the API Reference.static classFor more details about Requirements, please refer to the API Reference.static classFor more details about SpendingControls, 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 Cardholdercreate(CardholderCreateParams params) Creates a new IssuingCardholderobject that can be issued cards.static Cardholdercreate(CardholderCreateParams params, RequestOptions options) Creates a new IssuingCardholderobject that can be issued cards.static CardholderCreates a new IssuingCardholderobject that can be issued cards.static Cardholdercreate(Map<String, Object> params, RequestOptions options) Creates a new IssuingCardholderobject that can be issued cards.booleanAdditional information about acompanycardholder.Time at which the object was created.getEmail()The cardholder's email address.getId()Unique identifier for the object.Additional information about anindividualcardholder.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.getName()The cardholder's name.String representing the object's type.The cardholder's phone number.The cardholder’s preferred locales (languages), ordered by preference.Rules that control spending across this cardholder's cards.Specifies whether to permit authorizations on this cardholder's cards.getType()One ofindividualorcompany.inthashCode()static CardholderCollectionlist(CardholderListParams params) Returns a list of IssuingCardholderobjects.static CardholderCollectionlist(CardholderListParams params, RequestOptions options) Returns a list of IssuingCardholderobjects.static CardholderCollectionReturns a list of IssuingCardholderobjects.static CardholderCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of IssuingCardholderobjects.static CardholderRetrieves an IssuingCardholderobject.static Cardholderretrieve(String cardholder, RequestOptions options) Retrieves an IssuingCardholderobject.static Cardholderretrieve(String cardholder, CardholderRetrieveParams params, RequestOptions options) Retrieves an IssuingCardholderobject.static CardholderRetrieves an IssuingCardholderobject.voidsetBilling(Cardholder.Billing billing) voidsetCompany(Cardholder.Company company) Additional information about acompanycardholder.voidsetCreated(Long created) Time at which the object was created.voidThe cardholder's email address.voidUnique identifier for the object.voidsetIndividual(Cardholder.Individual individual) Additional information about anindividualcardholder.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 cardholder's name.voidString representing the object's type.voidsetPhoneNumber(String phoneNumber) The cardholder's phone number.voidsetPreferredLocales(List<String> preferredLocales) The cardholder’s preferred locales (languages), ordered by preference.voidsetRequirements(Cardholder.Requirements requirements) voidsetResponseGetter(StripeResponseGetter responseGetter) Interval (or event) to which the amount applies.voidsetSpendingControls(Cardholder.SpendingControls spendingControls) Rules that control spending across this cardholder's cards.voidSpecifies whether to permit authorizations on this cardholder's cards.voidOne ofindividualorcompany.update(CardholderUpdateParams params) Updates the specified IssuingCardholderobject by setting the values of the parameters passed.update(CardholderUpdateParams params, RequestOptions options) Updates the specified IssuingCardholderobject by setting the values of the parameters passed.Updates the specified IssuingCardholderobject by setting the values of the parameters passed.update(Map<String, Object> params, RequestOptions options) Updates the specified IssuingCardholderobject 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
-
Cardholder
public Cardholder()
-
-
Method Details
-
create
Creates a new IssuingCardholderobject that can be issued cards.- Throws:
StripeException
-
create
public static Cardholder create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a new IssuingCardholderobject that can be issued cards.- Throws:
StripeException
-
create
Creates a new IssuingCardholderobject that can be issued cards.- Throws:
StripeException
-
create
public static Cardholder create(CardholderCreateParams params, RequestOptions options) throws StripeException Creates a new IssuingCardholderobject that can be issued cards.- Throws:
StripeException
-
list
Returns a list of IssuingCardholderobjects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static CardholderCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of IssuingCardholderobjects. 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 IssuingCardholderobjects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static CardholderCollection list(CardholderListParams params, RequestOptions options) throws StripeException Returns a list of IssuingCardholderobjects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
retrieve
Retrieves an IssuingCardholderobject.- Throws:
StripeException
-
retrieve
Retrieves an IssuingCardholderobject.- Throws:
StripeException
-
retrieve
public static Cardholder retrieve(String cardholder, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves an IssuingCardholderobject.- Throws:
StripeException
-
retrieve
public static Cardholder retrieve(String cardholder, CardholderRetrieveParams params, RequestOptions options) throws StripeException Retrieves an IssuingCardholderobject.- Throws:
StripeException
-
update
Updates the specified IssuingCardholderobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
updatein interfaceMetadataStore<Cardholder>- Throws:
StripeException
-
update
Updates the specified IssuingCardholderobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
updatein interfaceMetadataStore<Cardholder>- Throws:
StripeException
-
update
Updates the specified IssuingCardholderobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
update
public Cardholder update(CardholderUpdateParams params, RequestOptions options) throws StripeException Updates the specified IssuingCardholderobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
setResponseGetter
Interval (or event) to which the amount applies.One of
all_time,daily,monthly,per_authorization,weekly, oryearly.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getBilling
-
getCompany
Additional information about acompanycardholder. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getEmail
The cardholder's email address. -
getIndividual
Additional information about anindividualcardholder. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getName
The cardholder's name. This will be printed on cards issued to them. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
issuing.cardholder. -
getPhoneNumber
The cardholder's phone number. This is required for all cardholders who will be creating EU cards. See the 3D Secure documentation for more details. -
getPreferredLocales
The cardholder’s preferred locales (languages), ordered by preference. Locales can bede,en,es,fr, orit. This changes the language of the 3D Secure flow and one-time password messages sent to the cardholder. -
getRequirements
-
getSpendingControls
Rules that control spending across this cardholder's cards. Refer to our documentation for more details. -
getStatus
Specifies whether to permit authorizations on this cardholder's cards.One of
active,blocked, orinactive. -
getType
-
setBilling
-
setCompany
Additional information about acompanycardholder. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setEmail
The cardholder's email address. -
setId
Unique identifier for the object. -
setIndividual
Additional information about anindividualcardholder. -
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. -
setName
The cardholder's name. This will be printed on cards issued to them. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
issuing.cardholder. -
setPhoneNumber
The cardholder's phone number. This is required for all cardholders who will be creating EU cards. See the 3D Secure documentation for more details. -
setPreferredLocales
The cardholder’s preferred locales (languages), ordered by preference. Locales can bede,en,es,fr, orit. This changes the language of the 3D Secure flow and one-time password messages sent to the cardholder. -
setRequirements
-
setSpendingControls
Rules that control spending across this cardholder's cards. Refer to our documentation for more details. -
setStatus
Specifies whether to permit authorizations on this cardholder's cards.One of
active,blocked, orinactive. -
setType
-
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<Cardholder>
-