Skip to content

Commit a3740dc

Browse files
DAdjadjDavid Alvesclaude
authored
Stop sending bank metadata in seat claim/sync payloads (#20)
The server no longer stores bank_name, actual_account, or sync_mode. Drop them from the /bank-seats/claim and /bank-seats/sync request bodies. Seat enforcement only needs seat_id. Co-authored-by: David Alves <davidalves@Davids-MacBook-Air.local> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 221d4e4 commit a3740dc

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

app/licence.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,6 @@ def claim_bank_seat(account, key=None):
206206
"license_key": key,
207207
"machine_fingerprint": fp,
208208
"seat_id": seat_id,
209-
"bank_name": account.get("bank_name", ""),
210-
"actual_account": account.get("actual_account", ""),
211-
"sync_mode": account.get("sync_mode", "transactions"),
212209
}
213210
try:
214211
resp, data = _post_json("/bank-seats/claim", payload)
@@ -242,12 +239,7 @@ def sync_bank_seats(accounts, key=None):
242239
"license_key": key,
243240
"machine_fingerprint": fp,
244241
"seats": [
245-
{
246-
"seat_id": account.get("license_seat_id", ""),
247-
"bank_name": account.get("bank_name", ""),
248-
"actual_account": account.get("actual_account", ""),
249-
"sync_mode": account.get("sync_mode", "transactions"),
250-
}
242+
{"seat_id": account.get("license_seat_id", "")}
251243
for account in accounts
252244
if account.get("license_seat_id")
253245
],

0 commit comments

Comments
 (0)