Package com.stripe.param
Class PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Builder
java.lang.Object
com.stripe.param.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Builder
- Enclosing class:
- PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail
public static class PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Builder
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllInsurance(List<PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Insurance> elements) Add all elements to `insurances` list.addAllPassenger(List<PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Passenger> elements) Add all elements to `passengers` list.addInsurance(PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Insurance element) Add an element to `insurances` list.addPassenger(PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Passenger element) Add an element to `passengers` 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.setAffiliateName(String affiliateName) Name of associated or partner company for the service.setArrival(PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Arrival arrival) Arrival details.setCarrierName(String carrierName) Name of transportation company.setCurrency(String currency) Currency.setDeparture(PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Departure departure) Departure details.Price in cents.setTicketClass(PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.TicketClass ticketClass) Ticket class.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail build()Finalize and obtain parameter instance from this builder. -
setAffiliateName
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Builder setAffiliateName(String affiliateName) Name of associated or partner company for the service. -
setArrival
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Builder setArrival(PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Arrival arrival) Arrival details. -
setCarrierName
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Builder setCarrierName(String carrierName) Name of transportation company. -
setCurrency
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Builder setCurrency(String currency) Currency. -
setDeparture
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Builder setDeparture(PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Departure departure) Departure details. -
putExtraParam
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.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.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.extraParamsfor the field documentation. -
putAllExtraParam
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.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.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.extraParamsfor the field documentation. -
addInsurance
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Builder addInsurance(PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Insurance element) Add an element to `insurances` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.insurancesfor the field documentation. -
addAllInsurance
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Builder addAllInsurance(List<PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Insurance> elements) Add all elements to `insurances` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.insurancesfor the field documentation. -
addPassenger
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Builder addPassenger(PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.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.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.passengersfor the field documentation. -
addAllPassenger
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Builder addAllPassenger(List<PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.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.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.passengersfor the field documentation. -
setPrice
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Builder setPrice(Long price) Price in cents. -
setTicketClass
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Builder setTicketClass(PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.TicketClass ticketClass) Ticket class.
-