Class PaymentIntentCreateParams.PaymentDetails.Builder
- Enclosing class:
- PaymentIntentCreateParams.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.Benefit details for this PaymentIntent.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. -
setBenefit
public PaymentIntentCreateParams.PaymentDetails.Builder setBenefit(PaymentIntentCreateParams.PaymentDetails.Benefit benefit) Benefit details for this PaymentIntent. -
setCarRental
public PaymentIntentCreateParams.PaymentDetails.Builder setCarRental(PaymentIntentCreateParams.PaymentDetails.CarRental carRental) Car rental details for this PaymentIntent. -
addCarRentalData
public PaymentIntentCreateParams.PaymentDetails.Builder addCarRentalData(PaymentIntentCreateParams.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. SeePaymentIntentCreateParams.PaymentDetails.carRentalDatafor the field documentation. -
addAllCarRentalData
public PaymentIntentCreateParams.PaymentDetails.Builder addAllCarRentalData(List<PaymentIntentCreateParams.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. SeePaymentIntentCreateParams.PaymentDetails.carRentalDatafor the field documentation. -
setCarRentalData
Car rental data for this PaymentIntent. -
setCarRentalData
public PaymentIntentCreateParams.PaymentDetails.Builder setCarRentalData(List<PaymentIntentCreateParams.PaymentDetails.CarRentalData> carRentalData) Car rental data for this PaymentIntent. -
setCustomerReference
public PaymentIntentCreateParams.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 PaymentIntentCreateParams.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 PaymentIntentCreateParams.PaymentDetails.Builder setEventDetails(PaymentIntentCreateParams.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. SeePaymentIntentCreateParams.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. SeePaymentIntentCreateParams.PaymentDetails.extraParamsfor the field documentation. -
setFlight
public PaymentIntentCreateParams.PaymentDetails.Builder setFlight(PaymentIntentCreateParams.PaymentDetails.Flight flight) Flight reservation details for this PaymentIntent. -
addFlightData
public PaymentIntentCreateParams.PaymentDetails.Builder addFlightData(PaymentIntentCreateParams.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. SeePaymentIntentCreateParams.PaymentDetails.flightDatafor the field documentation. -
addAllFlightData
public PaymentIntentCreateParams.PaymentDetails.Builder addAllFlightData(List<PaymentIntentCreateParams.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. SeePaymentIntentCreateParams.PaymentDetails.flightDatafor the field documentation. -
setFlightData
Flight data for this PaymentIntent. -
setFlightData
public PaymentIntentCreateParams.PaymentDetails.Builder setFlightData(List<PaymentIntentCreateParams.PaymentDetails.FlightData> flightData) Flight data for this PaymentIntent. -
setLodging
public PaymentIntentCreateParams.PaymentDetails.Builder setLodging(PaymentIntentCreateParams.PaymentDetails.Lodging lodging) Lodging reservation details for this PaymentIntent. -
addLodgingData
public PaymentIntentCreateParams.PaymentDetails.Builder addLodgingData(PaymentIntentCreateParams.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. SeePaymentIntentCreateParams.PaymentDetails.lodgingDatafor the field documentation. -
addAllLodgingData
public PaymentIntentCreateParams.PaymentDetails.Builder addAllLodgingData(List<PaymentIntentCreateParams.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. SeePaymentIntentCreateParams.PaymentDetails.lodgingDatafor the field documentation. -
setLodgingData
Lodging data for this PaymentIntent. -
setLodgingData
public PaymentIntentCreateParams.PaymentDetails.Builder setLodgingData(List<PaymentIntentCreateParams.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 PaymentIntentCreateParams.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 PaymentIntentCreateParams.PaymentDetails.Builder setSubscription(PaymentIntentCreateParams.PaymentDetails.Subscription subscription) Subscription details for this PaymentIntent.
-