Class ProfileCreateParams.Builder

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

public static class ProfileCreateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public ProfileCreateParams build()
      Finalize and obtain parameter instance from this builder.
    • setCustomer

      public ProfileCreateParams.Builder setCustomer(String customer)
      Required. The ID of the customer object.
    • setDefaultPaymentMethod

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

      public ProfileCreateParams.Builder setDisplayName(String displayName)
      A customer-facing name for the billing profile. Maximum length of 250 characters.
    • putExtraParam

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

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

      public ProfileCreateParams.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.
    • putMetadata

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

      public ProfileCreateParams.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 ProfileCreateParams.metadata for the field documentation.