Class Card

    • Constructor Detail

      • Card

        public Card()
    • Method Detail

      • getReplacedBy

        public java.lang.String getReplacedBy()
        Get ID of expandable replacedBy object.
      • setReplacedBy

        public void setReplacedBy​(java.lang.String id)
      • getReplacedByObject

        public Card getReplacedByObject()
        Get expanded replacedBy.
      • setReplacedByObject

        public void setReplacedByObject​(Card expandableObject)
      • getReplacementFor

        public java.lang.String getReplacementFor()
        Get ID of expandable replacementFor object.
      • setReplacementFor

        public void setReplacementFor​(java.lang.String id)
      • getReplacementForObject

        public Card getReplacementForObject()
        Get expanded replacementFor.
      • setReplacementForObject

        public void setReplacementForObject​(Card expandableObject)
      • list

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

        public static Card create​(java.util.Map<java.lang.String,​java.lang.Object> params)
                           throws StripeException
        Creates an Issuing Card object.
        Throws:
        StripeException
      • update

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

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

        public java.lang.String getBrand()
        The brand of the card.
      • getCancellationReason

        public java.lang.String getCancellationReason()
        The reason why the card was canceled.

        One of lost, or stolen.

      • getCreated

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

        public java.lang.String 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 the expand parameter. Additionally, it's only available via the "Retrieve a card" endpoint, not via "List all cards" or any other endpoint.
      • getExpMonth

        public java.lang.Long getExpMonth()
        The expiration month of the card.
      • getExpYear

        public java.lang.Long getExpYear()
        The expiration year of the card.
      • getLast4

        public java.lang.String getLast4()
        The last 4 digits of the card number.
      • 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.
      • getNumber

        public java.lang.String 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 the expand parameter. Additionally, it's only available via the "Retrieve a card" endpoint, not via "List all cards" or any other endpoint.
      • getObject

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

        Equal to issuing.card.

      • getReplacementReason

        public java.lang.String getReplacementReason()
        The reason why the previous card needed to be replaced.

        One of damaged, expired, lost, or stolen.

      • getShipping

        public Card.Shipping getShipping()
        Where and how the card will be shipped.
      • getStatus

        public java.lang.String getStatus()
        Whether authorizations can be approved on this card.

        One of active, canceled, or inactive.

      • getType

        public java.lang.String getType()
        The type of the card.

        One of physical, or virtual.

      • setBrand

        public void setBrand​(java.lang.String brand)
        The brand of the card.
      • setCancellationReason

        public void setCancellationReason​(java.lang.String cancellationReason)
        The reason why the card was canceled.

        One of lost, or stolen.

      • setCreated

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

        public void setCvc​(java.lang.String cvc)
        The card's CVC. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with the expand parameter. Additionally, it's only available via the "Retrieve a card" endpoint, not via "List all cards" or any other endpoint.
      • setExpMonth

        public void setExpMonth​(java.lang.Long expMonth)
        The expiration month of the card.
      • setExpYear

        public void setExpYear​(java.lang.Long expYear)
        The expiration year of the card.
      • setId

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

        public void setLast4​(java.lang.String last4)
        The last 4 digits of the card number.
      • 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.
      • setNumber

        public void setNumber​(java.lang.String number)
        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 the expand parameter. Additionally, it's only available via the "Retrieve a card" endpoint, not via "List all cards" or any other endpoint.
      • 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.card.

      • setReplacementReason

        public void setReplacementReason​(java.lang.String replacementReason)
        The reason why the previous card needed to be replaced.

        One of damaged, expired, lost, or stolen.

      • setShipping

        public void setShipping​(Card.Shipping shipping)
        Where and how the card will be shipped.
      • setStatus

        public void setStatus​(java.lang.String status)
        Whether authorizations can be approved on this card.

        One of active, canceled, or inactive.

      • setType

        public void setType​(java.lang.String type)
        The type of the card.

        One of physical, or virtual.

      • 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<Card>