type MoneyhubRevenueBySubaccount {
    accountPayeeCurrency: String!
    grossRevenuePayeeCurrency: Float!
    mechanicalDeductionAmountPayeeCurrency: Float!
    netRevenuePayeeCurrency: Float!
    publisherAdminFeePayeeCurrency: Float!
    subaccountId: ID!
    subaccountName: String!
}

type MoneyhubRevenueBySubaccountList {
    items: [MoneyhubRevenueBySubaccount!]!
    totalRecords: Int!
}

extend type Query {
    moneyhubRevenueBySubaccount(
        accountId: ID!
        contractId: ID
        artistId: ID
        limit: Int
        offset: Int
        orderBy: String
        orderDir: String
        searchTerm: String
        statementPeriodIdStart: ID
        statementPeriodIdEnd: ID
        activityPeriodIdStart: ID
        activityPeriodIdEnd: ID
        storeIds: [ID!]
        imprintIds: [ID!]
        transactionTypeIds: [ID!]
        countryCodes: [String!]
    ): MoneyhubRevenueBySubaccountList!
}
