Package com.stripe.param
Class PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Total.Discounts.Builder
java.lang.Object
com.stripe.param.PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Total.Discounts.Builder
public static class PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Total.Discounts.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.setCorporateClientCode(EmptyParam corporateClientCode) Corporate client discount code.setCorporateClientCode(String corporateClientCode) Corporate client discount code.setCoupon(EmptyParam coupon) Coupon code applied to the rental.Coupon code applied to the rental.setMaximumFreeMilesOrKilometers(Long maximumFreeMilesOrKilometers)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCorporateClientCode
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Total.Discounts.Builder setCorporateClientCode(String corporateClientCode) Corporate client discount code. -
setCorporateClientCode
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Total.Discounts.Builder setCorporateClientCode(EmptyParam corporateClientCode) Corporate client discount code. -
setCoupon
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Total.Discounts.Builder setCoupon(String coupon) Coupon code applied to the rental. -
setCoupon
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Total.Discounts.Builder setCoupon(EmptyParam coupon) Coupon code applied to the rental. -
putExtraParam
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Total.Discounts.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. SeePaymentIntentUpdateParams.PaymentDetails.CarRentalData.Total.Discounts.extraParamsfor the field documentation. -
putAllExtraParam
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Total.Discounts.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. SeePaymentIntentUpdateParams.PaymentDetails.CarRentalData.Total.Discounts.extraParamsfor the field documentation. -
setMaximumFreeMilesOrKilometers
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Total.Discounts.Builder setMaximumFreeMilesOrKilometers(Long maximumFreeMilesOrKilometers)
-