Class PaymentIntentCaptureParams.PaymentDetails.Builder
- Enclosing class:
- PaymentIntentCaptureParams.PaymentDetails
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `carRentalData` list.Add all elements to `flightData` list.Add all elements to `lodgingData` list.Add an element to `carRentalData` list.Add an element to `flightData` list.Add an element to `lodgingData` 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.Car rental details for this PaymentIntent.setCarRentalData(EmptyParam carRentalData) Car rental data for this PaymentIntent.Car rental data for this PaymentIntent.setCustomerReference(EmptyParam customerReference) A unique value to identify the customer.setCustomerReference(String customerReference) A unique value to identify the customer.Event details for this PaymentIntent.Flight reservation details for this PaymentIntent.setFlightData(EmptyParam flightData) Flight data for this PaymentIntent.Flight data for this PaymentIntent.Lodging reservation details for this PaymentIntent.setLodgingData(EmptyParam lodgingData) Lodging data for this PaymentIntent.Lodging data for this PaymentIntent.setOrderReference(EmptyParam orderReference) A unique value assigned by the business to identify the transaction.setOrderReference(String orderReference) A unique value assigned by the business to identify the transaction.Subscription details for this PaymentIntent.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCarRental
public PaymentIntentCaptureParams.PaymentDetails.Builder setCarRental(PaymentIntentCaptureParams.PaymentDetails.CarRental carRental) Car rental details for this PaymentIntent. -
addCarRentalData
public PaymentIntentCaptureParams.PaymentDetails.Builder addCarRentalData(PaymentIntentCaptureParams.PaymentDetails.CarRentalData element) Add an element to `carRentalData` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentIntentCaptureParams.PaymentDetails.carRentalDatafor the field documentation. -
addAllCarRentalData
public PaymentIntentCaptureParams.PaymentDetails.Builder addAllCarRentalData(List<PaymentIntentCaptureParams.PaymentDetails.CarRentalData> elements) Add all elements to `carRentalData` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentIntentCaptureParams.PaymentDetails.carRentalDatafor the field documentation. -
setCarRentalData
Car rental data for this PaymentIntent. -
setCarRentalData
public PaymentIntentCaptureParams.PaymentDetails.Builder setCarRentalData(List<PaymentIntentCaptureParams.PaymentDetails.CarRentalData> carRentalData) Car rental data for this PaymentIntent. -
setCustomerReference
public PaymentIntentCaptureParams.PaymentDetails.Builder setCustomerReference(String customerReference) A unique value to identify the customer. This field is available only for card payments.This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
-
setCustomerReference
public PaymentIntentCaptureParams.PaymentDetails.Builder setCustomerReference(EmptyParam customerReference) A unique value to identify the customer. This field is available only for card payments.This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
-
setEventDetails
public PaymentIntentCaptureParams.PaymentDetails.Builder setEventDetails(PaymentIntentCaptureParams.PaymentDetails.EventDetails eventDetails) Event details for this PaymentIntent. -
putExtraParam
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. SeePaymentIntentCaptureParams.PaymentDetails.extraParamsfor the field documentation. -
putAllExtraParam
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. SeePaymentIntentCaptureParams.PaymentDetails.extraParamsfor the field documentation. -
setFlight
public PaymentIntentCaptureParams.PaymentDetails.Builder setFlight(PaymentIntentCaptureParams.PaymentDetails.Flight flight) Flight reservation details for this PaymentIntent. -
addFlightData
public PaymentIntentCaptureParams.PaymentDetails.Builder addFlightData(PaymentIntentCaptureParams.PaymentDetails.FlightData element) Add an element to `flightData` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentIntentCaptureParams.PaymentDetails.flightDatafor the field documentation. -
addAllFlightData
public PaymentIntentCaptureParams.PaymentDetails.Builder addAllFlightData(List<PaymentIntentCaptureParams.PaymentDetails.FlightData> elements) Add all elements to `flightData` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentIntentCaptureParams.PaymentDetails.flightDatafor the field documentation. -
setFlightData
Flight data for this PaymentIntent. -
setFlightData
public PaymentIntentCaptureParams.PaymentDetails.Builder setFlightData(List<PaymentIntentCaptureParams.PaymentDetails.FlightData> flightData) Flight data for this PaymentIntent. -
setLodging
public PaymentIntentCaptureParams.PaymentDetails.Builder setLodging(PaymentIntentCaptureParams.PaymentDetails.Lodging lodging) Lodging reservation details for this PaymentIntent. -
addLodgingData
public PaymentIntentCaptureParams.PaymentDetails.Builder addLodgingData(PaymentIntentCaptureParams.PaymentDetails.LodgingData element) Add an element to `lodgingData` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentIntentCaptureParams.PaymentDetails.lodgingDatafor the field documentation. -
addAllLodgingData
public PaymentIntentCaptureParams.PaymentDetails.Builder addAllLodgingData(List<PaymentIntentCaptureParams.PaymentDetails.LodgingData> elements) Add all elements to `lodgingData` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentIntentCaptureParams.PaymentDetails.lodgingDatafor the field documentation. -
setLodgingData
Lodging data for this PaymentIntent. -
setLodgingData
public PaymentIntentCaptureParams.PaymentDetails.Builder setLodgingData(List<PaymentIntentCaptureParams.PaymentDetails.LodgingData> lodgingData) Lodging data for this PaymentIntent. -
setOrderReference
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.Required when the Payment Method Types array contains
card, including when automatic_payment_methods.enabled is set totrue.For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
-
setOrderReference
public PaymentIntentCaptureParams.PaymentDetails.Builder setOrderReference(EmptyParam orderReference) A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.Required when the Payment Method Types array contains
card, including when automatic_payment_methods.enabled is set totrue.For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
-
setSubscription
public PaymentIntentCaptureParams.PaymentDetails.Builder setSubscription(PaymentIntentCaptureParams.PaymentDetails.Subscription subscription) Subscription details for this PaymentIntent.
-