Package com.stripe.param
Class PaymentIntentCaptureParams.PaymentDetails.Builder
java.lang.Object
com.stripe.param.PaymentIntentCaptureParams.PaymentDetails.Builder
- Enclosing class:
- PaymentIntentCaptureParams.PaymentDetails
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `carRentalData` list.Add all elements to `lodgingData` list.Add an element to `carRentalData` 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.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.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.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
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.
-
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. -
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.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.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.
-