Package com.stripe.param
Class SubscriptionCreateParams.Prebilling.Builder
java.lang.Object
com.stripe.param.SubscriptionCreateParams.Prebilling.Builder
- Enclosing class:
- SubscriptionCreateParams.Prebilling
-
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.setIterations
(Long iterations) Required. This is used to determine the number of billing cycles to prebill.setUpdateBehavior
(SubscriptionCreateParams.Prebilling.UpdateBehavior updateBehavior) Whether to cancel or preserveprebilling
if the subscription is updated during the prebilled period.
-
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. SeeSubscriptionCreateParams.Prebilling.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. SeeSubscriptionCreateParams.Prebilling.extraParams
for the field documentation. -
setIterations
Required. This is used to determine the number of billing cycles to prebill. -
setUpdateBehavior
public SubscriptionCreateParams.Prebilling.Builder setUpdateBehavior(SubscriptionCreateParams.Prebilling.UpdateBehavior updateBehavior) Whether to cancel or preserveprebilling
if the subscription is updated during the prebilled period. The default value isreset
.
-