npchk

Crates.ionpchk
lib.rsnpchk
version0.1.4
sourcesrc
created_at2018-01-13 15:38:38.095505
updated_at2018-04-25 16:11:33.933
descriptionThe services of the Federal tax service for Rust
homepagehttps://github.com/andreevlex/npchk-rs
repositoryhttps://github.com/andreevlex/npchk-rs
max_upload_size
id46664
size33,474
Protocols (github:cloudflare:protocols)

documentation

README

npchk

Library to check the status of contractors through service http://npchk.nalog.ru/.

Installation

extern crate npchk;

Example usage

extern crate chrono;
extern crate npchk;

use npchk::*;
use chrono::prelude::*;

fn main() {
    let mut partners: Vec<Partner> = vec![];
    partners.push(Partner::new("4205036750", "420501001", Utc::now()));
    partners.push(Partner::new("6648185610", "662301001", Utc::now()));

    match check_fns(partners) {
        Ok(rsp) => println!("{:?}", rsp),
        Err(e) => println!("Error {:?}", e),
    }
}

Russian language

Библиотека для проверки статуса контрагентов через сервис http://npchk.nalog.ru/.

Установка

extern crate npchk;

Пример использования

extern crate chrono;
extern crate npchk;

use npchk::*;
use chrono::prelude::*;

fn main() {
    let mut partners: Vec<Partner> = vec![];
    partners.push(Partner::new("4205036750", "420501001", Utc::now()));
    partners.push(Partner::new("6648185610", "662301001", Utc::now()));

    match check_fns(partners) {
        Ok(rsp) => println!("{:?}", rsp),
        Err(e) => println!("Error {:?}", e),
    }
}
Commit count: 14

cargo fmt