vsdc-zra-sdk 1.0.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -12,7 +12,7 @@ A plug-and-play TypeScript/Node.js SDK for the Zambia Revenue Authority (ZRA) Sm
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- npm install vsdc-zra
15
+ npm install vsdc-zra-sdk
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -22,7 +22,7 @@ npm install vsdc-zra
22
22
  Initialize the client with your VSDC settings.
23
23
 
24
24
  ```typescript
25
- import { VSDCClient } from "vsdc-zra";
25
+ import { VSDCClient } from "vsdc-zra-sdk";
26
26
 
27
27
  const client = new VSDCClient({
28
28
  baseUrl: "http://localhost:8080", // URL of your local VSDC
@@ -48,7 +48,7 @@ try {
48
48
  ### 3. Register an Item
49
49
 
50
50
  ```typescript
51
- import { ProductType, PackagingUnit, QuantityUnit, TaxType } from "vsdc-zra";
51
+ import { ProductType, PackagingUnit, QuantityUnit, TaxType } from "vsdc-zra-sdk";
52
52
 
53
53
  const newItem = {
54
54
  itemCd: "ITM001",
@@ -74,7 +74,7 @@ console.log("Item Saved:", response);
74
74
  The SDK automatically calculates tax totals if you use the simplified interface.
75
75
 
76
76
  ```typescript
77
- import { TransactionType, ReceiptType, PaymentMethod, TaxType } from "vsdc-zra";
77
+ import { TransactionType, ReceiptType, PaymentMethod, TaxType } from "vsdc-zra-sdk";
78
78
 
79
79
  const sale = {
80
80
  invcNo: 1001,
@@ -117,7 +117,7 @@ console.log("Invoice Submitted:", invoiceResponse);
117
117
  ### 5. Managing Stock
118
118
 
119
119
  ```typescript
120
- import { StockIOSaveReq } from "vsdc-zra";
120
+ import { StockIOSaveReq } from "vsdc-zra-sdk";
121
121
 
122
122
  // Adjust stock (In/Out)
123
123
  const stockAdjustment = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vsdc-zra-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [