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