Package com.stripe.param
Class SubscriptionScheduleAmendParams.Amendment.DiscountAction.Set.Builder
java.lang.Object
com.stripe.param.SubscriptionScheduleAmendParams.Amendment.DiscountAction.Set.Builder
- Enclosing class:
- SubscriptionScheduleAmendParams.Amendment.DiscountAction.Set
public static class SubscriptionScheduleAmendParams.Amendment.DiscountAction.Set.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 replace thediscountsarray with.setDiscount(String discount) An ID of an existing discount to replace thediscountsarray with.setPromotionCode(String promotionCode)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCoupon
public SubscriptionScheduleAmendParams.Amendment.DiscountAction.Set.Builder setCoupon(String coupon) The coupon code to replace thediscountsarray with. -
setDiscount
public SubscriptionScheduleAmendParams.Amendment.DiscountAction.Set.Builder setDiscount(String discount) An ID of an existing discount to replace thediscountsarray with. -
putExtraParam
public SubscriptionScheduleAmendParams.Amendment.DiscountAction.Set.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.Set.extraParamsfor the field documentation. -
putAllExtraParam
public SubscriptionScheduleAmendParams.Amendment.DiscountAction.Set.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.Set.extraParamsfor the field documentation. -
setPromotionCode
public SubscriptionScheduleAmendParams.Amendment.DiscountAction.Set.Builder setPromotionCode(String promotionCode)
-