#[derive(Clone)]
pub struct Urls {
pub invoice: String,
pub perception_retention: String,
pub despatch: String,
}
#[derive(Clone)]
pub struct Credentials {
pub username: String,
pub password: String,
}
#[derive(Debug, PartialEq)]
pub enum SendFileTarget {
Soap(String, SoapFileTargetAction),
Rest(String, RestFileTargetAction),
}
#[derive(Debug, PartialEq)]
pub enum VerifyTicketTarget {
Soap(String),
Rest(String),
}
#[derive(Debug, PartialEq)]
pub enum SoapFileTargetAction {
Bill,
Summary,
Pack,
}
#[derive(Debug, PartialEq)]
pub enum RestFileTargetAction {
SendDocument,
}
pub struct DocumentType {}
impl DocumentType {
pub const INVOICE: &'static str = "Invoice";
pub const CREDIT_NOTE: &'static str = "CreditNote";
pub const DEBIT_NOTE: &'static str = "DebitNote";
pub const VOIDED_DOCUMENTS: &'static str = "VoidedDocuments";
pub const SUMMARY_DOCUMENTS: &'static str = "SummaryDocuments";
pub const DESPATCH_ADVICE: &'static str = "DespatchAdvise";
pub const PERCEPTION: &'static str = "Perception";
pub const RETENTION: &'static str = "Retention";
}
pub struct Catalog1 {}
#[allow(dead_code)]
impl Catalog1 {
pub const FACTURA: &'static str = "01";
pub const BOLETA: &'static str = "03";
pub const NOTA_CREDITO: &'static str = "07";
pub const NOTA_DEBITO: &'static str = "08";
pub const GUIA_REMISION_REMITENTE: &'static str = "09";
pub const RETENCION: &'static str = "20";
pub const GUIA_REMISION_TRANSPORTISTA: &'static str = "31";
pub const PERCEPCION: &'static str = "40";
}