Socket
Socket
Sign inDemoInstall

aspose.barcode

Package Overview
Dependencies
20
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 21.11.5 to 21.12.5

lib/aspose-barcode-nodejs-21.12.jar

2

lib/AsposeBarcode.js

@@ -10,3 +10,3 @@ 'use strict'

{
java.classpath.push(__dirname + "/aspose-barcode-nodejs-21.11.jar");
java.classpath.push(__dirname + "/aspose-barcode-nodejs-21.12.jar");
}

@@ -13,0 +13,0 @@ pushJar();

@@ -403,2 +403,3 @@ const generation = require("./Generation");

* Address type
* @enum
*/

@@ -523,2 +524,21 @@ AddressType =

}
/**
* Decodes Mailmark Barcode C and L codetext.
* @param encodedCodetext encoded codetext
* @return Decoded Mailmark Barcode C and L or null.
*/
static tryDecodeMailmark(encodedCodetext)
{
let res = new MailmarkCodetext(null);
try
{
res.initFromString(encodedCodetext);
}
catch (e)
{
return null;
}
return res;
}
}

@@ -528,2 +548,3 @@

* SwissQR bill standard version
* @enum
*/

@@ -889,2 +910,159 @@ QrBillStandardVersion =

/**
* Class for encoding and decoding the text embedded in the 4-state Royal Mailmark code.
*/
class MailmarkCodetext extends IComplexCodetext
{
static javaClassName = "com.aspose.mw.barcode.complexbarcode.MwMailmarkCodetext";
/**
* "0" – Null or Test
* "1" – Letter
* "2" – Large Letter
*/
getFormat()
{ return this.getJavaClass().getFormatSync(); }
/**
* "0" – Null or Test
* "1" – LetterN
* "2" – Large Letter
*/
setFormat(value)
{ this.getJavaClass().setFormatSync(value); }
/**
* Currently "1" – For Mailmark barcode (0 and 2 to 9 and A to Z spare for future use)
*/
getVersionID()
{ return this.getJavaClass().getVersionIDSync(); }
/**
* Currently "1" – For Mailmark barcode (0 and 2 to 9 and A to Z spare for future use)
*/
setVersionID(value)
{ this.getJavaClass().setVersionIDSync(value); }
/**
* "0" - Null 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)
*/
getClass_()
{ return this.getJavaClass().getClass_Sync(); }
/**
* "0" - Null 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)
*/
setClass(value)
{ this.getJavaClass().setClassSync(value); }
/**
* Maximum values are 99 for Barcode C and 999999 for Barcode L.
*/
getSupplychainID()
{ return this.getJavaClass().getSupplychainIDSync(); }
/**
* Maximum values are 99 for Barcode C and 999999 for Barcode L.
*/
setSupplychainID(value)
{ this.getJavaClass().setSupplychainIDSync(value); }
/**
* Maximum value is 99999999.
*/
getItemID()
{ return this.getJavaClass().getItemIDSync(); }
/**
* Maximum value is 99999999.
*/
setItemID(value)
{ this.getJavaClass().setItemIDSync(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.
*/
getDestinationPostCodePlusDPS()
{ return this.getJavaClass().getDestinationPostCodePlusDPSSync(); }
/**
* 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.
*/
setDestinationPostCodePlusDPS(value)
{ this.getJavaClass().setDestinationPostCodePlusDPSSync(value); }
/**
* Initializes a new instance of the {@code MailmarkCodetext} class.
*/
constructor(mailmarkCodetext)
{
let java_class_link = java.import(MailmarkCodetext.javaClassName);
let javaClass = null;
if (mailmarkCodetext == null)
{
javaClass = new java_class_link();
}
else
{
javaClass = new java_class_link(mailmarkCodetext.getJavaClass());
}
super(javaClass);
}
init()
{}
/**
* Construct codetext from Mailmark data.
*
* @return Constructed codetext
*/
getConstructedCodetext()
{
return this.getJavaClass().getConstructedCodetextSync();
}
/**
* Initializes Mailmark data from constructed codetext.
*
* @param constructedCodetext Constructed codetext.
*/
initFromString(constructedCodetext)
{
this.getJavaClass().initFromStringSync(constructedCodetext);
}
/**
* Gets barcode type.
*
* @return Barcode type.
*/
getBarcodeType()
{
return this.getJavaClass().getBarcodeTypeSync();
}
}
class Mailmark2DCodetext extends IComplexCodetext

@@ -1284,4 +1462,5 @@ {

Mailmark2DCodetext,
MailmarkCodetext,
Mailmark2DType,
QrBillStandardVersion
};
{
"name": "aspose.barcode",
"version": "21.11.5",
"version": "21.12.5",
"description": "barcode generation and recognition component",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc