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