"""Requests to ows-abacus-account.""" from src.connectors.ows_service import OwsService class OwsAbacusAccount(OwsService): """OwsAbacusAccount client for fetching requests.""" _service = 'ows-abacus-account' @classmethod def get_account(cls, account_id: int) -> dict: """Get an account. Args: account_id (int): ID of the account get. Returns: dict: Account object. """ path = f'/account/{account_id}' return cls.validate_response_type(cls.get(path), dict) @classmethod def get_account_payment_term(cls, account_id: int) -> dict: """Get an account payment term. Args: account_id (int): ID of the account. Returns: dict: PaymentTerm object. """ path = f'/account/{account_id}/account-payment-term' return cls.validate_response_type(cls.get(path), dict)