Package com.stripe.param
Class PaymentIntentCaptureParams.PaymentDetails.Flight.Segment.Builder
java.lang.Object
com.stripe.param.PaymentIntentCaptureParams.PaymentDetails.Flight.Segment.Builder
- Enclosing class:
- PaymentIntentCaptureParams.PaymentDetails.Flight.Segment
-
Constructor Summary
Constructors -
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.The flight segment amount.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. -
setAmount
The flight segment amount. -
setArrivalAirport
public PaymentIntentCaptureParams.PaymentDetails.Flight.Segment.Builder setArrivalAirport(String arrivalAirport) The International Air Transport Association (IATA) airport code for the arrival airport. -
setArrivesAt
public PaymentIntentCaptureParams.PaymentDetails.Flight.Segment.Builder setArrivesAt(Long arrivesAt) 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
public PaymentIntentCaptureParams.PaymentDetails.Flight.Segment.Builder setDepartsAt(Long departsAt) Required. The departure time for the flight segment. Measured in seconds since the Unix epoch. -
setDepartureAirport
public PaymentIntentCaptureParams.PaymentDetails.Flight.Segment.Builder setDepartureAirport(String departureAirport) The International Air Transport Association (IATA) airport code for the departure airport. -
putExtraParam
public PaymentIntentCaptureParams.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. SeePaymentIntentCaptureParams.PaymentDetails.Flight.Segment.extraParams
for the field documentation. -
putAllExtraParam
public PaymentIntentCaptureParams.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. SeePaymentIntentCaptureParams.PaymentDetails.Flight.Segment.extraParams
for the field documentation. -
setFlightNumber
public PaymentIntentCaptureParams.PaymentDetails.Flight.Segment.Builder setFlightNumber(String flightNumber) The flight number associated with the segment. -
setServiceClass
public PaymentIntentCaptureParams.PaymentDetails.Flight.Segment.Builder setServiceClass(PaymentIntentCaptureParams.PaymentDetails.Flight.Segment.ServiceClass serviceClass)
-