Class CardCreateParams.Builder

java.lang.Object
com.stripe.param.issuing.CardCreateParams.Builder
Enclosing class:
CardCreateParams

public static class CardCreateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public CardCreateParams build()
      Finalize and obtain parameter instance from this builder.
    • setCardholder

      public CardCreateParams.Builder setCardholder(String cardholder)
      The Cardholder object with which the card will be associated.
    • setCurrency

      public CardCreateParams.Builder setCurrency(String currency)
      Required. The currency for the card.
    • addExpand

      public CardCreateParams.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 CardCreateParams.expand for the field documentation.
    • addAllExpand

      public CardCreateParams.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 CardCreateParams.expand for the field documentation.
    • putExtraParam

      public CardCreateParams.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 CardCreateParams.extraParams for the field documentation.
    • putAllExtraParam

      public CardCreateParams.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 CardCreateParams.extraParams for the field documentation.
    • setFinancialAccount

      public CardCreateParams.Builder setFinancialAccount(String financialAccount)
    • putMetadata

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

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

      public CardCreateParams.Builder setPersonalizationDesign(String personalizationDesign)
      The personalization design object belonging to this card.
    • setPin

      The desired PIN for this card.
    • setReplacementFor

      public CardCreateParams.Builder setReplacementFor(String replacementFor)
      The card this is meant to be a replacement for (if any).
    • setReplacementReason

      public CardCreateParams.Builder setReplacementReason(CardCreateParams.ReplacementReason replacementReason)
      If replacement_for is specified, this should indicate why that card is being replaced.
    • setSecondLine

      public CardCreateParams.Builder setSecondLine(String secondLine)
      The second line to print on the card.
    • setSecondLine

      public CardCreateParams.Builder setSecondLine(EmptyParam secondLine)
      The second line to print on the card.
    • setShipping

      public CardCreateParams.Builder setShipping(CardCreateParams.Shipping shipping)
      The address where the card will be shipped.
    • setSpendingControls

      public CardCreateParams.Builder setSpendingControls(CardCreateParams.SpendingControls spendingControls)
      Rules that control spending for this card. Refer to our documentation for more details.
    • setStatus

      Whether authorizations can be approved on this card. May be blocked from activating cards depending on past-due Cardholder requirements. Defaults to inactive.
    • setType

      Required. The type of card to issue. Possible values are physical or virtual.