Aspose.Barcode for Python via Java Generation and Recognition API docs
SecondaryAndAdditionalData Class Reference

Class for storing HIBC LIC secondary and additional data. More...

Inherits _MwWrapper.

Public Member Functions

None __init__ (self)
 
bool __eq__ (self, SecondaryAndAdditionalData other)
 Returns a value indicating whether this instance is equal to a specified SecondaryAndAdditionalData value. More...
 
int __hash__ (self)
 Returns the hash code for the current instance. More...
 
str __str__ (self)
 Converts data to string format according HIBC LIC specification. More...
 
datetime date_of_manufacture (self)
 Identifies date of manufacture. More...
 
None date_of_manufacture (self, datetime value)
 Identifies date of manufacture. More...
 
datetime expiry_date (self)
 Identifies expiry date format. More...
 
None expiry_date (self, datetime value)
 Identifies expiry date format. More...
 
HIBCLICDateFormat expiry_date_format (self)
 Identifies expiry date format. More...
 
None expiry_date_format (self, HIBCLICDateFormat value)
 Identifies expiry date format. More...
 
Optional[str] lot_number (self)
 Identifies lot or batch number. More...
 
None lot_number (self, Optional[str] value)
 Identifies lot or batch number. More...
 
None parse_from_string (self, str secondary_data_codetext)
 Instantiates secondary and additional supplemental data from string format according HIBC LIC specification. More...
 
int quantity (self)
 Identifies quantity, must be integer value from 0 to 500. More...
 
None quantity (self, int value)
 Identifies quantity, must be integer value from 0 to 500. More...
 
Optional[str] serial_number (self)
 Identifies serial number. More...
 
None serial_number (self, Optional[str] value)
 Identifies serial number. More...
 

Detailed Description

Class for storing HIBC LIC secondary and additional data.

Constructor & Destructor Documentation

◆ __init__()

None __init__ (   self)

Member Function Documentation

◆ __eq__()

bool __eq__ (   self,
SecondaryAndAdditionalData  other 
)

Returns a value indicating whether this instance is equal to a specified SecondaryAndAdditionalData value.

Parameters
obj:An SecondaryAndAdditionalData value to compare to this instance.
Returns
: True if obj has the same value as this instance; otherwise, False.

◆ __hash__()

int __hash__ (   self)

Returns the hash code for the current instance.

Returns
A hash code for the current object.

◆ __str__()

str __str__ (   self)

Converts data to string format according HIBC LIC specification.

Returns
:Formatted string.

◆ date_of_manufacture() [1/2]

datetime date_of_manufacture (   self)

Identifies date of manufacture.

Date of manufacture can be set to DateTime.MinValue in order not to use this field. Default value: DateTime.MinValue

◆ date_of_manufacture() [2/2]

None date_of_manufacture (   self,
datetime  value 
)

Identifies date of manufacture.

Date of manufacture can be set to DateTime.MinValue in order not to use this field. Default value: DateTime.MinValue

◆ expiry_date() [1/2]

datetime expiry_date (   self)

Identifies expiry date format.

◆ expiry_date() [2/2]

None expiry_date (   self,
datetime  value 
)

Identifies expiry date format.

◆ expiry_date_format() [1/2]

HIBCLICDateFormat expiry_date_format (   self)

Identifies expiry date format.

◆ expiry_date_format() [2/2]

None expiry_date_format (   self,
HIBCLICDateFormat  value 
)

Identifies expiry date format.

◆ lot_number() [1/2]

Optional[str] lot_number (   self)

Identifies lot or batch number.

Lot/batch number must be alphanumeric string with up to 18 sybmols length.

◆ lot_number() [2/2]

None lot_number (   self,
Optional[str]  value 
)

Identifies lot or batch number.

Lot/batch number must be alphanumeric string with up to 18 sybmols length.

◆ parse_from_string()

None parse_from_string (   self,
str  secondary_data_codetext 
)

Instantiates secondary and additional supplemental data from string format according HIBC LIC specification.

Parameters
secondaryDataCodetext:Formatted string.

◆ quantity() [1/2]

int quantity (   self)

Identifies quantity, must be integer value from 0 to 500.

Quantity can be set to -1 in order not to use this field. Default value: -1

◆ quantity() [2/2]

None quantity (   self,
int  value 
)

Identifies quantity, must be integer value from 0 to 500.

Quantity can be set to -1 in order not to use this field. Default value: -1

◆ serial_number() [1/2]

Optional[str] serial_number (   self)

Identifies serial number.

Serial number must be alphanumeric string up to 18 sybmols length.

◆ serial_number() [2/2]

None serial_number (   self,
Optional[str]  value 
)

Identifies serial number.

Serial number must be alphanumeric string up to 18 sybmols length.