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