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>,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 classstatic classstatic classstatic classGet expandedfront.static classNested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, 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.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.voidsetRequirements(Cardholder.Requirements requirements) 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, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
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
-
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. -
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
One ofindividualorcompany. -
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. -
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
One ofindividualorcompany. -
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>
-