Class PreferenceRequest.PreferenceRequestBuilder
- java.lang.Object
-
- com.mercadopago.client.preference.PreferenceRequest.PreferenceRequestBuilder
-
- Enclosing class:
- PreferenceRequest
public static class PreferenceRequest.PreferenceRequestBuilder extends Object
-
-
Method Summary
-
-
-
Method Detail
-
additionalInfo
public PreferenceRequest.PreferenceRequestBuilder additionalInfo(String additionalInfo)
Additional info.- Returns:
this
.
-
autoReturn
public PreferenceRequest.PreferenceRequestBuilder autoReturn(String autoReturn)
If specified, your buyers will be redirected back to your site immediately after completing the purchase.- Returns:
this
.
-
backUrls
public PreferenceRequest.PreferenceRequestBuilder backUrls(PreferenceBackUrlsRequest backUrls)
URLs to return to the sellers website.- Returns:
this
.
-
binaryMode
public PreferenceRequest.PreferenceRequestBuilder binaryMode(Boolean binaryMode)
When set to true, the payment can only be approved or rejected. Otherwise in_process status is added.- Returns:
this
.
-
dateOfExpiration
public PreferenceRequest.PreferenceRequestBuilder dateOfExpiration(OffsetDateTime dateOfExpiration)
Expiration date of cash payment.- Returns:
this
.
-
differentialPricing
public PreferenceRequest.PreferenceRequestBuilder differentialPricing(PreferenceDifferentialPricingRequest differentialPricing)
Differential pricing configuration for this preference.- Returns:
this
.
-
expirationDateFrom
public PreferenceRequest.PreferenceRequestBuilder expirationDateFrom(OffsetDateTime expirationDateFrom)
Date since the preference will be active.- Returns:
this
.
-
expirationDateTo
public PreferenceRequest.PreferenceRequestBuilder expirationDateTo(OffsetDateTime expirationDateTo)
Date when the preference will be expired.- Returns:
this
.
-
expires
public PreferenceRequest.PreferenceRequestBuilder expires(Boolean expires)
True if a preference expires, false if not.- Returns:
this
.
-
externalReference
public PreferenceRequest.PreferenceRequestBuilder externalReference(String externalReference)
Reference you can synchronize with your payment system.- Returns:
this
.
-
items
public PreferenceRequest.PreferenceRequestBuilder items(List<PreferenceItemRequest> items)
List of items to be paid.- Returns:
this
.
-
marketplace
public PreferenceRequest.PreferenceRequestBuilder marketplace(String marketplace)
Origin of the payment. Default value: NONE.- Returns:
this
.
-
marketplaceFee
public PreferenceRequest.PreferenceRequestBuilder marketplaceFee(BigDecimal marketplaceFee)
Marketplace's fee charged by application owner.- Returns:
this
.
-
metadata
public PreferenceRequest.PreferenceRequestBuilder metadata(Map<String,Object> metadata)
Data that can be attached to the preference to record additional attributes of the merchant.- Returns:
this
.
-
notificationUrl
public PreferenceRequest.PreferenceRequestBuilder notificationUrl(String notificationUrl)
URL where you'd like to receive a payment notification.- Returns:
this
.
-
operationType
public PreferenceRequest.PreferenceRequestBuilder operationType(String operationType)
Operation type.- Returns:
this
.
-
payer
public PreferenceRequest.PreferenceRequestBuilder payer(PreferencePayerRequest payer)
Payer information.- Returns:
this
.
-
paymentMethods
public PreferenceRequest.PreferenceRequestBuilder paymentMethods(PreferencePaymentMethodsRequest paymentMethods)
Set up payment methods.- Returns:
this
.
-
processingModes
public PreferenceRequest.PreferenceRequestBuilder processingModes(List<String> processingModes)
Configures which processing modes to use.- Returns:
this
.
-
purpose
public PreferenceRequest.PreferenceRequestBuilder purpose(String purpose)
Purpose of the Preference.- Returns:
this
.
-
shipments
public PreferenceRequest.PreferenceRequestBuilder shipments(PreferenceShipmentsRequest shipments)
Shipments information.- Returns:
this
.
-
statementDescriptor
public PreferenceRequest.PreferenceRequestBuilder statementDescriptor(String statementDescriptor)
How will look the payment in the card bill.- Returns:
this
.
-
taxes
public PreferenceRequest.PreferenceRequestBuilder taxes(List<PreferenceTaxRequest> taxes)
Taxes for preferences.- Returns:
this
.
-
tracks
public PreferenceRequest.PreferenceRequestBuilder tracks(List<PreferenceTrackRequest> tracks)
Tracks to be executed during the users interaction in the Checkout flow.- Returns:
this
.
-
build
public PreferenceRequest build()
-
-