@@ -271,12 +271,14 @@ def get_ledger_account_rollups(
271271 mapping_id : Union [Optional [str ], UnsetType ] = UNSET ,
272272 start_date : Union [Optional [str ], UnsetType ] = UNSET ,
273273 end_date : Union [Optional [str ], UnsetType ] = UNSET ,
274+ entity_id : Union [Optional [str ], UnsetType ] = UNSET ,
274275 ** kwargs : Any ,
275276 ) -> GetLedgerAccountRollups :
276277 variables : dict [str , object ] = {
277278 "mappingId" : mapping_id ,
278279 "startDate" : start_date ,
279280 "endDate" : end_date ,
281+ "entityId" : entity_id ,
280282 }
281283 response = self .execute (
282284 query = GET_LEDGER_ACCOUNT_ROLLUPS_GQL ,
@@ -287,8 +289,10 @@ def get_ledger_account_rollups(
287289 data = self .get_data (response )
288290 return GetLedgerAccountRollups .model_validate (data )
289291
290- def get_ledger_account_tree (self , ** kwargs : Any ) -> GetLedgerAccountTree :
291- variables : dict [str , object ] = {}
292+ def get_ledger_account_tree (
293+ self , entity_id : Union [Optional [str ], UnsetType ] = UNSET , ** kwargs : Any
294+ ) -> GetLedgerAccountTree :
295+ variables : dict [str , object ] = {"entityId" : entity_id }
292296 response = self .execute (
293297 query = GET_LEDGER_ACCOUNT_TREE_GQL ,
294298 operation_name = "GetLedgerAccountTree" ,
@@ -310,9 +314,9 @@ def get_ledger_agent(self, id: str, **kwargs: Any) -> GetLedgerAgent:
310314 return GetLedgerAgent .model_validate (data )
311315
312316 def get_ledger_closing_book_structures (
313- self , ** kwargs : Any
317+ self , entity_id : Union [ Optional [ str ], UnsetType ] = UNSET , ** kwargs : Any
314318 ) -> GetLedgerClosingBookStructures :
315- variables : dict [str , object ] = {}
319+ variables : dict [str , object ] = {"entityId" : entity_id }
316320 response = self .execute (
317321 query = GET_LEDGER_CLOSING_BOOK_STRUCTURES_GQL ,
318322 operation_name = "GetLedgerClosingBookStructures" ,
@@ -322,8 +326,10 @@ def get_ledger_closing_book_structures(
322326 data = self .get_data (response )
323327 return GetLedgerClosingBookStructures .model_validate (data )
324328
325- def get_ledger_entity (self , ** kwargs : Any ) -> GetLedgerEntity :
326- variables : dict [str , object ] = {}
329+ def get_ledger_entity (
330+ self , entity_id : Union [Optional [str ], UnsetType ] = UNSET , ** kwargs : Any
331+ ) -> GetLedgerEntity :
332+ variables : dict [str , object ] = {"entityId" : entity_id }
327333 response = self .execute (
328334 query = GET_LEDGER_ENTITY_GQL ,
329335 operation_name = "GetLedgerEntity" ,
@@ -344,8 +350,10 @@ def get_ledger_event_block(self, id: str, **kwargs: Any) -> GetLedgerEventBlock:
344350 data = self .get_data (response )
345351 return GetLedgerEventBlock .model_validate (data )
346352
347- def get_ledger_fiscal_calendar (self , ** kwargs : Any ) -> GetLedgerFiscalCalendar :
348- variables : dict [str , object ] = {}
353+ def get_ledger_fiscal_calendar (
354+ self , entity_id : Union [Optional [str ], UnsetType ] = UNSET , ** kwargs : Any
355+ ) -> GetLedgerFiscalCalendar :
356+ variables : dict [str , object ] = {"entityId" : entity_id }
349357 response = self .execute (
350358 query = GET_LEDGER_FISCAL_CALENDAR_GQL ,
351359 operation_name = "GetLedgerFiscalCalendar" ,
@@ -401,11 +409,16 @@ def get_ledger_mapping_coverage(
401409 return GetLedgerMappingCoverage .model_validate (data )
402410
403411 def get_ledger_period_close_status (
404- self , period_start : str , period_end : str , ** kwargs : Any
412+ self ,
413+ period_start : str ,
414+ period_end : str ,
415+ entity_id : Union [Optional [str ], UnsetType ] = UNSET ,
416+ ** kwargs : Any ,
405417 ) -> GetLedgerPeriodCloseStatus :
406418 variables : dict [str , object ] = {
407419 "periodStart" : period_start ,
408420 "periodEnd" : period_end ,
421+ "entityId" : entity_id ,
409422 }
410423 response = self .execute (
411424 query = GET_LEDGER_PERIOD_CLOSE_STATUS_GQL ,
@@ -417,9 +430,9 @@ def get_ledger_period_close_status(
417430 return GetLedgerPeriodCloseStatus .model_validate (data )
418431
419432 def get_ledger_period_drafts (
420- self , period : str , ** kwargs : Any
433+ self , period : str , entity_id : Union [ Optional [ str ], UnsetType ] = UNSET , ** kwargs : Any
421434 ) -> GetLedgerPeriodDrafts :
422- variables : dict [str , object ] = {"period" : period }
435+ variables : dict [str , object ] = {"period" : period , "entityId" : entity_id }
423436 response = self .execute (
424437 query = GET_LEDGER_PERIOD_DRAFTS_GQL ,
425438 operation_name = "GetLedgerPeriodDrafts" ,
@@ -511,8 +524,10 @@ def get_ledger_statement(
511524 data = self .get_data (response )
512525 return GetLedgerStatement .model_validate (data )
513526
514- def get_ledger_summary (self , ** kwargs : Any ) -> GetLedgerSummary :
515- variables : dict [str , object ] = {}
527+ def get_ledger_summary (
528+ self , entity_id : Union [Optional [str ], UnsetType ] = UNSET , ** kwargs : Any
529+ ) -> GetLedgerSummary :
530+ variables : dict [str , object ] = {"entityId" : entity_id }
516531 response = self .execute (
517532 query = GET_LEDGER_SUMMARY_GQL ,
518533 operation_name = "GetLedgerSummary" ,
@@ -539,9 +554,14 @@ def get_ledger_trial_balance(
539554 self ,
540555 start_date : Union [Optional [str ], UnsetType ] = UNSET ,
541556 end_date : Union [Optional [str ], UnsetType ] = UNSET ,
557+ entity_id : Union [Optional [str ], UnsetType ] = UNSET ,
542558 ** kwargs : Any ,
543559 ) -> GetLedgerTrialBalance :
544- variables : dict [str , object ] = {"startDate" : start_date , "endDate" : end_date }
560+ variables : dict [str , object ] = {
561+ "startDate" : start_date ,
562+ "endDate" : end_date ,
563+ "entityId" : entity_id ,
564+ }
545565 response = self .execute (
546566 query = GET_LEDGER_TRIAL_BALANCE_GQL ,
547567 operation_name = "GetLedgerTrialBalance" ,
@@ -593,13 +613,15 @@ def list_ledger_accounts(
593613 offset : int ,
594614 classification : Union [Optional [str ], UnsetType ] = UNSET ,
595615 is_active : Union [Optional [bool ], UnsetType ] = UNSET ,
616+ entity_id : Union [Optional [str ], UnsetType ] = UNSET ,
596617 ** kwargs : Any ,
597618 ) -> ListLedgerAccounts :
598619 variables : dict [str , object ] = {
599620 "classification" : classification ,
600621 "isActive" : is_active ,
601622 "limit" : limit ,
602623 "offset" : offset ,
624+ "entityId" : entity_id ,
603625 }
604626 response = self .execute (
605627 query = LIST_LEDGER_ACCOUNTS_GQL ,
@@ -698,6 +720,7 @@ def list_ledger_event_blocks(
698720 agent_id : Union [Optional [str ], UnsetType ] = UNSET ,
699721 source : Union [Optional [str ], UnsetType ] = UNSET ,
700722 is_reconciling_item : Union [Optional [bool ], UnsetType ] = UNSET ,
723+ entity_id : Union [Optional [str ], UnsetType ] = UNSET ,
701724 ** kwargs : Any ,
702725 ) -> ListLedgerEventBlocks :
703726 variables : dict [str , object ] = {
@@ -709,6 +732,7 @@ def list_ledger_event_blocks(
709732 "isReconcilingItem" : is_reconciling_item ,
710733 "limit" : limit ,
711734 "offset" : offset ,
735+ "entityId" : entity_id ,
712736 }
713737 response = self .execute (
714738 query = LIST_LEDGER_EVENT_BLOCKS_GQL ,
@@ -729,6 +753,7 @@ def list_ledger_journal_entries(
729753 type_ : Union [Optional [str ], UnsetType ] = UNSET ,
730754 provenance : Union [Optional [str ], UnsetType ] = UNSET ,
731755 transaction_id : Union [Optional [str ], UnsetType ] = UNSET ,
756+ entity_id : Union [Optional [str ], UnsetType ] = UNSET ,
732757 ** kwargs : Any ,
733758 ) -> ListLedgerJournalEntries :
734759 variables : dict [str , object ] = {
@@ -740,6 +765,7 @@ def list_ledger_journal_entries(
740765 "transactionId" : transaction_id ,
741766 "limit" : limit ,
742767 "offset" : offset ,
768+ "entityId" : entity_id ,
743769 }
744770 response = self .execute (
745771 query = LIST_LEDGER_JOURNAL_ENTRIES_GQL ,
@@ -775,9 +801,9 @@ def list_ledger_publish_lists(
775801 return ListLedgerPublishLists .model_validate (data )
776802
777803 def list_ledger_reconciliations (
778- self , period : str , ** kwargs : Any
804+ self , period : str , entity_id : Union [ Optional [ str ], UnsetType ] = UNSET , ** kwargs : Any
779805 ) -> ListLedgerReconciliations :
780- variables : dict [str , object ] = {"period" : period }
806+ variables : dict [str , object ] = {"period" : period , "entityId" : entity_id }
781807 response = self .execute (
782808 query = LIST_LEDGER_RECONCILIATIONS_GQL ,
783809 operation_name = "ListLedgerReconciliations" ,
@@ -788,9 +814,12 @@ def list_ledger_reconciliations(
788814 return ListLedgerReconciliations .model_validate (data )
789815
790816 def list_ledger_reports (
791- self , lifecycle : Union [Optional [ReportLifecycle ], UnsetType ] = UNSET , ** kwargs : Any
817+ self ,
818+ lifecycle : Union [Optional [ReportLifecycle ], UnsetType ] = UNSET ,
819+ entity_id : Union [Optional [str ], UnsetType ] = UNSET ,
820+ ** kwargs : Any ,
792821 ) -> ListLedgerReports :
793- variables : dict [str , object ] = {"lifecycle" : lifecycle }
822+ variables : dict [str , object ] = {"lifecycle" : lifecycle , "entityId" : entity_id }
794823 response = self .execute (
795824 query = LIST_LEDGER_REPORTS_GQL ,
796825 operation_name = "ListLedgerReports" ,
@@ -839,6 +868,7 @@ def list_ledger_transactions(
839868 type_ : Union [Optional [str ], UnsetType ] = UNSET ,
840869 start_date : Union [Optional [str ], UnsetType ] = UNSET ,
841870 end_date : Union [Optional [str ], UnsetType ] = UNSET ,
871+ entity_id : Union [Optional [str ], UnsetType ] = UNSET ,
842872 ** kwargs : Any ,
843873 ) -> ListLedgerTransactions :
844874 variables : dict [str , object ] = {
@@ -847,6 +877,7 @@ def list_ledger_transactions(
847877 "endDate" : end_date ,
848878 "limit" : limit ,
849879 "offset" : offset ,
880+ "entityId" : entity_id ,
850881 }
851882 response = self .execute (
852883 query = LIST_LEDGER_TRANSACTIONS_GQL ,
0 commit comments