business.ru_printcheck

0.0.3 • Public • Published

Business.ru Print Check

This project was created for users of the Online Checks service, who need to print checks on an online cash register in accordance with Russia Federal Law-54 using Node.js.


Installation

To install, use the command "npm install business.ru_printcheck".


Usage

To use, create yourfilename.js file.

  1. In the file create two objects:a) object with app_id and secret_key b) with your verification data. All objects you need to create in accordance with the API protocol https://app.swaggerhub.com/apis-docs/Business.Ru/check.business.ru/1.2.2
  2. Import print module
    const print = require ('business.ru_printcheck');

Initialise function

    print.printCheck(dataForPrint,checkCommand);
  1. First argument is object with app_id and secret_key;
  2. Second argument is verification data;
  3. After initialising function, all information will be logged to the combined.log.

Example of code

object with your check data:

    const checkCommand = {
        c_num: "651654321654321_45454544",
        smsEmail54FZ: "eduaxzdsdgsdgrd@ufabeer.ru",
        payed_cash: "2500",
        payed_cashless: "",
        payed_prepay: "",
        payed_nextcredit: "",
        payed_consideration: "",
        discount_info: "",
        bonuscard_info: "",
        author: "Козинов Сергей Анатольевич",
        goods: [{
            "count": "1",
            "price": "2500",
            "sum": 2500,
            "section": "",
            "name": "Сертификат",
            "nds_not_apply": true,
            "nds_value": "0",
            "payment_mode": 4,
            "item_type": 1,
            "agent_info": ""
        }],
        tag1055: 4
    };

object with your app_id and secret_key:

    const dataForPrint = {
        app_id: "16ae59a4-59b4-471f-80b9-b49f37c8c2a3",
        secret_key: "mhHKcpIbudA1nkFwoJVSOerTG4DNfEaP",
    };

Contributors

  1. Kirill Silianov - admin@beaver-lab.ru
  2. Eduard Gataullin - eduard@beaver-lab.ru

Readme

Keywords

none

Package Sidebar

Install

npm i business.ru_printcheck

Weekly Downloads

1

Version

0.0.3

License

none

Unpacked Size

9.41 kB

Total Files

5

Last publish

Collaborators

  • the_emms