SecondaryAndAdditionalData

SecondaryAndAdditionalData class

Module: aspose_barcode.complex_barcode.secondary_and_additional_data

Class for storing HIBC LIC secondary and additional data.

Constructors

NameDescription
init

Methods

NameReturn TypeStaticDescription
eqboolNoReturns a value indicating whether this instance is equal to a specified SecondaryAndAdditionalData value.
hashintNoReturns the hash code for the current instance.
strstrNoConverts data to string format according HIBC LIC specification.
parse_from_stringNoneNoInstantiates secondary and additional supplemental data from string format according HIBC LIC specification.

Properties

NameTypeDescription
date_of_manufacturedatetimeIdentifies date of manufacture. Date of manufacture can be set to DateTime.MinValue in order not to use this field. Default value: DateTime.MinValue
expiry_datedatetimeIdentifies expiry date format.
expiry_date_formatHIBCLICDateFormatIdentifies expiry date format.
lot_numberOptional[str]Identifies lot or batch number. Lot/batch number must be alphanumeric string with up to 18 sybmols length.
quantityintIdentifies 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_numberOptional[str]Identifies serial number. Serial number must be alphanumeric string up to 18 sybmols length.

SecondaryAndAdditionalData Constructor

__init__(self)

SecondaryAndAdditionalData.eq

__eq__(self, SecondaryAndAdditionalData other) -> bool

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

ParameterTypeDescription
otherSecondaryAndAdditionalData

Return Type: bool — True if obj has the same value as this instance; otherwise, False.

SecondaryAndAdditionalData.hash

__hash__(self) -> int

Returns the hash code for the current instance.

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

SecondaryAndAdditionalData.str

__str__(self) -> str

Converts data to string format according HIBC LIC specification.

Return Type: str — Formatted string.

SecondaryAndAdditionalData.parse_from_string

parse_from_string(self, str secondary_data_codetext)

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

ParameterTypeDescription
secondary_data_codetextstr

SecondaryAndAdditionalData.date_of_manufacture

Type: datetime

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

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

ParameterTypeDescription
valuedatetime

SecondaryAndAdditionalData.expiry_date

Type: datetime

Identifies expiry date format.

Identifies expiry date format.

ParameterTypeDescription
valuedatetime

SecondaryAndAdditionalData.expiry_date_format

Type: HIBCLICDateFormat

Identifies expiry date format.

Identifies expiry date format.

ParameterTypeDescription
valueHIBCLICDateFormat

SecondaryAndAdditionalData.lot_number

Type: Optional[str]

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

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

ParameterTypeDescription
valueOptional[str]

SecondaryAndAdditionalData.quantity

Type: int

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

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

ParameterTypeDescription
valueint

SecondaryAndAdditionalData.serial_number

Type: Optional[str]

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

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

ParameterTypeDescription
valueOptional[str]