@cfxlabsinc/b2b-services
    Preparing search index...
    type CardLegInput = {
        cardholder: CardLegSide | null;
        cardType: "VIRTUAL" | "PHYSICAL";
        issuer: CardLegSide | null;
        latestClearing: { clearedAt: Temporal.Instant | null } | null;
        transaction: Pick<
            typeof girasolCardTransactionTable.$inferSelect,
            | "externalId"
            | "girasolCardExternalId"
            | "status"
            | "type"
            | "amount"
            | "receipt"
            | "data"
            | "clearingData",
        > & {
            createdAt: Temporal.Instant;
            customerId: TransactionLeg["customerId"];
        };
    }
    Index
    cardholder: CardLegSide | null

    Null when the card has no account or its ledger account has no primary address.

    cardType: "VIRTUAL" | "PHYSICAL"
    issuer: CardLegSide | null

    Null when the transaction has no settlement ledger account with a primary address.

    latestClearing: { clearedAt: Temporal.Instant | null } | null

    The newest clearing record's times: the adjustment legs' createdAt.

    transaction: Pick<
        typeof girasolCardTransactionTable.$inferSelect,
        | "externalId"
        | "girasolCardExternalId"
        | "status"
        | "type"
        | "amount"
        | "receipt"
        | "data"
        | "clearingData",
    > & {
        createdAt: Temporal.Instant;
        customerId: TransactionLeg["customerId"];
    }