com.aspose.barcode.complexbarcode

Class SwissQRBill

  • java.lang.Object
    • com.aspose.barcode.complexbarcode.SwissQRBill


  • public final class SwissQRBill
    extends java.lang.Object

    SwissQR bill data

    • Method Detail

      • getVersion

        public QrBillStandardVersion getVersion()

        Gets the version of the SwissQR bill standard.

        Value: The SwissQR bill standard version.
      • setVersion

        public void setVersion(QrBillStandardVersion value)

        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

        public java.lang.String getCurrency()

        Gets the payment currency.

        Valid values are "CHF" and "EUR".

        Value: The payment currency.
      • setCurrency

        public void setCurrency(java.lang.String value)

        Sets the payment currency.

        Valid values are "CHF" and "EUR".

        Value: The payment currency.
      • getAccount

        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.
      • setAccount

        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.
      • getCreditor

        public Address getCreditor()

        Gets the creditor address.

        Value: The creditor address.
      • setCreditor

        public void setCreditor(Address value)

        Sets the creditor address.

        Value: The creditor address.
      • getReference

        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.
      • setReference

        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.
      • createAndSetCreditorReference

        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

        Parameters:
        rawReference - The raw reference.
        Throws:
        com.aspose.ms.System.ArgumentException - rawReference contains invalid characters.
      • 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.
      • setDebtor

        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.
      • getUnstructuredMessage

        public java.lang.String getUnstructuredMessage()

        Gets the additional unstructured message.

        Value: The unstructured message.
      • setUnstructuredMessage

        public void setUnstructuredMessage(java.lang.String value)

        Sets the additional unstructured message.

        Value: The unstructured message.
      • getBillInformation

        public java.lang.String getBillInformation()

        Gets the additional structured bill information.

        Value: The structured bill information.
      • setBillInformation

        public void setBillInformation(java.lang.String value)

        Sets the additional structured bill information.

        Value: The structured bill information.
      • getAlternativeSchemes

        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.
      • setAlternativeSchemes

        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.
      • equals

        public boolean equals(java.lang.Object obj)

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

        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - The object to compare with the current object.
        Returns:
        true if the specified object is equal to the current object; otherwise, false.
      • hashCode

        public int hashCode()

        Gets the hash code for this instance.

        Overrides:
        hashCode in class java.lang.Object
        Returns:
        A hash code for the current object.