Package com.stripe.param
Class SubscriptionUpdateParams.Item.Discount.Settings.ServicePeriodAnchorConfig.Custom.Builder
java.lang.Object
com.stripe.param.SubscriptionUpdateParams.Item.Discount.Settings.ServicePeriodAnchorConfig.Custom.Builder
public static class SubscriptionUpdateParams.Item.Discount.Settings.ServicePeriodAnchorConfig.Custom.Builder
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finalize and obtain parameter instance from this builder.putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.setDayOfMonth(Long dayOfMonth) Required. The day of the month the anchor should be.The hour of the day the anchor should be.The minute of the hour the anchor should be.The month to start full cycle periods.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setDayOfMonth
public SubscriptionUpdateParams.Item.Discount.Settings.ServicePeriodAnchorConfig.Custom.Builder setDayOfMonth(Long dayOfMonth) Required. The day of the month the anchor should be. Ranges from 1 to 31. -
putExtraParam
public SubscriptionUpdateParams.Item.Discount.Settings.ServicePeriodAnchorConfig.Custom.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. SeeSubscriptionUpdateParams.Item.Discount.Settings.ServicePeriodAnchorConfig.Custom.extraParamsfor the field documentation. -
putAllExtraParam
public SubscriptionUpdateParams.Item.Discount.Settings.ServicePeriodAnchorConfig.Custom.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. SeeSubscriptionUpdateParams.Item.Discount.Settings.ServicePeriodAnchorConfig.Custom.extraParamsfor the field documentation. -
setHour
public SubscriptionUpdateParams.Item.Discount.Settings.ServicePeriodAnchorConfig.Custom.Builder setHour(Long hour) The hour of the day the anchor should be. Ranges from 0 to 23. -
setMinute
public SubscriptionUpdateParams.Item.Discount.Settings.ServicePeriodAnchorConfig.Custom.Builder setMinute(Long minute) The minute of the hour the anchor should be. Ranges from 0 to 59. -
setMonth
public SubscriptionUpdateParams.Item.Discount.Settings.ServicePeriodAnchorConfig.Custom.Builder setMonth(Long month) The month to start full cycle periods. Ranges from 1 to 12. -
setSecond
public SubscriptionUpdateParams.Item.Discount.Settings.ServicePeriodAnchorConfig.Custom.Builder setSecond(Long second)
-