Package com.stripe.param
Class ChargeCaptureParams.PaymentDetails.Flight.Segment.Builder
java.lang.Object
com.stripe.param.ChargeCaptureParams.PaymentDetails.Flight.Segment.Builder
- Enclosing class:
- ChargeCaptureParams.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 ChargeCaptureParams.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 ChargeCaptureParams.PaymentDetails.Flight.Segment.Builder setDepartureAirport(String departureAirport) The International Air Transport Association (IATA) airport code for the departure airport. -
putExtraParam
public ChargeCaptureParams.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. SeeChargeCaptureParams.PaymentDetails.Flight.Segment.extraParams
for the field documentation. -
putAllExtraParam
public ChargeCaptureParams.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. SeeChargeCaptureParams.PaymentDetails.Flight.Segment.extraParams
for the field documentation. -
setFlightNumber
public ChargeCaptureParams.PaymentDetails.Flight.Segment.Builder setFlightNumber(String flightNumber) The flight number associated with the segment. -
setServiceClass
public ChargeCaptureParams.PaymentDetails.Flight.Segment.Builder setServiceClass(ChargeCaptureParams.PaymentDetails.Flight.Segment.ServiceClass serviceClass)
-