Class ProfileUpdateParams.Builder

java.lang.Object
com.stripe.param.v2.billing.ProfileUpdateParams.Builder
Enclosing class:
ProfileUpdateParams

public static class ProfileUpdateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public ProfileUpdateParams build()
      Finalize and obtain parameter instance from this builder.
    • setDefaultPaymentMethod

      public ProfileUpdateParams.Builder setDefaultPaymentMethod(String defaultPaymentMethod)
      The ID of the payment method object.
    • setDefaultPaymentMethod

      public ProfileUpdateParams.Builder setDefaultPaymentMethod(EmptyParam defaultPaymentMethod)
      The ID of the payment method object.
    • setDisplayName

      public ProfileUpdateParams.Builder setDisplayName(String displayName)
      A customer-facing name for the billing profile. Maximum length of 250 characters. To remove the display_name from the object, set it to null in the request.
    • setDisplayName

      public ProfileUpdateParams.Builder setDisplayName(EmptyParam displayName)
      A customer-facing name for the billing profile. Maximum length of 250 characters. To remove the display_name from the object, set it to null in the request.
    • putExtraParam

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

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

      public ProfileUpdateParams.Builder setLookupKey(String lookupKey)
      An internal key you can use to search for a particular billing profile. It must be unique among billing profiles for a given customer. Maximum length of 200 characters. To remove the lookup_key from the object, set it to null in the request.
    • setLookupKey

      public ProfileUpdateParams.Builder setLookupKey(EmptyParam lookupKey)
      An internal key you can use to search for a particular billing profile. It must be unique among billing profiles for a given customer. Maximum length of 200 characters. To remove the lookup_key from the object, set it to null in the request.
    • putMetadata

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

      public ProfileUpdateParams.Builder putMetadata(String key, EmptyParam 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 ProfileUpdateParams.metadata for the field documentation.
    • putAllMetadata

      public ProfileUpdateParams.Builder putAllMetadata(Map<String,Object> 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. Map values can only be one of the following types: `String`, `EmptyParam`. See ProfileUpdateParams.metadata for the field documentation.