Package com.stripe.param.issuing
Class AuthorizationCaptureParams.PurchaseDetails.Flight.Segment.Builder
java.lang.Object
com.stripe.param.issuing.AuthorizationCaptureParams.PurchaseDetails.Flight.Segment.Builder
- Enclosing class:
- AuthorizationCaptureParams.PurchaseDetails.Flight.Segment
public static class AuthorizationCaptureParams.PurchaseDetails.Flight.Segment.Builder
extends Object
-
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.setArrivalAirportCode
(String arrivalAirportCode) The three-letter IATA airport code of the flight's destination.setCarrier
(String carrier) The airline carrier code.setDepartureAirportCode
(String departureAirportCode) The three-letter IATA airport code that the flight departed from.setFlightNumber
(String flightNumber) The flight number.setServiceClass
(String serviceClass) The flight's service class.setStopoverAllowed
(Boolean stopoverAllowed) Whether a stopover is allowed on this flight.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setArrivalAirportCode
public AuthorizationCaptureParams.PurchaseDetails.Flight.Segment.Builder setArrivalAirportCode(String arrivalAirportCode) The three-letter IATA airport code of the flight's destination. -
setCarrier
The airline carrier code. -
setDepartureAirportCode
public AuthorizationCaptureParams.PurchaseDetails.Flight.Segment.Builder setDepartureAirportCode(String departureAirportCode) The three-letter IATA airport code that the flight departed from. -
putExtraParam
public AuthorizationCaptureParams.PurchaseDetails.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. SeeAuthorizationCaptureParams.PurchaseDetails.Flight.Segment.extraParams
for the field documentation. -
putAllExtraParam
public AuthorizationCaptureParams.PurchaseDetails.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. SeeAuthorizationCaptureParams.PurchaseDetails.Flight.Segment.extraParams
for the field documentation. -
setFlightNumber
public AuthorizationCaptureParams.PurchaseDetails.Flight.Segment.Builder setFlightNumber(String flightNumber) The flight number. -
setServiceClass
public AuthorizationCaptureParams.PurchaseDetails.Flight.Segment.Builder setServiceClass(String serviceClass) The flight's service class. -
setStopoverAllowed
public AuthorizationCaptureParams.PurchaseDetails.Flight.Segment.Builder setStopoverAllowed(Boolean stopoverAllowed) Whether a stopover is allowed on this flight.
-