0.7.0 • Published 8 months ago

@blob-solutions/vcr-am-sdk v0.7.0

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

VCR.AM SDK

This is the official VCR.AM SDK for TS/JS. It provides a simple way to interact with the VCR.AM API.

Installation

npm install @blob-solutions/vcr-am-sdk

Usage

import { VCRClient, SaleItem } from "@blob-solutions/vcr-am-sdk";

const VCR_AM_API_KEY = "YOUR_API_KEY";
const VCR_AM_CASHIER_ID = "YOUR_CASHIER_ID";

const vcrClient = new VCRClient(VCR_AM_API_KEY);

const items: SaleItems = [
  // Add your items here
];

const { crn, srcReceiptId } = await vcrClient.registerSale({
  items,
  amount: {
    // Add your amount here
  },
  buyer: {
    type: "individual",
  },
  cashier: {
    id: apiEnv.VCR_AM_CASHIER_ID,
  },
});
0.7.0

8 months ago

0.6.0

9 months ago

0.5.0

10 months ago

0.4.0

1 year ago

0.3.0

1 year ago

0.1.0

1 year ago