Class Preference
- java.lang.Object
-
- com.mercadopago.net.MPResource
-
- com.mercadopago.resources.preference.Preference
-
public class Preference extends MPResource
Preference resource.
-
-
Constructor Summary
Constructors Constructor Description Preference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAdditionalInfo()
Additional info.String
getAutoReturn()
If specified, your buyers will be redirected back to your site immediately after completing the purchase.PreferenceBackUrls
getBackUrls()
URLs to return to the sellers website.Boolean
getBinaryMode()
When set to true, the payment can only be approved or rejected.String
getClientId()
Client ID.Long
getCollectorId()
Collector ID.OffsetDateTime
getDateCreated()
Date of creation.OffsetDateTime
getDateOfExpiration()
Expiration date of cash payment.PreferenceDifferentialPricing
getDifferentialPricing()
Differential pricing configuration for this preference.OffsetDateTime
getExpirationDateFrom()
Date when the preference will be active.OffsetDateTime
getExpirationDateTo()
Date when the preference will be expired.Boolean
getExpires()
True if a preference expires, false if not.String
getExternalReference()
Reference you can synchronize with your payment system.String
getId()
Preference ID.String
getInitPoint()
Checkout URL from preference.List<PreferenceItem>
getItems()
List of items to be paid.String
getMarketplace()
Origin of the payment.BigDecimal
getMarketplaceFee()
Marketplace's fee charged by application owner.Map<String,Object>
getMetadata()
Data that can be attached to the preference to record additional attributes of the merchant.String
getNotificationUrl()
URL where you'd like to receive a payment notification.String
getOperationType()
Operation type.PreferencePayer
getPayer()
Payer information.PreferencePaymentMethods
getPaymentMethods()
Set up payment methods.List<String>
getProcessingModes()
Configures which processing modes to use.String
getSandboxInitPoint()
Sandbox checkout URL from preference.PreferenceShipments
getShipments()
Shipments information.String
getStatementDescriptor()
How the payment will be specified in the card bill.List<PreferenceTax>
getTaxes()
Taxes for preferences.List<PreferenceTrack>
getTracks()
Tracks to be executed during the users interaction in the Checkout flow.-
Methods inherited from class com.mercadopago.net.MPResource
canEqual, equals, getResponse, hashCode, setResponse, toString
-
-
-
-
Method Detail
-
getId
public String getId()
Preference ID.
-
getItems
public List<PreferenceItem> getItems()
List of items to be paid.
-
getPayer
public PreferencePayer getPayer()
Payer information.
-
getClientId
public String getClientId()
Client ID.
-
getPaymentMethods
public PreferencePaymentMethods getPaymentMethods()
Set up payment methods.
-
getBackUrls
public PreferenceBackUrls getBackUrls()
URLs to return to the sellers website.
-
getShipments
public PreferenceShipments getShipments()
Shipments information.
-
getNotificationUrl
public String getNotificationUrl()
URL where you'd like to receive a payment notification.
-
getStatementDescriptor
public String getStatementDescriptor()
How the payment will be specified in the card bill.
-
getExternalReference
public String getExternalReference()
Reference you can synchronize with your payment system.
-
getExpires
public Boolean getExpires()
True if a preference expires, false if not.
-
getDateOfExpiration
public OffsetDateTime getDateOfExpiration()
Expiration date of cash payment.
-
getExpirationDateFrom
public OffsetDateTime getExpirationDateFrom()
Date when the preference will be active.
-
getExpirationDateTo
public OffsetDateTime getExpirationDateTo()
Date when the preference will be expired.
-
getCollectorId
public Long getCollectorId()
Collector ID.
-
getMarketplace
public String getMarketplace()
Origin of the payment. Default value: NONE.
-
getMarketplaceFee
public BigDecimal getMarketplaceFee()
Marketplace's fee charged by application owner.
-
getAdditionalInfo
public String getAdditionalInfo()
Additional info.
-
getAutoReturn
public String getAutoReturn()
If specified, your buyers will be redirected back to your site immediately after completing the purchase.
-
getOperationType
public String getOperationType()
Operation type.
-
getDifferentialPricing
public PreferenceDifferentialPricing getDifferentialPricing()
Differential pricing configuration for this preference.
-
getProcessingModes
public List<String> getProcessingModes()
Configures which processing modes to use.
-
getBinaryMode
public Boolean getBinaryMode()
When set to true, the payment can only be approved or rejected. Otherwise in_process status is added.
-
getTaxes
public List<PreferenceTax> getTaxes()
Taxes for preferences.
-
getTracks
public List<PreferenceTrack> getTracks()
Tracks to be executed during the users interaction in the Checkout flow.
-
getMetadata
public Map<String,Object> getMetadata()
Data that can be attached to the preference to record additional attributes of the merchant.
-
getInitPoint
public String getInitPoint()
Checkout URL from preference.
-
getSandboxInitPoint
public String getSandboxInitPoint()
Sandbox checkout URL from preference.
-
getDateCreated
public OffsetDateTime getDateCreated()
Date of creation.
-
-