mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-08 06:55:21 +02:00
Remove transactions vcr test due to verbosity
This commit is contained in:
parent
8683026519
commit
65a49ed833
9 changed files with 228 additions and 96265 deletions
|
@ -49,34 +49,6 @@ class Provider::PlaidTest < ActiveSupport::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
# NOTE: This one is a bit tricky because when the item is originally created,
|
||||
# no transactions will be available yet (Plaid gives no way to pre-populate txns in sandbox).
|
||||
#
|
||||
# To get this working on a VCR refresh:
|
||||
# 1. Run this test once to create the item
|
||||
# 2. Wait a minute
|
||||
# 3. Turn on `record: :all` and run the test again (txns should be populated now)
|
||||
# 4. Turn off `record: :all`
|
||||
test "gets item transactions with optional cursor for partial syncs" do
|
||||
VCR.use_cassette("plaid/get_transactions_with_next_cursor") do
|
||||
access_token = get_access_token
|
||||
|
||||
transactions_response = @plaid.get_transactions(access_token)
|
||||
|
||||
assert transactions_response.added.size > 0
|
||||
|
||||
# Second call, we get only the latest transactions
|
||||
transactions_with_cursor = @plaid.get_transactions(
|
||||
access_token,
|
||||
next_cursor: transactions_response.cursor
|
||||
)
|
||||
|
||||
assert_equal 0, transactions_with_cursor.added.size
|
||||
assert_equal 0, transactions_with_cursor.modified.size
|
||||
assert_equal 0, transactions_with_cursor.removed.size
|
||||
end
|
||||
end
|
||||
|
||||
test "gets item investments" do
|
||||
VCR.use_cassette("plaid/get_item_investments") do
|
||||
access_token = get_access_token
|
||||
|
@ -90,7 +62,7 @@ class Provider::PlaidTest < ActiveSupport::TestCase
|
|||
test "gets item liabilities" do
|
||||
VCR.use_cassette("plaid/get_item_liabilities") do
|
||||
access_token = get_access_token
|
||||
liabilities_response = @plaid.get_item_liabilities(access_token: access_token)
|
||||
liabilities_response = @plaid.get_item_liabilities(access_token)
|
||||
|
||||
assert liabilities_response.credit.count > 0
|
||||
assert liabilities_response.student.count > 0
|
||||
|
|
|
@ -29,7 +29,7 @@ http_interactions:
|
|||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Mon, 19 May 2025 15:34:39 GMT
|
||||
- Mon, 19 May 2025 17:24:03 GMT
|
||||
Content-Type:
|
||||
- application/json; charset=utf-8
|
||||
Content-Length:
|
||||
|
@ -41,7 +41,7 @@ http_interactions:
|
|||
Vary:
|
||||
- Accept-Encoding
|
||||
X-Envoy-Upstream-Service-Time:
|
||||
- '4991'
|
||||
- '2892'
|
||||
X-Envoy-Decorator-Operation:
|
||||
- default.svc-apiv2:8080/*
|
||||
Strict-Transport-Security:
|
||||
|
@ -56,16 +56,16 @@ http_interactions:
|
|||
encoding: ASCII-8BIT
|
||||
string: |-
|
||||
{
|
||||
"public_token": "public-sandbox-cd9e5fdc-bb09-4648-a453-c3debb681883",
|
||||
"request_id": "mf8QVG1msqNmNs7"
|
||||
"public_token": "public-sandbox-0463cb9d-8bdb-4e01-9b33-243e1370623c",
|
||||
"request_id": "FaSopSLAyHsZM9O"
|
||||
}
|
||||
recorded_at: Mon, 19 May 2025 15:34:39 GMT
|
||||
recorded_at: Mon, 19 May 2025 17:24:03 GMT
|
||||
- request:
|
||||
method: post
|
||||
uri: https://sandbox.plaid.com/item/public_token/exchange
|
||||
body:
|
||||
encoding: UTF-8
|
||||
string: '{"public_token":"public-sandbox-cd9e5fdc-bb09-4648-a453-c3debb681883"}'
|
||||
string: '{"public_token":"public-sandbox-0463cb9d-8bdb-4e01-9b33-243e1370623c"}'
|
||||
headers:
|
||||
Content-Type:
|
||||
- application/json
|
||||
|
@ -89,7 +89,7 @@ http_interactions:
|
|||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Mon, 19 May 2025 15:34:39 GMT
|
||||
- Mon, 19 May 2025 17:24:03 GMT
|
||||
Content-Type:
|
||||
- application/json; charset=utf-8
|
||||
Content-Length:
|
||||
|
@ -101,7 +101,7 @@ http_interactions:
|
|||
Vary:
|
||||
- Accept-Encoding
|
||||
X-Envoy-Upstream-Service-Time:
|
||||
- '165'
|
||||
- '171'
|
||||
X-Envoy-Decorator-Operation:
|
||||
- default.svc-apiv2:8080/*
|
||||
Strict-Transport-Security:
|
||||
|
@ -116,9 +116,9 @@ http_interactions:
|
|||
encoding: ASCII-8BIT
|
||||
string: |-
|
||||
{
|
||||
"access_token": "access-sandbox-d531d3c9-8520-43ca-9e58-5b70b79fd1d4",
|
||||
"item_id": "ZvlBL5eMPQtnXDV6QrR9sRedKePzMaFgzeVqA",
|
||||
"request_id": "PfP9W8bCgpIdD2G"
|
||||
"access_token": "access-sandbox-0af2c971-41a6-4fc5-a97d-f2b27ab0a648",
|
||||
"item_id": "n7XKpjRmDkHENymaBw7rU71wxQnrW4i6DDrQP",
|
||||
"request_id": "2e1nOnm2CoOXVcH"
|
||||
}
|
||||
recorded_at: Mon, 19 May 2025 15:34:39 GMT
|
||||
recorded_at: Mon, 19 May 2025 17:24:03 GMT
|
||||
recorded_with: VCR 6.3.1
|
||||
|
|
|
@ -29,7 +29,7 @@ http_interactions:
|
|||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Mon, 19 May 2025 15:34:33 GMT
|
||||
- Mon, 19 May 2025 17:24:09 GMT
|
||||
Content-Type:
|
||||
- application/json; charset=utf-8
|
||||
Content-Length:
|
||||
|
@ -41,7 +41,7 @@ http_interactions:
|
|||
Vary:
|
||||
- Accept-Encoding
|
||||
X-Envoy-Upstream-Service-Time:
|
||||
- '3399'
|
||||
- '3086'
|
||||
X-Envoy-Decorator-Operation:
|
||||
- default.svc-apiv2:8080/*
|
||||
Strict-Transport-Security:
|
||||
|
@ -56,16 +56,16 @@ http_interactions:
|
|||
encoding: ASCII-8BIT
|
||||
string: |-
|
||||
{
|
||||
"public_token": "public-sandbox-701c57cf-4a49-44b8-a254-9c3bda72cd66",
|
||||
"request_id": "kQ07S8tBwKOrExd"
|
||||
"public_token": "public-sandbox-29a5644f-001d-4bf5-abae-d26ecf8ee211",
|
||||
"request_id": "6dz2Xo7zoyT9W9R"
|
||||
}
|
||||
recorded_at: Mon, 19 May 2025 15:34:33 GMT
|
||||
recorded_at: Mon, 19 May 2025 17:24:09 GMT
|
||||
- request:
|
||||
method: post
|
||||
uri: https://sandbox.plaid.com/item/public_token/exchange
|
||||
body:
|
||||
encoding: UTF-8
|
||||
string: '{"public_token":"public-sandbox-701c57cf-4a49-44b8-a254-9c3bda72cd66"}'
|
||||
string: '{"public_token":"public-sandbox-29a5644f-001d-4bf5-abae-d26ecf8ee211"}'
|
||||
headers:
|
||||
Content-Type:
|
||||
- application/json
|
||||
|
@ -89,7 +89,7 @@ http_interactions:
|
|||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Mon, 19 May 2025 15:34:34 GMT
|
||||
- Mon, 19 May 2025 17:24:09 GMT
|
||||
Content-Type:
|
||||
- application/json; charset=utf-8
|
||||
Content-Length:
|
||||
|
@ -101,7 +101,7 @@ http_interactions:
|
|||
Vary:
|
||||
- Accept-Encoding
|
||||
X-Envoy-Upstream-Service-Time:
|
||||
- '156'
|
||||
- '152'
|
||||
X-Envoy-Decorator-Operation:
|
||||
- default.svc-apiv2:8080/*
|
||||
Strict-Transport-Security:
|
||||
|
@ -116,9 +116,9 @@ http_interactions:
|
|||
encoding: ASCII-8BIT
|
||||
string: |-
|
||||
{
|
||||
"access_token": "access-sandbox-951ad956-da38-4a99-a8fd-c5b945502da8",
|
||||
"item_id": "5Z6pw4gd9dTA9A6ADx9WhqZBvWgPdofZkJn4z",
|
||||
"request_id": "JLgpp0qLgiJUeWT"
|
||||
"access_token": "access-sandbox-fb7bb5da-e3e2-464e-8644-4eeafbf6541f",
|
||||
"item_id": "bd9d3lAbjqhWyRz7bl61s9R7npPJ87HVzAyvn",
|
||||
"request_id": "GqA99rziFZduKYg"
|
||||
}
|
||||
recorded_at: Mon, 19 May 2025 15:34:34 GMT
|
||||
recorded_at: Mon, 19 May 2025 17:24:09 GMT
|
||||
recorded_with: VCR 6.3.1
|
||||
|
|
|
@ -5,7 +5,7 @@ http_interactions:
|
|||
uri: https://sandbox.plaid.com/item/get
|
||||
body:
|
||||
encoding: UTF-8
|
||||
string: '{"access_token":"access-sandbox-d531d3c9-8520-43ca-9e58-5b70b79fd1d4"}'
|
||||
string: '{"access_token":"access-sandbox-0af2c971-41a6-4fc5-a97d-f2b27ab0a648"}'
|
||||
headers:
|
||||
Content-Type:
|
||||
- application/json
|
||||
|
@ -29,11 +29,11 @@ http_interactions:
|
|||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Mon, 19 May 2025 15:34:42 GMT
|
||||
- Mon, 19 May 2025 17:24:03 GMT
|
||||
Content-Type:
|
||||
- application/json; charset=utf-8
|
||||
Content-Length:
|
||||
- '1071'
|
||||
- '1050'
|
||||
Connection:
|
||||
- keep-alive
|
||||
Plaid-Version:
|
||||
|
@ -41,7 +41,7 @@ http_interactions:
|
|||
Vary:
|
||||
- Accept-Encoding
|
||||
X-Envoy-Upstream-Service-Time:
|
||||
- '148'
|
||||
- '157'
|
||||
X-Envoy-Decorator-Operation:
|
||||
- default.svc-apiv2:8080/*
|
||||
Strict-Transport-Security:
|
||||
|
@ -76,11 +76,11 @@ http_interactions:
|
|||
"transactions"
|
||||
],
|
||||
"consent_expiration_time": null,
|
||||
"created_at": "2025-05-19T15:34:34Z",
|
||||
"created_at": "2025-05-19T17:24:00Z",
|
||||
"error": null,
|
||||
"institution_id": "ins_109508",
|
||||
"institution_name": "First Platypus Bank",
|
||||
"item_id": "ZvlBL5eMPQtnXDV6QrR9sRedKePzMaFgzeVqA",
|
||||
"item_id": "n7XKpjRmDkHENymaBw7rU71wxQnrW4i6DDrQP",
|
||||
"products": [
|
||||
"investments",
|
||||
"liabilities",
|
||||
|
@ -89,18 +89,18 @@ http_interactions:
|
|||
"update_type": "background",
|
||||
"webhook": ""
|
||||
},
|
||||
"request_id": "dP15rNDzgSoFSjz",
|
||||
"request_id": "dpcY8geAZ93oxJm",
|
||||
"status": {
|
||||
"investments": {
|
||||
"last_failed_update": null,
|
||||
"last_successful_update": "2025-05-19T15:34:36.251Z"
|
||||
"last_successful_update": "2025-05-19T17:24:01.861Z"
|
||||
},
|
||||
"last_webhook": null,
|
||||
"transactions": {
|
||||
"last_failed_update": null,
|
||||
"last_successful_update": "2025-05-19T15:34:41.33Z"
|
||||
"last_successful_update": null
|
||||
}
|
||||
}
|
||||
}
|
||||
recorded_at: Mon, 19 May 2025 15:34:42 GMT
|
||||
recorded_at: Mon, 19 May 2025 17:24:03 GMT
|
||||
recorded_with: VCR 6.3.1
|
||||
|
|
|
@ -5,7 +5,7 @@ http_interactions:
|
|||
uri: https://sandbox.plaid.com/accounts/get
|
||||
body:
|
||||
encoding: UTF-8
|
||||
string: '{"access_token":"access-sandbox-d531d3c9-8520-43ca-9e58-5b70b79fd1d4"}'
|
||||
string: '{"access_token":"access-sandbox-0af2c971-41a6-4fc5-a97d-f2b27ab0a648"}'
|
||||
headers:
|
||||
Content-Type:
|
||||
- application/json
|
||||
|
@ -29,11 +29,11 @@ http_interactions:
|
|||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Mon, 19 May 2025 15:34:41 GMT
|
||||
- Mon, 19 May 2025 17:24:04 GMT
|
||||
Content-Type:
|
||||
- application/json; charset=utf-8
|
||||
Content-Length:
|
||||
- '2579'
|
||||
- '2578'
|
||||
Connection:
|
||||
- keep-alive
|
||||
Plaid-Version:
|
||||
|
@ -41,7 +41,7 @@ http_interactions:
|
|||
Vary:
|
||||
- Accept-Encoding
|
||||
X-Envoy-Upstream-Service-Time:
|
||||
- '187'
|
||||
- '191'
|
||||
X-Envoy-Decorator-Operation:
|
||||
- default.svc-apiv2:8080/*
|
||||
Strict-Transport-Security:
|
||||
|
@ -58,39 +58,7 @@ http_interactions:
|
|||
{
|
||||
"accounts": [
|
||||
{
|
||||
"account_id": "MpWPx5o4yrcpZvwQrdbMuwX699pjDRCLX98NN",
|
||||
"balances": {
|
||||
"available": 15000,
|
||||
"current": 15000,
|
||||
"iso_currency_code": "USD",
|
||||
"limit": null,
|
||||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "1119",
|
||||
"name": "Test Student Loan Account",
|
||||
"official_name": "Plaid student",
|
||||
"subtype": "student",
|
||||
"type": "loan"
|
||||
},
|
||||
{
|
||||
"account_id": "ZvlBL5eMPQtnXDV6QrR9sReNVVz1XAieagDPz",
|
||||
"balances": {
|
||||
"available": 11065.71,
|
||||
"current": 1000,
|
||||
"iso_currency_code": "USD",
|
||||
"limit": 12200,
|
||||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "3053",
|
||||
"name": "Test Credit Card Account",
|
||||
"official_name": "Plaid credit card",
|
||||
"subtype": "credit card",
|
||||
"type": "credit"
|
||||
},
|
||||
{
|
||||
"account_id": "QEbZN5mMrxTnJ4XRxba9s9pKBBx4bnuwPpWZa",
|
||||
"account_id": "vor45kgbDjfqa1BMD8QRU4om8adWNWtqbzQJe",
|
||||
"balances": {
|
||||
"available": 8000,
|
||||
"current": 10000,
|
||||
|
@ -99,14 +67,30 @@ http_interactions:
|
|||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "7330",
|
||||
"mask": "1122",
|
||||
"name": "Test Brokerage Account",
|
||||
"official_name": "Plaid brokerage",
|
||||
"subtype": "brokerage",
|
||||
"type": "investment"
|
||||
},
|
||||
{
|
||||
"account_id": "edNwr51XgAcoARVZP68vsdREvv56jafrvLlJ7",
|
||||
"account_id": "RperV9wJMNiDWKljGMkPCkwDGJb7q7FaNlVMp",
|
||||
"balances": {
|
||||
"available": 9372.38,
|
||||
"current": 1000,
|
||||
"iso_currency_code": "USD",
|
||||
"limit": 10500,
|
||||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "1219",
|
||||
"name": "Test Credit Card Account",
|
||||
"official_name": "Plaid credit card",
|
||||
"subtype": "credit card",
|
||||
"type": "credit"
|
||||
},
|
||||
{
|
||||
"account_id": "9mvxVZRW7LUD67QbEBm1CPZ6XlqkmkF4oGNBo",
|
||||
"balances": {
|
||||
"available": 10000,
|
||||
"current": 10000,
|
||||
|
@ -115,11 +99,27 @@ http_interactions:
|
|||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "8957",
|
||||
"mask": "4243",
|
||||
"name": "Test Depository Account",
|
||||
"official_name": "Plaid checking",
|
||||
"subtype": "checking",
|
||||
"type": "depository"
|
||||
},
|
||||
{
|
||||
"account_id": "6Gwzm7nJ6ZU4VbqEyKzZszyPQ8keRet8Q97k7",
|
||||
"balances": {
|
||||
"available": 15000,
|
||||
"current": 15000,
|
||||
"iso_currency_code": "USD",
|
||||
"limit": null,
|
||||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "9572",
|
||||
"name": "Test Student Loan Account",
|
||||
"official_name": "Plaid student",
|
||||
"subtype": "student",
|
||||
"type": "loan"
|
||||
}
|
||||
],
|
||||
"item": {
|
||||
|
@ -145,7 +145,7 @@ http_interactions:
|
|||
"error": null,
|
||||
"institution_id": "ins_109508",
|
||||
"institution_name": "First Platypus Bank",
|
||||
"item_id": "ZvlBL5eMPQtnXDV6QrR9sRedKePzMaFgzeVqA",
|
||||
"item_id": "n7XKpjRmDkHENymaBw7rU71wxQnrW4i6DDrQP",
|
||||
"products": [
|
||||
"investments",
|
||||
"liabilities",
|
||||
|
@ -154,7 +154,7 @@ http_interactions:
|
|||
"update_type": "background",
|
||||
"webhook": ""
|
||||
},
|
||||
"request_id": "kiCPz2eRTH2DTbA"
|
||||
"request_id": "EWD5MMMYV0o9cZ0"
|
||||
}
|
||||
recorded_at: Mon, 19 May 2025 15:34:41 GMT
|
||||
recorded_at: Mon, 19 May 2025 17:24:04 GMT
|
||||
recorded_with: VCR 6.3.1
|
||||
|
|
|
@ -5,7 +5,7 @@ http_interactions:
|
|||
uri: https://sandbox.plaid.com/investments/holdings/get
|
||||
body:
|
||||
encoding: UTF-8
|
||||
string: '{"access_token":"access-sandbox-d531d3c9-8520-43ca-9e58-5b70b79fd1d4"}'
|
||||
string: '{"access_token":"access-sandbox-0af2c971-41a6-4fc5-a97d-f2b27ab0a648"}'
|
||||
headers:
|
||||
Content-Type:
|
||||
- application/json
|
||||
|
@ -29,11 +29,11 @@ http_interactions:
|
|||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Mon, 19 May 2025 15:34:41 GMT
|
||||
- Mon, 19 May 2025 17:24:05 GMT
|
||||
Content-Type:
|
||||
- application/json; charset=utf-8
|
||||
Content-Length:
|
||||
- '6200'
|
||||
- '6199'
|
||||
Connection:
|
||||
- keep-alive
|
||||
Plaid-Version:
|
||||
|
@ -41,7 +41,7 @@ http_interactions:
|
|||
Vary:
|
||||
- Accept-Encoding
|
||||
X-Envoy-Upstream-Service-Time:
|
||||
- '340'
|
||||
- '324'
|
||||
X-Envoy-Decorator-Operation:
|
||||
- default.svc-apiv2:8080/*
|
||||
Strict-Transport-Security:
|
||||
|
@ -58,39 +58,7 @@ http_interactions:
|
|||
{
|
||||
"accounts": [
|
||||
{
|
||||
"account_id": "MpWPx5o4yrcpZvwQrdbMuwX699pjDRCLX98NN",
|
||||
"balances": {
|
||||
"available": 15000,
|
||||
"current": 15000,
|
||||
"iso_currency_code": "USD",
|
||||
"limit": null,
|
||||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "1119",
|
||||
"name": "Test Student Loan Account",
|
||||
"official_name": "Plaid student",
|
||||
"subtype": "student",
|
||||
"type": "loan"
|
||||
},
|
||||
{
|
||||
"account_id": "ZvlBL5eMPQtnXDV6QrR9sReNVVz1XAieagDPz",
|
||||
"balances": {
|
||||
"available": 11065.71,
|
||||
"current": 1000,
|
||||
"iso_currency_code": "USD",
|
||||
"limit": 12200,
|
||||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "3053",
|
||||
"name": "Test Credit Card Account",
|
||||
"official_name": "Plaid credit card",
|
||||
"subtype": "credit card",
|
||||
"type": "credit"
|
||||
},
|
||||
{
|
||||
"account_id": "QEbZN5mMrxTnJ4XRxba9s9pKBBx4bnuwPpWZa",
|
||||
"account_id": "vor45kgbDjfqa1BMD8QRU4om8adWNWtqbzQJe",
|
||||
"balances": {
|
||||
"available": 8000,
|
||||
"current": 10000,
|
||||
|
@ -99,14 +67,30 @@ http_interactions:
|
|||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "7330",
|
||||
"mask": "1122",
|
||||
"name": "Test Brokerage Account",
|
||||
"official_name": "Plaid brokerage",
|
||||
"subtype": "brokerage",
|
||||
"type": "investment"
|
||||
},
|
||||
{
|
||||
"account_id": "edNwr51XgAcoARVZP68vsdREvv56jafrvLlJ7",
|
||||
"account_id": "RperV9wJMNiDWKljGMkPCkwDGJb7q7FaNlVMp",
|
||||
"balances": {
|
||||
"available": 9372.38,
|
||||
"current": 1000,
|
||||
"iso_currency_code": "USD",
|
||||
"limit": 10500,
|
||||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "1219",
|
||||
"name": "Test Credit Card Account",
|
||||
"official_name": "Plaid credit card",
|
||||
"subtype": "credit card",
|
||||
"type": "credit"
|
||||
},
|
||||
{
|
||||
"account_id": "9mvxVZRW7LUD67QbEBm1CPZ6XlqkmkF4oGNBo",
|
||||
"balances": {
|
||||
"available": 10000,
|
||||
"current": 10000,
|
||||
|
@ -115,16 +99,32 @@ http_interactions:
|
|||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "8957",
|
||||
"mask": "4243",
|
||||
"name": "Test Depository Account",
|
||||
"official_name": "Plaid checking",
|
||||
"subtype": "checking",
|
||||
"type": "depository"
|
||||
},
|
||||
{
|
||||
"account_id": "6Gwzm7nJ6ZU4VbqEyKzZszyPQ8keRet8Q97k7",
|
||||
"balances": {
|
||||
"available": 15000,
|
||||
"current": 15000,
|
||||
"iso_currency_code": "USD",
|
||||
"limit": null,
|
||||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "9572",
|
||||
"name": "Test Student Loan Account",
|
||||
"official_name": "Plaid student",
|
||||
"subtype": "student",
|
||||
"type": "loan"
|
||||
}
|
||||
],
|
||||
"holdings": [
|
||||
{
|
||||
"account_id": "QEbZN5mMrxTnJ4XRxba9s9pKBBx4bnuwPpWZa",
|
||||
"account_id": "vor45kgbDjfqa1BMD8QRU4om8adWNWtqbzQJe",
|
||||
"cost_basis": 2000,
|
||||
"institution_price": 100,
|
||||
"institution_price_as_of": "2025-05-08",
|
||||
|
@ -138,7 +138,7 @@ http_interactions:
|
|||
"vested_value": null
|
||||
},
|
||||
{
|
||||
"account_id": "QEbZN5mMrxTnJ4XRxba9s9pKBBx4bnuwPpWZa",
|
||||
"account_id": "vor45kgbDjfqa1BMD8QRU4om8adWNWtqbzQJe",
|
||||
"cost_basis": 3000,
|
||||
"institution_price": 1,
|
||||
"institution_price_as_of": "2025-05-08",
|
||||
|
@ -152,7 +152,7 @@ http_interactions:
|
|||
"vested_value": null
|
||||
},
|
||||
{
|
||||
"account_id": "QEbZN5mMrxTnJ4XRxba9s9pKBBx4bnuwPpWZa",
|
||||
"account_id": "vor45kgbDjfqa1BMD8QRU4om8adWNWtqbzQJe",
|
||||
"cost_basis": 5000,
|
||||
"institution_price": 1,
|
||||
"institution_price_as_of": "2025-05-08",
|
||||
|
@ -189,7 +189,7 @@ http_interactions:
|
|||
"error": null,
|
||||
"institution_id": "ins_109508",
|
||||
"institution_name": "First Platypus Bank",
|
||||
"item_id": "ZvlBL5eMPQtnXDV6QrR9sRedKePzMaFgzeVqA",
|
||||
"item_id": "n7XKpjRmDkHENymaBw7rU71wxQnrW4i6DDrQP",
|
||||
"products": [
|
||||
"investments",
|
||||
"liabilities",
|
||||
|
@ -198,7 +198,7 @@ http_interactions:
|
|||
"update_type": "background",
|
||||
"webhook": ""
|
||||
},
|
||||
"request_id": "He6QRKK2d3ujE2q",
|
||||
"request_id": "uRzq5c4Y37RCNNj",
|
||||
"securities": [
|
||||
{
|
||||
"close_price": 1,
|
||||
|
@ -271,13 +271,13 @@ http_interactions:
|
|||
}
|
||||
]
|
||||
}
|
||||
recorded_at: Mon, 19 May 2025 15:34:41 GMT
|
||||
recorded_at: Mon, 19 May 2025 17:24:05 GMT
|
||||
- request:
|
||||
method: post
|
||||
uri: https://sandbox.plaid.com/investments/transactions/get
|
||||
body:
|
||||
encoding: UTF-8
|
||||
string: '{"access_token":"access-sandbox-d531d3c9-8520-43ca-9e58-5b70b79fd1d4","start_date":"2023-05-20","end_date":"2025-05-19","options":{"offset":0}}'
|
||||
string: '{"access_token":"access-sandbox-0af2c971-41a6-4fc5-a97d-f2b27ab0a648","start_date":"2023-05-20","end_date":"2025-05-19","options":{"offset":0}}'
|
||||
headers:
|
||||
Content-Type:
|
||||
- application/json
|
||||
|
@ -301,11 +301,11 @@ http_interactions:
|
|||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Mon, 19 May 2025 15:34:42 GMT
|
||||
- Mon, 19 May 2025 17:24:05 GMT
|
||||
Content-Type:
|
||||
- application/json; charset=utf-8
|
||||
Content-Length:
|
||||
- '6965'
|
||||
- '6964'
|
||||
Connection:
|
||||
- keep-alive
|
||||
Plaid-Version:
|
||||
|
@ -313,7 +313,7 @@ http_interactions:
|
|||
Vary:
|
||||
- Accept-Encoding
|
||||
X-Envoy-Upstream-Service-Time:
|
||||
- '341'
|
||||
- '334'
|
||||
X-Envoy-Decorator-Operation:
|
||||
- default.svc-apiv2:8080/*
|
||||
Strict-Transport-Security:
|
||||
|
@ -330,39 +330,7 @@ http_interactions:
|
|||
{
|
||||
"accounts": [
|
||||
{
|
||||
"account_id": "MpWPx5o4yrcpZvwQrdbMuwX699pjDRCLX98NN",
|
||||
"balances": {
|
||||
"available": 15000,
|
||||
"current": 15000,
|
||||
"iso_currency_code": "USD",
|
||||
"limit": null,
|
||||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "1119",
|
||||
"name": "Test Student Loan Account",
|
||||
"official_name": "Plaid student",
|
||||
"subtype": "student",
|
||||
"type": "loan"
|
||||
},
|
||||
{
|
||||
"account_id": "ZvlBL5eMPQtnXDV6QrR9sReNVVz1XAieagDPz",
|
||||
"balances": {
|
||||
"available": 11065.71,
|
||||
"current": 1000,
|
||||
"iso_currency_code": "USD",
|
||||
"limit": 12200,
|
||||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "3053",
|
||||
"name": "Test Credit Card Account",
|
||||
"official_name": "Plaid credit card",
|
||||
"subtype": "credit card",
|
||||
"type": "credit"
|
||||
},
|
||||
{
|
||||
"account_id": "QEbZN5mMrxTnJ4XRxba9s9pKBBx4bnuwPpWZa",
|
||||
"account_id": "vor45kgbDjfqa1BMD8QRU4om8adWNWtqbzQJe",
|
||||
"balances": {
|
||||
"available": 8000,
|
||||
"current": 10000,
|
||||
|
@ -371,14 +339,30 @@ http_interactions:
|
|||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "7330",
|
||||
"mask": "1122",
|
||||
"name": "Test Brokerage Account",
|
||||
"official_name": "Plaid brokerage",
|
||||
"subtype": "brokerage",
|
||||
"type": "investment"
|
||||
},
|
||||
{
|
||||
"account_id": "edNwr51XgAcoARVZP68vsdREvv56jafrvLlJ7",
|
||||
"account_id": "RperV9wJMNiDWKljGMkPCkwDGJb7q7FaNlVMp",
|
||||
"balances": {
|
||||
"available": 9372.38,
|
||||
"current": 1000,
|
||||
"iso_currency_code": "USD",
|
||||
"limit": 10500,
|
||||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "1219",
|
||||
"name": "Test Credit Card Account",
|
||||
"official_name": "Plaid credit card",
|
||||
"subtype": "credit card",
|
||||
"type": "credit"
|
||||
},
|
||||
{
|
||||
"account_id": "9mvxVZRW7LUD67QbEBm1CPZ6XlqkmkF4oGNBo",
|
||||
"balances": {
|
||||
"available": 10000,
|
||||
"current": 10000,
|
||||
|
@ -387,21 +371,37 @@ http_interactions:
|
|||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "8957",
|
||||
"mask": "4243",
|
||||
"name": "Test Depository Account",
|
||||
"official_name": "Plaid checking",
|
||||
"subtype": "checking",
|
||||
"type": "depository"
|
||||
},
|
||||
{
|
||||
"account_id": "6Gwzm7nJ6ZU4VbqEyKzZszyPQ8keRet8Q97k7",
|
||||
"balances": {
|
||||
"available": 15000,
|
||||
"current": 15000,
|
||||
"iso_currency_code": "USD",
|
||||
"limit": null,
|
||||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "9572",
|
||||
"name": "Test Student Loan Account",
|
||||
"official_name": "Plaid student",
|
||||
"subtype": "student",
|
||||
"type": "loan"
|
||||
}
|
||||
],
|
||||
"investment_transactions": [
|
||||
{
|
||||
"account_id": "QEbZN5mMrxTnJ4XRxba9s9pKBBx4bnuwPpWZa",
|
||||
"account_id": "vor45kgbDjfqa1BMD8QRU4om8adWNWtqbzQJe",
|
||||
"amount": -5000,
|
||||
"cancel_transaction_id": null,
|
||||
"date": "2025-05-03",
|
||||
"fees": 0,
|
||||
"investment_transaction_id": "oMpyjB9Dlqhb4v8gkyn6tbz4GxgR39iowXK7g",
|
||||
"investment_transaction_id": "eBqoazM4XkiXx5gZbmD7UKRZ3jE3ABUreq4R1",
|
||||
"iso_currency_code": "USD",
|
||||
"name": "retirement contribution",
|
||||
"price": 1,
|
||||
|
@ -412,12 +412,12 @@ http_interactions:
|
|||
"unofficial_currency_code": null
|
||||
},
|
||||
{
|
||||
"account_id": "QEbZN5mMrxTnJ4XRxba9s9pKBBx4bnuwPpWZa",
|
||||
"account_id": "vor45kgbDjfqa1BMD8QRU4om8adWNWtqbzQJe",
|
||||
"amount": 5000,
|
||||
"cancel_transaction_id": null,
|
||||
"date": "2025-05-03",
|
||||
"fees": 0,
|
||||
"investment_transaction_id": "g4j7B5kXEnCwdLV7NzQPHV5l87zaWeuEklMnW",
|
||||
"investment_transaction_id": "QLeKVkpQM4ck1qMRGp6PUPp7obKowGtwRN547",
|
||||
"iso_currency_code": "USD",
|
||||
"name": "buy money market shares with contribution cash",
|
||||
"price": 1,
|
||||
|
@ -428,12 +428,12 @@ http_interactions:
|
|||
"unofficial_currency_code": null
|
||||
},
|
||||
{
|
||||
"account_id": "QEbZN5mMrxTnJ4XRxba9s9pKBBx4bnuwPpWZa",
|
||||
"account_id": "vor45kgbDjfqa1BMD8QRU4om8adWNWtqbzQJe",
|
||||
"amount": 2000,
|
||||
"cancel_transaction_id": null,
|
||||
"date": "2025-05-02",
|
||||
"fees": 0,
|
||||
"investment_transaction_id": "8lBZ7kqmNMflM6N1rBb8udzR5Vp7MXiWExrLG",
|
||||
"investment_transaction_id": "ZnxNgJEwM1ig5476JqZxUKeJLXNLnMUe9o6Al",
|
||||
"iso_currency_code": "USD",
|
||||
"name": "buy AAPL stock",
|
||||
"price": 100,
|
||||
|
@ -444,12 +444,12 @@ http_interactions:
|
|||
"unofficial_currency_code": null
|
||||
},
|
||||
{
|
||||
"account_id": "QEbZN5mMrxTnJ4XRxba9s9pKBBx4bnuwPpWZa",
|
||||
"account_id": "vor45kgbDjfqa1BMD8QRU4om8adWNWtqbzQJe",
|
||||
"amount": -5000,
|
||||
"cancel_transaction_id": null,
|
||||
"date": "2025-05-01",
|
||||
"fees": 0,
|
||||
"investment_transaction_id": "EjM3A5vK8mCjLea1GE3mCyoKvAE3kjF4djEkP",
|
||||
"investment_transaction_id": "MQ1Awmg943IKyWlQjRXgUqXrxD6xo3CLGjJw1",
|
||||
"iso_currency_code": "USD",
|
||||
"name": "Deposit cash into brokerage account",
|
||||
"price": 1,
|
||||
|
@ -483,7 +483,7 @@ http_interactions:
|
|||
"error": null,
|
||||
"institution_id": "ins_109508",
|
||||
"institution_name": "First Platypus Bank",
|
||||
"item_id": "ZvlBL5eMPQtnXDV6QrR9sRedKePzMaFgzeVqA",
|
||||
"item_id": "n7XKpjRmDkHENymaBw7rU71wxQnrW4i6DDrQP",
|
||||
"products": [
|
||||
"investments",
|
||||
"liabilities",
|
||||
|
@ -492,7 +492,7 @@ http_interactions:
|
|||
"update_type": "background",
|
||||
"webhook": ""
|
||||
},
|
||||
"request_id": "CqfMA8GOfEA1GhG",
|
||||
"request_id": "dTc49uKiBZWzxHS",
|
||||
"securities": [
|
||||
{
|
||||
"close_price": 1,
|
||||
|
@ -566,5 +566,5 @@ http_interactions:
|
|||
],
|
||||
"total_investment_transactions": 4
|
||||
}
|
||||
recorded_at: Mon, 19 May 2025 15:34:42 GMT
|
||||
recorded_at: Mon, 19 May 2025 17:24:05 GMT
|
||||
recorded_with: VCR 6.3.1
|
||||
|
|
|
@ -5,7 +5,7 @@ http_interactions:
|
|||
uri: https://sandbox.plaid.com/liabilities/get
|
||||
body:
|
||||
encoding: UTF-8
|
||||
string: '{"access_token":"access-sandbox-d531d3c9-8520-43ca-9e58-5b70b79fd1d4"}'
|
||||
string: '{"access_token":"access-sandbox-0af2c971-41a6-4fc5-a97d-f2b27ab0a648"}'
|
||||
headers:
|
||||
Content-Type:
|
||||
- application/json
|
||||
|
@ -29,11 +29,11 @@ http_interactions:
|
|||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Mon, 19 May 2025 15:34:40 GMT
|
||||
- Mon, 19 May 2025 17:24:04 GMT
|
||||
Content-Type:
|
||||
- application/json; charset=utf-8
|
||||
Content-Length:
|
||||
- '4910'
|
||||
- '4907'
|
||||
Connection:
|
||||
- keep-alive
|
||||
Plaid-Version:
|
||||
|
@ -41,7 +41,7 @@ http_interactions:
|
|||
Vary:
|
||||
- Accept-Encoding
|
||||
X-Envoy-Upstream-Service-Time:
|
||||
- '239'
|
||||
- '253'
|
||||
X-Envoy-Decorator-Operation:
|
||||
- default.svc-apiv2:8080/*
|
||||
Strict-Transport-Security:
|
||||
|
@ -58,39 +58,7 @@ http_interactions:
|
|||
{
|
||||
"accounts": [
|
||||
{
|
||||
"account_id": "MpWPx5o4yrcpZvwQrdbMuwX699pjDRCLX98NN",
|
||||
"balances": {
|
||||
"available": 15000,
|
||||
"current": 15000,
|
||||
"iso_currency_code": "USD",
|
||||
"limit": null,
|
||||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "1119",
|
||||
"name": "Test Student Loan Account",
|
||||
"official_name": "Plaid student",
|
||||
"subtype": "student",
|
||||
"type": "loan"
|
||||
},
|
||||
{
|
||||
"account_id": "ZvlBL5eMPQtnXDV6QrR9sReNVVz1XAieagDPz",
|
||||
"balances": {
|
||||
"available": 11065.71,
|
||||
"current": 1000,
|
||||
"iso_currency_code": "USD",
|
||||
"limit": 12200,
|
||||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "3053",
|
||||
"name": "Test Credit Card Account",
|
||||
"official_name": "Plaid credit card",
|
||||
"subtype": "credit card",
|
||||
"type": "credit"
|
||||
},
|
||||
{
|
||||
"account_id": "QEbZN5mMrxTnJ4XRxba9s9pKBBx4bnuwPpWZa",
|
||||
"account_id": "vor45kgbDjfqa1BMD8QRU4om8adWNWtqbzQJe",
|
||||
"balances": {
|
||||
"available": 8000,
|
||||
"current": 10000,
|
||||
|
@ -99,14 +67,30 @@ http_interactions:
|
|||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "7330",
|
||||
"mask": "1122",
|
||||
"name": "Test Brokerage Account",
|
||||
"official_name": "Plaid brokerage",
|
||||
"subtype": "brokerage",
|
||||
"type": "investment"
|
||||
},
|
||||
{
|
||||
"account_id": "edNwr51XgAcoARVZP68vsdREvv56jafrvLlJ7",
|
||||
"account_id": "RperV9wJMNiDWKljGMkPCkwDGJb7q7FaNlVMp",
|
||||
"balances": {
|
||||
"available": 9372.38,
|
||||
"current": 1000,
|
||||
"iso_currency_code": "USD",
|
||||
"limit": 10500,
|
||||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "1219",
|
||||
"name": "Test Credit Card Account",
|
||||
"official_name": "Plaid credit card",
|
||||
"subtype": "credit card",
|
||||
"type": "credit"
|
||||
},
|
||||
{
|
||||
"account_id": "9mvxVZRW7LUD67QbEBm1CPZ6XlqkmkF4oGNBo",
|
||||
"balances": {
|
||||
"available": 10000,
|
||||
"current": 10000,
|
||||
|
@ -115,11 +99,27 @@ http_interactions:
|
|||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "8957",
|
||||
"mask": "4243",
|
||||
"name": "Test Depository Account",
|
||||
"official_name": "Plaid checking",
|
||||
"subtype": "checking",
|
||||
"type": "depository"
|
||||
},
|
||||
{
|
||||
"account_id": "6Gwzm7nJ6ZU4VbqEyKzZszyPQ8keRet8Q97k7",
|
||||
"balances": {
|
||||
"available": 15000,
|
||||
"current": 15000,
|
||||
"iso_currency_code": "USD",
|
||||
"limit": null,
|
||||
"unofficial_currency_code": null
|
||||
},
|
||||
"holder_category": "personal",
|
||||
"mask": "9572",
|
||||
"name": "Test Student Loan Account",
|
||||
"official_name": "Plaid student",
|
||||
"subtype": "student",
|
||||
"type": "loan"
|
||||
}
|
||||
],
|
||||
"item": {
|
||||
|
@ -145,7 +145,7 @@ http_interactions:
|
|||
"error": null,
|
||||
"institution_id": "ins_109508",
|
||||
"institution_name": "First Platypus Bank",
|
||||
"item_id": "ZvlBL5eMPQtnXDV6QrR9sRedKePzMaFgzeVqA",
|
||||
"item_id": "n7XKpjRmDkHENymaBw7rU71wxQnrW4i6DDrQP",
|
||||
"products": [
|
||||
"investments",
|
||||
"liabilities",
|
||||
|
@ -157,7 +157,7 @@ http_interactions:
|
|||
"liabilities": {
|
||||
"credit": [
|
||||
{
|
||||
"account_id": "ZvlBL5eMPQtnXDV6QrR9sReNVVz1XAieagDPz",
|
||||
"account_id": "RperV9wJMNiDWKljGMkPCkwDGJb7q7FaNlVMp",
|
||||
"aprs": [
|
||||
{
|
||||
"apr_percentage": 12.5,
|
||||
|
@ -184,8 +184,8 @@ http_interactions:
|
|||
"mortgage": null,
|
||||
"student": [
|
||||
{
|
||||
"account_id": "MpWPx5o4yrcpZvwQrdbMuwX699pjDRCLX98NN",
|
||||
"account_number": "52810251119",
|
||||
"account_id": "6Gwzm7nJ6ZU4VbqEyKzZszyPQ8keRet8Q97k7",
|
||||
"account_number": "3117529572",
|
||||
"disbursement_dates": [
|
||||
"2023-05-01"
|
||||
],
|
||||
|
@ -207,7 +207,7 @@ http_interactions:
|
|||
"origination_date": "2023-05-01",
|
||||
"origination_principal_amount": 15000,
|
||||
"outstanding_interest_amount": 1577.16,
|
||||
"payment_reference_number": "52810251119",
|
||||
"payment_reference_number": "3117529572",
|
||||
"pslf_status": {
|
||||
"estimated_eligibility_date": null,
|
||||
"payments_made": null,
|
||||
|
@ -230,7 +230,7 @@ http_interactions:
|
|||
}
|
||||
]
|
||||
},
|
||||
"request_id": "WJhrfTcUFBSLw9j"
|
||||
"request_id": "nFlL291sKIy1LkJ"
|
||||
}
|
||||
recorded_at: Mon, 19 May 2025 15:34:40 GMT
|
||||
recorded_at: Mon, 19 May 2025 17:24:04 GMT
|
||||
recorded_with: VCR 6.3.1
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -29,7 +29,7 @@ http_interactions:
|
|||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Mon, 19 May 2025 15:34:40 GMT
|
||||
- Mon, 19 May 2025 17:24:04 GMT
|
||||
Content-Type:
|
||||
- application/json; charset=utf-8
|
||||
Content-Length:
|
||||
|
@ -41,7 +41,7 @@ http_interactions:
|
|||
Vary:
|
||||
- Accept-Encoding
|
||||
X-Envoy-Upstream-Service-Time:
|
||||
- '74'
|
||||
- '70'
|
||||
X-Envoy-Decorator-Operation:
|
||||
- default.svc-apiv2:8080/*
|
||||
Strict-Transport-Security:
|
||||
|
@ -56,9 +56,9 @@ http_interactions:
|
|||
encoding: ASCII-8BIT
|
||||
string: |-
|
||||
{
|
||||
"expiration": "2025-05-19T19:34:40Z",
|
||||
"link_token": "link-sandbox-3b445f38-abc0-4781-b6d5-271a7b1089d4",
|
||||
"request_id": "QtzDCRM39QhsuHF"
|
||||
"expiration": "2025-05-19T21:24:04Z",
|
||||
"link_token": "link-sandbox-33432e02-32e2-415d-8f00-e626c6f4c6a6",
|
||||
"request_id": "Gys5pGY7tIPDrlL"
|
||||
}
|
||||
recorded_at: Mon, 19 May 2025 15:34:40 GMT
|
||||
recorded_at: Mon, 19 May 2025 17:24:04 GMT
|
||||
recorded_with: VCR 6.3.1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue