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