public class PaymentRequest extends SofortLibRequest
| Constructor and Description |
|---|
PaymentRequest(java.lang.Integer projectId,
java.lang.Double amount,
java.lang.String currencyCode,
java.util.List<java.lang.String> reasons,
SofortPayment sofortPayment)
Instantiates a new sofort payment request.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAbortUrl()
Gets the abort url.
|
java.lang.Double |
getAmount()
Gets the amount.
|
java.lang.String |
getCurrencyCode()
Gets the currency code.
|
java.lang.String |
getEmailCustomer()
Gets the email customer.
|
java.lang.String |
getInterfaceVersion()
Gets the interface version.
|
java.lang.String |
getLanguageCode()
Gets the language code.
|
java.util.List<Notification> |
getNotificationEmails()
Gets the notification emails.
|
java.util.List<Notification> |
getNotificationUrls()
Gets the notification urls.
|
java.lang.String |
getPhoneCustomer()
Gets the phone customer.
|
java.lang.Integer |
getProjectId()
Gets the project id.
|
java.util.List<java.lang.String> |
getReasons()
Gets the reasons.
|
BankAccount |
getSender()
Gets the sender.
|
SofortPayment |
getSofortPayment()
Gets the sofort payment special container.
|
java.lang.Boolean |
getSuccessLinkRedirect()
Gets the success link redirect.
|
java.lang.String |
getSuccessUrl()
Gets the success url.
|
java.lang.Long |
getTimeout()
Gets the timeout.
|
java.lang.String |
getTimeoutUrl()
Gets the timeout url.
|
java.util.List<java.lang.String> |
getUserVariables()
Gets the user variables.
|
PaymentRequest |
setAbortUrl(java.lang.String abortUrl)
Sets the abort url.
|
PaymentRequest |
setEmailCustomer(java.lang.String emailCustomer)
Sets the email customer.
|
PaymentRequest |
setInterfaceVersion(java.lang.String interfaceVersion)
Sets the interface version.
|
PaymentRequest |
setLanguageCode(java.lang.String languageCode)
Sets the language code.
|
PaymentRequest |
setNotificationEmails(java.util.List<Notification> notificationEmails)
Sets the notification emails.
|
PaymentRequest |
setNotificationUrls(java.util.List<Notification> notificationUrls)
Sets the notification urls.
|
PaymentRequest |
setPhoneCustomer(java.lang.String phoneCustomer)
Sets the phone customer.
|
PaymentRequest |
setSender(BankAccount sender)
Sets the sender.
|
PaymentRequest |
setSuccessLinkRedirect(boolean successLinkRedirect)
Sets the success link redirect.
|
PaymentRequest |
setSuccessUrl(java.lang.String successUrl)
Sets the success url.
|
PaymentRequest |
setTimeout(long timeout)
Sets the timeout in seconds.
|
PaymentRequest |
setTimeoutUrl(java.lang.String timeoutUrl)
Sets the timeout url.
|
PaymentRequest |
setUserVariables(java.util.List<java.lang.String> userVariables)
Sets the user variables.
|
public PaymentRequest(java.lang.Integer projectId,
java.lang.Double amount,
java.lang.String currencyCode,
java.util.List<java.lang.String> reasons,
SofortPayment sofortPayment)
projectId - the project identification numberamount - double valuecurrencyCode - according to ISO 4217, i.e. EURreasons - transfer reasonssofortPayment - sofort payment parameter classpublic java.lang.String getInterfaceVersion()
public PaymentRequest setInterfaceVersion(java.lang.String interfaceVersion)
interfaceVersion - the interface versionpublic java.lang.String getLanguageCode()
public PaymentRequest setLanguageCode(java.lang.String languageCode)
languageCode - the language codepublic java.lang.Long getTimeout()
public PaymentRequest setTimeout(long timeout)
timeout - the timeout in secondspublic java.lang.String getEmailCustomer()
public PaymentRequest setEmailCustomer(java.lang.String emailCustomer)
emailCustomer - the email customerpublic java.lang.String getPhoneCustomer()
public PaymentRequest setPhoneCustomer(java.lang.String phoneCustomer)
phoneCustomer - the phone customerpublic java.util.List<java.lang.String> getUserVariables()
public PaymentRequest setUserVariables(java.util.List<java.lang.String> userVariables)
userVariables - the user variablespublic BankAccount getSender()
public PaymentRequest setSender(BankAccount sender)
sender - the senderpublic java.lang.String getSuccessUrl()
public PaymentRequest setSuccessUrl(java.lang.String successUrl)
successUrl - the success urlpublic java.lang.Boolean getSuccessLinkRedirect()
public PaymentRequest setSuccessLinkRedirect(boolean successLinkRedirect)
successLinkRedirect - the new success link redirectpublic java.lang.String getAbortUrl()
public PaymentRequest setAbortUrl(java.lang.String abortUrl)
abortUrl - the abort urlpublic java.lang.String getTimeoutUrl()
public PaymentRequest setTimeoutUrl(java.lang.String timeoutUrl)
timeoutUrl - the timeout urlpublic java.util.List<Notification> getNotificationUrls()
public PaymentRequest setNotificationUrls(java.util.List<Notification> notificationUrls)
notificationUrls - the notification urlspublic java.util.List<Notification> getNotificationEmails()
public PaymentRequest setNotificationEmails(java.util.List<Notification> notificationEmails)
notificationEmails - the notification emailspublic java.util.List<java.lang.String> getReasons()
public java.lang.Integer getProjectId()
public java.lang.Double getAmount()
public java.lang.String getCurrencyCode()
public SofortPayment getSofortPayment()