public class SaleRequest extends TransactionRequest
Modifier and Type | Class and Description |
---|---|
static class |
SaleRequest.TipMode
Enumeration for indicating the mode of acquiring a tip
|
Constructor and Description |
---|
SaleRequest(long amount,
java.lang.String externalId)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getAllowOfflinePayment()
Get the field value
|
java.lang.Boolean |
getApproveOfflinePaymentWithoutPrompt()
Get the field value
|
java.lang.Boolean |
getDisableCashback()
Get the field value
|
java.lang.Boolean |
getDisableTipOnScreen()
Get the field value
|
java.lang.Boolean |
getForceOfflinePayment()
Get the field value
|
java.lang.Long |
getTaxAmount()
Get the field value
|
java.lang.Long |
getTipAmount()
Get the field value
|
SaleRequest.TipMode |
getTipMode()
Get the field value
|
java.lang.Long |
getTippableAmount()
Get the field value
|
com.clover.common2.payments.PayIntent.TransactionType |
getType()
Get the field value
|
void |
setAllowOfflinePayment(java.lang.Boolean allowOfflinePayment)
Set the field value
|
void |
setApproveOfflinePaymentWithoutPrompt(java.lang.Boolean approveOfflinePaymentWithoutPrompt)
Set the field value
|
void |
setDisableCashback(java.lang.Boolean disableCashback)
Set the field value
|
void |
setDisableTipOnScreen(java.lang.Boolean disableTipOnScreen)
Set the field value
|
void |
setForceOfflinePayment(java.lang.Boolean forceOfflinePayment)
Set the field value
|
void |
setTaxAmount(java.lang.Long taxAmount)
Set the field value
|
void |
setTipAmount(java.lang.Long tipAmount)
Set the field value
|
void |
setTipMode(SaleRequest.TipMode tipMode)
Set the field value
|
void |
setTippableAmount(java.lang.Long tippableAmount)
Set the field value
|
getAmount, getAutoAcceptPaymentConfirmations, getAutoAcceptSignature, getCardEntryMethods, getCardNotPresent, getDisableDuplicateChecking, getDisablePrinting, getDisableReceiptSelection, getDisableRestartTransactionOnFail, getExternalId, getSignatureEntryLocation, getSignatureThreshold, getVaultedCard, setAmount, setAutoAcceptPaymentConfirmations, setAutoAcceptSignature, setCardEntryMethods, setCardNotPresent, setDisableDuplicateChecking, setDisablePrinting, setDisableReceiptSelection, setDisableRestartTransactionOnFail, setExternalId, setSignatureEntryLocation, setSignatureThreshold, setVaultedCard
public SaleRequest(long amount, java.lang.String externalId)
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 systempublic void setTippableAmount(java.lang.Long tippableAmount)
tippableAmount
- The total amount used when calculating tipspublic java.lang.Long getTippableAmount()
public void setTipAmount(java.lang.Long tipAmount)
tipAmount
- Included tippublic java.lang.Long getTipAmount()
public void setDisableCashback(java.lang.Boolean disableCashback)
disableCashback
- If true, do not allow cash backpublic java.lang.Boolean getDisableCashback()
public void setDisableTipOnScreen(java.lang.Boolean disableTipOnScreen)
disableTipOnScreen
- If true, the tip screen will not be displayed on the device, even if the merchant is configured for tips on screenpublic java.lang.Boolean getDisableTipOnScreen()
public void setTaxAmount(java.lang.Long taxAmount)
taxAmount
- Amount paid in taxespublic java.lang.Long getTaxAmount()
public void setAllowOfflinePayment(java.lang.Boolean allowOfflinePayment)
allowOfflinePayment
- If true then offline payments can be acceptedpublic java.lang.Boolean getAllowOfflinePayment()
public void setForceOfflinePayment(java.lang.Boolean forceOfflinePayment)
forceOfflinePayment
- If true then the payment will be taken offlinepublic java.lang.Boolean getForceOfflinePayment()
public void setApproveOfflinePaymentWithoutPrompt(java.lang.Boolean approveOfflinePaymentWithoutPrompt)
approveOfflinePaymentWithoutPrompt
- If true then offline payments will be approved without a promptpublic java.lang.Boolean getApproveOfflinePaymentWithoutPrompt()
public com.clover.common2.payments.PayIntent.TransactionType getType()
TransactionRequest
getType
in class TransactionRequest
public void setTipMode(SaleRequest.TipMode tipMode)
tipMode
- The tip mode settings overridespublic SaleRequest.TipMode getTipMode()