Package com.stripe.param
Class InvoiceUpcomingParams.ScheduleDetails.Phase.Discount.Builder
java.lang.Object
com.stripe.param.InvoiceUpcomingParams.ScheduleDetails.Phase.Discount.Builder
- Enclosing class:
- InvoiceUpcomingParams.ScheduleDetails.Phase.Discount
-
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.ID of the coupon to create a new discount for.setDiscount
(String discount) ID of an existing discount on the object (or one of its ancestors) to reuse.Details to determine how long the discount should be applied for.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
ID of the coupon to create a new discount for. -
setDiscount
ID of an existing discount on the object (or one of its ancestors) to reuse. -
setDiscountEnd
public InvoiceUpcomingParams.ScheduleDetails.Phase.Discount.Builder setDiscountEnd(InvoiceUpcomingParams.ScheduleDetails.Phase.Discount.DiscountEnd discountEnd) Details to determine how long the discount should be applied for. -
putExtraParam
public InvoiceUpcomingParams.ScheduleDetails.Phase.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. SeeInvoiceUpcomingParams.ScheduleDetails.Phase.Discount.extraParams
for the field documentation. -
putAllExtraParam
public InvoiceUpcomingParams.ScheduleDetails.Phase.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. SeeInvoiceUpcomingParams.ScheduleDetails.Phase.Discount.extraParams
for the field documentation. -
setPromotionCode
public InvoiceUpcomingParams.ScheduleDetails.Phase.Discount.Builder setPromotionCode(String promotionCode) ID of the promotion code to create a new discount for.
-