Package com.stripe.param
Class CouponCreateParams.ServicePeriod.Builder
java.lang.Object
com.stripe.param.CouponCreateParams.ServicePeriod.Builder
- Enclosing class:
- CouponCreateParams.ServicePeriod
-
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.Required. Specifies coupon frequency.setIntervalCount(Long intervalCount) Required. The number of intervals for which the coupon will be applied.Specifies the number of times the coupon is contiguously applied.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
putExtraParam
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. SeeCouponCreateParams.ServicePeriod.extraParamsfor the field documentation. -
putAllExtraParam
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. SeeCouponCreateParams.ServicePeriod.extraParamsfor the field documentation. -
setInterval
public CouponCreateParams.ServicePeriod.Builder setInterval(CouponCreateParams.ServicePeriod.Interval interval) Required. Specifies coupon frequency. Eitherday,week,monthoryear. -
setIntervalCount
Required. The number of intervals for which the coupon will be applied. -
setIterations
public CouponCreateParams.ServicePeriod.Builder setIterations(CouponCreateParams.ServicePeriod.Iterations iterations) Specifies the number of times the coupon is contiguously applied.
-