use crate::prelude::*;
#[derive(Debug, Clone, Serialize, Deserialize, Getters, Builder)]
pub struct L18nLineItems {
#[getset(get = "pub")]
description: String,
#[getset(get = "pub")]
when: String,
#[getset(get = "pub")]
quantity: String,
#[getset(get = "pub")]
unit_price: String,
#[getset(get = "pub")]
total_cost: String,
#[getset(get = "pub")]
grand_total: String,
}
impl L18nLineItems {
pub fn english() -> Self {
Self::builder()
.description("Item".to_string())
.when("When".to_string())
.quantity("Quantity".to_string())
.unit_price("Unit price".to_string())
.total_cost("Total cost".to_string())
.grand_total("Grand Total:".to_string())
.build()
}
}