Package com.stripe.param
Class ChargeCaptureParams.PaymentDetails.Flight.Builder
java.lang.Object
com.stripe.param.ChargeCaptureParams.PaymentDetails.Flight.Builder
- Enclosing class:
- ChargeCaptureParams.PaymentDetails.Flight
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `segments` list.Add an element to `segments` list.build()
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.setAgencyNumber
(String agencyNumber) The agency number (i.e.setCarrier
(String carrier) The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.setPassengerName
(String passengerName) The name of the person or entity on the reservation.setTicketNumber
(String ticketNumber) The ticket number associated with the travel reservation.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAgencyNumber
The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking. -
setCarrier
The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket. -
putExtraParam
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.extraParams
for the field documentation. -
putAllExtraParam
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.extraParams
for the field documentation. -
setPassengerName
The name of the person or entity on the reservation. -
addSegment
public ChargeCaptureParams.PaymentDetails.Flight.Builder addSegment(ChargeCaptureParams.PaymentDetails.Flight.Segment element) Add an element to `segments` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeChargeCaptureParams.PaymentDetails.Flight.segments
for the field documentation. -
addAllSegment
public ChargeCaptureParams.PaymentDetails.Flight.Builder addAllSegment(List<ChargeCaptureParams.PaymentDetails.Flight.Segment> elements) Add all elements to `segments` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeChargeCaptureParams.PaymentDetails.Flight.segments
for the field documentation. -
setTicketNumber
The ticket number associated with the travel reservation.
-