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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `passengers` list.Add all elements to `segments` list.Add an element to `passengers` 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.Affiliate details for this purchase.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.Delivery details for this purchase.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. -
setAffiliate
public PaymentIntentCreateParams.PaymentDetails.Flight.Builder setAffiliate(PaymentIntentCreateParams.PaymentDetails.Flight.Affiliate affiliate) Affiliate details for this purchase. -
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. -
setDelivery
public PaymentIntentCreateParams.PaymentDetails.Flight.Builder setDelivery(PaymentIntentCreateParams.PaymentDetails.Flight.Delivery delivery) Delivery details for this purchase. -
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. -
addPassenger
public PaymentIntentCreateParams.PaymentDetails.Flight.Builder addPassenger(PaymentIntentCreateParams.PaymentDetails.Flight.Passenger element) Add an element to `passengers` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentIntentCreateParams.PaymentDetails.Flight.passengers
for the field documentation. -
addAllPassenger
public PaymentIntentCreateParams.PaymentDetails.Flight.Builder addAllPassenger(List<PaymentIntentCreateParams.PaymentDetails.Flight.Passenger> elements) Add all elements to `passengers` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentIntentCreateParams.PaymentDetails.Flight.passengers
for the field documentation. -
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.
-