Package com.stripe.param.checkout
Class SessionUpdateParams.Discount.Builder
java.lang.Object
com.stripe.param.checkout.SessionUpdateParams.Discount.Builder
- Enclosing class:
- SessionUpdateParams.Discount
-
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 ID of the Coupon to apply to this Session.The ID of the Coupon to apply to this Session.setCouponData
(SessionUpdateParams.Discount.CouponData couponData) Data used to generate a new Coupon object inline.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCoupon
The ID of the Coupon to apply to this Session. One ofcoupon
orcoupon_data
is required when updating discounts. -
setCoupon
The ID of the Coupon to apply to this Session. One ofcoupon
orcoupon_data
is required when updating discounts. -
setCouponData
public SessionUpdateParams.Discount.Builder setCouponData(SessionUpdateParams.Discount.CouponData couponData) Data used to generate a new Coupon object inline. One ofcoupon
orcoupon_data
is required when updating discounts. -
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. SeeSessionUpdateParams.Discount.extraParams
for 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. SeeSessionUpdateParams.Discount.extraParams
for the field documentation.
-