Package com.stripe.param
Class PaymentIntentCreateParams.PaymentDetails.Flight.Segment.Builder
java.lang.Object
com.stripe.param.PaymentIntentCreateParams.PaymentDetails.Flight.Segment.Builder
- Enclosing class:
- PaymentIntentCreateParams.PaymentDetails.Flight.Segment
-
Constructor Summary
-
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.setArrivalAirport
(String arrivalAirport) The International Air Transport Association (IATA) airport code for the arrival airport.setArrivesAt
(Long arrivesAt) The arrival time for the flight segment.setCarrier
(String carrier) The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.setDepartsAt
(Long departsAt) Required. The departure time for the flight segment.setDepartureAirport
(String departureAirport) The International Air Transport Association (IATA) airport code for the departure airport.setFlightNumber
(String flightNumber) The flight number associated with the segment.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setArrivalAirport
public PaymentIntentCreateParams.PaymentDetails.Flight.Segment.Builder setArrivalAirport(String arrivalAirport) The International Air Transport Association (IATA) airport code for the arrival airport. -
setArrivesAt
The arrival time for the flight segment. Measured in seconds since the Unix epoch. -
setCarrier
The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment. -
setDepartsAt
Required. The departure time for the flight segment. Measured in seconds since the Unix epoch. -
setDepartureAirport
public PaymentIntentCreateParams.PaymentDetails.Flight.Segment.Builder setDepartureAirport(String departureAirport) The International Air Transport Association (IATA) airport code for the departure airport. -
putExtraParam
public PaymentIntentCreateParams.PaymentDetails.Flight.Segment.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.Flight.Segment.extraParams
for the field documentation. -
putAllExtraParam
public PaymentIntentCreateParams.PaymentDetails.Flight.Segment.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.Flight.Segment.extraParams
for the field documentation. -
setFlightNumber
public PaymentIntentCreateParams.PaymentDetails.Flight.Segment.Builder setFlightNumber(String flightNumber) The flight number associated with the segment. -
setServiceClass
public PaymentIntentCreateParams.PaymentDetails.Flight.Segment.Builder setServiceClass(PaymentIntentCreateParams.PaymentDetails.Flight.Segment.ServiceClass serviceClass)
-