Class CadenceCreateParams.Builder

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

public static class CadenceCreateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public CadenceCreateParams build()
      Finalize and obtain parameter instance from this builder.
    • setBillingCycle

      public CadenceCreateParams.Builder setBillingCycle(CadenceCreateParams.BillingCycle billingCycle)
      Required. The billing cycle is the object that defines future billing cycle dates.
    • putExtraParam

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

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

      Add an element to `include` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See CadenceCreateParams.include for the field documentation.
    • addAllInclude

      Add all elements to `include` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See CadenceCreateParams.include for the field documentation.
    • putMetadata

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

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

      Required. The payer determines the entity financially responsible for the bill.
    • setSettings

      The settings associated with the cadence.