public class CaptureRequest extends Object implements ICoreRequest, IPreviousTransaction, IRequestAmount, ISubtotals
| Constructor and Description |
|---|
CaptureRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAmount()
Gets the requested amount.
|
String |
getCashBackAmount()
Gets the amount of cash back requested.
|
String |
getCurrencyCode()
Gets the transaction currency code.
|
String |
getDestinationAccount()
Gets the settlement account for merchants with split settlements.
|
String |
getEbtEligibleAmount()
Gets the amount of the transaction that should be charged to an EBT card.
|
String |
getFsaEligibleAmount()
Gets the amount of the transaction that should be charged to an FSA card.
|
String |
getHsaEligibleAmount()
Gets the amount of the transaction that should be charged to an HSA card.
|
String |
getOrderRef()
Gets an identifier from an external point of sale system.
|
String |
getTaxAmount()
Gets the tax amount.
|
int |
getTimeout()
Gets the request timeout in seconds.
|
String |
getTipAmount()
Gets the tip amount.
|
String |
getTransactionId()
Gets the ID of the previous transaction being referenced.
|
String |
getTransactionRef()
Gets the transaction reference string assigned to the transaction request.
|
boolean |
isCashDiscount()
Gets a flag that applies a discount to negate the surcharge for debit transactions
or other surcharge ineligible payment methods.
|
boolean |
isSurcharge()
Gets a flag to add a surcharge to the transaction to cover credit card fees, if
permitted.
|
boolean |
isTaxExempt()
Gets that the request is tax exempt.
|
boolean |
isTest()
Gets whether or not to route transaction to the test gateway.
|
void |
setAmount(String value)
Sets the requested amount.
|
void |
setCashBackAmount(String value)
Sets the amount of cash back requested.
|
void |
setCashDiscount(boolean value)
Sets a flag that applies a discount to negate the surcharge for debit transactions
or other surcharge ineligible payment methods.
|
void |
setCurrencyCode(String value)
Sets the transaction currency code.
|
void |
setDestinationAccount(String value)
Sets the settlement account for merchants with split settlements.
|
void |
setEbtEligibleAmount(String value)
Sets the amount of the transaction that should be charged to an EBT card.
|
void |
setFsaEligibleAmount(String value)
Sets the amount of the transaction that should be charged to an FSA card.
|
void |
setHsaEligibleAmount(String value)
Sets the amount of the transaction that should be charged to an HSA card.
|
void |
setOrderRef(String value)
Sets an identifier from an external point of sale system.
|
void |
setSurcharge(boolean value)
Sets a flag to add a surcharge to the transaction to cover credit card fees, if
permitted.
|
void |
setTaxAmount(String value)
Sets the tax amount.
|
void |
setTaxExempt(boolean value)
Sets that the request is tax exempt.
|
void |
setTest(boolean value)
Sets whether or not to route transaction to the test gateway.
|
void |
setTimeout(int value)
Sets the request timeout in seconds.
|
void |
setTipAmount(String value)
Sets the tip amount.
|
void |
setTransactionId(String value)
Sets the ID of the previous transaction being referenced.
|
void |
setTransactionRef(String value)
Sets the transaction reference string assigned to the transaction request.
|
public void setTransactionRef(String value)
value - the transaction reference string assigned to the transaction
request. If no transaction ref was assiged on the request, then the gateway will
randomly generate one.public String getTransactionRef()
getTransactionRef in interface ICoreRequestpublic void setOrderRef(String value)
value - an identifier from an external point of sale system.public String getOrderRef()
getOrderRef in interface ICoreRequestpublic void setDestinationAccount(String value)
value - the settlement account for merchants with split settlements.public String getDestinationAccount()
getDestinationAccount in interface ICoreRequestpublic void setTest(boolean value)
value - whether or not to route transaction to the test gateway.public boolean isTest()
isTest in interface ICoreRequestpublic void setTimeout(int value)
value - the request timeout in seconds.public int getTimeout()
getTimeout in interface ICoreRequestpublic void setTransactionId(String value)
value - the ID of the previous transaction being referenced.public String getTransactionId()
getTransactionId in interface IPreviousTransactionpublic void setCurrencyCode(String value)
value - the transaction currency code.public String getCurrencyCode()
getCurrencyCode in interface IRequestAmountpublic void setAmount(String value)
value - the requested amount.public String getAmount()
getAmount in interface IRequestAmountpublic void setTaxExempt(boolean value)
value - that the request is tax exempt. Only required for tax exempt level 2
processing.public boolean isTaxExempt()
isTaxExempt in interface IRequestAmountpublic void setSurcharge(boolean value)
value - a flag to add a surcharge to the transaction to cover credit card fees,
if permitted.public boolean isSurcharge()
isSurcharge in interface IRequestAmountpublic void setCashDiscount(boolean value)
value - a flag that applies a discount to negate the surcharge for debit
transactions or other surcharge ineligible payment methods.public boolean isCashDiscount()
isCashDiscount in interface IRequestAmountpublic void setTipAmount(String value)
value - the tip amount.public String getTipAmount()
getTipAmount in interface ISubtotalspublic void setTaxAmount(String value)
value - the tax amount.public String getTaxAmount()
getTaxAmount in interface ISubtotalspublic void setCashBackAmount(String value)
value - the amount of cash back requested.public String getCashBackAmount()
getCashBackAmount in interface ISubtotalspublic void setFsaEligibleAmount(String value)
value - the amount of the transaction that should be charged to an FSA card.
This amount may be less than the transaction total, in which case only this amount
will be charged if an FSA card is presented. If the FSA amount is paid on an FSA card,
then the FSA amount authorized will be indicated on the response.public String getFsaEligibleAmount()
getFsaEligibleAmount in interface ISubtotalspublic void setHsaEligibleAmount(String value)
value - the amount of the transaction that should be charged to an HSA card.public String getHsaEligibleAmount()
getHsaEligibleAmount in interface ISubtotalspublic void setEbtEligibleAmount(String value)
value - the amount of the transaction that should be charged to an EBT card.public String getEbtEligibleAmount()
getEbtEligibleAmount in interface ISubtotalsCopyright © 2020 BlockChyp, Inc.. All rights reserved.