Class ConnectionSession

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

public class ConnectionSession extends StripeObject implements HasId
The ConnectionSession resource.
  • Constructor Details

    • ConnectionSession

      public ConnectionSession()
  • Method Details

    • getAccount

      public String getAccount()
      The Account this Connection Session was created for.
    • getAllowedConnectionTypes

      public List<String> getAllowedConnectionTypes()
      The Connection types that the Connection Session is allowed to establish.
    • getClientSecret

      public String getClientSecret()
      The client secret of this Connection Session. Used on the client to set up secure access to the given Account.
    • getConnection

      public ConnectionSession.Connection getConnection()
      The Connection created by the ConnectionSession.
    • getCreated

      public Instant getCreated()
      Time at which the ConnectionSession was created.
    • getLivemode

      public Boolean getLivemode()
      Has the value true if the object 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.connection_session.

    • getRequestedAccess

      public List<String> getRequestedAccess()
      The access that is collected with the Connection Session.
    • setAccount

      public void setAccount(String account)
      The Account this Connection Session was created for.
    • setAllowedConnectionTypes

      public void setAllowedConnectionTypes(List<String> allowedConnectionTypes)
      The Connection types that the Connection Session is allowed to establish.
    • setClientSecret

      public void setClientSecret(String clientSecret)
      The client secret of this Connection Session. Used on the client to set up secure access to the given Account.
    • setConnection

      public void setConnection(ConnectionSession.Connection connection)
      The Connection created by the ConnectionSession.
    • setCreated

      public void setCreated(Instant created)
      Time at which the ConnectionSession was created.
    • setId

      public void setId(String id)
      The unique identifier for this ConnectionSession.
    • setLivemode

      public void setLivemode(Boolean livemode)
      Has the value true if the object 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.connection_session.

    • setRequestedAccess

      public void setRequestedAccess(List<String> requestedAccess)
      The access that is collected with the Connection Session.
    • 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()
      The unique identifier for this ConnectionSession.
      Specified by:
      getId in interface HasId