Package com.stripe.param
Class SubscriptionScheduleAmendParams.Amendment.DiscountAction.Add.Builder
java.lang.Object
com.stripe.param.SubscriptionScheduleAmendParams.Amendment.DiscountAction.Add.Builder
- Enclosing class:
- SubscriptionScheduleAmendParams.Amendment.DiscountAction.Add
public static class SubscriptionScheduleAmendParams.Amendment.DiscountAction.Add.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.The coupon code to redeem.setDiscount
(String discount) An ID of an existing discount for a coupon that was already redeemed.setDiscountEnd
(SubscriptionScheduleAmendParams.Amendment.DiscountAction.Add.DiscountEnd discountEnd) Details to determine how long the discount should be applied for.The index, starting at 0, at which to position the new discount.setPromotionCode
(String promotionCode) The promotion code to redeem.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCoupon
public SubscriptionScheduleAmendParams.Amendment.DiscountAction.Add.Builder setCoupon(String coupon) The coupon code to redeem. -
setDiscount
public SubscriptionScheduleAmendParams.Amendment.DiscountAction.Add.Builder setDiscount(String discount) An ID of an existing discount for a coupon that was already redeemed. -
setDiscountEnd
public SubscriptionScheduleAmendParams.Amendment.DiscountAction.Add.Builder setDiscountEnd(SubscriptionScheduleAmendParams.Amendment.DiscountAction.Add.DiscountEnd discountEnd) Details to determine how long the discount should be applied for. -
putExtraParam
public SubscriptionScheduleAmendParams.Amendment.DiscountAction.Add.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.DiscountAction.Add.extraParams
for the field documentation. -
putAllExtraParam
public SubscriptionScheduleAmendParams.Amendment.DiscountAction.Add.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.DiscountAction.Add.extraParams
for the field documentation. -
setIndex
The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of thediscounts
array. -
setPromotionCode
public SubscriptionScheduleAmendParams.Amendment.DiscountAction.Add.Builder setPromotionCode(String promotionCode) The promotion code to redeem.
-