"""
Historical Contract Advances are legacy advance payments from Orchard Admin.
These represent advance payments that were migrated from the legacy system.
"""
type AbacusHistoricalContractAdvance {
    """The account ID associated with this advance."""
    accountId: Int!
    
    """The advance amount."""
    amount: Float!
    
    """The accounting period ID this advance applies to."""
    applyToPeriodId: Int

    """The currency code (e.g., 'USD', 'GBP', 'EUR')."""
    currency: String!
    
    """The currency ID reference."""
    currencyId: Int!
    
    """The date this advance was paid. Formatted YYYY-MM-DD."""
    datePaid: Date
    
    """Optional description or note about this advance."""
    description: String
    
    """The type of advance payment due."""
    dueType: String!
    
    """The exchange rate applied when the advance was paid."""
    exchangeRate: Float
    
    """Unique identifier for this historical advance record."""
    id: ID!
    
    """The advance ID from the legacy Orchard Admin system."""
    oaAdvanceId: Int!
    
    """The contract ID from the legacy Orchard Admin system."""
    oaContractId: Int!
    
    """The statement period when this advance was marked as paid."""
    statementPeriod: AbacusStatementPeriod
}

"""List of historical contract advances with pagination support."""
type AbacusHistoricalContractAdvanceList {
    """The list of historical contract advances."""
    items: [AbacusHistoricalContractAdvance!]
    
    """The total count of historical contract advances available."""
    totalCount: Int!
}
