https://github.com/syniol/xyo-sdk-rust
an Official XYO Financial SDK for Rust Language
https://github.com/syniol/xyo-sdk-rust
ai enrichment financial payment-transactions
Last synced: 5 months ago
JSON representation
an Official XYO Financial SDK for Rust Language
- Host: GitHub
- URL: https://github.com/syniol/xyo-sdk-rust
- Owner: syniol
- License: apache-2.0
- Created: 2025-08-17T18:32:34.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-03T13:15:58.000Z (10 months ago)
- Last Synced: 2025-09-03T15:08:34.583Z (10 months ago)
- Topics: ai, enrichment, financial, payment-transactions
- Language: Rust
- Homepage: https://xyo.financial
- Size: 31.9 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# XYO Financial SDK for Rust
  
Official Rust Mascot (Crab) for XYO.Financial Generated by Adobe AI and Imagined by Syniol Limited
This SDK is official XYO.Financial and maintained by [Syniol Limited](https://syniol.com) for Rust Language. It can
be utilised for Trial and Premium accounts, given that a valid API key is available to connect to and access the
Enrichment services.
## Quickstart Guide
First you need to install the XYO SDK for Rust Foundation ecosystem via [Crates](https://crates.io/crates/xyo-sdk) package management.
```shell
cargo add xyo-sdk
```
Client is an entry point to use the SDK. You need a valid API Key obtainable from https://xyo.financial/dashboard
```rust
use xyo_sdk::client::{new, ClientConfig};
fn main() {
let client = new(ClientConfig {
api_key: "your-api-key-from:xyo.Financial"
});
}
```
__Enrich a Single Payment Transaction__:
```rust
use xyo_sdk::enrichment::EnrichmentRequest;
fn main() {
let result = client.enrich_transaction(&EnrichmentRequest{
content: String::from("Syniol Tech"),
country_code: String::from("GB"),
});
println!("Merchant Name: {}", result.merchant);
println!("Merchant Description: {}", result.description);
println!("Merchant Categories: {}", result.categories);
println!("Merchant Logo in embedded base64 encoded: {}", result.logo);
println!("Merchant Location (Optional field): {}", result.location);
println!("Merchant Address (Optional field): {}", result.address);
}
```
__Enrich Payment Transaction Collection _(Bulk Enrichment)___:
```rust
use xyo_sdk::enrichment::EnrichmentRequest;
fn main() {
let result = client.enrich_transaction_collection(vec![
&EnrichmentRequest {
content: String::from("Syniol AI Payment Enrichment Software"),
country_code: String::from("GB"),
},
&EnrichmentRequest {
content: String::from("Costa PICKUP"),
country_code: String::from("GB"),
},
]);
println!("Work Id: {}", result.id);
println!("Downloadable Link: {}", result.link);
}
```
__Payment Transaction Collection Status__:
```rust
use xyo_sdk::enrichment::EnrichmentRequest;
fn main() {
let result = client.enrich_transaction_collection_status(enrich_transaction_collection.id);
println!("Status: {}", result);
}
```
#### Credits
Copyright © 2025 Syniol Limited. All rights reserved.