use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TaxRegistrationDetails {
#[serde(rename = "taxRegistrationType")]
pub tax_registration_type: TaxRegistrationType,
#[serde(rename = "taxRegistrationNumber")]
pub tax_registration_number: String,
}
impl TaxRegistrationDetails {
pub fn new(tax_registration_type: TaxRegistrationType, tax_registration_number: String) -> TaxRegistrationDetails {
TaxRegistrationDetails {
tax_registration_type,
tax_registration_number,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum TaxRegistrationType {
#[serde(rename = "VAT")]
Vat,
#[serde(rename = "GST")]
Gst,
}
impl Default for TaxRegistrationType {
fn default() -> TaxRegistrationType {
Self::Vat
}
}