Package com.stripe.param
Class SubscriptionScheduleAmendParams.Amendment.ItemAction.Set.Discount.DiscountEnd.Builder
java.lang.Object
com.stripe.param.SubscriptionScheduleAmendParams.Amendment.ItemAction.Set.Discount.DiscountEnd.Builder
public static class SubscriptionScheduleAmendParams.Amendment.ItemAction.Set.Discount.DiscountEnd.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.setDuration
(SubscriptionScheduleAmendParams.Amendment.ItemAction.Set.Discount.DiscountEnd.Duration duration) Time span for the redeemed discount.setTimestamp
(Long timestamp) A precise Unix timestamp for the discount to end.Required. The type of calculation made to determine when the discount ends.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setDuration
public SubscriptionScheduleAmendParams.Amendment.ItemAction.Set.Discount.DiscountEnd.Builder setDuration(SubscriptionScheduleAmendParams.Amendment.ItemAction.Set.Discount.DiscountEnd.Duration duration) Time span for the redeemed discount. -
putExtraParam
public SubscriptionScheduleAmendParams.Amendment.ItemAction.Set.Discount.DiscountEnd.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.Set.Discount.DiscountEnd.extraParams
for the field documentation. -
putAllExtraParam
public SubscriptionScheduleAmendParams.Amendment.ItemAction.Set.Discount.DiscountEnd.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.Set.Discount.DiscountEnd.extraParams
for the field documentation. -
setTimestamp
public SubscriptionScheduleAmendParams.Amendment.ItemAction.Set.Discount.DiscountEnd.Builder setTimestamp(Long timestamp) A precise Unix timestamp for the discount to end. Must be in the future. -
setType
public SubscriptionScheduleAmendParams.Amendment.ItemAction.Set.Discount.DiscountEnd.Builder setType(SubscriptionScheduleAmendParams.Amendment.ItemAction.Set.Discount.DiscountEnd.Type type) Required. The type of calculation made to determine when the discount ends.
-