Class CardUpdateOnAccountParams.Builder

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

public static class CardUpdateOnAccountParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public CardUpdateOnAccountParams build()
      Finalize and obtain parameter instance from this builder.
    • setAddressCity

      public CardUpdateOnAccountParams.Builder setAddressCity(String addressCity)
      City/District/Suburb/Town/Village.
    • setAddressCountry

      public CardUpdateOnAccountParams.Builder setAddressCountry(String addressCountry)
      Billing address country, if provided when creating card.
    • setAddressLine1

      public CardUpdateOnAccountParams.Builder setAddressLine1(String addressLine1)
      Address line 1 (Street address/PO Box/Company name).
    • setAddressLine2

      public CardUpdateOnAccountParams.Builder setAddressLine2(String addressLine2)
      Address line 2 (Apartment/Suite/Unit/Building).
    • setAddressState

      public CardUpdateOnAccountParams.Builder setAddressState(String addressState)
      State/County/Province/Region.
    • setAddressZip

      public CardUpdateOnAccountParams.Builder setAddressZip(String addressZip)
      ZIP or postal code.
    • setDefaultForCurrency

      public CardUpdateOnAccountParams.Builder setDefaultForCurrency(Boolean defaultForCurrency)
      When set to true, this becomes the default external account for its currency.
    • setExpMonth

      public CardUpdateOnAccountParams.Builder setExpMonth(String expMonth)
      Two digit number representing the card’s expiration month.
    • setExpYear

      public CardUpdateOnAccountParams.Builder setExpYear(String expYear)
      Four digit number representing the card’s expiration year.
    • addExpand

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

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

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

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

      public CardUpdateOnAccountParams.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 CardUpdateOnAccountParams.metadata for the field documentation.
    • putAllMetadata

      public CardUpdateOnAccountParams.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 CardUpdateOnAccountParams.metadata for the field documentation.
    • setName

      Cardholder name.