SwissQRBill

SwissQRBill class

Module: aspose_barcode.complex_barcode.swiss_qr_bill

SwissQR bill data.

Constructors

NameDescription
init

Methods

NameReturn TypeStaticDescription
eqboolNoDetermines whether the specified object is equal to the current object.
hashintNoReturns the hash code for the current instance.
create_and_set_creditor_referenceNoneNoCreates 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

Properties

NameTypeDescription
accountOptional[str]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.
alternative_schemesList[AlternativeScheme]Gets the alternative payment schemes. A maximum of two schemes with parameters are allowed.
amountfloatGets the payment amount. Valid values are between 0.01 and 999,999,999.99.
bill_informationOptional[str]Gets the additional structured bill information.
creditorOptional[Address]Gets the creditor address.
currencyOptional[str]Gets the payment currency. Valid values are “CHF” and “EUR”.
debtorOptional[Address]Gets the debtor address. The debtor is optional. If it is omitted, both setting this field to None or setting an address with all None or empty values is ok.
referenceOptional[str]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.
unstructured_messageOptional[str]Gets the additional unstructured message.
versionQrBillStandardVersionGets the version of the SwissQR bill standard.

SwissQRBill Constructor

__init__(self, _java_class)
ParameterTypeDescription
_java_class``

SwissQRBill.eq

__eq__(self, SwissQRBill other) -> bool

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

ParameterTypeDescription
otherSwissQRBill

Return Type: bool — True if the specified object is equal to the current object; otherwise, false.

SwissQRBill.hash

__hash__(self) -> int

Returns the hash code for the current instance.

Return Type: int — A hash code for the current object.

SwissQRBill.create_and_set_creditor_reference

create_and_set_creditor_reference(self, str raw_reference)

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

ParameterTypeDescription
raw_referencestr

SwissQRBill.account

Type: Optional[str]

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.

Returns: The creditor account number.

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.

ParameterTypeDescription
valuestr

SwissQRBill.alternative_schemes

Type: List[AlternativeScheme]

Gets the alternative payment schemes. A maximum of two schemes with parameters are allowed.

Returns: The alternative payment schemes.

Sets the alternative payment schemes. A maximum of two schemes with parameters are allowed.

ParameterTypeDescription
valueList[AlternativeScheme]

SwissQRBill.amount

Type: float

Gets the payment amount. Valid values are between 0.01 and 999,999,999.99.

Returns: The payment amount.

Sets the payment amount. Valid values are between 0.01 and 999,999,999.99.

ParameterTypeDescription
valuefloat

SwissQRBill.bill_information

Type: Optional[str]

Gets the additional structured bill information.

Returns: The structured bill information.

Sets the additional structured bill information.

ParameterTypeDescription
valuestr

SwissQRBill.creditor

Type: Optional[Address]

Gets the creditor address.

Returns: The creditor address.

Sets the creditor address.

ParameterTypeDescription
valueAddress

SwissQRBill.currency

Type: Optional[str]

Gets the payment currency. Valid values are “CHF” and “EUR”.

Returns: The payment currency.

Sets the payment currency. Valid values are “CHF” and “EUR”.

ParameterTypeDescription
valuestr

SwissQRBill.debtor

Type: Optional[Address]

Gets the debtor address. The debtor is optional. If it is omitted, both setting this field to None or setting an address with all None or empty values is ok.

Returns: The debtor address.

Sets the debtor address. The debtor is optional. If it is omitted, both setting this field to None or setting an address with all None or empty values is ok.

ParameterTypeDescription
valueAddress

SwissQRBill.reference

Type: Optional[str]

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.

Returns: The creditor payment reference.

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.

ParameterTypeDescription
valuestr

SwissQRBill.unstructured_message

Type: Optional[str]

Gets the additional unstructured message.

Returns: The unstructured message.

Sets the additional unstructured message.

ParameterTypeDescription
valuestr

SwissQRBill.version

Type: QrBillStandardVersion

Gets the version of the SwissQR bill standard.

Returns: The SwissQR bill standard version.

Sets the version of the SwissQR bill standard.

ParameterTypeDescription
valueQrBillStandardVersion