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