paymentlib/nswcpp/jsonb/
disbursements.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct Disbursements {
    pub amount: f64,
    pub agency_code: String,
}

impl Disbursements {
    pub fn normalize(&self) -> Disbursements {
        Disbursements {
            amount: self.amount,
            agency_code: self.agency_code.clone(),
        }
    }
}