1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
//! # rs-ach
//!
//! ACH (Automated Clearing House) file parser for Rust.
//!
//! This crate provides a safe interface for parsing ACH files
//! following the NACHA (National Automated Clearing House Association) specifications.
//!
//! ## Features
//!
//! - Parse ACH file headers and batch records
//! - Support for PPD, CCD, and other standard entry class codes
//! - Entry detail records with addenda support
//! - Type-safe parsing with comprehensive error handling
//! - Zero-copy parsing where possible
//!
//! ## Example
//!
//! ```no_run
//! use rs_ach::AchFile;
//!
//! let ach_content = std::fs::read_to_string("sample.ach").unwrap();
//! let ach_file = AchFile::parse(&ach_content).unwrap();
//!
//! for batch in &ach_file.batches {
//! println!("Batch: {}", batch.header.company_name);
//! for entry in &batch.entries {
//! println!(" Entry: {} - ${}", entry.individual_name, entry.amount);
//! }
//! }
//! ```
pub use AchError;
pub use ;
/// Represents a complete ACH file with file header, batches, and file control.
/// Represents a batch within an ACH file.