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