Package com.stripe.param
Class InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.DiscountAction.Add.Builder
java.lang.Object
com.stripe.param.InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.DiscountAction.Add.Builder
public static class InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.DiscountAction.Add.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.The coupon code to redeem.setDiscount
(String discount) An ID of an existing discount for a coupon that was already redeemed.setDiscountEnd
(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.DiscountAction.Add.DiscountEnd discountEnd) Details to determine how long the discount should be applied for.The index, starting at 0, at which to position the new discount.setPromotionCode
(String promotionCode) The promotion code to redeem.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCoupon
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.DiscountAction.Add.Builder setCoupon(String coupon) The coupon code to redeem. -
setDiscount
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.DiscountAction.Add.Builder setDiscount(String discount) An ID of an existing discount for a coupon that was already redeemed. -
setDiscountEnd
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.DiscountAction.Add.Builder setDiscountEnd(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.DiscountAction.Add.DiscountEnd discountEnd) Details to determine how long the discount should be applied for. -
putExtraParam
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.DiscountAction.Add.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.DiscountAction.Add.extraParams
for the field documentation. -
putAllExtraParam
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.DiscountAction.Add.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.DiscountAction.Add.extraParams
for the field documentation. -
setIndex
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.DiscountAction.Add.Builder setIndex(Long index) The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of thediscounts
array. -
setPromotionCode
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.DiscountAction.Add.Builder setPromotionCode(String promotionCode) The promotion code to redeem.
-