Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
265 changes: 196 additions & 69 deletions test/BalancePlatformTest.py

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions test/mocks/configuration/balance-account-retrieved.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"accountHolderId": "AH32272223222B59K6ZKBBFNQ",
"defaultCurrencyCode": "EUR",
"description": "S.Hopper - Main balance account",
"reference": "S.Hopper - Main balance account",
"balances": [
{
"available": 50000,
"balance": 50000,
"currency": "EUR",
"reserved": 0
}
],
"id": "BA32272223222B59CZ3T52DKZ",
"status": "active"
}
16 changes: 16 additions & 0 deletions test/mocks/configuration/balance-account-updated.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"accountHolderId": "AH32272223222B59K6ZKBBFNQ",
"defaultCurrencyCode": "EUR",
"description": "S.Hopper - Updated balance account",
"reference": "S.Hopper - Main balance account",
"balances": [
{
"available": 50000,
"balance": 50000,
"currency": "EUR",
"reserved": 0
}
],
"id": "BA32272223222B59CZ3T52DKZ",
"status": "active"
}
14 changes: 14 additions & 0 deletions test/mocks/configuration/payment-instruments-list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"hasNext": false,
"hasPrevious": false,
"paymentInstruments": [
{
"balanceAccountId": "BA32272223222B59CZ3T52DKZ",
"description": "S.Hopper - Loss prevention card",
"id": "PI32272223222B59M5TM658DT",
"issuingCountryCode": "GB",
"status": "active",
"type": "card"
}
]
}
16 changes: 16 additions & 0 deletions test/mocks/configuration/sweep-created.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"id": "SWPC4227C224555B5FTD2NT2JV4WN5",
"counterparty": {
"balanceAccountId": "BA32272223222B5FTD2KR6TJD"
},
"currency": "EUR",
"schedule": {
"type": "daily"
},
"status": "active",
"triggerAmount": {
"currency": "EUR",
"value": 50000
},
"type": "push"
}
16 changes: 16 additions & 0 deletions test/mocks/configuration/sweep-updated.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"id": "SWPC4227C224555B5FTD2NT2JV4WN5",
"counterparty": {
"balanceAccountId": "BA32272223222B5FTD2KR6TJD"
},
"currency": "EUR",
"schedule": {
"type": "weekly"
},
"status": "active",
"triggerAmount": {
"currency": "EUR",
"value": 75000
},
"type": "push"
}
22 changes: 22 additions & 0 deletions test/mocks/configuration/sweeps-list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"hasNext": false,
"hasPrevious": false,
"sweeps": [
{
"id": "SWPC4227C224555B5FTD2NT2JV4WN5",
"counterparty": {
"balanceAccountId": "BA32272223222B5FTD2KR6TJD"
},
"currency": "EUR",
"schedule": {
"type": "daily"
},
"status": "active",
"triggerAmount": {
"currency": "EUR",
"value": 50000
},
"type": "push"
}
]
}
11 changes: 11 additions & 0 deletions test/mocks/configuration/transaction-rules-list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"transactionRules": [
{
"id": "TR32272223222B5CMD3V73HXG",
"description": "Only allow point-of-sale transactions",
"reference": "YOUR_REFERENCE_4F7346",
"status": "active",
"type": "blockList"
}
]
}
Loading