Class Mailmark2DCodetext
Namespace: Aspose.BarCode.ComplexBarcode
Assembly: Aspose.BarCode.dll (25.2.0)
Class for encoding and decoding the text embedded in the Royal Mail 2D Mailmark code.
public sealed class Mailmark2DCodetext : IComplexCodetext
Inheritance
Implements
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Mailmark2DCodetext()
public Mailmark2DCodetext()
Properties
Class
Identifies the class of the item.
public string Class { get; set; }
Property Value
Remarks
Valid Values:
“1” - 1C (Retail)
“2” - 2C (Retail)
“3” - Economy (Retail)
“5” - Deffered (Retail)
“8” - Premium (Network Access)
“9” - Standard (Network Access)
CustomerContent
Optional space for use by customer.
public string CustomerContent { get; set; }
Property Value
Remarks
Max length by Type:
Type 7: 6 characters
Type 9: 45 characters
Type 29: 25 characters
CustomerContentEncodeMode
Encode mode of Datamatrix barcode. Default value: DataMatrixEncodeMode.C40.
public DataMatrixEncodeMode CustomerContentEncodeMode { get; set; }
Property Value
DataMatrixType
2D Mailmark Type defines size of Data Matrix barcode.
public Mailmark2DType DataMatrixType { get; set; }
Property Value
DestinationPostCodeAndDPS
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.
public string DestinationPostCodeAndDPS { get; set; }
Property Value
InformationTypeID
Identifies the Royal Mail Mailmark barcode payload for each product type.
public string InformationTypeID { get; set; }
Property Value
Remarks
Valid Values:
“0” - Domestic Sorted & Unsorted
“A” - Online Postage
“B” - Franking
“C” - Consolidation
ItemID
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.
public int ItemID { get; set; }
Property Value
RTSFlag
Flag which indicates what level of Return to Sender service is being requested.
public string RTSFlag { get; set; }
Property Value
ReturnToSenderPostCode
Contains the Return to Sender Post Code but no DPS. The PC(without DPS) must comply with a PAF® format.
public string ReturnToSenderPostCode { get; set; }
Property Value
SupplyChainID
Identifies the unique group of customers involved in the mailing. Max value: 9999999.
public int SupplyChainID { get; set; }
Property Value
UPUCountryID
Identifies the UPU Country ID.Max length: 4 characters.
public string UPUCountryID { get; set; }
Property Value
VersionID
Identifies the barcode version as relevant to each Information Type ID.
public string VersionID { get; set; }
Property Value
Remarks
Valid Values:
Currently “1”.
“0” & “2” to “9” and “A” to “Z” spare reserved for potential future use.
Methods
GetBarcodeType()
Gets barcode type.
public BaseEncodeType GetBarcodeType()
Returns
Barcode type.
GetConstructedCodetext()
Construct codetext from Mailmark data.
public string GetConstructedCodetext()
Returns
Constructed codetext
InitFromString(string)
Initializes Mailmark data from constructed codetext.
public void InitFromString(string constructedCodetext)
Parameters
constructedCodetext
string
Constructed codetext.