Class TransactionRequest
java.lang.Object
com.clover.remote.client.messages.BaseRequest
com.clover.remote.client.messages.BaseTransactionRequest
com.clover.remote.client.messages.TransactionRequest
- Direct Known Subclasses:
AuthRequest,SaleRequest
Base class used by all transaction request objects like
SaleRequest, AuthRequest, etc.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the field valueGet the field valueGet the field valueGet the field valueGet the field valuecom.clover.sdk.v3.payments.DataEntryLocationGet the field valueGet the field valueGet the field valueGet the field valuecom.clover.sdk.v3.merchant.TipSuggestion[]Get the field valuecom.clover.common2.payments.PayIntent.TransactionTypegetType()Get the field valuevoidsetAllowOfflinePayment(Boolean allowOfflinePayment) Set the field valuevoidsetApproveOfflinePaymentWithoutPrompt(Boolean approveOfflinePaymentWithoutPrompt) Set the field valuevoidsetAutoAcceptSignature(Boolean autoAcceptSignature) Set the field valuevoidsetDisableCashback(Boolean disableCashback) Set the field valuevoidsetForceOfflinePayment(Boolean forceOfflinePayment) Set the field valuevoidsetSignatureEntryLocation(com.clover.sdk.v3.payments.DataEntryLocation signatureEntryLocation) Set the field valuevoidsetSignatureThreshold(Long signatureThreshold) Set the field valuevoidsetTaxAmount(Long taxAmount) Set the field valuevoidsetTippableAmount(Long tippableAmount) Set the field valuevoidsetTipSuggestions(com.clover.sdk.v3.merchant.TipSuggestion[] tipSuggestions) Set the field valueMethods inherited from class com.clover.remote.client.messages.BaseTransactionRequest
getAmount, getAutoAcceptPaymentConfirmations, getCardEntryMethods, getCardNotPresent, getDisableDuplicateChecking, getDisablePrinting, getDisableReceiptSelection, getDisableRestartTransactionOnFail, getExternalId, getExternalReferenceId, getExtras, getPresentQrcOnly, getRegionalExtras, getVaultedCard, setAmount, setAutoAcceptPaymentConfirmations, setCardEntryMethods, setCardNotPresent, setDisableDuplicateChecking, setDisablePrinting, setDisableReceiptSelection, setDisableRestartTransactionOnFail, setExternalId, setExternalReferenceId, setExtras, setPresentQrcOnly, setRegionalExtras, setVaultedCard
-
Constructor Details
-
TransactionRequest
Constructor- Parameters:
amount- The amount of the transaction. This includes amount, tax, service charges, etc. except the tipexternalId- 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:BaseTransactionRequestGet the field value- Specified by:
getTypein classBaseTransactionRequest- Returns:
- The type of the transaction.
-
setSignatureThreshold
Set the field value- Parameters:
signatureThreshold- The signature threshold settings overrides
-
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
Set the field value- Parameters:
autoAcceptSignature- The automatically accept signature override
-
getAutoAcceptSignature
Get the field value- Returns:
- The automatically accept signature override
-
setDisableCashback
Set the field value- Parameters:
disableCashback- If true, do not allow cash back
-
getDisableCashback
Get the field value- Returns:
- If true, do not allow cash back
-
setTaxAmount
Set the field value- Parameters:
taxAmount- Amount paid in taxes
-
getTaxAmount
Get the field value- Returns:
- Amount paid in tips
-
setAllowOfflinePayment
Set the field value- Parameters:
allowOfflinePayment- If true then offline payments can be accepted
-
getAllowOfflinePayment
Get the field value- Returns:
- If true then offline payments can be accepted
-
setForceOfflinePayment
Set the field value- Parameters:
forceOfflinePayment- If true then the payment will be taken offline
-
getForceOfflinePayment
Get the field value- Returns:
- If true then the payment will be taken offline
-
setApproveOfflinePaymentWithoutPrompt
Set the field value- Parameters:
approveOfflinePaymentWithoutPrompt- If true then offline payments will be approved without a prompt
-
getApproveOfflinePaymentWithoutPrompt
Get the field value- Returns:
- If true then offline payments will be approved without a prompt
-
setTippableAmount
Set the field value- Parameters:
tippableAmount- The total amount used when calculating tips
-
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
-