public final class SwissQRBill
extends java.lang.Object
SwissQR bill data
Modifier and Type | Method and Description |
---|---|
void |
createAndSetCreditorReference(java.lang.String rawReference)
Creates and sets a ISO11649 creditor reference from a raw string by prefixing
the String with "RF" and the modulo 97 checksum.
|
boolean |
equals(java.lang.Object obj)
Determines whether the specified object is equal to the current object.
|
boolean |
equals(SwissQRBill other)
Determines whether the specified bill is equal to the current bill.
|
java.lang.String |
getAccount()
Gets the creditor's account number.
|
java.util.List<AlternativeScheme> |
getAlternativeSchemes()
Gets ors sets the alternative payment schemes.
|
long |
getAmount()
Gets the payment amount.
|
java.lang.String |
getBillInformation()
Gets the additional structured bill information.
|
Address |
getCreditor()
Gets the creditor address.
|
java.lang.String |
getCurrency()
Gets the payment currency.
|
Address |
getDebtor()
Gets the debtor address.
|
java.lang.String |
getReference()
Gets the creditor payment reference.
|
java.lang.String |
getUnstructuredMessage()
Gets the additional unstructured message.
|
QrBillStandardVersion |
getVersion()
Gets the version of the SwissQR bill standard.
|
int |
hashCode()
Gets the hash code for this instance.
|
void |
setAccount(java.lang.String value)
Sets the creditor's account number.
|
void |
setAlternativeSchemes(java.util.List<AlternativeScheme> value)
Gets ors sets the alternative payment schemes.
|
void |
setAmount(long value)
Sets the payment amount.
|
void |
setBillInformation(java.lang.String value)
Sets the additional structured bill information.
|
void |
setCreditor(Address value)
Sets the creditor address.
|
void |
setCurrency(java.lang.String value)
Sets the payment currency.
|
void |
setDebtor(Address value)
Sets the debtor address.
|
void |
setReference(java.lang.String value)
Sets the creditor payment reference.
|
void |
setUnstructuredMessage(java.lang.String value)
Sets the additional unstructured message.
|
void |
setVersion(QrBillStandardVersion value)
Sets the version of the SwissQR bill standard.
|
public QrBillStandardVersion getVersion()
Gets the version of the SwissQR bill standard.
Value: The SwissQR bill standard version.public void setVersion(QrBillStandardVersion value)
Sets the version of the SwissQR bill standard.
Value: The SwissQR bill standard version.public long getAmount()
Gets the payment amount.
Valid values are between 0.01 and 999,999,999.99.
Value: The payment amount.public void setAmount(long value)
Sets the payment amount.
Valid values are between 0.01 and 999,999,999.99.
Value: The payment amount.public java.lang.String getCurrency()
Gets the payment currency.
Valid values are "CHF" and "EUR".
Value: The payment currency.public void setCurrency(java.lang.String value)
Sets the payment currency.
Valid values are "CHF" and "EUR".
Value: The payment currency.public java.lang.String getAccount()
Gets the creditor's account number.
Account numbers must be valid IBANs of a bank of Switzerland or Liechtenstein. Spaces are allowed in the account number.
Value: The creditor account number.public void setAccount(java.lang.String value)
Sets the creditor's account number.
Account numbers must be valid IBANs of a bank of Switzerland or Liechtenstein. Spaces are allowed in the account number.
Value: The creditor account number.public Address getCreditor()
Gets the creditor address.
Value: The creditor address.public void setCreditor(Address value)
Sets the creditor address.
Value: The creditor address.public java.lang.String getReference()
Gets the creditor payment reference.
The reference is mandatory for SwissQR IBANs, i.e.IBANs in the range CHxx30000xxxxxx through CHxx31999xxxxx.
If specified, the reference must be either a valid SwissQR reference (corresponding to ISR reference form) or a valid creditor reference according to ISO 11649 ("RFxxxx"). Both may contain spaces for formatting.
Value: The creditor payment reference.public void setReference(java.lang.String value)
Sets the creditor payment reference.
The reference is mandatory for SwissQR IBANs, i.e.IBANs in the range CHxx30000xxxxxx through CHxx31999xxxxx.
If specified, the reference must be either a valid SwissQR reference (corresponding to ISR reference form) or a valid creditor reference according to ISO 11649 ("RFxxxx"). Both may contain spaces for formatting.
Value: The creditor payment reference.public void createAndSetCreditorReference(java.lang.String rawReference)
Creates and sets a ISO11649 creditor reference from a raw string by prefixing the String with "RF" and the modulo 97 checksum.
Whitespace is removed from the reference
rawReference
- The raw reference.com.aspose.ms.System.ArgumentException
- rawReference
contains invalid characters.public Address getDebtor()
Gets the debtor address.
The debtor is optional. If it is omitted, both setting this field to
null
or setting an address with all null
or empty values is ok.
public void setDebtor(Address value)
Sets the debtor address.
The debtor is optional. If it is omitted, both setting this field to
null
or setting an address with all null
or empty values is ok.
public java.lang.String getUnstructuredMessage()
Gets the additional unstructured message.
Value: The unstructured message.public void setUnstructuredMessage(java.lang.String value)
Sets the additional unstructured message.
Value: The unstructured message.public java.lang.String getBillInformation()
Gets the additional structured bill information.
Value: The structured bill information.public void setBillInformation(java.lang.String value)
Sets the additional structured bill information.
Value: The structured bill information.public java.util.List<AlternativeScheme> getAlternativeSchemes()
Gets ors sets the alternative payment schemes.
A maximum of two schemes with parameters are allowed.
Value: The alternative payment schemes.public void setAlternativeSchemes(java.util.List<AlternativeScheme> value)
Gets ors sets the alternative payment schemes.
A maximum of two schemes with parameters are allowed.
Value: The alternative payment schemes.public boolean equals(java.lang.Object obj)
Determines whether the specified object is equal to the current object.
equals
in class java.lang.Object
obj
- The object to compare with the current object.true
if the specified object is equal to the current object; otherwise, false
.public boolean equals(SwissQRBill other)
Determines whether the specified bill is equal to the current bill.
other
- The bill to compare with the current bill.true
if the specified object is equal to the current object; otherwise, false
.public int hashCode()
Gets the hash code for this instance.
hashCode
in class java.lang.Object