Package com.stripe.param.checkout
Class SessionUpdateParams.SubscriptionData.Builder
java.lang.Object
com.stripe.param.checkout.SessionUpdateParams.SubscriptionData.Builder
- Enclosing class:
- SessionUpdateParams.SubscriptionData
-
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.setTrialEnd
(Long trialEnd) Unix timestamp representing the end of the trial period the customer will get before being charged for the first time.setTrialPeriodDays
(EmptyParam trialPeriodDays) Integer representing the number of trial period days before the customer is charged for the first time.setTrialPeriodDays
(Long trialPeriodDays) Integer representing the number of trial period days before the customer is charged for the first time.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
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.SubscriptionData.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.SubscriptionData.extraParams
for the field documentation. -
setTrialEnd
Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future. -
setTrialPeriodDays
Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1. -
setTrialPeriodDays
Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
-