Class SubAccountsImpl

java.lang.Object
io.mailtrap.api.apiresource.ApiResource
io.mailtrap.api.subaccounts.SubAccountsImpl
All Implemented Interfaces:
SubAccounts

public class SubAccountsImpl extends ApiResource implements SubAccounts
  • Constructor Details

  • Method Details

    • getSubAccounts

      public List<SubAccount> getSubAccounts(long organizationId)
      Description copied from interface: SubAccounts
      Get a list of sub accounts for the specified organization. Requires sub account management permissions for the organization.
      Specified by:
      getSubAccounts in interface SubAccounts
      Parameters:
      organizationId - unique organization ID
      Returns:
      list of sub accounts
    • createSubAccount

      public SubAccount createSubAccount(long organizationId, CreateSubAccountRequest request)
      Description copied from interface: SubAccounts
      Create a new sub account under the specified organization. Requires sub account management permissions for the organization.
      Specified by:
      createSubAccount in interface SubAccounts
      Parameters:
      organizationId - unique organization ID
      request - sub account data
      Returns:
      created sub account