Package com.stripe.param
Class InvoiceUpcomingParams.InvoiceItem.Discount.Builder
- java.lang.Object
-
- com.stripe.param.InvoiceUpcomingParams.InvoiceItem.Discount.Builder
-
- Enclosing class:
- InvoiceUpcomingParams.InvoiceItem.Discount
public static class InvoiceUpcomingParams.InvoiceItem.Discount.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InvoiceUpcomingParams.InvoiceItem.Discount
build()
Finalize and obtain parameter instance from this builder.InvoiceUpcomingParams.InvoiceItem.Discount.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
InvoiceUpcomingParams.InvoiceItem.Discount.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.InvoiceUpcomingParams.InvoiceItem.Discount.Builder
setCoupon(java.lang.String coupon)
ID of the coupon to create a new discount for.InvoiceUpcomingParams.InvoiceItem.Discount.Builder
setDiscount(java.lang.String discount)
ID of an existing discount on the object (or one of its ancestors) to reuse.
-
-
-
Method Detail
-
build
public InvoiceUpcomingParams.InvoiceItem.Discount build()
Finalize and obtain parameter instance from this builder.
-
setCoupon
public InvoiceUpcomingParams.InvoiceItem.Discount.Builder setCoupon(java.lang.String coupon)
ID of the coupon to create a new discount for.
-
setDiscount
public InvoiceUpcomingParams.InvoiceItem.Discount.Builder setDiscount(java.lang.String discount)
ID of an existing discount on the object (or one of its ancestors) to reuse.
-
putExtraParam
public InvoiceUpcomingParams.InvoiceItem.Discount.Builder putExtraParam(java.lang.String key, java.lang.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.InvoiceItem.Discount.extraParams
for the field documentation.
-
putAllExtraParam
public InvoiceUpcomingParams.InvoiceItem.Discount.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
-
-