Package com.mercadopago.client.payment
Class PaymentCreateRequest.PaymentCreateRequestBuilder
- java.lang.Object
-
- com.mercadopago.client.payment.PaymentCreateRequest.PaymentCreateRequestBuilder
-
- Enclosing class:
- PaymentCreateRequest
public static class PaymentCreateRequest.PaymentCreateRequestBuilder extends Object
-
-
Method Summary
-
-
-
Method Detail
-
additionalInfo
public PaymentCreateRequest.PaymentCreateRequestBuilder additionalInfo(PaymentAdditionalInfoRequest additionalInfo)
Data that could improve fraud analysis and conversion rates. Try to send as much information as possible.- Returns:
this
.
-
applicationFee
public PaymentCreateRequest.PaymentCreateRequestBuilder applicationFee(BigDecimal applicationFee)
Fee collected by a marketplace or MercadoPago Application.- Returns:
this
.
-
binaryMode
public PaymentCreateRequest.PaymentCreateRequestBuilder binaryMode(Boolean binaryMode)
When set to true, the payment can only be approved or rejected. Otherwise in_process status is added.- Returns:
this
.
-
callbackUrl
public PaymentCreateRequest.PaymentCreateRequestBuilder callbackUrl(String callbackUrl)
URL where mercadopago does the final redirect (only for bank transfers).- Returns:
this
.
-
campaignId
public PaymentCreateRequest.PaymentCreateRequestBuilder campaignId(Long campaignId)
Discount campaign ID.- Returns:
this
.
-
capture
public PaymentCreateRequest.PaymentCreateRequestBuilder capture(Boolean capture)
Determines if the payment should be captured (true) or just reserved (false).- Returns:
this
.
-
couponAmount
public PaymentCreateRequest.PaymentCreateRequestBuilder couponAmount(BigDecimal couponAmount)
Amount of the coupon discount.- Returns:
this
.
-
couponCode
public PaymentCreateRequest.PaymentCreateRequestBuilder couponCode(String couponCode)
Discount campaign with a specific code.- Returns:
this
.
-
dateOfExpiration
public PaymentCreateRequest.PaymentCreateRequestBuilder dateOfExpiration(OffsetDateTime dateOfExpiration)
Date of expiration.- Returns:
this
.
-
description
public PaymentCreateRequest.PaymentCreateRequestBuilder description(String description)
Payment reason or item title.- Returns:
this
.
-
differentialPricingId
public PaymentCreateRequest.PaymentCreateRequestBuilder differentialPricingId(Long differentialPricingId)
Id of the scheme for the absorption of financing fee.- Returns:
this
.
-
externalReference
public PaymentCreateRequest.PaymentCreateRequestBuilder externalReference(String externalReference)
ID given by the merchant in their system.- Returns:
this
.
-
installments
public PaymentCreateRequest.PaymentCreateRequestBuilder installments(Integer installments)
Selected quantity of installments.- Returns:
this
.
-
issuerId
public PaymentCreateRequest.PaymentCreateRequestBuilder issuerId(String issuerId)
Payment method issuer.- Returns:
this
.
-
merchantAccountId
public PaymentCreateRequest.PaymentCreateRequestBuilder merchantAccountId(String merchantAccountId)
Merchant Id for complex payment cases.- Returns:
this
.
-
merchantServices
public PaymentCreateRequest.PaymentCreateRequestBuilder merchantServices(PaymentMerchantServicesRequest merchantServices)
Merchant services.- Returns:
this
.
-
metadata
public PaymentCreateRequest.PaymentCreateRequestBuilder metadata(Map<String,Object> metadata)
Data that can be attached to the payment to record additional attributes of the merchant.- Returns:
this
.
-
netAmount
public PaymentCreateRequest.PaymentCreateRequestBuilder netAmount(BigDecimal netAmount)
Net amount.- Returns:
this
.
-
notificationUrl
public PaymentCreateRequest.PaymentCreateRequestBuilder notificationUrl(String notificationUrl)
URL where mercadopago will send notifications associated to changes in this payment.- Returns:
this
.
-
order
public PaymentCreateRequest.PaymentCreateRequestBuilder order(PaymentOrderRequest order)
Order identifier.- Returns:
this
.
-
payer
public PaymentCreateRequest.PaymentCreateRequestBuilder payer(PaymentPayerRequest payer)
Payer information.- Returns:
this
.
-
paymentMethodId
public PaymentCreateRequest.PaymentCreateRequestBuilder paymentMethodId(String paymentMethodId)
Payment method chosen to do the payment.- Returns:
this
.
-
paymentMethodOptionId
public PaymentCreateRequest.PaymentCreateRequestBuilder paymentMethodOptionId(String paymentMethodOptionId)
Payment method option id.- Returns:
this
.
-
processingMode
public PaymentCreateRequest.PaymentCreateRequestBuilder processingMode(String processingMode)
Processing mode to define if an specific merchannt id should be used.- Returns:
this
.
-
token
public PaymentCreateRequest.PaymentCreateRequestBuilder token(String token)
Card token ID.- Returns:
this
.
-
transactionAmount
public PaymentCreateRequest.PaymentCreateRequestBuilder transactionAmount(BigDecimal transactionAmount)
Amount paid.- Returns:
this
.
-
transactionDetails
public PaymentCreateRequest.PaymentCreateRequestBuilder transactionDetails(PaymentTransactionDetailsRequest transactionDetails)
Transaction details.- Returns:
this
.
-
sponsorId
public PaymentCreateRequest.PaymentCreateRequestBuilder sponsorId(Long sponsorId)
Sponsor Identification.- Returns:
this
.
-
statementDescriptor
public PaymentCreateRequest.PaymentCreateRequestBuilder statementDescriptor(String statementDescriptor)
How will look the payment in the card bill (e.g.: MERCADOPAGO).- Returns:
this
.
-
build
public PaymentCreateRequest build()
-
-