Class for encoding and decoding the text embedded in the 4-state Royal Mailmark code.
More...
Inherits IComplexCodetext.
Class for encoding and decoding the text embedded in the 4-state Royal Mailmark code.
◆ __init__()
◆ barcode_type()
| EncodeTypes barcode_type |
( |
|
self | ) |
|
◆ class_() [1/2]
'0' None/Test; '1' 1C (Retail); '2' 2C (Retail); '3' 3C (Retail);
'4' Premium (RetailPublishing, future); '5' Deferred (Retail);
'6' Air (Retail, future); '7' Surface (Retail, future);
'8' Premium (Network Access); '9' Standard (Network Access).
◆ class_() [2/2]
| None class_ |
( |
|
self, |
|
|
str |
value |
|
) |
| |
"0" - None or Test "1" - 1C (Retail) "2" - 2C (Retail) "3" - 3C (Retail) "4" - Premium (RetailPublishing Mail) (for potential future use) "5" - Deferred (Retail) "6" - Air (Retail) (for potential future use) "7" - Surface (Retail) (for potential future use) "8" - Premium (Network Access) "9" - Standard (Network Access)
◆ constructed_codetext()
| Optional[str] constructed_codetext |
( |
|
self | ) |
|
Construct codetext from Mailmark data.
- Returns
- : Constructed codetext
Reimplemented from IComplexCodetext.
◆ destination_post_code_plus_dps() [1/2]
| str destination_post_code_plus_dps |
( |
|
self | ) |
|
The PC and DP must comply with a PAF format.
Nine character string denoting international "XY11 " (note the 5 trailing spaces) or a pattern of characters denoting a domestic sorting code. A domestic sorting code consists of an outward postcode, an inward postcode, and a Delivery Point Suffix.
- Returns
- :
◆ destination_post_code_plus_dps() [2/2]
| None destination_post_code_plus_dps |
( |
|
self, |
|
|
str |
value |
|
) |
| |
The PC and DP must comply with a PAF format.
Nine character string denoting international "XY11 " (note the 5 trailing spaces) or a pattern of characters denoting a domestic sorting code. A domestic sorting code consists of an outward postcode, an inward postcode, and a Delivery Point Suffix.
- Parameters
-
◆ format() [1/2]
"0" – None or Test "1" – Letter "2" – Large Letter
◆ format() [2/2]
| None format |
( |
|
self, |
|
|
int |
value |
|
) |
| |
"0" – None or Test "1" – LetterN "2" – Large Letter
◆ init_from_string()
| None init_from_string |
( |
|
self, |
|
|
str |
constructed_codetext |
|
) |
| |
Initializes Mailmark data from constructed codetext.
- Parameters
-
| constructedCodetext: Constructed codetext |
- Returns
- :
Reimplemented from IComplexCodetext.
◆ item_id() [1/2]
Maximum value is 99999999.
- Returns
- :
◆ item_id() [2/2]
| None item_id |
( |
|
self, |
|
|
int |
value |
|
) |
| |
Maximum value is 99999999.
- Parameters
-
◆ supplychain_id() [1/2]
| int supplychain_id |
( |
|
self | ) |
|
Maximum values are 99 for Barcode C and 999999 for Barcode L.
- Returns
- :
◆ supplychain_id() [2/2]
| None supplychain_id |
( |
|
self, |
|
|
int |
value |
|
) |
| |
Maximum values are 99 for Barcode C and 999999 for Barcode L.
- Parameters
-
- Returns
- :
◆ version_id() [1/2]
Currently "1" – For Mailmark barcode (0 and 2 to 9 and A to Z spare for future use)
- Returns
- :
◆ version_id() [2/2]
| None version_id |
( |
|
self, |
|
|
int |
value |
|
) |
| |
Currently "1" – For Mailmark barcode (0 and 2 to 9 and A to Z spare for future use)