Mailmark2DCodetext

Mailmark2DCodetext class

Module: aspose_barcode.complex_barcode.mailmark_2d_codetext

Inherits: IComplexCodetext

Constructors

NameDescription
initCreate default instance of Mailmark2DCodetext class.

Methods

NameReturn TypeStaticDescription
barcode_typeEncodeTypesNoReimplemented from IComplexCodetext.
constructed_codetextOptional[str]NoReimplemented from IComplexCodetext.
init_from_stringNoneNoReimplemented from IComplexCodetext.

Properties

NameTypeDescription
class_Optional[str]Identifies the class of the item. Valid Values: “1” - 1C (Retail) “2” - 2C (Retail) “3” - Economy (Retail) “5” - Deffered (Retail) “8” - Premium (Network Access) “9” - Standard (Network Access)
customer_contentOptional[str]Optional space for use by customer. Max length by Type: Type 7: 6 characters Type 9: 45 characters Type 29: 25 characters
customer_content_encode_modeDataMatrixEncodeModeEncode mode of Datamatrix barcode. Default value: DataMatrixEncodeMode.C40.
data_matrix_typeMailmark2DType2D Mailmark Type defines size of Data Matrix barcode.
destination_postcode_dpsOptional[str]Contains the Postcode of the Delivery Address with DPS If inland the Postcode/DP contains the following number of characters. Area (1 or 2 characters) District(1 or 2 characters) Sector(1 character) Unit(2 characters) DPS (2 characters). The Postcode and DPS must comply with a valid PAF® format.
information_type_idOptional[str]Identifies the Royal Mail Mailmark barcode payload for each product type. Valid Values: “0” - Domestic Sorted & Unsorted “A” - Online Postage “B” - Franking “C” - Consolidation
item_idintEvery Mailmark barcode is required to carry an ID Max value: 99999999.
return_to_sender_postcodeOptional[str]Contains the Return to Sender Post Code but no DPS. The PC(without DPS) must comply with a PAF® format.
rts_flagOptional[str]Flag which indicates what level of Return to Sender service is being requested.
supply_chain_idintIdentifies the unique group of customers involved in the mailing. Max value: 9999999.
upu_country_idOptional[str]Identifies the UPU Country ID.Max length: 4 characters.
version_idOptional[str]Identifies the barcode version as relevant to each Information Type ID. Valid Values: Currently “1”. “0” & “2” to “9” and “A” to “Z” spare reserved for potential future use.

Mailmark2DCodetext Constructor

__init__(self)

Create default instance of Mailmark2DCodetext class.

Mailmark2DCodetext.barcode_type

barcode_type(self) -> EncodeTypes

Reimplemented from IComplexCodetext.

Return Type: EncodeTypes

Mailmark2DCodetext.constructed_codetext

constructed_codetext(self) -> Optional[str]

Reimplemented from IComplexCodetext.

Return Type: Optional[str]

Mailmark2DCodetext.init_from_string

init_from_string(self, str constructed_codetext)

Reimplemented from IComplexCodetext.

ParameterTypeDescription
constructed_codetextstr

Mailmark2DCodetext.class_

Type: Optional[str]

Identifies the class of the item. Valid Values: “1” - 1C (Retail) “2” - 2C (Retail) “3” - Economy (Retail) “5” - Deffered (Retail) “8” - Premium (Network Access) “9” - Standard (Network Access)

Returns: class of the item

Identifies the class of the item.

ParameterTypeDescription
valuestrValid Values: “1” - 1C (Retail) “2” - 2C (Retail) “3” - Economy (Retail) “5” - Deffered (Retail) “8” - Premium (Network Access) “9” - Standard (Network Access)

Mailmark2DCodetext.customer_content

Type: Optional[str]

Optional space for use by customer. Max length by Type: Type 7: 6 characters Type 9: 45 characters Type 29: 25 characters

Returns: Customer content

Optional space for use by customer. Max length by Type: Type 7: 6 characters Type 9: 45 characters Type 29: 25 characters

ParameterTypeDescription
valuestrCustomer content

Mailmark2DCodetext.customer_content_encode_mode

Type: DataMatrixEncodeMode

Encode mode of Datamatrix barcode. Default value: DataMatrixEncodeMode.C40.

Returns: Encode mode of Datamatrix barcode.

Encode mode of Datamatrix barcode. Default value: DataMatrixEncodeMode.C40.

ParameterTypeDescription
valueDataMatrixEncodeMode

Mailmark2DCodetext.data_matrix_type

Type: Mailmark2DType

2D Mailmark Type defines size of Data Matrix barcode.

Returns: Size of Data Matrix barcode

2D Mailmark Type defines size of Data Matrix barcode.

ParameterTypeDescription
valueMailmark2DType

Mailmark2DCodetext.destination_postcode_dps

Type: Optional[str]

Contains the Postcode of the Delivery Address with DPS If inland the Postcode/DP contains the following number of characters. Area (1 or 2 characters) District(1 or 2 characters) Sector(1 character) Unit(2 characters) DPS (2 characters). The Postcode and DPS must comply with a valid PAF® format.

Returns: the Postcode of the Delivery Address with DPS

Contains the Postcode of the Delivery Address with DPS If inland the Postcode/DP contains the following number of characters. Area (1 or 2 characters) District(1 or 2 characters) Sector(1 character) Unit(2 characters) DPS (2 characters). The Postcode and DPS must comply with a valid PAF® format.

ParameterTypeDescription
valuestr

Mailmark2DCodetext.information_type_id

Type: Optional[str]

Identifies the Royal Mail Mailmark barcode payload for each product type. Valid Values: “0” - Domestic Sorted & Unsorted “A” - Online Postage “B” - Franking “C” - Consolidation

Returns: Information type ID

Identifies the Royal Mail Mailmark barcode payload for each product type. Valid Values: “0” - Domestic Sorted & Unsorted “A” - Online Postage “B” - Franking “C” - Consolidation

ParameterTypeDescription
valuestrInformation type ID

Mailmark2DCodetext.item_id

Type: int

Every Mailmark barcode is required to carry an ID Max value: 99999999.

Returns: item within the Supply Chain ID

Identifies the unique item within the Supply Chain ID. Every Mailmark barcode is required to carry an ID Max value: 99999999.

ParameterTypeDescription
valueint

Mailmark2DCodetext.return_to_sender_postcode

Type: Optional[str]

Contains the Return to Sender Post Code but no DPS. The PC(without DPS) must comply with a PAF® format.

Returns: Return to Sender Post Code but no DPS

Contains the Return to Sender Post Code but no DPS. The PC(without DPS) must comply with a PAF® format.

ParameterTypeDescription
valuestr

Mailmark2DCodetext.rts_flag

Type: Optional[str]

Flag which indicates what level of Return to Sender service is being requested.

Returns: RTS Flag

Flag which indicates what level of Return to Sender service is being requested.

ParameterTypeDescription
valuestr

Mailmark2DCodetext.supply_chain_id

Type: int

Identifies the unique group of customers involved in the mailing. Max value: 9999999.

Returns: Supply chain ID

Identifies the unique group of customers involved in the mailing. Max value: 9999999. @param:: value: Supply chain ID

ParameterTypeDescription
valueint

Mailmark2DCodetext.upu_country_id

Type: Optional[str]

Identifies the UPU Country ID.Max length: 4 characters.

Returns: Country ID

Identifies the UPU Country ID.Max length: 4 characters.

ParameterTypeDescription
valuestrCountry ID

Mailmark2DCodetext.version_id

Type: Optional[str]

Identifies the barcode version as relevant to each Information Type ID. Valid Values: Currently “1”. “0” & “2” to “9” and “A” to “Z” spare reserved for potential future use.

Returns: Version ID

Identifies the barcode version as relevant to each Information Type ID. Valid Values: Currently “1”. “0” & “2” to “9” and “A” to “Z” spare reserved for potential future use.

ParameterTypeDescription
valuestrVersion ID