Class SessionUpdateParams.SubscriptionData.Builder

java.lang.Object
com.stripe.param.checkout.SessionUpdateParams.SubscriptionData.Builder
Enclosing class:
SessionUpdateParams.SubscriptionData

public static class SessionUpdateParams.SubscriptionData.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      Finalize and obtain parameter instance from this builder.
    • putExtraParam

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

      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 SessionUpdateParams.SubscriptionData.extraParams for the field documentation.
    • setTrialEnd

      public SessionUpdateParams.SubscriptionData.Builder setTrialEnd(Long trialEnd)
      Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future.
    • setTrialPeriodDays

      public SessionUpdateParams.SubscriptionData.Builder setTrialPeriodDays(Long trialPeriodDays)
      Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
    • setTrialPeriodDays

      public SessionUpdateParams.SubscriptionData.Builder setTrialPeriodDays(EmptyParam trialPeriodDays)
      Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.