Package com.stripe.param
Class SubscriptionCreateParams.Discount.DiscountEnd.Builder
java.lang.Object
com.stripe.param.SubscriptionCreateParams.Discount.DiscountEnd.Builder
- Enclosing class:
- SubscriptionCreateParams.Discount.DiscountEnd
-
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.Time span for the redeemed discount.setTimestamp
(Long timestamp) A precise Unix timestamp for the discount to end.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 SubscriptionCreateParams.Discount.DiscountEnd.Builder setDuration(SubscriptionCreateParams.Discount.DiscountEnd.Duration duration) Time span for the redeemed discount. -
putExtraParam
public SubscriptionCreateParams.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. SeeSubscriptionCreateParams.Discount.DiscountEnd.extraParams
for the field documentation. -
putAllExtraParam
public SubscriptionCreateParams.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. SeeSubscriptionCreateParams.Discount.DiscountEnd.extraParams
for the field documentation. -
setTimestamp
A precise Unix timestamp for the discount to end. Must be in the future. -
setType
public SubscriptionCreateParams.Discount.DiscountEnd.Builder setType(SubscriptionCreateParams.Discount.DiscountEnd.Type type) The type of calculation made to determine when the discount ends.
-