Package com.stripe.param.issuing
Class AuthorizationCaptureParams.PurchaseDetails.Flight.Builder
java.lang.Object
com.stripe.param.issuing.AuthorizationCaptureParams.PurchaseDetails.Flight.Builder
- Enclosing class:
- AuthorizationCaptureParams.PurchaseDetails.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.setDepartureAt
(Long departureAt) The time that the flight departed.setPassengerName
(String passengerName) The name of the passenger.setRefundable
(Boolean refundable) Whether the ticket is refundable.setTravelAgency
(String travelAgency) The travel agency that issued the ticket.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setDepartureAt
The time that the flight departed. -
putExtraParam
public AuthorizationCaptureParams.PurchaseDetails.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. SeeAuthorizationCaptureParams.PurchaseDetails.Flight.extraParams
for the field documentation. -
putAllExtraParam
public AuthorizationCaptureParams.PurchaseDetails.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. SeeAuthorizationCaptureParams.PurchaseDetails.Flight.extraParams
for the field documentation. -
setPassengerName
public AuthorizationCaptureParams.PurchaseDetails.Flight.Builder setPassengerName(String passengerName) The name of the passenger. -
setRefundable
Whether the ticket is refundable. -
addSegment
public AuthorizationCaptureParams.PurchaseDetails.Flight.Builder addSegment(AuthorizationCaptureParams.PurchaseDetails.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. SeeAuthorizationCaptureParams.PurchaseDetails.Flight.segments
for the field documentation. -
addAllSegment
public AuthorizationCaptureParams.PurchaseDetails.Flight.Builder addAllSegment(List<AuthorizationCaptureParams.PurchaseDetails.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. SeeAuthorizationCaptureParams.PurchaseDetails.Flight.segments
for the field documentation. -
setTravelAgency
public AuthorizationCaptureParams.PurchaseDetails.Flight.Builder setTravelAgency(String travelAgency) The travel agency that issued the ticket.
-