Source code for ace.centralize.models.client

"""
    Client models for Centralize

    Based on the Clients GraphQL schema (clients-service, new in release 2.14):
        - updateClient(client: ClientUpdateGqlParamsInput!): UpdateClientOutput
        - clients(ids: [Int!]!): [GqlClientDetail!]!

    Note: newer schemas (develop, > 2.14) also define financialInfo on the
    client inputs and party-level client extensions (createClients,
    updateClients, updatePartyFinancialInformation). Those are intentionally
    not modeled here; they belong to a later release.
"""
from typing import Optional

from ace.centralize.models.base import ModelBase


[docs] class ClientUpdateGqlParamsInput(ModelBase): """Maps to ClientUpdateGqlParamsInput in GraphQL schema."""
[docs] def __init__( self, id: int, initial_division_id: Optional[int] = None, ): self.id = id if initial_division_id is not None: self.initialDivisionId = initial_division_id