Package com.stripe.param.issuing
Class TransactionCreateForceCaptureParams.PurchaseDetails.Flight.Builder
java.lang.Object
com.stripe.param.issuing.TransactionCreateForceCaptureParams.PurchaseDetails.Flight.Builder
- Enclosing class:
- TransactionCreateForceCaptureParams.PurchaseDetails.Flight
public static class TransactionCreateForceCaptureParams.PurchaseDetails.Flight.Builder
extends Object
-
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
public TransactionCreateForceCaptureParams.PurchaseDetails.Flight.Builder setDepartureAt(Long departureAt) The time that the flight departed. -
putExtraParam
public TransactionCreateForceCaptureParams.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. SeeTransactionCreateForceCaptureParams.PurchaseDetails.Flight.extraParams
for the field documentation. -
putAllExtraParam
public TransactionCreateForceCaptureParams.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. SeeTransactionCreateForceCaptureParams.PurchaseDetails.Flight.extraParams
for the field documentation. -
setPassengerName
public TransactionCreateForceCaptureParams.PurchaseDetails.Flight.Builder setPassengerName(String passengerName) The name of the passenger. -
setRefundable
public TransactionCreateForceCaptureParams.PurchaseDetails.Flight.Builder setRefundable(Boolean refundable) Whether the ticket is refundable. -
addSegment
public TransactionCreateForceCaptureParams.PurchaseDetails.Flight.Builder addSegment(TransactionCreateForceCaptureParams.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. SeeTransactionCreateForceCaptureParams.PurchaseDetails.Flight.segments
for the field documentation. -
addAllSegment
public TransactionCreateForceCaptureParams.PurchaseDetails.Flight.Builder addAllSegment(List<TransactionCreateForceCaptureParams.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. SeeTransactionCreateForceCaptureParams.PurchaseDetails.Flight.segments
for the field documentation. -
setTravelAgency
public TransactionCreateForceCaptureParams.PurchaseDetails.Flight.Builder setTravelAgency(String travelAgency) The travel agency that issued the ticket.
-