5 releases
Uses old Rust 2015
0.1.4 | Apr 25, 2018 |
---|---|
0.1.3 | Apr 21, 2018 |
0.1.2 | Jan 21, 2018 |
0.1.1 | Jan 18, 2018 |
0.1.0 | Jan 13, 2018 |
#309 in Finance
32KB
726 lines
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),
}
}
Dependencies
~13–21MB
~308K SLoC