‪Aspose.Barcode for PHP via Java  22.4
‪Aspose.Barcode for PHP via Java Generation and Recognition API docs
SwissQRBill Class Reference

Inherits BaseJavaClass.

Public Member Functions

 __construct ($javaClass)
 
 getVersion ()
 
 setVersion (int $value)
 
 getAmount ()
 
 setAmount (float $value)
 
 getCurrency ()
 
 setCurrency (string $value)
 
 getAccount ()
 
 setAccount (string $value)
 
 getCreditor ()
 
 setCreditor (Address $value)
 
 getReference ()
 
 setReference (string $value)
 
 createAndSetCreditorReference (string $rawReference)
 
 getDebtor ()
 
 setDebtor (Address $value)
 
 getUnstructuredMessage ()
 
 setUnstructuredMessage (string $value)
 
 getBillInformation ()
 
 setBillInformation (string $value)
 
 getAlternativeSchemes ()
 
 setAlternativeSchemes (array $value)
 
 equals (SwissQRBill $obj)
 
 hashCode ()
 
 getJavaClass ()
 
 getJavaClassName ()
 
 isNull ()
 
 printJavaClassName ()
 

Protected Member Functions

 init ()
 
 setJavaClass ($javaClass)
 

Detailed Description

SwissQR bill data

Constructor & Destructor Documentation

◆ __construct()

SwissQRBill::__construct (   $javaClass)

Reimplemented from BaseJavaClass.

Member Function Documentation

◆ createAndSetCreditorReference()

SwissQRBill::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

Exceptions
ArgumentException‪rawReference contains invalid characters.
Parameters
string$rawReference‪The raw reference.

◆ equals()

SwissQRBill::equals ( SwissQRBill  $obj)

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

Parameters
SwissQRBill$obj‪The object to compare with the current object.
Returns
‪bool true if the specified object is equal to the current object; otherwise, false.

◆ getAccount()

SwissQRBill::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.

◆ getAlternativeSchemes()

SwissQRBill::getAlternativeSchemes ( )

Gets ors sets the alternative payment schemes.

A maximum of two schemes with parameters are allowed.

Returns
‪array The alternative payment schemes.

◆ getAmount()

SwissQRBill::getAmount ( )

Gets the payment amount.

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

Value: The payment amount.

◆ getBillInformation()

SwissQRBill::getBillInformation ( )

Gets the additional structured bill information.

Returns
‪string The structured bill information.

◆ getCreditor()

SwissQRBill::getCreditor ( )

Gets the creditor address.

Returns
Address The creditor address.

◆ getCurrency()

SwissQRBill::getCurrency ( )

Gets the payment currency.

Valid values are "CHF" and "EUR".

Value: The payment currency.

◆ getDebtor()

SwissQRBill::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.

return Address The debtor address.

◆ getJavaClass()

BaseJavaClass::getJavaClass ( )
inherited

◆ getJavaClassName()

BaseJavaClass::getJavaClassName ( )
inherited

◆ getReference()

SwissQRBill::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.

Returns
‪string The creditor payment reference.

◆ getUnstructuredMessage()

SwissQRBill::getUnstructuredMessage ( )

Gets the additional unstructured message.

Returns
‪string The unstructured message.

◆ getVersion()

SwissQRBill::getVersion ( )

Gets the version of the SwissQR bill standard. Value: The SwissQR bill standard version.

◆ hashCode()

SwissQRBill::hashCode ( )

Gets the hash code for this instance.

Returns
‪int A hash code for the current object.

◆ init()

SwissQRBill::init ( )
protected

Reimplemented from BaseJavaClass.

◆ isNull()

BaseJavaClass::isNull ( )
inherited

◆ printJavaClassName()

BaseJavaClass::printJavaClassName ( )
inherited

◆ setAccount()

SwissQRBill::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.

Parameters
string$value‪Value: The creditor account number.
Exceptions
BarcodeException

◆ setAlternativeSchemes()

SwissQRBill::setAlternativeSchemes ( array  $value)

Gets ors sets the alternative payment schemes.

A maximum of two schemes with parameters are allowed.

Parameters
array$value‪The alternative payment schemes.

◆ setAmount()

SwissQRBill::setAmount ( float  $value)

Sets the payment amount.

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

Value: The payment amount.

◆ setBillInformation()

SwissQRBill::setBillInformation ( string  $value)

Sets the additional structured bill information.

Parameters
string‪The structured bill information.

◆ setCreditor()

SwissQRBill::setCreditor ( Address  $value)

Sets the creditor address.

Parameters
Address$value‪The creditor address.
Exceptions
BarcodeException

◆ setCurrency()

SwissQRBill::setCurrency ( string  $value)

Sets the payment currency.

Valid values are "CHF" and "EUR".

Value: The payment currency.

◆ setDebtor()

SwissQRBill::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.

Parameters
Address‪The debtor address.

◆ setJavaClass()

BaseJavaClass::setJavaClass (   $javaClass)
protectedinherited

◆ setReference()

SwissQRBill::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.

Parameters
string$value‪The creditor payment reference.

◆ setUnstructuredMessage()

SwissQRBill::setUnstructuredMessage ( string  $value)

Sets the additional unstructured message.

Parameters
string$value‪The unstructured message.

◆ setVersion()

SwissQRBill::setVersion ( int  $value)

Sets the version of the SwissQR bill standard. Value: The SwissQR bill standard version.