Package com.blockchyp.client.dto
Class AuthorizationRequest
java.lang.Object
com.blockchyp.client.dto.AuthorizationRequest
- All Implemented Interfaces:
ICoreRequest,IPaymentMethod,IPreviousTransaction,IRequestAmount,ISignatureRequest,ISubtotals,ITerminalReference,ITimeoutRequest
public class AuthorizationRequest
extends Object
implements ITimeoutRequest, ICoreRequest, IPaymentMethod, IPreviousTransaction, IRequestAmount, ISignatureRequest, ISubtotals, ITerminalReference
An authorization request for a charge, preauth, or reverse transaction.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a an item to display.Gets the cardholder address for use with address verification.Gets a map of alternate currencies and the price in each currency.Gets the requested amount.Gets the cardholder name.Gets designates categories of cards: credit, debit, EBT.Gets the cardholder country.Gets that the transaction should be a cryptocurrency transaction.Gets an optional parameter that can be used to force a crypto transaction onto a level one or level two network.Gets can be used to specify a specific receive address for a crypto transaction.Gets the transaction currency code.Gets customer information.getCvv()Gets the card CVV for use with PAN based transactions.Gets a narrative description of the transaction.Gets the settlement account for merchants with split settlements.Gets three character, numeric, ship-to country code.Gets the duty amount associated with the transaction.Gets the total amount to process as ebt.Gets the card expiration month for use with PAN based transactions.Gets the card expiration year for use with PAN based transactions.Gets the external customer ID associated with the transaction.Gets an optional field that can be used to pass through data to external partners.Gets details for HSA/FSA transactions.Gets the total amount to process as healthcare.getKsn()Gets the key serial number used for DUKPT encryption.Gets an item to display.Gets used to validate online gift card authorizations.Gets the purchase order date.Gets an identifier from an external point of sale system.getPan()Gets the primary account number.Gets a passthrough surcharge amount.Gets can optionally add a label to the payment request if the target cryptocurrency supports labels.Gets can optionally add a message to the payment request if the target cryptocurrency supports labels.Gets designates brands of payment methods: Visa, Discover, etc.Gets the encrypted pin block.Gets the cardholder postal code for use with address verification.Gets the processor ID associated with the transaction.Gets the purchase order number, if known.Gets how partial pennies should be rounded for calculated values like surcharges.Gets the ACH routing number for ACH transactions.Gets nine character postal code for shipping origin addresses.intGets the number of shipments the original authorization will be broken into.intGets which shipment this particular capture is for.Gets the shipping cost associated with the transaction.Gets nine character postal code for shipping destination addresses.Gets a location on the filesystem which a customer signature should be written to.Gets the image format to be used for returning signatures.intGets the width that the signature image should be scaled to, preserving the aspect ratio.Gets the supplier reference number, if known.Gets the tax amount.Gets the name of the target payment terminal.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.getToken()Gets the payment token to be used for this transaction.Gets the total discount amount for the transaction, and will overide additive logic for line item discounts.Gets track 1 magnetic stripe data.Gets track 2 magnetic stripe data.Gets can be used to update a pre-auth to a new amount, sometimes called incremental auth.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 causes auto-reversals on the terminal to be executed asyncronously.booleanGets that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.booleanGets duplicate detection should be bypassed.booleanGets that this transaction will include a card metadata lookup.booleanGets that this transaction should be treated as MOTO with a card on file.booleanGets that cash back should be enabled for supported cards.booleanGets a flag that applies a discount to negate the surcharge for debit transactions or other surcharge ineligible payment methods.booleanisCit()Gets manually sets the CIT (Customer Initiated Transaction) flag.booleanGets whether or not signature prompt should be skipped on the terminal.booleanisEnroll()Gets that the payment method should be added to the token vault alongside the authorization.booleanisForce()Gets override any in-progress transactions.booleanGets marks a transaction as HSA/FSA.booleanGets that the payment entry method is a manual keyed transaction.booleanisMit()Gets manually sets the MIT (Merchant Initiated Transaction) flag.booleanGets that the terminal should request a tip from the user before starting the transaction.booleanisQueue()Gets adds the transaction to the queue and returns immediately.booleanGets that this transaction should be treated as a recurring transaction.booleanGets forces the terminal cloud connection to be reset while a transactions is in flight.booleanGets instructs the terminal to simulate a post auth chip rejection that would trigger an automatic reversal.booleanGets instructs the terminal to simulate an out of order automatic reversal.booleanGets that this transaction should be treated as a subscription recurring transaction.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.voidsetAddress(String value) Sets the cardholder address for use with address verification.voidsetAltPrices(Map value) Sets a map of alternate currencies and the price in each currency.voidSets the requested amount.voidsetAsync(boolean value) Sets defers the response to the transaction and returns immediately.voidsetAsyncReversals(boolean value) Sets causes auto-reversals on the terminal to be executed asyncronously.voidsetAutogeneratedRef(boolean value) Sets that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.voidsetBypassDupeFilter(boolean value) Sets duplicate detection should be bypassed.voidsetCardholderName(String value) Sets the cardholder name.voidsetCardMetadataLookup(boolean value) Sets that this transaction will include a card metadata lookup.voidsetCardOnFile(boolean value) Sets that this transaction should be treated as MOTO with a card on file.voidsetCardType(CardType value) Sets designates categories of cards: credit, debit, EBT.voidsetCashBackEnabled(boolean value) Sets that cash back should be enabled for supported cards.voidsetCashDiscount(boolean value) Sets a flag that applies a discount to negate the surcharge for debit transactions or other surcharge ineligible payment methods.voidsetCit(boolean value) Sets manually sets the CIT (Customer Initiated Transaction) flag.voidsetCountry(String value) Sets the cardholder country.voidsetCryptocurrency(String value) Sets that the transaction should be a cryptocurrency transaction.voidsetCryptoNetwork(String value) Sets an optional parameter that can be used to force a crypto transaction onto a level one or level two network.voidsetCryptoReceiveAddress(String value) Sets can be used to specify a specific receive address for a crypto transaction.voidsetCurrencyCode(String value) Sets the transaction currency code.voidsetCustomer(Customer value) Sets customer information.voidSets the card CVV for use with PAN based transactions.voidsetDescription(String value) Sets a narrative description of the transaction.voidsetDestinationAccount(String value) Sets the settlement account for merchants with split settlements.voidsetDestinationCountryCode(String value) Sets three character, numeric, ship-to country code.voidsetDisableSignature(boolean value) Sets whether or not signature prompt should be skipped on the terminal.voidsetDutyAmount(String value) Sets the duty amount associated with the transaction.voidsetEbtTotal(String value) Sets the total amount to process as ebt.voidsetEnroll(boolean value) Sets that the payment method should be added to the token vault alongside the authorization.voidsetExpMonth(String value) Sets the card expiration month for use with PAN based transactions.voidsetExpYear(String value) Sets the card expiration year for use with PAN based transactions.voidsetExternalCustomerId(String value) Sets the external customer ID associated with the transaction.voidsetExternalPartnerMetadata(String value) Sets an optional field that can be used to pass through data to external partners.voidsetForce(boolean value) Sets override any in-progress transactions.voidsetHealthcare(boolean value) Sets marks a transaction as HSA/FSA.voidSets details for HSA/FSA transactions.voidsetHealthcareTotal(String value) Sets the total amount to process as healthcare.voidSets the key serial number used for DUKPT encryption.voidSets an item to display.voidsetManualEntry(boolean value) Sets that the payment entry method is a manual keyed transaction.voidsetMit(boolean value) Sets manually sets the MIT (Merchant Initiated Transaction) flag.voidsetOnlineAuthCode(String value) Sets used to validate online gift card authorizations.voidsetOrderDate(Date value) Sets the purchase order date.voidsetOrderRef(String value) Sets an identifier from an external point of sale system.voidSets the primary account number.voidsetPassthroughSurcharge(String value) Sets a passthrough surcharge amount.voidsetPaymentRequestLabel(String value) Sets can optionally add a label to the payment request if the target cryptocurrency supports labels.voidsetPaymentRequestMessage(String value) Sets can optionally add a message to the payment request if the target cryptocurrency supports labels.voidsetPaymentType(String value) Sets designates brands of payment methods: Visa, Discover, etc.voidsetPinBlock(String value) Sets the encrypted pin block.voidsetPostalCode(String value) Sets the cardholder postal code for use with address verification.voidsetProcessorId(String value) Sets the processor ID associated with the transaction.voidsetPromptForTip(boolean value) Sets that the terminal should request a tip from the user before starting the transaction.voidsetPurchaseOrderNumber(String value) Sets the purchase order number, if known.voidsetQueue(boolean value) Sets adds the transaction to the queue and returns immediately.voidsetRecurring(boolean value) Sets that this transaction should be treated as a recurring transaction.voidsetResetConnection(boolean value) Sets forces the terminal cloud connection to be reset while a transactions is in flight.voidsetRoundingMode(RoundingMode value) Sets how partial pennies should be rounded for calculated values like surcharges.voidsetRoutingNumber(String value) Sets the ACH routing number for ACH transactions.voidsetShipFromPostalCode(String value) Sets nine character postal code for shipping origin addresses.voidsetShipmentCount(int value) Sets the number of shipments the original authorization will be broken into.voidsetShipmentNumber(int value) Sets which shipment this particular capture is for.voidsetShippingAmount(String value) Sets the shipping cost associated with the transaction.voidsetShipToPostalCode(String value) Sets nine character postal code for shipping destination addresses.voidsetSigFile(String value) Sets a location on the filesystem which a customer signature should be written to.voidsetSigFormat(SignatureFormat value) Sets the image format to be used for returning signatures.voidsetSigWidth(int value) Sets the width that the signature image should be scaled to, preserving the aspect ratio.voidsetSimulateChipRejection(boolean value) Sets instructs the terminal to simulate a post auth chip rejection that would trigger an automatic reversal.voidsetSimulateOutOfOrderReversal(boolean value) Sets instructs the terminal to simulate an out of order automatic reversal.voidsetSubscription(boolean value) Sets that this transaction should be treated as a subscription recurring transaction.voidsetSupplierReferenceNumber(String value) Sets the supplier reference number, if known.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.voidsetTerminalName(String value) Sets the name of the target payment terminal.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.voidSets the payment token to be used for this transaction.voidsetTotalDiscountAmount(String value) Sets the total discount amount for the transaction, and will overide additive logic for line item discounts.voidSets track 1 magnetic stripe data.voidSets track 2 magnetic stripe data.voidsetTransactionId(String value) Sets can be used to update a pre-auth to a new amount, sometimes called incremental auth.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
-
AuthorizationRequest
public AuthorizationRequest()
-
-
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.
-
setToken
Sets the payment token to be used for this transaction.- Parameters:
value- the payment token to be used for this transaction. This should be used for recurring transactions.
-
getToken
Gets the payment token to be used for this transaction.- Specified by:
getTokenin interfaceIPaymentMethod- Returns:
- the payment token to be used for this transaction. This should be used for recurring transactions.
-
setTrack1
Sets track 1 magnetic stripe data.- Parameters:
value- track 1 magnetic stripe data.
-
getTrack1
Gets track 1 magnetic stripe data.- Specified by:
getTrack1in interfaceIPaymentMethod- Returns:
- track 1 magnetic stripe data.
-
setTrack2
Sets track 2 magnetic stripe data.- Parameters:
value- track 2 magnetic stripe data.
-
getTrack2
Gets track 2 magnetic stripe data.- Specified by:
getTrack2in interfaceIPaymentMethod- Returns:
- track 2 magnetic stripe data.
-
setPan
Sets the primary account number.- Parameters:
value- the primary account number. We recommend using the terminal or e-commerce tokenization libraries instead of passing account numbers in directly, as this would put your application in PCI scope.
-
getPan
Gets the primary account number.- Specified by:
getPanin interfaceIPaymentMethod- Returns:
- the primary account number. We recommend using the terminal or e-commerce tokenization libraries instead of passing account numbers in directly, as this would put your application in PCI scope.
-
setRoutingNumber
Sets the ACH routing number for ACH transactions.- Parameters:
value- the ACH routing number for ACH transactions.
-
getRoutingNumber
Gets the ACH routing number for ACH transactions.- Specified by:
getRoutingNumberin interfaceIPaymentMethod- Returns:
- the ACH routing number for ACH transactions.
-
setCardholderName
Sets the cardholder name.- Parameters:
value- the cardholder name. Only required if the request includes a primary account number or track data.
-
getCardholderName
Gets the cardholder name.- Specified by:
getCardholderNamein interfaceIPaymentMethod- Returns:
- the cardholder name. Only required if the request includes a primary account number or track data.
-
setExpMonth
Sets the card expiration month for use with PAN based transactions.- Parameters:
value- the card expiration month for use with PAN based transactions.
-
getExpMonth
Gets the card expiration month for use with PAN based transactions.- Specified by:
getExpMonthin interfaceIPaymentMethod- Returns:
- the card expiration month for use with PAN based transactions.
-
setExpYear
Sets the card expiration year for use with PAN based transactions.- Parameters:
value- the card expiration year for use with PAN based transactions.
-
getExpYear
Gets the card expiration year for use with PAN based transactions.- Specified by:
getExpYearin interfaceIPaymentMethod- Returns:
- the card expiration year for use with PAN based transactions.
-
setCvv
Sets the card CVV for use with PAN based transactions.- Parameters:
value- the card CVV for use with PAN based transactions.
-
getCvv
Gets the card CVV for use with PAN based transactions.- Specified by:
getCvvin interfaceIPaymentMethod- Returns:
- the card CVV for use with PAN based transactions.
-
setAddress
Sets the cardholder address for use with address verification.- Parameters:
value- the cardholder address for use with address verification.
-
getAddress
Gets the cardholder address for use with address verification.- Specified by:
getAddressin interfaceIPaymentMethod- Returns:
- the cardholder address for use with address verification.
-
setPostalCode
Sets the cardholder postal code for use with address verification.- Parameters:
value- the cardholder postal code for use with address verification.
-
getPostalCode
Gets the cardholder postal code for use with address verification.- Specified by:
getPostalCodein interfaceIPaymentMethod- Returns:
- the cardholder postal code for use with address verification.
-
setCountry
Sets the cardholder country.- Parameters:
value- the cardholder country.
-
getCountry
Gets the cardholder country.- Specified by:
getCountryin interfaceIPaymentMethod- Returns:
- the cardholder country.
-
setManualEntry
public void setManualEntry(boolean value) Sets that the payment entry method is a manual keyed transaction.- Parameters:
value- that the payment entry method is a manual keyed transaction. If this is true, no other payment method will be accepted.
-
isManualEntry
public boolean isManualEntry()Gets that the payment entry method is a manual keyed transaction.- Specified by:
isManualEntryin interfaceIPaymentMethod- Returns:
- that the payment entry method is a manual keyed transaction. If this is true, no other payment method will be accepted.
-
setKsn
Sets the key serial number used for DUKPT encryption.- Parameters:
value- the key serial number used for DUKPT encryption.
-
getKsn
Gets the key serial number used for DUKPT encryption.- Specified by:
getKsnin interfaceIPaymentMethod- Returns:
- the key serial number used for DUKPT encryption.
-
setPinBlock
Sets the encrypted pin block.- Parameters:
value- the encrypted pin block.
-
getPinBlock
Gets the encrypted pin block.- Specified by:
getPinBlockin interfaceIPaymentMethod- Returns:
- the encrypted pin block.
-
setCardType
Sets designates categories of cards: credit, debit, EBT.- Parameters:
value- designates categories of cards: credit, debit, EBT.
-
getCardType
Gets designates categories of cards: credit, debit, EBT.- Specified by:
getCardTypein interfaceIPaymentMethod- Returns:
- designates categories of cards: credit, debit, EBT.
-
setPaymentType
Sets designates brands of payment methods: Visa, Discover, etc.- Parameters:
value- designates brands of payment methods: Visa, Discover, etc.
-
getPaymentType
Gets designates brands of payment methods: Visa, Discover, etc.- Specified by:
getPaymentTypein interfaceIPaymentMethod- Returns:
- designates brands of payment methods: Visa, Discover, etc.
-
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.
-
setSigFile
Sets a location on the filesystem which a customer signature should be written to.- Parameters:
value- a location on the filesystem which a customer signature should be written to.
-
getSigFile
Gets a location on the filesystem which a customer signature should be written to.- Specified by:
getSigFilein interfaceISignatureRequest- Returns:
- a location on the filesystem which a customer signature should be written to.
-
setSigFormat
Sets the image format to be used for returning signatures.- Parameters:
value- the image format to be used for returning signatures.
-
getSigFormat
Gets the image format to be used for returning signatures.- Specified by:
getSigFormatin interfaceISignatureRequest- Returns:
- the image format to be used for returning signatures.
-
setSigWidth
public void setSigWidth(int value) Sets the width that the signature image should be scaled to, preserving the aspect ratio.- Parameters:
value- the width that the signature image should be scaled to, preserving the aspect ratio. If not provided, the signature is returned in the terminal's max resolution.
-
getSigWidth
public int getSigWidth()Gets the width that the signature image should be scaled to, preserving the aspect ratio.- Specified by:
getSigWidthin interfaceISignatureRequest- Returns:
- the width that the signature image should be scaled to, preserving the aspect ratio. If not provided, the signature is returned in the terminal's max resolution.
-
setDisableSignature
public void setDisableSignature(boolean value) Sets whether or not signature prompt should be skipped on the terminal.- Parameters:
value- whether or not signature prompt should be skipped on the terminal. The terminal will indicate whether or not a signature is required by the card in the receipt suggestions response.
-
isDisableSignature
public boolean isDisableSignature()Gets whether or not signature prompt should be skipped on the terminal.- Specified by:
isDisableSignaturein interfaceISignatureRequest- Returns:
- whether or not signature prompt should be skipped on the terminal. The terminal will indicate whether or not a signature is required by the card in the receipt suggestions response.
-
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.
-
setTerminalName
Sets the name of the target payment terminal.- Parameters:
value- the name of the target payment terminal.
-
getTerminalName
Gets the name of the target payment terminal.- Specified by:
getTerminalNamein interfaceITerminalReference- Returns:
- the name of the target payment terminal.
-
setResetConnection
public void setResetConnection(boolean value) Sets forces the terminal cloud connection to be reset while a transactions is in flight.- Parameters:
value- forces the terminal cloud connection to be reset while a transactions is in flight. This is a diagnostic settings that can be used only for test transactions.
-
isResetConnection
public boolean isResetConnection()Gets forces the terminal cloud connection to be reset while a transactions is in flight.- Specified by:
isResetConnectionin interfaceITerminalReference- Returns:
- forces the terminal cloud connection to be reset while a transactions is in flight. This is a diagnostic settings that can be used only for test transactions.
-
setTransactionId
Sets can be used to update a pre-auth to a new amount, sometimes called incremental auth.- Parameters:
value- can be used to update a pre-auth to a new amount, sometimes called incremental auth.
-
getTransactionId
Gets can be used to update a pre-auth to a new amount, sometimes called incremental auth.- Specified by:
getTransactionIdin interfaceIPreviousTransaction- Returns:
- can be used to update a pre-auth to a new amount, sometimes called incremental auth.
-
setOnlineAuthCode
Sets used to validate online gift card authorizations.- Parameters:
value- used to validate online gift card authorizations.
-
getOnlineAuthCode
Gets used to validate online gift card authorizations.- Returns:
- used to validate online gift card authorizations.
-
setEnroll
public void setEnroll(boolean value) Sets that the payment method should be added to the token vault alongside the authorization.- Parameters:
value- that the payment method should be added to the token vault alongside the authorization.
-
isEnroll
public boolean isEnroll()Gets that the payment method should be added to the token vault alongside the authorization.- Returns:
- that the payment method should be added to the token vault alongside the authorization.
-
setBypassDupeFilter
public void setBypassDupeFilter(boolean value) Sets duplicate detection should be bypassed.- Parameters:
value- duplicate detection should be bypassed.
-
isBypassDupeFilter
public boolean isBypassDupeFilter()Gets duplicate detection should be bypassed.- Returns:
- duplicate detection should be bypassed.
-
setDescription
Sets a narrative description of the transaction.- Parameters:
value- a narrative description of the transaction.
-
getDescription
Gets a narrative description of the transaction.- Returns:
- a narrative description of the transaction.
-
setPromptForTip
public void setPromptForTip(boolean value) Sets that the terminal should request a tip from the user before starting the transaction.- Parameters:
value- that the terminal should request a tip from the user before starting the transaction.
-
isPromptForTip
public boolean isPromptForTip()Gets that the terminal should request a tip from the user before starting the transaction.- Returns:
- that the terminal should request a tip from the user before starting the transaction.
-
setCashBackEnabled
public void setCashBackEnabled(boolean value) Sets that cash back should be enabled for supported cards.- Parameters:
value- that cash back should be enabled for supported cards.
-
isCashBackEnabled
public boolean isCashBackEnabled()Gets that cash back should be enabled for supported cards.- Returns:
- that cash back should be enabled for supported cards.
-
setCardOnFile
public void setCardOnFile(boolean value) Sets that this transaction should be treated as MOTO with a card on file.- Parameters:
value- that this transaction should be treated as MOTO with a card on file.
-
isCardOnFile
public boolean isCardOnFile()Gets that this transaction should be treated as MOTO with a card on file.- Returns:
- that this transaction should be treated as MOTO with a card on file.
-
setRecurring
public void setRecurring(boolean value) Sets that this transaction should be treated as a recurring transaction.- Parameters:
value- that this transaction should be treated as a recurring transaction.
-
isRecurring
public boolean isRecurring()Gets that this transaction should be treated as a recurring transaction.- Returns:
- that this transaction should be treated as a recurring transaction.
-
setCit
public void setCit(boolean value) Sets manually sets the CIT (Customer Initiated Transaction) flag.- Parameters:
value- manually sets the CIT (Customer Initiated Transaction) flag.
-
isCit
public boolean isCit()Gets manually sets the CIT (Customer Initiated Transaction) flag.- Returns:
- manually sets the CIT (Customer Initiated Transaction) flag.
-
setMit
public void setMit(boolean value) Sets manually sets the MIT (Merchant Initiated Transaction) flag.- Parameters:
value- manually sets the MIT (Merchant Initiated Transaction) flag.
-
isMit
public boolean isMit()Gets manually sets the MIT (Merchant Initiated Transaction) flag.- Returns:
- manually sets the MIT (Merchant Initiated Transaction) flag.
-
setSubscription
public void setSubscription(boolean value) Sets that this transaction should be treated as a subscription recurring transaction.- Parameters:
value- that this transaction should be treated as a subscription recurring transaction.
-
isSubscription
public boolean isSubscription()Gets that this transaction should be treated as a subscription recurring transaction.- Returns:
- that this transaction should be treated as a subscription recurring transaction.
-
setPurchaseOrderNumber
Sets the purchase order number, if known.- Parameters:
value- the purchase order number, if known.
-
getPurchaseOrderNumber
Gets the purchase order number, if known.- Returns:
- the purchase order number, if known.
-
setSupplierReferenceNumber
Sets the supplier reference number, if known.- Parameters:
value- the supplier reference number, if known.
-
getSupplierReferenceNumber
Gets the supplier reference number, if known.- Returns:
- the supplier reference number, if known.
-
setLineItems
Sets an item to display.- Parameters:
value- an item to display. Can be overwritten or appended, based on the request type.
-
getLineItems
Gets an item to display.- Returns:
- an item to display. Can be overwritten or appended, based on the request type.
-
setAltPrices
Sets a map of alternate currencies and the price in each currency.- Parameters:
value- a map of alternate currencies and the price in each currency. Use only if you want to set your own exchange rate for a crypto transaction.
-
getAltPrices
Gets a map of alternate currencies and the price in each currency.- Returns:
- a map of alternate currencies and the price in each currency. Use only if you want to set your own exchange rate for a crypto transaction.
-
setCustomer
Sets customer information.- Parameters:
value- customer information.
-
getCustomer
Gets customer information.- Returns:
- customer information.
-
setRoundingMode
Sets how partial pennies should be rounded for calculated values like surcharges.- Parameters:
value- how partial pennies should be rounded for calculated values like surcharges. Rounding up is the default behavior.
-
getRoundingMode
Gets how partial pennies should be rounded for calculated values like surcharges.- Returns:
- how partial pennies should be rounded for calculated values like surcharges. Rounding up is the default behavior.
-
setHealthcareMetadata
Sets details for HSA/FSA transactions.- Parameters:
value- details for HSA/FSA transactions.
-
getHealthcareMetadata
Gets details for HSA/FSA transactions.- Returns:
- details for HSA/FSA transactions.
-
setCryptocurrency
Sets that the transaction should be a cryptocurrency transaction.- Parameters:
value- that the transaction should be a cryptocurrency transaction. Value should be a crypto currency code (ETH, BTC) or ANY to prompt the user to choose from supported cryptocurrencies.
-
getCryptocurrency
Gets that the transaction should be a cryptocurrency transaction.- Returns:
- that the transaction should be a cryptocurrency transaction. Value should be a crypto currency code (ETH, BTC) or ANY to prompt the user to choose from supported cryptocurrencies.
-
setCryptoNetwork
Sets an optional parameter that can be used to force a crypto transaction onto a level one or level two network.- Parameters:
value- an optional parameter that can be used to force a crypto transaction onto a level one or level two network. Valid values are L1 and L2. Defaults to L1.
-
getCryptoNetwork
Gets an optional parameter that can be used to force a crypto transaction onto a level one or level two network.- Returns:
- an optional parameter that can be used to force a crypto transaction onto a level one or level two network. Valid values are L1 and L2. Defaults to L1.
-
setCryptoReceiveAddress
Sets can be used to specify a specific receive address for a crypto transaction.- Parameters:
value- can be used to specify a specific receive address for a crypto transaction. Disabled by default. This should only be used by sophisticated users with access to properly configured hot wallets.
-
getCryptoReceiveAddress
Gets can be used to specify a specific receive address for a crypto transaction.- Returns:
- can be used to specify a specific receive address for a crypto transaction. Disabled by default. This should only be used by sophisticated users with access to properly configured hot wallets.
-
setPaymentRequestLabel
Sets can optionally add a label to the payment request if the target cryptocurrency supports labels.- Parameters:
value- can optionally add a label to the payment request if the target cryptocurrency supports labels. Defaults to the merchant's DBA Name.
-
getPaymentRequestLabel
Gets can optionally add a label to the payment request if the target cryptocurrency supports labels.- Returns:
- can optionally add a label to the payment request if the target cryptocurrency supports labels. Defaults to the merchant's DBA Name.
-
setPaymentRequestMessage
Sets can optionally add a message to the payment request if the target cryptocurrency supports labels.- Parameters:
value- can optionally add a message to the payment request if the target cryptocurrency supports labels. Defaults to empty.
-
getPaymentRequestMessage
Gets can optionally add a message to the payment request if the target cryptocurrency supports labels.- Returns:
- can optionally add a message to the payment request if the target cryptocurrency supports labels. Defaults to empty.
-
setSimulateChipRejection
public void setSimulateChipRejection(boolean value) Sets instructs the terminal to simulate a post auth chip rejection that would trigger an automatic reversal.- Parameters:
value- instructs the terminal to simulate a post auth chip rejection that would trigger an automatic reversal.
-
isSimulateChipRejection
public boolean isSimulateChipRejection()Gets instructs the terminal to simulate a post auth chip rejection that would trigger an automatic reversal.- Returns:
- instructs the terminal to simulate a post auth chip rejection that would trigger an automatic reversal.
-
setSimulateOutOfOrderReversal
public void setSimulateOutOfOrderReversal(boolean value) Sets instructs the terminal to simulate an out of order automatic reversal.- Parameters:
value- instructs the terminal to simulate an out of order automatic reversal.
-
isSimulateOutOfOrderReversal
public boolean isSimulateOutOfOrderReversal()Gets instructs the terminal to simulate an out of order automatic reversal.- Returns:
- instructs the terminal to simulate an out of order automatic reversal.
-
setAsyncReversals
public void setAsyncReversals(boolean value) Sets causes auto-reversals on the terminal to be executed asyncronously.- Parameters:
value- causes auto-reversals on the terminal to be executed asyncronously. Use with caution and in conjunction with the transaction status API.
-
isAsyncReversals
public boolean isAsyncReversals()Gets causes auto-reversals on the terminal to be executed asyncronously.- Returns:
- causes auto-reversals on the terminal to be executed asyncronously. Use with caution and in conjunction with the transaction status API.
-
setPassthroughSurcharge
Sets a passthrough surcharge amount.- Parameters:
value- a passthrough surcharge amount. This surcharge amount will be passed directly to the gateway and is not directly calculated.
-
getPassthroughSurcharge
Gets a passthrough surcharge amount.- Returns:
- a passthrough surcharge amount. This surcharge amount will be passed directly to the gateway and is not directly calculated.
-
setHealthcare
public void setHealthcare(boolean value) Sets marks a transaction as HSA/FSA.- Parameters:
value- marks a transaction as HSA/FSA.
-
isHealthcare
public boolean isHealthcare()Gets marks a transaction as HSA/FSA.- Returns:
- marks a transaction as HSA/FSA.
-
setHealthcareTotal
Sets the total amount to process as healthcare.- Parameters:
value- the total amount to process as healthcare.
-
getHealthcareTotal
Gets the total amount to process as healthcare.- Returns:
- the total amount to process as healthcare.
-
setEbtTotal
Sets the total amount to process as ebt.- Parameters:
value- the total amount to process as ebt.
-
getEbtTotal
Gets the total amount to process as ebt.- Returns:
- the total amount to process as ebt.
-
setCardMetadataLookup
public void setCardMetadataLookup(boolean value) Sets that this transaction will include a card metadata lookup.- Parameters:
value- that this transaction will include a card metadata lookup.
-
isCardMetadataLookup
public boolean isCardMetadataLookup()Gets that this transaction will include a card metadata lookup.- Returns:
- that this transaction will include a card metadata lookup.
-
setTotalDiscountAmount
Sets the total discount amount for the transaction, and will overide additive logic for line item discounts.- Parameters:
value- the total discount amount for the transaction, and will overide additive logic for line item discounts.
-
getTotalDiscountAmount
Gets the total discount amount for the transaction, and will overide additive logic for line item discounts.- Returns:
- the total discount amount for the transaction, and will overide additive logic for line item discounts.
-
setShippingAmount
Sets the shipping cost associated with the transaction.- Parameters:
value- the shipping cost associated with the transaction.
-
getShippingAmount
Gets the shipping cost associated with the transaction.- Returns:
- the shipping cost associated with the transaction.
-
setDutyAmount
Sets the duty amount associated with the transaction.- Parameters:
value- the duty amount associated with the transaction.
-
getDutyAmount
Gets the duty amount associated with the transaction.- Returns:
- the duty amount associated with the transaction.
-
setProcessorId
Sets the processor ID associated with the transaction.- Parameters:
value- the processor ID associated with the transaction.
-
getProcessorId
Gets the processor ID associated with the transaction.- Returns:
- the processor ID associated with the transaction.
-
setExternalCustomerId
Sets the external customer ID associated with the transaction.- Parameters:
value- the external customer ID associated with the transaction.
-
getExternalCustomerId
Gets the external customer ID associated with the transaction.- Returns:
- the external customer ID associated with the transaction.
-
setDestinationCountryCode
Sets three character, numeric, ship-to country code.- Parameters:
value- three character, numeric, ship-to country code. Defaults to '840' (USA) if not specified.
-
getDestinationCountryCode
Gets three character, numeric, ship-to country code.- Returns:
- three character, numeric, ship-to country code. Defaults to '840' (USA) if not specified.
-
setShipFromPostalCode
Sets nine character postal code for shipping origin addresses.- Parameters:
value- nine character postal code for shipping origin addresses. For US addresses, this is a 5+4 ZIP or five digit ZIP.
-
getShipFromPostalCode
Gets nine character postal code for shipping origin addresses.- Returns:
- nine character postal code for shipping origin addresses. For US addresses, this is a 5+4 ZIP or five digit ZIP.
-
setShipToPostalCode
Sets nine character postal code for shipping destination addresses.- Parameters:
value- nine character postal code for shipping destination addresses. For US addresses, this is a 5+4 ZIP or five digit ZIP.
-
getShipToPostalCode
Gets nine character postal code for shipping destination addresses.- Returns:
- nine character postal code for shipping destination addresses. For US addresses, this is a 5+4 ZIP or five digit ZIP.
-
setOrderDate
Sets the purchase order date.- Parameters:
value- the purchase order date.
-
getOrderDate
Gets the purchase order date.- Returns:
- the purchase order date.
-
setShipmentCount
public void setShipmentCount(int value) Sets the number of shipments the original authorization will be broken into.- Parameters:
value- the number of shipments the original authorization will be broken into.
-
getShipmentCount
public int getShipmentCount()Gets the number of shipments the original authorization will be broken into.- Returns:
- the number of shipments the original authorization will be broken into.
-
setShipmentNumber
public void setShipmentNumber(int value) Sets which shipment this particular capture is for.- Parameters:
value- which shipment this particular capture is for.
-
getShipmentNumber
public int getShipmentNumber()Gets which shipment this particular capture is for.- Returns:
- which shipment this particular capture is for.
-
setExternalPartnerMetadata
Sets an optional field that can be used to pass through data to external partners.- Parameters:
value- an optional field that can be used to pass through data to external partners.
-
getExternalPartnerMetadata
Gets an optional field that can be used to pass through data to external partners.- Returns:
- an optional field that can be used to pass through data to external partners.
-
addLineItem
Adds a an item to display.- Parameters:
value- an item to display. Can be overwritten or appended, based on the request type.
-