Package com.stripe.param.checkout
Class SessionCreateParams.Discount.Builder
- java.lang.Object
-
- com.stripe.param.checkout.SessionCreateParams.Discount.Builder
-
- Enclosing class:
- SessionCreateParams.Discount
public static class SessionCreateParams.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 SessionCreateParams.Discount
build()
Finalize and obtain parameter instance from this builder.SessionCreateParams.Discount.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.SessionCreateParams.Discount.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.SessionCreateParams.Discount.Builder
setCoupon(java.lang.String coupon)
The ID of the coupon to apply to this Session.SessionCreateParams.Discount.Builder
setPromotionCode(java.lang.String promotionCode)
-
-
-
Method Detail
-
build
public SessionCreateParams.Discount build()
Finalize and obtain parameter instance from this builder.
-
setCoupon
public SessionCreateParams.Discount.Builder setCoupon(java.lang.String coupon)
The ID of the coupon to apply to this Session.
-
putExtraParam
public SessionCreateParams.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. SeeSessionCreateParams.Discount.extraParams
for the field documentation.
-
putAllExtraParam
public SessionCreateParams.Discount.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
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. SeeSessionCreateParams.Discount.extraParams
for the field documentation.
-
setPromotionCode
public SessionCreateParams.Discount.Builder setPromotionCode(java.lang.String promotionCode)
-
-