Class SwissQRBill
Namespace: Aspose.BarCode.ComplexBarcode
Assembly: Aspose.BarCode.dll (25.2.0)
SwissQR bill data
public sealed class SwissQRBill : IEquatable<swissqrbill>
Inheritance
Implements
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
Account
Gets or 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.
public string Account { get; set; }
Property Value
AlternativeSchemes
Gets ors sets the alternative payment schemes.
A maximum of two schemes with parameters are allowed.
public List<alternativescheme> AlternativeSchemes { get; set; }
Property Value
Amount
Gets or sets the payment amount.
Valid values are between 0.01 and 999,999,999.99.
public decimal Amount { get; set; }
Property Value
BillInformation
Gets or sets the additional structured bill information.
public string BillInformation { get; set; }
Property Value
Creditor
Gets or sets the creditor address.
public Address Creditor { get; set; }
Property Value
Currency
Gets or sets the payment currency.
Valid values are "CHF" and "EUR".
public string Currency { get; set; }
Property Value
Debtor
Gets or 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 Address Debtor { get; set; }
Property Value
Reference
Gets or 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.
public string Reference { get; set; }
Property Value
UnstructuredMessage
Gets or sets the additional unstructured message.
public string UnstructuredMessage { get; set; }
Property Value
Version
Gets or sets the version of the SwissQR bill standard.
public SwissQRBill.QrBillStandardVersion Version { get; set; }
Property Value
SwissQRBill.QrBillStandardVersion
Methods
CreateAndSetCreditorReference(string)
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
public void CreateAndSetCreditorReference(string rawReference)
Parameters
rawReference
string
The raw reference.
Exceptions
rawReference
contains invalid characters.
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
object
The object to compare with the current object.
Returns
true
if the specified object is equal to the current object; otherwise, false
.
Equals(SwissQRBill)
Determines whether the specified bill is equal to the current bill.
public bool Equals(SwissQRBill other)
Parameters
other
SwissQRBill
The bill to compare with the current bill.
Returns
true
if the specified object is equal to the current object; otherwise, false
.
GetHashCode()
Gets the hash code for this instance.
public override int GetHashCode()
Returns
A hash code for the current object. </swissqrbill>