Skip to content

Commit

Permalink
BREAKING: fix iso_currency_code field in account model
Browse files Browse the repository at this point in the history
  • Loading branch information
allancalix committed Aug 27, 2022
1 parent a47a325 commit 7f95f03
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/model/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub enum AccountType {
pub struct Balance {
pub available: Option<f64>,
pub current: Option<f64>,
pub iso_current_code: Option<String>,
pub iso_currency_code: Option<String>,
pub limit: Option<f64>,
pub unofficial_currency_code: Option<String>,
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
---
source: src/client.rs
expression: accounts

---
[
{
"account_id": "[account_id]",
"balances": {
"available": 100.0,
"current": 110.0,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -24,7 +23,7 @@ expression: accounts
"balances": {
"available": 200.0,
"current": 210.0,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -39,7 +38,7 @@ expression: accounts
"balances": {
"available": null,
"current": 1000.0,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -54,7 +53,7 @@ expression: accounts
"balances": {
"available": null,
"current": 410.0,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": 2000.0,
"unofficial_currency_code": null
},
Expand All @@ -69,7 +68,7 @@ expression: accounts
"balances": {
"available": 43200.0,
"current": 43200.0,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -84,7 +83,7 @@ expression: accounts
"balances": {
"available": null,
"current": 320.76,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -99,7 +98,7 @@ expression: accounts
"balances": {
"available": null,
"current": 23631.9805,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -114,7 +113,7 @@ expression: accounts
"balances": {
"available": null,
"current": 65262.0,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -129,7 +128,7 @@ expression: accounts
"balances": {
"available": null,
"current": 56302.06,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand Down
18 changes: 9 additions & 9 deletions src/snapshots/rplaid__client__tests__can_read_auth.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ expression: res
"balances": {
"available": 100.0,
"current": 110.0,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -24,7 +24,7 @@ expression: res
"balances": {
"available": 200.0,
"current": 210.0,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -39,7 +39,7 @@ expression: res
"balances": {
"available": null,
"current": 1000.0,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -54,7 +54,7 @@ expression: res
"balances": {
"available": null,
"current": 410.0,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": 2000.0,
"unofficial_currency_code": null
},
Expand All @@ -69,7 +69,7 @@ expression: res
"balances": {
"available": 43200.0,
"current": 43200.0,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -84,7 +84,7 @@ expression: res
"balances": {
"available": null,
"current": 320.76,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -99,7 +99,7 @@ expression: res
"balances": {
"available": null,
"current": 23631.9805,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -114,7 +114,7 @@ expression: res
"balances": {
"available": null,
"current": 65262.0,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -129,7 +129,7 @@ expression: res
"balances": {
"available": null,
"current": 56302.06,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand Down
18 changes: 9 additions & 9 deletions src/snapshots/rplaid__client__tests__can_read_identity.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ expression: res
"balances": {
"available": 100.0,
"current": 110.0,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -24,7 +24,7 @@ expression: res
"balances": {
"available": 200.0,
"current": 210.0,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -39,7 +39,7 @@ expression: res
"balances": {
"available": null,
"current": 1000.0,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -54,7 +54,7 @@ expression: res
"balances": {
"available": null,
"current": 410.0,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": 2000.0,
"unofficial_currency_code": null
},
Expand All @@ -69,7 +69,7 @@ expression: res
"balances": {
"available": 43200.0,
"current": 43200.0,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -84,7 +84,7 @@ expression: res
"balances": {
"available": null,
"current": 320.76,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -99,7 +99,7 @@ expression: res
"balances": {
"available": null,
"current": 23631.9805,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -114,7 +114,7 @@ expression: res
"balances": {
"available": null,
"current": 65262.0,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand All @@ -129,7 +129,7 @@ expression: res
"balances": {
"available": null,
"current": 56302.06,
"iso_current_code": null,
"iso_currency_code": "USD",
"limit": null,
"unofficial_currency_code": null
},
Expand Down

0 comments on commit 7f95f03

Please sign in to comment.