Fix Tahesab ByCode list body key causing 502 on range search.

Use Dolistmoshtari as documented and surface upstream error text in the UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-05 09:42:08 +03:30
co-authored by Cursor
parent 15a0afae5c
commit b42d39d756
3 changed files with 39 additions and 12 deletions
@@ -183,9 +183,10 @@ export class TahesabApi {
}
doListMoshtariByCode(fromCode: number, toCode: number) {
// OpenAPI/Postman: کلید body برای ByCode دقیقاً «Dolistmoshtari» است (حساس به حروف)
return this.call(
'DoListMoshtari-ByCode',
'DoListMoshtari',
'Dolistmoshtari',
[fromCode, toCode],
);
}