Package com.stripe.param
Class InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.AmendmentEnd.Builder
java.lang.Object
com.stripe.param.InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.AmendmentEnd.Builder
public static class InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.AmendmentEnd.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.setDiscountEnd
(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.AmendmentEnd.DiscountEnd discountEnd) Use theend
time of a given discount.setDuration
(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.AmendmentEnd.Duration duration) Time span for the amendment starting from theamendment_start
.setTimestamp
(Long timestamp) A precise Unix timestamp for the amendment to end.Required. Select one of three ways to pass theamendment_end
.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setDiscountEnd
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.AmendmentEnd.Builder setDiscountEnd(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.AmendmentEnd.DiscountEnd discountEnd) Use theend
time of a given discount. -
setDuration
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.AmendmentEnd.Builder setDuration(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.AmendmentEnd.Duration duration) Time span for the amendment starting from theamendment_start
. -
putExtraParam
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.AmendmentEnd.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. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.AmendmentEnd.extraParams
for the field documentation. -
putAllExtraParam
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.AmendmentEnd.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. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.AmendmentEnd.extraParams
for the field documentation. -
setTimestamp
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.AmendmentEnd.Builder setTimestamp(Long timestamp) A precise Unix timestamp for the amendment to end. Must be after theamendment_start
. -
setType
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.AmendmentEnd.Builder setType(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.AmendmentEnd.Type type) Required. Select one of three ways to pass theamendment_end
.
-