Package com.stripe.param
Class InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentEnd.Builder
java.lang.Object
com.stripe.param.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentEnd.Builder
- Enclosing class:
- InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentEnd
public static class InvoiceCreatePreviewParams.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(InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentEnd.DiscountEnd discountEnd) Use theendtime of a given discount.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 InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentEnd.Builder setDiscountEnd(InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentEnd.DiscountEnd discountEnd) Use theendtime of a given discount. -
setDuration
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentEnd.Builder setDuration(InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentEnd.Duration duration) Time span for the amendment starting from theamendment_start. -
putExtraParam
public InvoiceCreatePreviewParams.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. SeeInvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentEnd.extraParamsfor the field documentation. -
putAllExtraParam
public InvoiceCreatePreviewParams.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. SeeInvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentEnd.extraParamsfor the field documentation. -
setTimestamp
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentEnd.Builder setTimestamp(Long timestamp) A precise Unix timestamp for the amendment to end. Must be after theamendment_start. -
setType
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentEnd.Builder setType(InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentEnd.Type type) Required. Select one of three ways to pass theamendment_end.
-