Class SwissQRBill
SwissQR bill data
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateAndSetCreditorReference(String rawReference) Creates and sets a ISO11649 creditor reference from a raw string by prefixing the String with "RF" and the modulo 97 checksum.booleanDetermines whether the specified object is equal to the current object.Gets the creditor's account number.Gets ors sets the alternative payment schemes.doubleGets the payment amount.Gets the additional structured bill information.Gets the creditor address.Gets the payment currency.Gets the debtor address.Gets the creditor payment reference.Gets the additional unstructured message.Gets the version of the SwissQR bill standard.inthashCode()Gets the hash code for this instance.voidsetAccount(String value) Sets the creditor's account number.voidGets ors sets the alternative payment schemes.voidsetAmount(double value) Sets the payment amount.voidsetBillInformation(String value) Sets the additional structured bill information.voidsetCreditor(Address value) Sets the creditor address.voidsetCurrency(String value) Sets the payment currency.voidSets the debtor address.voidsetReference(String value) Sets the creditor payment reference.voidsetUnstructuredMessage(String value) Sets the additional unstructured message.voidsetVersion(QrBillStandardVersion value) Sets the version of the SwissQR bill standard.
-
Method Details
-
getVersion
Gets the version of the SwissQR bill standard.
Value: The SwissQR bill standard version. -
setVersion
Sets the version of the SwissQR bill standard.
Value: The SwissQR bill standard version. -
getAmount
public double getAmount()Gets the payment amount.
Valid values are between 0.01 and 999,999,999.99.
Value: The payment amount. -
setAmount
public void setAmount(double value) Sets the payment amount.
Valid values are between 0.01 and 999,999,999.99.
Value: The payment amount. -
getCurrency
Gets the payment currency.
Valid values are "CHF" and "EUR".
Value: The payment currency. -
setCurrency
Sets the payment currency.
Valid values are "CHF" and "EUR".
Value: The payment currency. -
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. -
setAccount
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. -
getCreditor
Gets the creditor address.
Value: The creditor address. -
setCreditor
Sets the creditor address.
Value: The creditor address. -
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. -
setReference
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. -
createAndSetCreditorReference
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:
rawReference- The raw reference.- Throws:
com.aspose.ms.System.ArgumentException-rawReferencecontains invalid characters.
-
getDebtor
Gets the debtor address.
The debtor is optional. If it is omitted, both setting this field to
Value: The debtor address.nullor setting an address with allnullor empty values is ok. -
setDebtor
Sets the debtor address.
The debtor is optional. If it is omitted, both setting this field to
Value: The debtor address.nullor setting an address with allnullor empty values is ok. -
getUnstructuredMessage
Gets the additional unstructured message.
Value: The unstructured message. -
setUnstructuredMessage
Sets the additional unstructured message.
Value: The unstructured message. -
getBillInformation
Gets the additional structured bill information.
Value: The structured bill information. -
setBillInformation
Sets the additional structured bill information.
Value: The structured bill information. -
getAlternativeSchemes
Gets ors sets the alternative payment schemes.
A maximum of two schemes with parameters are allowed.
Value: The alternative payment schemes. -
setAlternativeSchemes
Gets ors sets the alternative payment schemes.
A maximum of two schemes with parameters are allowed.
Value: The alternative payment schemes. -
equals
Determines whether the specified object is equal to the current object.
-
hashCode
public int hashCode()Gets the hash code for this instance.
-