SwissQRBill

Inheritance: java.lang.Object

public final class SwissQRBill

SwissQR bill data

Methods

MethodDescription
createAndSetCreditorReference(String rawReference)Creates and sets a ISO11649 creditor reference from a raw string by prefixing the String with “RF” and the modulo 97 checksum.
equals(Object obj)Determines whether the specified object is equal to the current object.
getAccount()Gets the creditor’s account number.
getAlternativeSchemes()Gets ors sets the alternative payment schemes.
getAmount()Gets the payment amount.
getBillInformation()Gets the additional structured bill information.
getClass()
getCreditor()Gets the creditor address.
getCurrency()Gets the payment currency.
getDebtor()Gets the debtor address.
getReference()Gets the creditor payment reference.
getUnstructuredMessage()Gets the additional unstructured message.
getVersion()Gets the version of the SwissQR bill standard.
hashCode()Gets the hash code for this instance.
notify()
notifyAll()
setAccount(String value)Sets the creditor’s account number.
setAlternativeSchemes(List value)Gets ors sets the alternative payment schemes.
setAmount(double value)Sets the payment amount.
setBillInformation(String value)Sets the additional structured bill information.
setCreditor(Address value)Sets the creditor address.
setCurrency(String value)Sets the payment currency.
setDebtor(Address value)Sets the debtor address.
setReference(String value)Sets the creditor payment reference.
setUnstructuredMessage(String value)Sets the additional unstructured message.
setVersion(QrBillStandardVersion value)Sets the version of the SwissQR bill standard.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

createAndSetCreditorReference(String rawReference)

public void createAndSetCreditorReference(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

Parameters:

ParameterTypeDescription
rawReferencejava.lang.StringThe raw reference.

equals(Object obj)

public boolean equals(Object obj)

Determines whether the specified object is equal to the current object.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectThe object to compare with the current object.

Returns: boolean - true if the specified object is equal to the current object; otherwise, false .

getAccount()

public 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.

Returns: java.lang.String

getAlternativeSchemes()

public List<AlternativeScheme> getAlternativeSchemes()

Gets ors sets the alternative payment schemes.

A maximum of two schemes with parameters are allowed.

Value: The alternative payment schemes.

Returns: java.util.List<com.aspose.barcode.complexbarcode.AlternativeScheme>

getAmount()

public double getAmount()

Gets the payment amount.

Valid values are between 0.01 and 999,999,999.99.

Value: The payment amount.

Returns: double

getBillInformation()

public String getBillInformation()

Gets the additional structured bill information.

Value: The structured bill information.

Returns: java.lang.String

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCreditor()

public Address getCreditor()

Gets the creditor address.

Value: The creditor address.

Returns: Address

getCurrency()

public String getCurrency()

Gets the payment currency.

Valid values are “CHF” and “EUR”.

Value: The payment currency.

Returns: java.lang.String

getDebtor()

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.

Value: The debtor address.

Returns: Address

getReference()

public 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.

Returns: java.lang.String

getUnstructuredMessage()

public String getUnstructuredMessage()

Gets the additional unstructured message.

Value: The unstructured message.

Returns: java.lang.String

getVersion()

public QrBillStandardVersion getVersion()

Gets the version of the SwissQR bill standard.

Value: The SwissQR bill standard version.

Returns: QrBillStandardVersion

hashCode()

public int hashCode()

Gets the hash code for this instance.

Returns: int - A hash code for the current object.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setAccount(String value)

public void setAccount(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.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setAlternativeSchemes(List value)

public void setAlternativeSchemes(List<AlternativeScheme> value)

Gets ors sets the alternative payment schemes.

A maximum of two schemes with parameters are allowed.

Value: The alternative payment schemes.

Parameters:

ParameterTypeDescription
valuejava.util.List<com.aspose.barcode.complexbarcode.AlternativeScheme>

setAmount(double value)

public void setAmount(double value)

Sets the payment amount.

Valid values are between 0.01 and 999,999,999.99.

Value: The payment amount.

Parameters:

ParameterTypeDescription
valuedouble

setBillInformation(String value)

public void setBillInformation(String value)

Sets the additional structured bill information.

Value: The structured bill information.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setCreditor(Address value)

public void setCreditor(Address value)

Sets the creditor address.

Value: The creditor address.

Parameters:

ParameterTypeDescription
valueAddress

setCurrency(String value)

public void setCurrency(String value)

Sets the payment currency.

Valid values are “CHF” and “EUR”.

Value: The payment currency.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setDebtor(Address value)

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.

Value: The debtor address.

Parameters:

ParameterTypeDescription
valueAddress

setReference(String value)

public void setReference(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.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setUnstructuredMessage(String value)

public void setUnstructuredMessage(String value)

Sets the additional unstructured message.

Value: The unstructured message.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setVersion(QrBillStandardVersion value)

public void setVersion(QrBillStandardVersion value)

Sets the version of the SwissQR bill standard.

Value: The SwissQR bill standard version.

Parameters:

ParameterTypeDescription
valueQrBillStandardVersion

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int