Package com.stripe.param
Class InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart.Builder
java.lang.Object
com.stripe.param.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart.Builder
- Enclosing class:
- InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart
public static class InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart.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.setAmendmentEnd
(InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart.AmendmentEnd amendmentEnd) Details of another amendment in the same array, immediately after which this amendment should begin.setDiscountEnd
(InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart.DiscountEnd discountEnd) Use theend
time of a given discount.setTimestamp
(Long timestamp) A precise Unix timestamp for the amendment to start.Required. Select one of three ways to pass theamendment_start
.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmendmentEnd
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart.Builder setAmendmentEnd(InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart.AmendmentEnd amendmentEnd) Details of another amendment in the same array, immediately after which this amendment should begin. -
setDiscountEnd
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart.Builder setDiscountEnd(InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart.DiscountEnd discountEnd) Use theend
time of a given discount. -
putExtraParam
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart.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. SeeInvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart.extraParams
for the field documentation. -
putAllExtraParam
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart.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. SeeInvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart.extraParams
for the field documentation. -
setTimestamp
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart.Builder setTimestamp(Long timestamp) A precise Unix timestamp for the amendment to start. -
setType
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart.Builder setType(InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart.Type type) Required. Select one of three ways to pass theamendment_start
.
-