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
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
Get expandedfront
.static class
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 Cardholder
create
(CardholderCreateParams params) Creates a new IssuingCardholder
object that can be issued cards.static Cardholder
create
(CardholderCreateParams params, RequestOptions options) Creates a new IssuingCardholder
object that can be issued cards.static Cardholder
Creates a new IssuingCardholder
object that can be issued cards.static Cardholder
create
(Map<String, Object> params, RequestOptions options) Creates a new IssuingCardholder
object that can be issued cards.boolean
Additional information about acompany
cardholder.Time at which the object was created.getEmail()
The cardholder's email address.getId()
Unique identifier for the object.Additional information about anindividual
cardholder.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.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 ofindividual
orcompany
.int
hashCode()
static CardholderCollection
list
(CardholderListParams params) Returns a list of IssuingCardholder
objects.static CardholderCollection
list
(CardholderListParams params, RequestOptions options) Returns a list of IssuingCardholder
objects.static CardholderCollection
Returns a list of IssuingCardholder
objects.static CardholderCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of IssuingCardholder
objects.static Cardholder
Retrieves an IssuingCardholder
object.static Cardholder
retrieve
(String cardholder, RequestOptions options) Retrieves an IssuingCardholder
object.static Cardholder
retrieve
(String cardholder, CardholderRetrieveParams params, RequestOptions options) Retrieves an IssuingCardholder
object.static Cardholder
Retrieves an IssuingCardholder
object.void
setBilling
(Cardholder.Billing billing) void
setCompany
(Cardholder.Company company) Additional information about acompany
cardholder.void
setCreated
(Long created) Time at which the object was created.void
The cardholder's email address.void
Unique identifier for the object.void
setIndividual
(Cardholder.Individual individual) Additional information about anindividual
cardholder.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 cardholder's name.void
String representing the object's type.void
setPhoneNumber
(String phoneNumber) The cardholder's phone number.void
setPreferredLocales
(List<String> preferredLocales) The cardholder’s preferred locales (languages), ordered by preference.void
setRequirements
(Cardholder.Requirements requirements) void
setResponseGetter
(StripeResponseGetter responseGetter) Interval (or event) to which the amount applies.void
setSpendingControls
(Cardholder.SpendingControls spendingControls) Rules that control spending across this cardholder's cards.void
Specifies whether to permit authorizations on this cardholder's cards.void
One ofindividual
orcompany
.update
(CardholderUpdateParams params) Updates the specified IssuingCardholder
object by setting the values of the parameters passed.update
(CardholderUpdateParams params, RequestOptions options) Updates the specified IssuingCardholder
object by setting the values of the parameters passed.Updates the specified IssuingCardholder
object by setting the values of the parameters passed.update
(Map<String, Object> params, RequestOptions options) Updates the specified IssuingCardholder
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
-
Cardholder
public Cardholder()
-
-
Method Details
-
create
Creates a new IssuingCardholder
object that can be issued cards.- Throws:
StripeException
-
create
public static Cardholder create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a new IssuingCardholder
object that can be issued cards.- Throws:
StripeException
-
create
Creates a new IssuingCardholder
object that can be issued cards.- Throws:
StripeException
-
create
public static Cardholder create(CardholderCreateParams params, RequestOptions options) throws StripeException Creates a new IssuingCardholder
object that can be issued cards.- Throws:
StripeException
-
list
Returns a list of IssuingCardholder
objects. 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 IssuingCardholder
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 IssuingCardholder
objects. 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 IssuingCardholder
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
retrieve
Retrieves an IssuingCardholder
object.- Throws:
StripeException
-
retrieve
Retrieves an IssuingCardholder
object.- Throws:
StripeException
-
retrieve
public static Cardholder retrieve(String cardholder, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves an IssuingCardholder
object.- Throws:
StripeException
-
retrieve
public static Cardholder retrieve(String cardholder, CardholderRetrieveParams params, RequestOptions options) throws StripeException Retrieves an IssuingCardholder
object.- Throws:
StripeException
-
update
Updates the specified IssuingCardholder
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
update
in interfaceMetadataStore<Cardholder>
- Throws:
StripeException
-
update
Updates the specified IssuingCardholder
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
update
in interfaceMetadataStore<Cardholder>
- Throws:
StripeException
-
update
Updates the specified IssuingCardholder
object 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 IssuingCardholder
object 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:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getBilling
-
getCompany
Additional information about acompany
cardholder. -
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 anindividual
cardholder. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if 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 acompany
cardholder. -
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 anindividual
cardholder. -
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. -
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:
getMetadata
in interfaceMetadataStore<Cardholder>
-