Package com.stripe.param
Class PaymentIntentUpdateParams.PaymentDetails.Builder
java.lang.Object
com.stripe.param.PaymentIntentUpdateParams.PaymentDetails.Builder
- Enclosing class:
- PaymentIntentUpdateParams.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 PaymentIntentUpdateParams.PaymentDetails.Builder addCarRentalData(PaymentIntentUpdateParams.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. SeePaymentIntentUpdateParams.PaymentDetails.carRentalDatafor the field documentation. -
addAllCarRentalData
public PaymentIntentUpdateParams.PaymentDetails.Builder addAllCarRentalData(List<PaymentIntentUpdateParams.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. SeePaymentIntentUpdateParams.PaymentDetails.carRentalDatafor the field documentation. -
setCarRentalData
Car rental data for this PaymentIntent. -
setCarRentalData
public PaymentIntentUpdateParams.PaymentDetails.Builder setCarRentalData(List<PaymentIntentUpdateParams.PaymentDetails.CarRentalData> carRentalData) Car rental data for this PaymentIntent. -
setCustomerReference
public PaymentIntentUpdateParams.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 PaymentIntentUpdateParams.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. SeePaymentIntentUpdateParams.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. SeePaymentIntentUpdateParams.PaymentDetails.extraParamsfor the field documentation. -
addLodgingData
public PaymentIntentUpdateParams.PaymentDetails.Builder addLodgingData(PaymentIntentUpdateParams.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. SeePaymentIntentUpdateParams.PaymentDetails.lodgingDatafor the field documentation. -
addAllLodgingData
public PaymentIntentUpdateParams.PaymentDetails.Builder addAllLodgingData(List<PaymentIntentUpdateParams.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. SeePaymentIntentUpdateParams.PaymentDetails.lodgingDatafor the field documentation. -
setLodgingData
Lodging data for this PaymentIntent. -
setLodgingData
public PaymentIntentUpdateParams.PaymentDetails.Builder setLodgingData(List<PaymentIntentUpdateParams.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 PaymentIntentUpdateParams.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.
-