tktax-amazon 0.2.2

High-performance crate for parsing, fusing, and exporting Amazon transaction data for financial recordkeeping.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// ---------------- [ File: tktax-amazon/src/mock.rs ]
crate::ix!();

pub fn mock_example_amazon_business_expenses() -> Vec<AmazonStoreBusinessPurchase> {
    vec![
        amazon_business![1 , "ethernet_adapter" , 33.99 , NaiveDate::from_ymd(2023, 01, 01)], 
        amazon_business![1 , "batteries"        , 4.76  , NaiveDate::from_ymd(2023, 12, 05)], 
    ]
}

pub fn mock_example_amazon_med_expenses() -> Vec<AmazonStoreMedicalPurchase> {
    vec![
        amazon_medical![1, "compression_socks", 48.01, NaiveDate::from_ymd(2023, 05, 05)],
    ]
}