Class TokenCreateParams.Builder

java.lang.Object
com.stripe.param.TokenCreateParams.Builder
Enclosing class:
TokenCreateParams

public static class TokenCreateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public TokenCreateParams build()
      Finalize and obtain parameter instance from this builder.
    • setAccount

      Information for the account this token represents.
    • setBankAccount

      public TokenCreateParams.Builder setBankAccount(TokenCreateParams.BankAccount bankAccount)
      The bank account this token will represent.
    • setCard

      The card this token will represent. If you also pass in a customer, the card must be the ID of a card belonging to the customer. Otherwise, if you do not pass in a customer, this is a dictionary containing a user's credit card details, with the options described below.
    • setCard

      public TokenCreateParams.Builder setCard(String card)
      The card this token will represent. If you also pass in a customer, the card must be the ID of a card belonging to the customer. Otherwise, if you do not pass in a customer, this is a dictionary containing a user's credit card details, with the options described below.
    • setCustomer

      public TokenCreateParams.Builder setCustomer(String customer)
      Create a token for the customer, which is owned by the application's account. You can only use this with an OAuth access token or Stripe-Account header. Learn more about cloning saved payment methods.
    • setCvcUpdate

      public TokenCreateParams.Builder setCvcUpdate(TokenCreateParams.CvcUpdate cvcUpdate)
      The updated CVC value this token represents.
    • addExpand

      public TokenCreateParams.Builder addExpand(String element)
      Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See TokenCreateParams.expand for the field documentation.
    • addAllExpand

      public TokenCreateParams.Builder addAllExpand(List<String> elements)
      Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See TokenCreateParams.expand for the field documentation.
    • putExtraParam

      public TokenCreateParams.Builder putExtraParam(String key, Object value)
      Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See TokenCreateParams.extraParams for the field documentation.
    • putAllExtraParam

      public TokenCreateParams.Builder putAllExtraParam(Map<String,Object> map)
      Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See TokenCreateParams.extraParams for the field documentation.
    • setPerson

      Information for the person this token represents.
    • setPii

      The PII this token represents.