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 StringgetAdditionalInfo()Additional info.StringgetAutoReturn()If specified, your buyers will be redirected back to your site immediately after completing the purchase.PreferenceBackUrlsgetBackUrls()URLs to return to the sellers website.BooleangetBinaryMode()When set to true, the payment can only be approved or rejected.StringgetClientId()Client ID.LonggetCollectorId()Collector ID.OffsetDateTimegetDateCreated()Date of creation.OffsetDateTimegetDateOfExpiration()Expiration date of cash payment.PreferenceDifferentialPricinggetDifferentialPricing()Differential pricing configuration for this preference.OffsetDateTimegetExpirationDateFrom()Date when the preference will be active.OffsetDateTimegetExpirationDateTo()Date when the preference will be expired.BooleangetExpires()True if a preference expires, false if not.StringgetExternalReference()Reference you can synchronize with your payment system.StringgetId()Preference ID.StringgetInitPoint()Checkout URL from preference.List<PreferenceItem>getItems()List of items to be paid.StringgetMarketplace()Origin of the payment.BigDecimalgetMarketplaceFee()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.StringgetNotificationUrl()URL where you'd like to receive a payment notification.StringgetOperationType()Operation type.PreferencePayergetPayer()Payer information.PreferencePaymentMethodsgetPaymentMethods()Set up payment methods.List<String>getProcessingModes()Configures which processing modes to use.StringgetSandboxInitPoint()Sandbox checkout URL from preference.PreferenceShipmentsgetShipments()Shipments information.StringgetStatementDescriptor()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.
-
-