Skip to content

Commit

Permalink
fix: naming of Hmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
Mollemoll committed May 15, 2024
1 parent 9249e84 commit b1eb156
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/gb_vat/hmrc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ use crate::verification::{Verification, VerificationResponse, VerificationStatus
static BASE_URI: &'static str = "https://api.service.hmrc.gov.uk/organisations/vat/check-vat-number/lookup";

#[derive(Debug)]
pub struct HMRC;
pub struct Hmrc;

impl Verifier for HMRC {
impl Verifier for Hmrc {
fn make_request(&self, tax_id: &TaxId) -> Result<VerificationResponse, VerificationError> {
let client = reqwest::blocking::Client::new();
let res = client
Expand Down Expand Up @@ -86,7 +86,7 @@ mod tests {
}"#.to_string()
);

let verifier = HMRC;
let verifier = Hmrc;
let verification = verifier.parse_response(response).unwrap();

assert_eq!(verification.status(), &VerificationStatus::Verified);
Expand Down Expand Up @@ -114,7 +114,7 @@ mod tests {
}"#.to_string()
);

let verifier = HMRC;
let verifier = Hmrc;
let verification = verifier.parse_response(response).unwrap();

assert_eq!(verification.status(), &VerificationStatus::Unverified);
Expand All @@ -133,7 +133,7 @@ mod tests {
}"#.to_string()
);

let verifier = HMRC;
let verifier = Hmrc;
let verification = verifier.parse_response(response).unwrap();

assert_eq!(verification.status(), &VerificationStatus::Unavailable);
Expand Down
2 changes: 1 addition & 1 deletion src/gb_vat/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl TaxIdType for GbVat {
}

fn verifier(&self) -> Box<dyn Verifier> {
Box::new(hmrc::HMRC)
Box::new(hmrc::Hmrc)
}
}

Expand Down

0 comments on commit b1eb156

Please sign in to comment.