Class AccountToken

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.core.AccountToken
All Implemented Interfaces:
HasId, StripeObjectInterface

public class AccountToken extends StripeObject implements HasId
Account tokens are single-use tokens which tokenize company/individual/business information, and are used for creating or updating an Account.
  • Constructor Details

    • AccountToken

      public AccountToken()
  • Method Details

    • getCreated

      public Instant getCreated()
      Time at which the token was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
    • getExpiresAt

      public Instant getExpiresAt()
      Time at which the token will expire.
    • getLivemode

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

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

      Equal to v2.core.account_token.

    • getUsed

      public Boolean getUsed()
      Determines if the token has already been used (tokens can only be used once).
    • setCreated

      public void setCreated(Instant created)
      Time at which the token was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
    • setExpiresAt

      public void setExpiresAt(Instant expiresAt)
      Time at which the token will expire.
    • setId

      public void setId(String id)
      Unique identifier for the token.
    • setLivemode

      public void setLivemode(Boolean livemode)
      Has the value true if the token exists in live mode or the value false if the object exists in test mode.
    • setObject

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

      Equal to v2.core.account_token.

    • setUsed

      public void setUsed(Boolean used)
      Determines if the token has already been used (tokens can only be used once).
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

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

      public String getId()
      Unique identifier for the token.
      Specified by:
      getId in interface HasId