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