novaposhta 0.3.0
Instalation
You can add this package using following commands:
npm i novaposhta
yarn add novaposhta
Usage
Basic example:
; const api = apiKey: '...' ; apiaddress;
Winston Logger:
;;; const winstonLogger = level: "debug" ;winstonLogger; const api = apiKey: '...' logger: winstonLogger; apiaddress;
Supported Methods
Address
const api = apiKey: '...' ; apiaddress;
- searchSettlements
- searchSettlementStreets
- update
- save
- getAreas
- getCities
- getSettlements
- getWarehouses
- getWarehouseTypes
- getStreet
- delete
Common
const api = apiKey: '...' ; apicommon;
- getTimeIntervals
- getCargoTypes
- getBackwardDeliveryCargoTypes
- getPalletsList
- getTypesOfPayers
- getTypesOfPayersForRedelivery
- getPackList
- getTiresWheelsList
- getCargoDescriptionList
- getMessageCodeText
- getServiceTypes
- getTypesOfCounterparties
- getPaymentForms
- getOwnershipFormsList
Counterparty
const api = apiKey: '...' ; apicounterparty;
- getCounterpartyAddresses
- getCounterpartyOptions
- getCounterpartyContactPerson
- getCounterparties
- saveCounterparty
- updateCounterparty
- deleteCounterparty
- saveContactPerson
- updateContactPerson
- deleteContactPerson
Internet Document
const api = apiKey: '...' ; apidocument;
- getDocumentList
- getDocumentDeliveryDate
- getDocumentPrice
- getStatusDocuments
- saveInternetDocument
- updateInternetDocument
- deleteInternetDocument
- generateReport
Contribute
What to help or have a suggestion? Open a new ticket and we can discuss it or submit pull request. Please, make sure you run npm test
before submitting a pull request.
License
MIT