Package com.blockchyp.client.dto
Class CaptureRequest
java.lang.Object
com.blockchyp.client.dto.CaptureRequest
- All Implemented Interfaces:
ICoreRequest,IPreviousTransaction,IRequestAmount,ISubtotals,ITimeoutRequest
public class CaptureRequest
extends Object
implements ITimeoutRequest, ICoreRequest, IPreviousTransaction, IRequestAmount, ISubtotals
The information needed to capture a preauth.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the requested amount.Gets the transaction currency code.Gets the settlement account for merchants with split settlements.Gets an identifier from an external point of sale system.Gets the tax amount.Gets can include a code used to trigger simulated conditions for the purposes of testing and certification.intGets the request timeout in seconds.Gets the tip amount.Gets the ID of the previous transaction being referenced.Gets a user-assigned reference that can be used to recall or reverse transactions.booleanisAsync()Gets defers the response to the transaction and returns immediately.booleanGets that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.booleanGets a flag that applies a discount to negate the surcharge for debit transactions or other surcharge ineligible payment methods.booleanisForce()Gets override any in-progress transactions.booleanisQueue()Gets adds the transaction to the queue and returns immediately.booleanGets a flag to add a surcharge to the transaction to cover credit card fees, if permitted.booleanGets that the request is tax exempt.booleanisTest()Gets whether or not to route transaction to the test gateway.booleanGets whether or not the request should block until all cards have been removed from the card reader.voidSets the requested amount.voidsetAsync(boolean value) Sets defers the response to the transaction and returns immediately.voidsetAutogeneratedRef(boolean value) Sets that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.voidsetCashDiscount(boolean value) Sets a flag that applies a discount to negate the surcharge for debit transactions or other surcharge ineligible payment methods.voidsetCurrencyCode(String value) Sets the transaction currency code.voidsetDestinationAccount(String value) Sets the settlement account for merchants with split settlements.voidsetForce(boolean value) Sets override any in-progress transactions.voidsetOrderRef(String value) Sets an identifier from an external point of sale system.voidsetQueue(boolean value) Sets adds the transaction to the queue and returns immediately.voidsetSurcharge(boolean value) Sets a flag to add a surcharge to the transaction to cover credit card fees, if permitted.voidsetTaxAmount(String value) Sets the tax amount.voidsetTaxExempt(boolean value) Sets that the request is tax exempt.voidsetTest(boolean value) Sets whether or not to route transaction to the test gateway.voidsetTestCase(String value) Sets can include a code used to trigger simulated conditions for the purposes of testing and certification.voidsetTimeout(int value) Sets the request timeout in seconds.voidsetTipAmount(String value) Sets the tip amount.voidsetTransactionId(String value) Sets the ID of the previous transaction being referenced.voidsetTransactionRef(String value) Sets a user-assigned reference that can be used to recall or reverse transactions.voidsetWaitForRemovedCard(boolean value) Sets whether or not the request should block until all cards have been removed from the card reader.
-
Constructor Details
-
CaptureRequest
public CaptureRequest()
-
-
Method Details
-
setTimeout
public void setTimeout(int value) Sets the request timeout in seconds.- Parameters:
value- the request timeout in seconds.
-
getTimeout
public int getTimeout()Gets the request timeout in seconds.- Specified by:
getTimeoutin interfaceITimeoutRequest- Returns:
- the request timeout in seconds.
-
setTest
public void setTest(boolean value) Sets whether or not to route transaction to the test gateway.- Parameters:
value- whether or not to route transaction to the test gateway.
-
isTest
public boolean isTest()Gets whether or not to route transaction to the test gateway.- Specified by:
isTestin interfaceITimeoutRequest- Returns:
- whether or not to route transaction to the test gateway.
-
setTransactionRef
Sets a user-assigned reference that can be used to recall or reverse transactions.- Parameters:
value- a user-assigned reference that can be used to recall or reverse transactions.
-
getTransactionRef
Gets a user-assigned reference that can be used to recall or reverse transactions.- Specified by:
getTransactionRefin interfaceICoreRequest- Returns:
- a user-assigned reference that can be used to recall or reverse transactions.
-
setAutogeneratedRef
public void setAutogeneratedRef(boolean value) Sets that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.- Parameters:
value- that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.
-
isAutogeneratedRef
public boolean isAutogeneratedRef()Gets that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.- Specified by:
isAutogeneratedRefin interfaceICoreRequest- Returns:
- that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.
-
setAsync
public void setAsync(boolean value) Sets defers the response to the transaction and returns immediately.- Parameters:
value- defers the response to the transaction and returns immediately. Callers should retrive the transaction result using the Transaction Status API.
-
isAsync
public boolean isAsync()Gets defers the response to the transaction and returns immediately.- Specified by:
isAsyncin interfaceICoreRequest- Returns:
- defers the response to the transaction and returns immediately. Callers should retrive the transaction result using the Transaction Status API.
-
setQueue
public void setQueue(boolean value) Sets adds the transaction to the queue and returns immediately.- Parameters:
value- adds the transaction to the queue and returns immediately. Callers should retrive the transaction result using the Transaction Status API.
-
isQueue
public boolean isQueue()Gets adds the transaction to the queue and returns immediately.- Specified by:
isQueuein interfaceICoreRequest- Returns:
- adds the transaction to the queue and returns immediately. Callers should retrive the transaction result using the Transaction Status API.
-
setWaitForRemovedCard
public void setWaitForRemovedCard(boolean value) Sets whether or not the request should block until all cards have been removed from the card reader.- Parameters:
value- whether or not the request should block until all cards have been removed from the card reader.
-
isWaitForRemovedCard
public boolean isWaitForRemovedCard()Gets whether or not the request should block until all cards have been removed from the card reader.- Specified by:
isWaitForRemovedCardin interfaceICoreRequest- Returns:
- whether or not the request should block until all cards have been removed from the card reader.
-
setForce
public void setForce(boolean value) Sets override any in-progress transactions.- Parameters:
value- override any in-progress transactions.
-
isForce
public boolean isForce()Gets override any in-progress transactions.- Specified by:
isForcein interfaceICoreRequest- Returns:
- override any in-progress transactions.
-
setOrderRef
Sets an identifier from an external point of sale system.- Parameters:
value- an identifier from an external point of sale system.
-
getOrderRef
Gets an identifier from an external point of sale system.- Specified by:
getOrderRefin interfaceICoreRequest- Returns:
- an identifier from an external point of sale system.
-
setDestinationAccount
Sets the settlement account for merchants with split settlements.- Parameters:
value- the settlement account for merchants with split settlements.
-
getDestinationAccount
Gets the settlement account for merchants with split settlements.- Specified by:
getDestinationAccountin interfaceICoreRequest- Returns:
- the settlement account for merchants with split settlements.
-
setTestCase
Sets can include a code used to trigger simulated conditions for the purposes of testing and certification.- Parameters:
value- can include a code used to trigger simulated conditions for the purposes of testing and certification. Valid for test merchant accounts only.
-
getTestCase
Gets can include a code used to trigger simulated conditions for the purposes of testing and certification.- Specified by:
getTestCasein interfaceICoreRequest- Returns:
- can include a code used to trigger simulated conditions for the purposes of testing and certification. Valid for test merchant accounts only.
-
setTransactionId
Sets the ID of the previous transaction being referenced.- Parameters:
value- the ID of the previous transaction being referenced.
-
getTransactionId
Gets the ID of the previous transaction being referenced.- Specified by:
getTransactionIdin interfaceIPreviousTransaction- Returns:
- the ID of the previous transaction being referenced.
-
setCurrencyCode
Sets the transaction currency code.- Parameters:
value- the transaction currency code.
-
getCurrencyCode
Gets the transaction currency code.- Specified by:
getCurrencyCodein interfaceIRequestAmount- Returns:
- the transaction currency code.
-
setAmount
Sets the requested amount.- Parameters:
value- the requested amount.
-
getAmount
Gets the requested amount.- Specified by:
getAmountin interfaceIRequestAmount- Returns:
- the requested amount.
-
setTaxExempt
public void setTaxExempt(boolean value) Sets that the request is tax exempt.- Parameters:
value- that the request is tax exempt. Only required for tax exempt level 2 processing.
-
isTaxExempt
public boolean isTaxExempt()Gets that the request is tax exempt.- Specified by:
isTaxExemptin interfaceIRequestAmount- Returns:
- that the request is tax exempt. Only required for tax exempt level 2 processing.
-
setSurcharge
public void setSurcharge(boolean value) Sets a flag to add a surcharge to the transaction to cover credit card fees, if permitted.- Parameters:
value- a flag to add a surcharge to the transaction to cover credit card fees, if permitted.
-
isSurcharge
public boolean isSurcharge()Gets a flag to add a surcharge to the transaction to cover credit card fees, if permitted.- Specified by:
isSurchargein interfaceIRequestAmount- Returns:
- a flag to add a surcharge to the transaction to cover credit card fees, if permitted.
-
setCashDiscount
public void setCashDiscount(boolean value) Sets a flag that applies a discount to negate the surcharge for debit transactions or other surcharge ineligible payment methods.- Parameters:
value- a flag that applies a discount to negate the surcharge for debit transactions or other surcharge ineligible payment methods.
-
isCashDiscount
public boolean isCashDiscount()Gets a flag that applies a discount to negate the surcharge for debit transactions or other surcharge ineligible payment methods.- Specified by:
isCashDiscountin interfaceIRequestAmount- Returns:
- a flag that applies a discount to negate the surcharge for debit transactions or other surcharge ineligible payment methods.
-
setTipAmount
Sets the tip amount.- Parameters:
value- the tip amount.
-
getTipAmount
Gets the tip amount.- Specified by:
getTipAmountin interfaceISubtotals- Returns:
- the tip amount.
-
setTaxAmount
Sets the tax amount.- Parameters:
value- the tax amount.
-
getTaxAmount
Gets the tax amount.- Specified by:
getTaxAmountin interfaceISubtotals- Returns:
- the tax amount.
-