public abstract class TransactionRequest extends BaseRequest
SaleRequest
, AuthRequest
, etc.Constructor and Description |
---|
TransactionRequest(long amount,
java.lang.String externalId)
Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getAmount()
Get the field value
|
java.lang.Boolean |
getAutoAcceptPaymentConfirmations()
Get the field value
|
java.lang.Boolean |
getAutoAcceptSignature()
Get the field value
|
java.lang.Integer |
getCardEntryMethods()
Get the field value
|
java.lang.Boolean |
getCardNotPresent()
Get the field value
|
java.lang.Boolean |
getDisableDuplicateChecking()
Get the field value
|
java.lang.Boolean |
getDisablePrinting()
Get the field value
|
java.lang.Boolean |
getDisableReceiptSelection()
Get the field value
|
java.lang.Boolean |
getDisableRestartTransactionOnFail()
Get the field value
|
java.lang.String |
getExternalId()
Get the field value
|
com.clover.sdk.v3.payments.DataEntryLocation |
getSignatureEntryLocation()
Get the field value
|
java.lang.Long |
getSignatureThreshold()
Get the field value
|
abstract com.clover.common2.payments.PayIntent.TransactionType |
getType()
Get the field value
|
com.clover.sdk.v3.payments.VaultedCard |
getVaultedCard()
Get the field value
|
void |
setAmount(long amount)
Set the field value
|
void |
setAutoAcceptPaymentConfirmations(java.lang.Boolean autoAcceptPaymentConfirmations)
Set the field value
|
void |
setAutoAcceptSignature(java.lang.Boolean autoAcceptSignature)
Set the field value
|
void |
setCardEntryMethods(java.lang.Integer cardEntryMethods)
Set the field value
|
void |
setCardNotPresent(java.lang.Boolean cardNotPresent)
Set the field value
|
void |
setDisableDuplicateChecking(java.lang.Boolean disableDuplicateChecking)
Set the field value
|
void |
setDisablePrinting(java.lang.Boolean disablePrinting)
Set the field value
|
void |
setDisableReceiptSelection(java.lang.Boolean disableReceiptSelection)
Set the field value
|
void |
setDisableRestartTransactionOnFail(java.lang.Boolean disableRestartTransactionOnFail)
Set the field value
|
void |
setExternalId(java.lang.String externalId)
Set the field value
|
void |
setSignatureEntryLocation(com.clover.sdk.v3.payments.DataEntryLocation signatureEntryLocation)
Set the field value
|
void |
setSignatureThreshold(java.lang.Long signatureThreshold)
Set the field value
|
void |
setVaultedCard(com.clover.sdk.v3.payments.VaultedCard vaultedCard)
Set the field value
|
public TransactionRequest(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 setDisablePrinting(java.lang.Boolean disablePrinting)
disablePrinting
- Do not printpublic java.lang.Boolean getDisablePrinting()
public void setCardNotPresent(java.lang.Boolean cardNotPresent)
cardNotPresent
- If true then card not present is acceptedpublic java.lang.Boolean getCardNotPresent()
public void setDisableRestartTransactionOnFail(java.lang.Boolean disableRestartTransactionOnFail)
disableRestartTransactionOnFail
- If the transaction times out or fails because of decline, do not restart itpublic java.lang.Boolean getDisableRestartTransactionOnFail()
public void setAmount(long amount)
amount
- Total amount paidpublic long getAmount()
public void setCardEntryMethods(java.lang.Integer cardEntryMethods)
cardEntryMethods
- Allowed entry methodspublic java.lang.Integer getCardEntryMethods()
public void setVaultedCard(com.clover.sdk.v3.payments.VaultedCard vaultedCard)
vaultedCard
- A saved cardpublic com.clover.sdk.v3.payments.VaultedCard getVaultedCard()
public void setExternalId(java.lang.String externalId)
externalId
- An id that will be persisted with transactions.public java.lang.String getExternalId()
public abstract com.clover.common2.payments.PayIntent.TransactionType getType()
public void setSignatureThreshold(java.lang.Long signatureThreshold)
signatureThreshold
- The signature threshold settings overridespublic java.lang.Long getSignatureThreshold()
public void setSignatureEntryLocation(com.clover.sdk.v3.payments.DataEntryLocation signatureEntryLocation)
signatureEntryLocation
- The signature entry location settings overridespublic com.clover.sdk.v3.payments.DataEntryLocation getSignatureEntryLocation()
public void setDisableReceiptSelection(java.lang.Boolean disableReceiptSelection)
disableReceiptSelection
- The disable receipt options screen settings overridespublic java.lang.Boolean getDisableReceiptSelection()
public void setDisableDuplicateChecking(java.lang.Boolean disableDuplicateChecking)
disableDuplicateChecking
- The disable duplicate transaction validation settings overridespublic java.lang.Boolean getDisableDuplicateChecking()
public void setAutoAcceptPaymentConfirmations(java.lang.Boolean autoAcceptPaymentConfirmations)
autoAcceptPaymentConfirmations
- The automatically accept payment confirmations settings overridepublic java.lang.Boolean getAutoAcceptPaymentConfirmations()
public void setAutoAcceptSignature(java.lang.Boolean autoAcceptSignature)
autoAcceptSignature
- The automatically accept signature overridepublic java.lang.Boolean getAutoAcceptSignature()