Package com.stripe.param
Class InvoiceUpcomingLinesParams.ScheduleDetails.Amendment.DiscountAction.Builder
java.lang.Object
com.stripe.param.InvoiceUpcomingLinesParams.ScheduleDetails.Amendment.DiscountAction.Builder
- Enclosing class:
- InvoiceUpcomingLinesParams.ScheduleDetails.Amendment.DiscountAction
public static class InvoiceUpcomingLinesParams.ScheduleDetails.Amendment.DiscountAction.Builder
extends Object
-
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.Details of the discount to add.Details of the discount to remove.Details of the discount to replace the existing discounts with.Required. Determines the type of discount action.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAdd
public InvoiceUpcomingLinesParams.ScheduleDetails.Amendment.DiscountAction.Builder setAdd(InvoiceUpcomingLinesParams.ScheduleDetails.Amendment.DiscountAction.Add add) Details of the discount to add. -
putExtraParam
public InvoiceUpcomingLinesParams.ScheduleDetails.Amendment.DiscountAction.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. SeeInvoiceUpcomingLinesParams.ScheduleDetails.Amendment.DiscountAction.extraParams
for the field documentation. -
putAllExtraParam
public InvoiceUpcomingLinesParams.ScheduleDetails.Amendment.DiscountAction.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. SeeInvoiceUpcomingLinesParams.ScheduleDetails.Amendment.DiscountAction.extraParams
for the field documentation. -
setRemove
public InvoiceUpcomingLinesParams.ScheduleDetails.Amendment.DiscountAction.Builder setRemove(InvoiceUpcomingLinesParams.ScheduleDetails.Amendment.DiscountAction.Remove remove) Details of the discount to remove. -
setSet
public InvoiceUpcomingLinesParams.ScheduleDetails.Amendment.DiscountAction.Builder setSet(InvoiceUpcomingLinesParams.ScheduleDetails.Amendment.DiscountAction.Set set) Details of the discount to replace the existing discounts with. -
setType
public InvoiceUpcomingLinesParams.ScheduleDetails.Amendment.DiscountAction.Builder setType(InvoiceUpcomingLinesParams.ScheduleDetails.Amendment.DiscountAction.Type type) Required. Determines the type of discount action.
-