1.0.4 • Published 1 year ago

keez-invocing v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Keez wrapper using Node

npm dm npm dt

Getting started

Please consult Keez API documentation for more information on how to use the API.

Installation

npm install keez-invocing

Initialization

const keezApi = new KeezApi({
    application_id: 'KEEZ_APPLICATION_ID',
    client_eid: 'KEEZ_CLIENT_ID',
    secret: 'KEEZ_SECRET',
    user: 'KEEZ_USER',
    live: true,
});

Getting all invoices

const result = await keezApi.getAllInvoices();
console.log(result);

Creating an invoice

const result = await keezApi.createInvoice({
    amount: 400,
    currencyCode: 'RON',
    itemId: 'KEEZ_ITEM_ID',
    partner: {
        isLegalPerson: false,
        partnerName: 'John Doe',
        countryName: 'Romania',
        countryCode: 'RO',
        countyCode: 'RO.B',
        countyName: 'Bucuresti',
        addressDetails: 'Str. Comerciala nr. 4',
        cityName: 'Bucharest',
        identificationNumber: '1234',
    },
    paymentType: 10,
    series: 'exampleSeries',
});
console.log(result);

🤝 Contributing

Contributions, issues and feature requests are welcome!

📝 License

Copyright © 2023 TPN LABS - All rights reserved. This project is MIT licensed.

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago