Package com.blockchyp.client.dto
Class PaymentLinkRequest
java.lang.Object
com.blockchyp.client.dto.PaymentLinkRequest
- All Implemented Interfaces:
ICoreRequest,IRequestAmount,ITerminalReference,ITimeoutRequest
public class PaymentLinkRequest
extends Object
implements ITimeoutRequest, ICoreRequest, IRequestAmount, ITerminalReference
Creates a payment link.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the requested amount.Gets optional callback url to which transaction responses for this link will be posted.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.intGets number of days until the payment link expires.Gets description explaining the transaction for display to the user.Gets the settlement account for merchants with split settlements.Gets an identifier from an external point of sale system.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.intGets determines the size of the qr code to be returned.Gets subject of the payment email.Gets an alias for a Terms and Conditions template configured in the BlockChyp dashboard.Gets the content of the terms and conditions that will be presented to the user.Gets the name of the Terms and Conditions the user is accepting.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 transaction details for display on the payment email.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 automatically send the link via an email.booleanGets a flag that applies a discount to negate the surcharge for debit transactions or other surcharge ineligible payment methods.booleanGets flags the payment link as cashier facing.booleanisEnroll()Gets that the payment method should be added to the token vault alongside the authorization.booleanGets that the link should be used to enroll a token only.booleanisForce()Gets override any in-progress transactions.booleanGets that the QR Code binary should be returned.booleanisQueue()Gets adds the transaction to the queue and returns immediately.booleanGets forces the terminal cloud connection to be reset while a transactions is in flight.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.voidsetAutoSend(boolean value) Sets automatically send the link via an email.voidsetCallbackUrl(String value) Sets optional callback url to which transaction responses for this link will be posted.voidsetCashDiscount(boolean value) Sets a flag that applies a discount to negate the surcharge for debit transactions or other surcharge ineligible payment methods.voidsetCashier(boolean value) Sets flags the payment link as cashier facing.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.voidsetDaysToExpiration(int value) Sets number of days until the payment link expires.voidsetDescription(String value) Sets description explaining the transaction for display to the user.voidsetDestinationAccount(String value) Sets the settlement account for merchants with split settlements.voidsetEnroll(boolean value) Sets that the payment method should be added to the token vault alongside the authorization.voidsetEnrollOnly(boolean value) Sets that the link should be used to enroll a token only.voidsetForce(boolean value) Sets override any in-progress transactions.voidsetOrderRef(String value) Sets an identifier from an external point of sale system.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.voidsetQrcodeBinary(boolean value) Sets that the QR Code binary should be returned.voidsetQrcodeSize(int value) Sets determines the size of the qr code to be returned.voidsetQueue(boolean value) Sets adds the transaction to the queue and returns immediately.voidsetResetConnection(boolean value) Sets forces the terminal cloud connection to be reset while a transactions is in flight.voidsetSubject(String value) Sets subject of the payment email.voidsetSurcharge(boolean value) Sets a flag to add a surcharge to the transaction to cover credit card fees, if permitted.voidsetTaxExempt(boolean value) Sets that the request is tax exempt.voidsetTcAlias(String value) Sets an alias for a Terms and Conditions template configured in the BlockChyp dashboard.voidsetTcContent(String value) Sets the content of the terms and conditions that will be presented to the user.voidSets the name of the Terms and Conditions the user is accepting.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.voidSets transaction details for display on the payment email.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
-
PaymentLinkRequest
public PaymentLinkRequest()
-
-
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.
-
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.
-
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.
-
setAutoSend
public void setAutoSend(boolean value) Sets automatically send the link via an email.- Parameters:
value- automatically send the link via an email.
-
isAutoSend
public boolean isAutoSend()Gets automatically send the link via an email.- Returns:
- automatically send the link via an email.
-
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.
-
setEnrollOnly
public void setEnrollOnly(boolean value) Sets that the link should be used to enroll a token only.- Parameters:
value- that the link should be used to enroll a token only. Can only be used in cashier mode.
-
isEnrollOnly
public boolean isEnrollOnly()Gets that the link should be used to enroll a token only.- Returns:
- that the link should be used to enroll a token only. Can only be used in cashier mode.
-
setQrcodeBinary
public void setQrcodeBinary(boolean value) Sets that the QR Code binary should be returned.- Parameters:
value- that the QR Code binary should be returned.
-
isQrcodeBinary
public boolean isQrcodeBinary()Gets that the QR Code binary should be returned.- Returns:
- that the QR Code binary should be returned.
-
setQrcodeSize
public void setQrcodeSize(int value) Sets determines the size of the qr code to be returned.- Parameters:
value- determines the size of the qr code to be returned.
-
getQrcodeSize
public int getQrcodeSize()Gets determines the size of the qr code to be returned.- Returns:
- determines the size of the qr code to be returned.
-
setDaysToExpiration
public void setDaysToExpiration(int value) Sets number of days until the payment link expires.- Parameters:
value- number of days until the payment link expires.
-
getDaysToExpiration
public int getDaysToExpiration()Gets number of days until the payment link expires.- Returns:
- number of days until the payment link expires.
-
setCashier
public void setCashier(boolean value) Sets flags the payment link as cashier facing.- Parameters:
value- flags the payment link as cashier facing.
-
isCashier
public boolean isCashier()Gets flags the payment link as cashier facing.- Returns:
- flags the payment link as cashier facing.
-
setDescription
Sets description explaining the transaction for display to the user.- Parameters:
value- description explaining the transaction for display to the user.
-
getDescription
Gets description explaining the transaction for display to the user.- Returns:
- description explaining the transaction for display to the user.
-
setSubject
Sets subject of the payment email.- Parameters:
value- subject of the payment email.
-
getSubject
Gets subject of the payment email.- Returns:
- subject of the payment email.
-
setTransaction
Sets transaction details for display on the payment email.- Parameters:
value- transaction details for display on the payment email.
-
getTransaction
Gets transaction details for display on the payment email.- Returns:
- transaction details for display on the payment email.
-
setCustomer
Sets customer information.- Parameters:
value- customer information.
-
getCustomer
Gets customer information.- Returns:
- customer information.
-
setCallbackUrl
Sets optional callback url to which transaction responses for this link will be posted.- Parameters:
value- optional callback url to which transaction responses for this link will be posted.
-
getCallbackUrl
Gets optional callback url to which transaction responses for this link will be posted.- Returns:
- optional callback url to which transaction responses for this link will be posted.
-
setTcAlias
Sets an alias for a Terms and Conditions template configured in the BlockChyp dashboard.- Parameters:
value- an alias for a Terms and Conditions template configured in the BlockChyp dashboard.
-
getTcAlias
Gets an alias for a Terms and Conditions template configured in the BlockChyp dashboard.- Returns:
- an alias for a Terms and Conditions template configured in the BlockChyp dashboard.
-
setTcName
Sets the name of the Terms and Conditions the user is accepting.- Parameters:
value- the name of the Terms and Conditions the user is accepting.
-
getTcName
Gets the name of the Terms and Conditions the user is accepting.- Returns:
- the name of the Terms and Conditions the user is accepting.
-
setTcContent
Sets the content of the terms and conditions that will be presented to the user.- Parameters:
value- the content of the terms and conditions that will be presented to the user.
-
getTcContent
Gets the content of the terms and conditions that will be presented to the user.- Returns:
- the content of the terms and conditions that will be presented to the user.
-
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.
-