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