Package com.stripe.param
Class SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Discount.Builder
java.lang.Object
com.stripe.param.SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Discount.Builder
- Enclosing class:
- SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Discount
public static class SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Discount.Builder
extends Object
-
Constructor Summary
-
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.setCoupon
(EmptyParam coupon) ID of the coupon to create a new discount for.ID of the coupon to create a new discount for.setDiscount
(EmptyParam discount) ID of an existing discount on the object (or one of its ancestors) to reuse.setDiscount
(String discount) ID of an existing discount on the object (or one of its ancestors) to reuse.setPromotionCode
(EmptyParam promotionCode) setPromotionCode
(String promotionCode) ID of the promotion code to create a new discount for.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCoupon
public SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Discount.Builder setCoupon(String coupon) ID of the coupon to create a new discount for. -
setCoupon
public SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Discount.Builder setCoupon(EmptyParam coupon) ID of the coupon to create a new discount for. -
setDiscount
public SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Discount.Builder setDiscount(String discount) ID of an existing discount on the object (or one of its ancestors) to reuse. -
setDiscount
public SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Discount.Builder setDiscount(EmptyParam discount) ID of an existing discount on the object (or one of its ancestors) to reuse. -
putExtraParam
public SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Discount.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. SeeSubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Discount.extraParams
for the field documentation. -
putAllExtraParam
public SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Discount.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. SeeSubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Discount.extraParams
for the field documentation. -
setPromotionCode
public SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Discount.Builder setPromotionCode(String promotionCode) ID of the promotion code to create a new discount for. -
setPromotionCode
public SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Discount.Builder setPromotionCode(EmptyParam promotionCode)
-