Mailmark2DCodetext

Mailmark2DCodetext class

Namespace: Aspose.Barcode.ComplexBarcode

Class for encoding and decoding the text embedded in the Royal Mail 2D Mailmark code.

Constructors

NameDescription
__constructCreate default instance of Mailmark2DCodetext class.

Methods

NameStaticDescription
constructYes
initFromStringNoInitializes Mailmark data from constructed codetext.

Properties

NameRead/WriteDescription
BarcodeTypeRead-onlyGets barcode type.
Class_Read/WriteIdentifies 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)
ConstructedCodetextRead-onlyConstruct codetext from Mailmark data.
CustomerContentRead/WriteOptional space for use by customer. Max length by Type: Type 7: 6 characters Type 9: 45 characters Type 29: 25 characters
CustomerContentEncodeModeRead/WriteEncode mode of Datamatrix barcode. Default value: DataMatrixEncodeMode.C40.
DataMatrixTypeRead/Write2D Mailmark Type defines size of Data Matrix barcode.
DestinationPostCodeAndDPSRead/WriteContains 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.
InformationTypeIDRead/WriteIdentifies the Royal Mail Mailmark barcode payload for each product type. Valid Values: “0” - Domestic Sorted & Unsorted “A” - Online Postage “B” - Franking “C” - Consolidation
ItemIDRead/WriteIdentifies the unique item within the Supply Chain ID. Every Mailmark barcode is required to carry an ID so it can be uniquely identified for at least 90 days. Max value: 99999999.
RTSFlagRead/WriteFlag which indicates what level of Return to Sender service is being requested.
ReturnToSenderPostCodeRead/WriteContains the Return to Sender Post Code but no DPS. The PC(without DPS) must comply with a PAF® format.
SupplyChainIDRead/WriteIdentifies the unique group of customers involved in the mailing. Max value: 9999999.
UPUCountryIDRead/WriteIdentifies the UPU Country ID.Max length: 4 characters.
VersionIDRead/WriteIdentifies 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__construct()

Create default instance of Mailmark2DCodetext class.

constructconstruct($complexCodetextDTO) (static)

ParameterTypeDescription
$complexCodetextDTO``

initFromStringinitFromString($constructedCodetext)

Initializes Mailmark data from constructed codetext.

ParameterTypeDescription
$constructedCodetext``

BarcodeType

Access: Read-only

Returns: int Barcode type.

Gets barcode type.

Class_

Access: Read/Write

Returns: string class of the item

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)

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)

ParameterTypeDescription
$valuestring

ConstructedCodetext

Access: Read-only

Returns: string Constructed codetext

Construct codetext from Mailmark data.

CustomerContent

Access: Read/Write

Returns: string Customer content

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

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

ParameterTypeDescription
$valuestring

CustomerContentEncodeMode

Access: Read/Write

Returns: int Encode mode of Datamatrix barcode.

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

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

ParameterTypeDescription
$valueint

DataMatrixType

Access: Read/Write

Returns: int Size of Data Matrix barcode

2D Mailmark Type defines size of Data Matrix barcode.

2D Mailmark Type defines size of Data Matrix barcode.

ParameterTypeDescription
$valueint

DestinationPostCodeAndDPS

Access: Read/Write

Returns: string 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.

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
$valuestring

InformationTypeID

Access: Read/Write

Returns: string 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

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
$valuestring

ItemID

Access: Read/Write

Returns: int item within the Supply Chain ID

Identifies the unique item within the Supply Chain ID. Every Mailmark barcode is required to carry an ID so it can be uniquely identified for at least 90 days. Max value: 99999999.

Identifies the unique item within the Supply Chain ID. Every Mailmark barcode is required to carry an ID so it can be uniquely identified for at least 90 days. Max value: 99999999.

ParameterTypeDescription
$valueint

RTSFlag

Access: Read/Write

Returns: string RTS Flag

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

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

ParameterTypeDescription
$valuestring

ReturnToSenderPostCode

Access: Read/Write

Returns: string 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.

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

ParameterTypeDescription
$valuestring

SupplyChainID

Access: Read/Write

Returns: int Supply chain ID

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

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

ParameterTypeDescription
$valueint

UPUCountryID

Access: Read/Write

Returns: string Country ID

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

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

ParameterTypeDescription
$valuestring

VersionID

Access: Read/Write

Returns: string 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.

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
$valuestring