public class CaptureRequest extends Object implements ITimeoutRequest, ICoreRequest, IPreviousTransaction, IRequestAmount, ISubtotals
Constructor and Description |
---|
CaptureRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getAmount()
Gets the requested amount.
|
String |
getCurrencyCode()
Gets the transaction currency code.
|
String |
getDestinationAccount()
Gets the settlement account for merchants with split settlements.
|
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 a user-assigned reference that can be used to recall or reverse transactions.
|
boolean |
isAsync()
Gets defers the response to the transaction and returns immediately.
|
boolean |
isCashDiscount()
Gets a flag that applies a discount to negate the surcharge for debit transactions
or other surcharge ineligible payment methods.
|
boolean |
isForce()
Gets override any in-progress transactions.
|
boolean |
isQueue()
Gets adds the transaction to the queue and returns immediately.
|
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.
|
boolean |
isWaitForRemovedCard()
Gets whether or not the request should block until all cards have been removed from
the card reader.
|
void |
setAmount(String value)
Sets the requested amount.
|
void |
setAsync(boolean value)
Sets defers the response to the transaction and returns immediately.
|
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 |
setForce(boolean value)
Sets override any in-progress transactions.
|
void |
setOrderRef(String value)
Sets an identifier from an external point of sale system.
|
void |
setQueue(boolean value)
Sets adds the transaction to the queue and returns immediately.
|
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 a user-assigned reference that can be used to recall or reverse transactions.
|
void |
setWaitForRemovedCard(boolean value)
Sets whether or not the request should block until all cards have been removed from
the card reader.
|
public void setTimeout(int value)
value
- the request timeout in seconds.public int getTimeout()
getTimeout
in interface ITimeoutRequest
public void setTest(boolean value)
value
- whether or not to route transaction to the test gateway.public boolean isTest()
isTest
in interface ITimeoutRequest
public void setTransactionRef(String value)
value
- a user-assigned reference that can be used to recall or reverse
transactions.public String getTransactionRef()
getTransactionRef
in interface ICoreRequest
public void setAsync(boolean value)
value
- defers the response to the transaction and returns immediately.
Callers should retrive the transaction result using the Transaction Status API.public boolean isAsync()
isAsync
in interface ICoreRequest
public void setQueue(boolean value)
value
- adds the transaction to the queue and returns immediately. Callers
should retrive the transaction result using the Transaction Status API.public boolean isQueue()
isQueue
in interface ICoreRequest
public void setWaitForRemovedCard(boolean value)
value
- whether or not the request should block until all cards have been
removed from the card reader.public boolean isWaitForRemovedCard()
isWaitForRemovedCard
in interface ICoreRequest
public void setForce(boolean value)
value
- override any in-progress transactions.public boolean isForce()
isForce
in interface ICoreRequest
public void setOrderRef(String value)
value
- an identifier from an external point of sale system.public String getOrderRef()
getOrderRef
in interface ICoreRequest
public void setDestinationAccount(String value)
value
- the settlement account for merchants with split settlements.public String getDestinationAccount()
getDestinationAccount
in interface ICoreRequest
public void setTransactionId(String value)
value
- the ID of the previous transaction being referenced.public String getTransactionId()
getTransactionId
in interface IPreviousTransaction
public void setCurrencyCode(String value)
value
- the transaction currency code.public String getCurrencyCode()
getCurrencyCode
in interface IRequestAmount
public void setAmount(String value)
value
- the requested amount.public String getAmount()
getAmount
in interface IRequestAmount
public 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 IRequestAmount
public 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 IRequestAmount
public 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 IRequestAmount
public void setTipAmount(String value)
value
- the tip amount.public String getTipAmount()
getTipAmount
in interface ISubtotals
public void setTaxAmount(String value)
value
- the tax amount.public String getTaxAmount()
getTaxAmount
in interface ISubtotals
Copyright © 2022 BlockChyp, Inc.. All rights reserved.