Skip to content

Commit c510f95

Browse files
authored
Release Oct 19th
* Added a new field `location` in an enrichment response * Added a new field `address` in an enrichment response
2 parents 214a09a + 9b3eb24 commit c510f95

8 files changed

Lines changed: 15 additions & 7 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ workspace = { members = ["xyo-http"], exclude = ["example"] }
22
[package]
33
name = "xyo-sdk"
44
description = "XYO Financial Official SDK for Rust"
5-
version = "1.1.2"
5+
version = "1.1.3"
66
edition = "2021"
77
authors = [
88
"Hadi Tajallaei <hadi@syniol.com>"

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ fn main() {
4444
println!("Merchant Description: {}", result.description);
4545
println!("Merchant Categories: {}", result.categories);
4646
println!("Merchant Logo in embedded base64 encoded: {}", result.logo);
47+
println!("Merchant Location (Optional field): {}", result.location);
48+
println!("Merchant Address (Optional field): {}", result.address);
4749
}
4850
```
4951

example/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ edition = "2021"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
xyo-sdk = { version = "1.1.2", path = ".." }
9+
xyo-sdk = { version = "1.1.3", path = ".." }

src/client.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ mod tests {
136136
description: String::from("Software and Platform Consultancy"),
137137
categories: vec![String::from("Software")],
138138
logo: String::from("base64/png-dsadsadasdasdasdasdsa"),
139+
location: Some(String::from("London, United Kingdom")),
140+
address: Some(String::from("")),
139141
};
140142

141143
Ok(String::from(format!(
@@ -162,6 +164,8 @@ mod tests {
162164
assert_eq!("Software and Platform Consultancy", actual.description);
163165
assert_eq!(vec![String::from("Software")], actual.categories);
164166
assert_eq!("base64/png-dsadsadasdasdasdasdsa", actual.logo);
167+
assert_eq!("London, United Kingdom", actual.location.unwrap());
168+
assert_eq!("", actual.address.unwrap());
165169
}
166170

167171
#[test]

src/enrichment.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ pub struct EnrichmentResponse {
1414
pub description: String,
1515
pub categories: Vec<String>,
1616
pub logo: String,
17+
pub location: Option<String>,
18+
pub address: Option<String>,
1719
}
1820

1921
#[derive(Serialize, Deserialize, Debug)]

xyo-http/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "xyo-http"
33
description = "http client used for XYO Financial SDK"
4-
version = "1.1.2"
4+
version = "1.1.3"
55
edition = "2021"
66
authors = [
77
"Hadi Tajallaei <hadi@syniol.com>"

0 commit comments

Comments
 (0)