Package com.stripe.param
Class PriceUpdateParams.MigrateTo.Builder
java.lang.Object
com.stripe.param.PriceUpdateParams.MigrateTo.Builder
- Enclosing class:
- PriceUpdateParams.MigrateTo
-
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.Required. The behavior controlling the point in the subscription lifecycle after which to migrate the price.setEffectiveAfter
(Long effectiveAfter) The time after which subscriptions should start using the new price.setPrice
(EmptyParam price) Required. The ID of the price object.Required. The ID of the price object.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setBehavior
public PriceUpdateParams.MigrateTo.Builder setBehavior(PriceUpdateParams.MigrateTo.Behavior behavior) Required. The behavior controlling the point in the subscription lifecycle after which to migrate the price. Currently must beat_cycle_end
. -
setEffectiveAfter
The time after which subscriptions should start using the new price. -
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. SeePriceUpdateParams.MigrateTo.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. SeePriceUpdateParams.MigrateTo.extraParams
for the field documentation. -
setPrice
Required. The ID of the price object. -
setPrice
Required. The ID of the price object.
-