Package com.stripe.param
Class PaymentIntentCreateParams.PaymentDetails.LodgingData.Accommodation.Builder
java.lang.Object
com.stripe.param.PaymentIntentCreateParams.PaymentDetails.LodgingData.Accommodation.Builder
- Enclosing class:
- PaymentIntentCreateParams.PaymentDetails.LodgingData.Accommodation
public static class PaymentIntentCreateParams.PaymentDetails.LodgingData.Accommodation.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.setAccommodationType(PaymentIntentCreateParams.PaymentDetails.LodgingData.Accommodation.AccommodationType accommodationType) Type of accommodation.setBedType(String bedType) Bed type.setDailyRateAmount(Long dailyRateAmount) Daily accommodation rate in cents.Number of nights.setNumberOfRooms(Long numberOfRooms) Number of rooms, cabanas, apartments, and so on.setRateType(String rateType) Rate type.setSmokingIndicator(Boolean smokingIndicator) Whether smoking is allowed.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAccommodationType
public PaymentIntentCreateParams.PaymentDetails.LodgingData.Accommodation.Builder setAccommodationType(PaymentIntentCreateParams.PaymentDetails.LodgingData.Accommodation.AccommodationType accommodationType) Type of accommodation. -
setBedType
public PaymentIntentCreateParams.PaymentDetails.LodgingData.Accommodation.Builder setBedType(String bedType) Bed type. -
setDailyRateAmount
public PaymentIntentCreateParams.PaymentDetails.LodgingData.Accommodation.Builder setDailyRateAmount(Long dailyRateAmount) Daily accommodation rate in cents. -
putExtraParam
public PaymentIntentCreateParams.PaymentDetails.LodgingData.Accommodation.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. SeePaymentIntentCreateParams.PaymentDetails.LodgingData.Accommodation.extraParamsfor the field documentation. -
putAllExtraParam
public PaymentIntentCreateParams.PaymentDetails.LodgingData.Accommodation.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. SeePaymentIntentCreateParams.PaymentDetails.LodgingData.Accommodation.extraParamsfor the field documentation. -
setNights
public PaymentIntentCreateParams.PaymentDetails.LodgingData.Accommodation.Builder setNights(Long nights) Number of nights. -
setNumberOfRooms
public PaymentIntentCreateParams.PaymentDetails.LodgingData.Accommodation.Builder setNumberOfRooms(Long numberOfRooms) Number of rooms, cabanas, apartments, and so on. -
setRateType
public PaymentIntentCreateParams.PaymentDetails.LodgingData.Accommodation.Builder setRateType(String rateType) Rate type. -
setSmokingIndicator
public PaymentIntentCreateParams.PaymentDetails.LodgingData.Accommodation.Builder setSmokingIndicator(Boolean smokingIndicator) Whether smoking is allowed.
-