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