getOrgLedger
public static String getOrgLedger(String orgId)
Returns the ledger id for the given organization id.
If the org id is empty, it returns null. If the given organization has no ledger, it tries to
get its legal entity's ledger. If not found, it returns the organization client's ledger
- Parameters:
orgId
- Organization Id whose ledger is needed
- Returns:
- String ledgerId ledger id for the given organization. Null if not found