public class PaymentLinkRequest extends Object implements ICoreRequest, IRequestAmount, ITerminalReference
| Constructor and Description |
|---|
PaymentLinkRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAmount()
Gets the requested amount.
|
String |
getCallbackUrl()
Gets optional callback url to which transaction responses for this link will be
posted.
|
String |
getCurrencyCode()
Gets the transaction currency code.
|
Customer |
getCustomer()
Gets customer information.
|
String |
getDescription()
Gets description explaining the transaction for display to the user.
|
String |
getDestinationAccount()
Gets the settlement account for merchants with split settlements.
|
String |
getOrderRef()
Gets an identifier from an external point of sale system.
|
String |
getSubject()
Gets subject of the payment email.
|
String |
getTerminalName()
Gets the name of the target payment terminal.
|
int |
getTimeout()
Gets the request timeout in seconds.
|
TransactionDisplayTransaction |
getTransaction()
Gets transaction details for display on the payment email.
|
String |
getTransactionRef()
Gets the transaction reference string assigned to the transaction request.
|
boolean |
isAutoSend()
Gets automatically send the link via an email.
|
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 |
setAutoSend(boolean value)
Sets automatically send the link via an email.
|
void |
setCallbackUrl(String value)
Sets optional callback url to which transaction responses for this link will be
posted.
|
void |
setCurrencyCode(String value)
Sets the transaction currency code.
|
void |
setCustomer(Customer value)
Sets customer information.
|
void |
setDescription(String value)
Sets description explaining the transaction for display to the user.
|
void |
setDestinationAccount(String value)
Sets the settlement account for merchants with split settlements.
|
void |
setOrderRef(String value)
Sets an identifier from an external point of sale system.
|
void |
setSubject(String value)
Sets subject of the payment email.
|
void |
setTaxExempt(boolean value)
Sets that the request is tax exempt.
|
void |
setTerminalName(String value)
Sets the name of the target payment terminal.
|
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 |
setTransaction(TransactionDisplayTransaction value)
Sets transaction details for display on the payment email.
|
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 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 setTerminalName(String value)
value - the name of the target payment terminal.public String getTerminalName()
getTerminalName in interface ITerminalReferencepublic void setAutoSend(boolean value)
value - automatically send the link via an email.public boolean isAutoSend()
public void setDescription(String value)
value - description explaining the transaction for display to the user.public String getDescription()
public void setSubject(String value)
value - subject of the payment email.public String getSubject()
public void setTransaction(TransactionDisplayTransaction value)
value - transaction details for display on the payment email.public TransactionDisplayTransaction getTransaction()
public void setCustomer(Customer value)
value - customer information.public Customer getCustomer()
public void setCallbackUrl(String value)
value - optional callback url to which transaction responses for this link
will be posted.public String getCallbackUrl()
Copyright © 2020 BlockChyp, Inc.. All rights reserved.