Package com.stripe.param
Class SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.Settings.ServicePeriodAnchorConfig.Builder
java.lang.Object
com.stripe.param.SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.Settings.ServicePeriodAnchorConfig.Builder
- Enclosing class:
- SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.Settings.ServicePeriodAnchorConfig
public static class SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.Settings.ServicePeriodAnchorConfig.Builder
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.Settings.ServicePeriodAnchorConfigbuild()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.setCustom(SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.Settings.ServicePeriodAnchorConfig.Custom custom) Anchor the service period to a custom date.setType(SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.Settings.ServicePeriodAnchorConfig.Type type) The type of service period anchor config.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
public SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.Settings.ServicePeriodAnchorConfig build()Finalize and obtain parameter instance from this builder. -
setCustom
public SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.Settings.ServicePeriodAnchorConfig.Builder setCustom(SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.Settings.ServicePeriodAnchorConfig.Custom custom) Anchor the service period to a custom date. Type must becustomto specify. -
putExtraParam
public SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.Settings.ServicePeriodAnchorConfig.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. SeeSubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.Settings.ServicePeriodAnchorConfig.extraParamsfor the field documentation. -
putAllExtraParam
public SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.Settings.ServicePeriodAnchorConfig.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. SeeSubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.Settings.ServicePeriodAnchorConfig.extraParamsfor the field documentation. -
setType
public SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.Settings.ServicePeriodAnchorConfig.Builder setType(SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.Settings.ServicePeriodAnchorConfig.Type type) The type of service period anchor config. Defaults toinheritif omitted.
-