Skip to content

Commit d316fea

Browse files
rename
1 parent 0cb8e61 commit d316fea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

smarty-rust-sdk/src/international_postal_code_api/candidate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ pub struct Candidate {
1313
pub dependent_locality_name: String,
1414
pub double_dependent_locality: String,
1515
#[serde(rename = "postal_code")]
16-
pub postal_code_short: String,
16+
pub postal_code: String,
1717
pub postal_code_extra: String,
1818
}

smarty-rust-sdk/src/international_postal_code_api/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ mod tests {
7373
assert_eq!(candidate.administrative_area, "SP");
7474
assert_eq!(candidate.sub_administrative_area, "Greater Sao Paulo");
7575
assert_eq!(candidate.super_administrative_area, "Southeast");
76-
assert_eq!(candidate.postal_code_short, "02516");
76+
assert_eq!(candidate.postal_code, "02516");
7777
assert_eq!(candidate.postal_code_extra, "050");
7878
}
7979
}

0 commit comments

Comments
 (0)