Class TransactionRequest

Direct Known Subclasses:
AuthRequest, SaleRequest

public abstract class TransactionRequest extends BaseTransactionRequest
Base class used by all transaction request objects like SaleRequest, AuthRequest, etc.
  • Constructor Details

    • TransactionRequest

      public TransactionRequest(long amount, String externalId)
      Constructor
      Parameters:
      amount - The amount of the transaction. This includes amount, tax, service charges, etc. except the tip
      externalId - An id assigned by the POS that can be used to track a payment through the Clover system
  • Method Details

    • getType

      public com.clover.common2.payments.PayIntent.TransactionType getType()
      Description copied from class: BaseTransactionRequest
      Get the field value
      Specified by:
      getType in class BaseTransactionRequest
      Returns:
      The type of the transaction.
    • setSignatureThreshold

      public void setSignatureThreshold(Long signatureThreshold)
      Set the field value
      Parameters:
      signatureThreshold - The signature threshold settings overrides
    • getSignatureThreshold

      public Long getSignatureThreshold()
      Get the field value
      Returns:
      The transaction level settings overrides
    • setSignatureEntryLocation

      public void setSignatureEntryLocation(com.clover.sdk.v3.payments.DataEntryLocation signatureEntryLocation)
      Set the field value
      Parameters:
      signatureEntryLocation - The signature entry location settings overrides
    • getSignatureEntryLocation

      public com.clover.sdk.v3.payments.DataEntryLocation getSignatureEntryLocation()
      Get the field value
      Returns:
      The transaction level settings overrides
    • setAutoAcceptSignature

      public void setAutoAcceptSignature(Boolean autoAcceptSignature)
      Set the field value
      Parameters:
      autoAcceptSignature - The automatically accept signature override
    • getAutoAcceptSignature

      public Boolean getAutoAcceptSignature()
      Get the field value
      Returns:
      The automatically accept signature override
    • setDisableCashback

      public void setDisableCashback(Boolean disableCashback)
      Set the field value
      Parameters:
      disableCashback - If true, do not allow cash back
    • getDisableCashback

      public Boolean getDisableCashback()
      Get the field value
      Returns:
      If true, do not allow cash back
    • setTaxAmount

      public void setTaxAmount(Long taxAmount)
      Set the field value
      Parameters:
      taxAmount - Amount paid in taxes
    • getTaxAmount

      public Long getTaxAmount()
      Get the field value
      Returns:
      Amount paid in tips
    • setAllowOfflinePayment

      public void setAllowOfflinePayment(Boolean allowOfflinePayment)
      Set the field value
      Parameters:
      allowOfflinePayment - If true then offline payments can be accepted
    • getAllowOfflinePayment

      public Boolean getAllowOfflinePayment()
      Get the field value
      Returns:
      If true then offline payments can be accepted
    • setForceOfflinePayment

      public void setForceOfflinePayment(Boolean forceOfflinePayment)
      Set the field value
      Parameters:
      forceOfflinePayment - If true then the payment will be taken offline
    • getForceOfflinePayment

      public Boolean getForceOfflinePayment()
      Get the field value
      Returns:
      If true then the payment will be taken offline
    • setApproveOfflinePaymentWithoutPrompt

      public void setApproveOfflinePaymentWithoutPrompt(Boolean approveOfflinePaymentWithoutPrompt)
      Set the field value
      Parameters:
      approveOfflinePaymentWithoutPrompt - If true then offline payments will be approved without a prompt
    • getApproveOfflinePaymentWithoutPrompt

      public Boolean getApproveOfflinePaymentWithoutPrompt()
      Get the field value
      Returns:
      If true then offline payments will be approved without a prompt
    • setTippableAmount

      public void setTippableAmount(Long tippableAmount)
      Set the field value
      Parameters:
      tippableAmount - The total amount used when calculating tips
    • getTippableAmount

      public Long getTippableAmount()
      Get the field value
      Returns:
      The total amount used when calculating tips
    • getTipSuggestions

      public com.clover.sdk.v3.merchant.TipSuggestion[] getTipSuggestions()
      Get the field value
      Returns:
      The list of tip suggestions
    • setTipSuggestions

      public void setTipSuggestions(com.clover.sdk.v3.merchant.TipSuggestion[] tipSuggestions)
      Set the field value
      Parameters:
      tipSuggestions - The list of tip suggestions