Skip to content

Commit

Permalink
Update to 2021 edition
Browse files Browse the repository at this point in the history
  • Loading branch information
allancalix committed May 6, 2022
1 parent b9dd72a commit a47a325
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 50 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "rplaid"
version = "0.2.1"
version = "0.3.0"
authors = ["Allan Calix <[email protected]>"]
edition = "2018"
edition = "2021"
description = """
An async client library for Plaid APIs.
"""
Expand Down Expand Up @@ -30,6 +30,7 @@ thiserror = "1.0.28"
async-stream = { version = "0.3.2", optional = true }
futures-core = { version = "0.3.17", optional = true }
futures-util = { version = "0.3.17", optional = true }
insta = "1.7.2"

[dev-dependencies]
insta = { version = "1.7.2", features = ["redactions"] }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
source: src/client.rs
expression: res

---
{
"institution_id": "ins_129571",
Expand All @@ -19,6 +18,9 @@ expression: res
"url": null,
"primary_color": null,
"logo": null,
"routing_numbers": [],
"routing_numbers": [
"011401533",
"101908988"
],
"oauth": false
}
Original file line number Diff line number Diff line change
@@ -1,28 +1,8 @@
---
source: src/client.rs
expression: res

---
[
{
"institution_id": "ins_129571",
"name": "Bank21",
"products": [
"assets",
"auth",
"balance",
"transactions",
"identity"
],
"country_codes": [
"US"
],
"url": null,
"primary_color": null,
"logo": null,
"routing_numbers": [],
"oauth": false
},
{
"institution_id": "ins_122874",
"name": "Banque Populaire - Bourgogne Franche Comté",
Expand Down Expand Up @@ -202,5 +182,25 @@ expression: res
"logo": null,
"routing_numbers": [],
"oauth": true
},
{
"institution_id": "ins_122883",
"name": "Banque Populaire - Grand Ouest",
"products": [
"assets",
"auth",
"balance",
"transactions",
"identity",
"payment_initiation"
],
"country_codes": [
"FR"
],
"url": null,
"primary_color": null,
"logo": null,
"routing_numbers": [],
"oauth": true
}
]
3 changes: 1 addition & 2 deletions src/snapshots/rplaid__client__tests__can_modify_items.snap
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
---
source: src/client.rs
expression: item

---
{
"item_id": "[item_id]",
"institution_id": "ins_129571",
"webhook": "",
"error": null,
"available_products": [
"assets",
"balance",
"identity",
"transactions"
],
"billed_products": [
"assets",
"auth"
],
"consent_expiration_time": null,
Expand Down
3 changes: 1 addition & 2 deletions src/snapshots/rplaid__client__tests__can_read_auth.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
source: src/client.rs
expression: res

---
{
"accounts": [
Expand Down Expand Up @@ -166,11 +165,11 @@ expression: res
"webhook": "",
"error": null,
"available_products": [
"assets",
"balance",
"identity"
],
"billed_products": [
"assets",
"auth",
"transactions"
],
Expand Down
3 changes: 1 addition & 2 deletions src/snapshots/rplaid__client__tests__can_read_identity.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
source: src/client.rs
expression: res

---
{
"accounts": [
Expand Down Expand Up @@ -147,10 +146,10 @@ expression: res
"webhook": "",
"error": null,
"available_products": [
"assets",
"balance"
],
"billed_products": [
"assets",
"auth",
"identity",
"transactions"
Expand Down
19 changes: 12 additions & 7 deletions src/snapshots/rplaid__client__tests__can_read_transactions.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
source: src/client.rs
expression: res.transactions

---
[
{
Expand All @@ -21,7 +20,8 @@ expression: res.transactions
"pending": false,
"transaction_id": "[transaction_id]",
"payment_channel": "in store",
"merchant_name": "Touchstone"
"merchant_name": "Touchstone",
"authorized_date": "2021-09-04"
},
{
"transaction_type": "special",
Expand All @@ -40,7 +40,8 @@ expression: res.transactions
"pending": false,
"transaction_id": "[transaction_id]",
"payment_channel": "other",
"merchant_name": "United Airlines"
"merchant_name": "United Airlines",
"authorized_date": "2021-09-05"
},
{
"transaction_type": "place",
Expand All @@ -62,7 +63,8 @@ expression: res.transactions
"pending": false,
"transaction_id": "[transaction_id]",
"payment_channel": "in store",
"merchant_name": "McDonald's"
"merchant_name": "McDonald's",
"authorized_date": "2021-09-04"
},
{
"transaction_type": "place",
Expand All @@ -82,7 +84,8 @@ expression: res.transactions
"pending": false,
"transaction_id": "[transaction_id]",
"payment_channel": "in store",
"merchant_name": "Starbucks"
"merchant_name": "Starbucks",
"authorized_date": "2021-09-04"
},
{
"transaction_type": "place",
Expand All @@ -101,7 +104,8 @@ expression: res.transactions
"pending": false,
"transaction_id": "[transaction_id]",
"payment_channel": "in store",
"merchant_name": "Sparkfun"
"merchant_name": "Sparkfun",
"authorized_date": "2021-09-02"
},
{
"transaction_type": "special",
Expand All @@ -119,6 +123,7 @@ expression: res.transactions
"date": "2021-09-02",
"pending": false,
"transaction_id": "[transaction_id]",
"payment_channel": "other"
"payment_channel": "other",
"authorized_date": "2021-09-02"
}
]
25 changes: 12 additions & 13 deletions src/snapshots/rplaid__client__tests__can_search_institutions.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
source: src/client.rs
expression: res

---
[
{
Expand Down Expand Up @@ -65,8 +64,8 @@ expression: res
"oauth": true
},
{
"institution_id": "ins_122885",
"name": "Banque Populaire - Banque de Savoie",
"institution_id": "ins_122883",
"name": "Banque Populaire - Grand Ouest",
"products": [
"assets",
"auth",
Expand All @@ -85,8 +84,8 @@ expression: res
"oauth": true
},
{
"institution_id": "ins_122883",
"name": "Banque Populaire - Grand Ouest",
"institution_id": "ins_122884",
"name": "Banque Populaire - Méditerranée",
"products": [
"assets",
"auth",
Expand All @@ -105,8 +104,8 @@ expression: res
"oauth": true
},
{
"institution_id": "ins_122884",
"name": "Banque Populaire - Méditerranée",
"institution_id": "ins_122882",
"name": "Banque Populaire - Occitane",
"products": [
"assets",
"auth",
Expand All @@ -125,8 +124,8 @@ expression: res
"oauth": true
},
{
"institution_id": "ins_122882",
"name": "Banque Populaire - Occitane",
"institution_id": "ins_122876",
"name": "Banque Populaire - Rives de Paris",
"products": [
"assets",
"auth",
Expand All @@ -145,8 +144,8 @@ expression: res
"oauth": true
},
{
"institution_id": "ins_122876",
"name": "Banque Populaire - Rives de Paris",
"institution_id": "ins_122879",
"name": "Banque Populaire - Sud",
"products": [
"assets",
"auth",
Expand All @@ -165,8 +164,8 @@ expression: res
"oauth": true
},
{
"institution_id": "ins_122879",
"name": "Banque Populaire - Sud",
"institution_id": "ins_122877",
"name": "Banque Populaire - Val de France",
"products": [
"assets",
"auth",
Expand Down

0 comments on commit a47a325

Please sign in to comment.