Package com.stripe.param
Class PaymentIntentCreateParams.PaymentDetails.Flight.Builder
java.lang.Object
com.stripe.param.PaymentIntentCreateParams.PaymentDetails.Flight.Builder
- Enclosing class:
- PaymentIntentCreateParams.PaymentDetails.Flight
-
Constructor Summary
-
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
public PaymentIntentCreateParams.PaymentDetails.Flight.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. SeePaymentIntentCreateParams.PaymentDetails.Flight.extraParams
for the field documentation. -
putAllExtraParam
public PaymentIntentCreateParams.PaymentDetails.Flight.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. SeePaymentIntentCreateParams.PaymentDetails.Flight.extraParams
for the field documentation. -
setPassengerName
public PaymentIntentCreateParams.PaymentDetails.Flight.Builder setPassengerName(String passengerName) The name of the person or entity on the reservation. -
addSegment
public PaymentIntentCreateParams.PaymentDetails.Flight.Builder addSegment(PaymentIntentCreateParams.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. SeePaymentIntentCreateParams.PaymentDetails.Flight.segments
for the field documentation. -
addAllSegment
public PaymentIntentCreateParams.PaymentDetails.Flight.Builder addAllSegment(List<PaymentIntentCreateParams.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. SeePaymentIntentCreateParams.PaymentDetails.Flight.segments
for the field documentation. -
setTicketNumber
The ticket number associated with the travel reservation.
-