Package com.stripe.param
Class SubscriptionScheduleAmendParams.Amendment.ItemAction.Builder
java.lang.Object
com.stripe.param.SubscriptionScheduleAmendParams.Amendment.ItemAction.Builder
- Enclosing class:
- SubscriptionScheduleAmendParams.Amendment.ItemAction
-
Constructor Summary
-
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.Details of the subscription item to add.Details of the subscription item to remove.Details of the subscription item to replace the existing items with.Determines the type of item action.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAdd
public SubscriptionScheduleAmendParams.Amendment.ItemAction.Builder setAdd(SubscriptionScheduleAmendParams.Amendment.ItemAction.Add add) Details of the subscription item to add. If an item with the sameprice
exists, it will be replaced by this new item. Otherwise, it adds the new item. -
putExtraParam
public SubscriptionScheduleAmendParams.Amendment.ItemAction.Builder putExtraParam(String key, 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. SeeSubscriptionScheduleAmendParams.Amendment.ItemAction.extraParams
for the field documentation. -
putAllExtraParam
public SubscriptionScheduleAmendParams.Amendment.ItemAction.Builder putAllExtraParam(Map<String, 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. SeeSubscriptionScheduleAmendParams.Amendment.ItemAction.extraParams
for the field documentation. -
setRemove
public SubscriptionScheduleAmendParams.Amendment.ItemAction.Builder setRemove(SubscriptionScheduleAmendParams.Amendment.ItemAction.Remove remove) Details of the subscription item to remove. -
setSet
public SubscriptionScheduleAmendParams.Amendment.ItemAction.Builder setSet(SubscriptionScheduleAmendParams.Amendment.ItemAction.Set set) Details of the subscription item to replace the existing items with. If an item with theset[price]
already exists, theitems
array is not cleared. Instead, all of the otherset
properties that are passed in this request will replace the existing values for the configuration item. -
setType
public SubscriptionScheduleAmendParams.Amendment.ItemAction.Builder setType(SubscriptionScheduleAmendParams.Amendment.ItemAction.Type type) Determines the type of item action.
-