Class Preference


  • public class Preference
    extends MPResource
    Preference resource.
    • Constructor Detail

      • Preference

        public Preference()
    • Method Detail

      • getId

        public String getId()
        Preference ID.
      • getClientId

        public String getClientId()
        Client ID.
      • getBackUrls

        public PreferenceBackUrls getBackUrls()
        URLs to return to the sellers website.
      • 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.
      • 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.
      • 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.