Class RequestedSessionCreateParams.Builder
java.lang.Object
com.stripe.param.delegatedcheckout.RequestedSessionCreateParams.Builder
- Enclosing class:
- RequestedSessionCreateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand(List<String> elements) Add all elements to `expand` list.Add all elements to `lineItemDetails` list.Add an element to `expand` list.Add an element to `lineItemDetails` list.build()Finalize and obtain parameter instance from this builder.putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putAllMetadata(Map<String, String> map) Add all map key/value pairs to `metadata` map.putAllSharedMetadata(Map<String, String> map) Add all map key/value pairs to `sharedMetadata` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.putMetadata(String key, String value) Add a key/value pair to `metadata` map.putSharedMetadata(String key, String value) Add a key/value pair to `sharedMetadata` map.setCurrency(String currency) Required. The currency for this requested session.setCustomer(String customer) The customer for this requested session.setFulfillmentDetails(RequestedSessionCreateParams.FulfillmentDetails fulfillmentDetails) The details of the fulfillment.setPaymentMethod(String paymentMethod) The payment method for this requested session.setPaymentMethodData(RequestedSessionCreateParams.PaymentMethodData paymentMethodData) The payment method data for this requested session.setSellerDetails(RequestedSessionCreateParams.SellerDetails sellerDetails) Required. The details of the seller.setSetupFutureUsage(RequestedSessionCreateParams.SetupFutureUsage setupFutureUsage) The setup future usage for this requested session.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCurrency
Required. The currency for this requested session. -
setCustomer
The customer for this requested session. -
addExpand
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeRequestedSessionCreateParams.expandfor the field documentation. -
addAllExpand
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeRequestedSessionCreateParams.expandfor the field documentation. -
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. SeeRequestedSessionCreateParams.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. SeeRequestedSessionCreateParams.extraParamsfor the field documentation. -
setFulfillmentDetails
public RequestedSessionCreateParams.Builder setFulfillmentDetails(RequestedSessionCreateParams.FulfillmentDetails fulfillmentDetails) The details of the fulfillment. -
addLineItemDetail
public RequestedSessionCreateParams.Builder addLineItemDetail(RequestedSessionCreateParams.LineItemDetail element) Add an element to `lineItemDetails` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeRequestedSessionCreateParams.lineItemDetailsfor the field documentation. -
addAllLineItemDetail
public RequestedSessionCreateParams.Builder addAllLineItemDetail(List<RequestedSessionCreateParams.LineItemDetail> elements) Add all elements to `lineItemDetails` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeRequestedSessionCreateParams.lineItemDetailsfor the field documentation. -
putMetadata
Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeRequestedSessionCreateParams.metadatafor the field documentation. -
putAllMetadata
Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeRequestedSessionCreateParams.metadatafor the field documentation. -
setPaymentMethod
The payment method for this requested session. -
setPaymentMethodData
public RequestedSessionCreateParams.Builder setPaymentMethodData(RequestedSessionCreateParams.PaymentMethodData paymentMethodData) The payment method data for this requested session. -
setSellerDetails
public RequestedSessionCreateParams.Builder setSellerDetails(RequestedSessionCreateParams.SellerDetails sellerDetails) Required. The details of the seller. -
setSetupFutureUsage
public RequestedSessionCreateParams.Builder setSetupFutureUsage(RequestedSessionCreateParams.SetupFutureUsage setupFutureUsage) The setup future usage for this requested session.
-