Package com.stripe.param
Class QuoteUpdateParams.Line.Action.SetDiscount.Builder
java.lang.Object
com.stripe.param.QuoteUpdateParams.Line.Action.SetDiscount.Builder
- Enclosing class:
- QuoteUpdateParams.Line.Action.SetDiscount
-
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.setCoupon(EmptyParam coupon) The coupon code to replace thediscountsarray with.The coupon code to replace thediscountsarray with.setDiscount(EmptyParam discount) An ID of an existing discount to replace thediscountsarray with.setDiscount(String discount) An ID of an existing discount to replace thediscountsarray with.setPromotionCode(EmptyParam promotionCode) setPromotionCode(String promotionCode) An ID of an existing promotion code to replace thediscountsarray with.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCoupon
The coupon code to replace thediscountsarray with. -
setCoupon
The coupon code to replace thediscountsarray with. -
setDiscount
An ID of an existing discount to replace thediscountsarray with. -
setDiscount
An ID of an existing discount to replace thediscountsarray with. -
putExtraParam
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. SeeQuoteUpdateParams.Line.Action.SetDiscount.extraParamsfor the field documentation. -
putAllExtraParam
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. SeeQuoteUpdateParams.Line.Action.SetDiscount.extraParamsfor the field documentation. -
setPromotionCode
An ID of an existing promotion code to replace thediscountsarray with. -
setPromotionCode
-