Package com.stripe.param.checkout
Class SessionCreateParams.AfterExpiration.Recovery.Builder
java.lang.Object
com.stripe.param.checkout.SessionCreateParams.AfterExpiration.Recovery.Builder
- Enclosing class:
- SessionCreateParams.AfterExpiration.Recovery
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.setAllowPromotionCodes
(Boolean allowPromotionCodes) Enables user redeemable promotion codes on the recovered Checkout Sessions.setEnabled
(Boolean enabled) Required. Iftrue
, a recovery URL will be generated to recover this Checkout Session if it expires before a successful transaction is completed.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAllowPromotionCodes
public SessionCreateParams.AfterExpiration.Recovery.Builder setAllowPromotionCodes(Boolean allowPromotionCodes) Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults tofalse
-
setEnabled
Required. Iftrue
, a recovery URL will be generated to recover this Checkout Session if it expires before a successful transaction is completed. It will be attached to the Checkout Session object upon expiration. -
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. SeeSessionCreateParams.AfterExpiration.Recovery.extraParams
for the field documentation. -
putAllExtraParam
public SessionCreateParams.AfterExpiration.Recovery.Builder putAllExtraParam(Map<String, Object> map)
-