Package com.stripe.param
Class SubscriptionScheduleUpdateParams.Builder
- java.lang.Object
-
- com.stripe.param.SubscriptionScheduleUpdateParams.Builder
-
- Enclosing class:
- SubscriptionScheduleUpdateParams
public static class SubscriptionScheduleUpdateParams.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubscriptionScheduleUpdateParams.BuilderaddAllExpand(java.util.List<java.lang.String> elements)Add all elements to `expand` list.SubscriptionScheduleUpdateParams.BuilderaddAllPhase(java.util.List<SubscriptionScheduleUpdateParams.Phase> elements)Add all elements to `phases` list.SubscriptionScheduleUpdateParams.BuilderaddExpand(java.lang.String element)Add an element to `expand` list.SubscriptionScheduleUpdateParams.BuilderaddPhase(SubscriptionScheduleUpdateParams.Phase element)Add an element to `phases` list.SubscriptionScheduleUpdateParamsbuild()Finalize and obtain parameter instance from this builder.SubscriptionScheduleUpdateParams.BuilderputAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)Add all map key/value pairs to `extraParams` map.SubscriptionScheduleUpdateParams.BuilderputAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)Add all map key/value pairs to `metadata` map.SubscriptionScheduleUpdateParams.BuilderputExtraParam(java.lang.String key, java.lang.Object value)Add a key/value pair to `extraParams` map.SubscriptionScheduleUpdateParams.BuilderputMetadata(java.lang.String key, java.lang.String value)Add a key/value pair to `metadata` map.SubscriptionScheduleUpdateParams.BuildersetDefaultSettings(SubscriptionScheduleUpdateParams.DefaultSettings defaultSettings)Object representing the subscription schedule's default settings.SubscriptionScheduleUpdateParams.BuildersetEndBehavior(SubscriptionScheduleUpdateParams.EndBehavior endBehavior)Configures how the subscription schedule behaves when it ends.SubscriptionScheduleUpdateParams.BuildersetMetadata(EmptyParam metadata)Set of key-value pairs that you can attach to an object.SubscriptionScheduleUpdateParams.BuildersetMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)Set of key-value pairs that you can attach to an object.SubscriptionScheduleUpdateParams.BuildersetProrationBehavior(SubscriptionScheduleUpdateParams.ProrationBehavior prorationBehavior)If the update changes the current phase, indicates if the changes should be prorated.
-
-
-
Method Detail
-
build
public SubscriptionScheduleUpdateParams build()
Finalize and obtain parameter instance from this builder.
-
setDefaultSettings
public SubscriptionScheduleUpdateParams.Builder setDefaultSettings(SubscriptionScheduleUpdateParams.DefaultSettings defaultSettings)
Object representing the subscription schedule's default settings.
-
setEndBehavior
public SubscriptionScheduleUpdateParams.Builder setEndBehavior(SubscriptionScheduleUpdateParams.EndBehavior endBehavior)
Configures how the subscription schedule behaves when it ends. Possible values arereleaseorcancelwith the default beingrelease.releasewill end the subscription schedule and keep the underlying subscription running.cancelwill end the subscription schedule and cancel the underlying subscription.
-
addExpand
public SubscriptionScheduleUpdateParams.Builder addExpand(java.lang.String element)
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSubscriptionScheduleUpdateParams.expandfor the field documentation.
-
addAllExpand
public SubscriptionScheduleUpdateParams.Builder addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSubscriptionScheduleUpdateParams.expandfor the field documentation.
-
putExtraParam
public SubscriptionScheduleUpdateParams.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. SeeSubscriptionScheduleUpdateParams.extraParamsfor the field documentation.
-
putAllExtraParam
public SubscriptionScheduleUpdateParams.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. SeeSubscriptionScheduleUpdateParams.extraParamsfor the field documentation.
-
putMetadata
public SubscriptionScheduleUpdateParams.Builder putMetadata(java.lang.String key, java.lang.String value)
Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSubscriptionScheduleUpdateParams.metadatafor the field documentation.
-
putAllMetadata
public SubscriptionScheduleUpdateParams.Builder putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSubscriptionScheduleUpdateParams.metadatafor the field documentation.
-
setMetadata
public SubscriptionScheduleUpdateParams.Builder setMetadata(EmptyParam metadata)
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata.
-
setMetadata
public SubscriptionScheduleUpdateParams.Builder setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata.
-
addPhase
public SubscriptionScheduleUpdateParams.Builder addPhase(SubscriptionScheduleUpdateParams.Phase element)
Add an element to `phases` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSubscriptionScheduleUpdateParams.phasesfor the field documentation.
-
addAllPhase
public SubscriptionScheduleUpdateParams.Builder addAllPhase(java.util.List<SubscriptionScheduleUpdateParams.Phase> elements)
Add all elements to `phases` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSubscriptionScheduleUpdateParams.phasesfor the field documentation.
-
setProrationBehavior
public SubscriptionScheduleUpdateParams.Builder setProrationBehavior(SubscriptionScheduleUpdateParams.ProrationBehavior prorationBehavior)
If the update changes the current phase, indicates if the changes should be prorated. Possible values arecreate_prorationsornone, and the default value iscreate_prorations.
-
-