Package com.stripe.param
Class SubscriptionScheduleAmendParams.Amendment.DiscountAction.Remove.Builder
java.lang.Object
com.stripe.param.SubscriptionScheduleAmendParams.Amendment.DiscountAction.Remove.Builder
- Enclosing class:
- SubscriptionScheduleAmendParams.Amendment.DiscountAction.Remove
public static class SubscriptionScheduleAmendParams.Amendment.DiscountAction.Remove.Builder
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.The coupon code to remove from thediscounts
array.setDiscount
(String discount) The ID of a discount to remove from thediscounts
array.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCoupon
public SubscriptionScheduleAmendParams.Amendment.DiscountAction.Remove.Builder setCoupon(String coupon) The coupon code to remove from thediscounts
array. -
setDiscount
public SubscriptionScheduleAmendParams.Amendment.DiscountAction.Remove.Builder setDiscount(String discount) The ID of a discount to remove from thediscounts
array. -
putExtraParam
public SubscriptionScheduleAmendParams.Amendment.DiscountAction.Remove.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.Remove.extraParams
for the field documentation. -
putAllExtraParam
public SubscriptionScheduleAmendParams.Amendment.DiscountAction.Remove.Builder putAllExtraParam(Map<String, Object> map)
-