Class Cardholder

    • Constructor Detail

      • Cardholder

        public Cardholder()
    • Method Detail

      • list

        public static CardholderCollection list​(java.util.Map<java.lang.String,​java.lang.Object> params)
                                         throws StripeException
        Returns a list of Issuing Cardholder 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​(java.util.Map<java.lang.String,​java.lang.Object> params,
                                                RequestOptions options)
                                         throws StripeException
        Returns a list of Issuing Cardholder objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
        Throws:
        StripeException
      • create

        public static Cardholder create​(java.util.Map<java.lang.String,​java.lang.Object> params)
                                 throws StripeException
        Creates a new Issuing Cardholder object that can be issued cards.
        Throws:
        StripeException
      • update

        public Cardholder update​(java.util.Map<java.lang.String,​java.lang.Object> params)
                          throws StripeException
        Updates the specified Issuing Cardholder object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
        Specified by:
        update in interface MetadataStore<Cardholder>
        Throws:
        StripeException
      • getCompany

        public Cardholder.Company getCompany()
        Additional information about a company cardholder.
      • getCreated

        public java.lang.Long getCreated()
        Time at which the object was created. Measured in seconds since the Unix epoch.
      • getEmail

        public java.lang.String getEmail()
        The cardholder's email address.
      • getIndividual

        public Cardholder.Individual getIndividual()
        Additional information about an individual cardholder.
      • getLivemode

        public java.lang.Boolean getLivemode()
        Has the value true if the object exists in live mode or the value false if the object exists in test mode.
      • getName

        public java.lang.String getName()
        The cardholder's name. This will be printed on cards issued to them.
      • getObject

        public java.lang.String getObject()
        String representing the object's type. Objects of the same type share the same value.

        Equal to issuing.cardholder.

      • getPhoneNumber

        public java.lang.String 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.
      • getStatus

        public java.lang.String getStatus()
        Specifies whether to permit authorizations on this cardholder's cards.

        One of active, blocked, or inactive.

      • getType

        public java.lang.String getType()
        One of individual or company.
      • setCompany

        public void setCompany​(Cardholder.Company company)
        Additional information about a company cardholder.
      • setCreated

        public void setCreated​(java.lang.Long created)
        Time at which the object was created. Measured in seconds since the Unix epoch.
      • setEmail

        public void setEmail​(java.lang.String email)
        The cardholder's email address.
      • setId

        public void setId​(java.lang.String id)
        Unique identifier for the object.
      • setIndividual

        public void setIndividual​(Cardholder.Individual individual)
        Additional information about an individual cardholder.
      • setLivemode

        public void setLivemode​(java.lang.Boolean livemode)
        Has the value true if the object exists in live mode or the value false if the object exists in test mode.
      • setMetadata

        public void setMetadata​(java.util.Map<java.lang.String,​java.lang.String> metadata)
        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

        public void setName​(java.lang.String name)
        The cardholder's name. This will be printed on cards issued to them.
      • setObject

        public void setObject​(java.lang.String object)
        String representing the object's type. Objects of the same type share the same value.

        Equal to issuing.cardholder.

      • setPhoneNumber

        public void setPhoneNumber​(java.lang.String phoneNumber)
        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.
      • setSpendingControls

        public void setSpendingControls​(Cardholder.SpendingControls spendingControls)
        Rules that control spending across this cardholder's cards. Refer to our documentation for more details.
      • setStatus

        public void setStatus​(java.lang.String status)
        Specifies whether to permit authorizations on this cardholder's cards.

        One of active, blocked, or inactive.

      • setType

        public void setType​(java.lang.String type)
        One of individual or company.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getId

        public java.lang.String getId()
        Unique identifier for the object.
        Specified by:
        getId in interface HasId
      • getMetadata

        public java.util.Map<java.lang.String,​java.lang.String> 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 interface MetadataStore<Cardholder>