Table of Contents

Interface IOrganizationResource

Namespace
Mailtrap.Organizations
Assembly
Mailtrap.Abstractions.dll

Represents organization resource.

public interface IOrganizationResource : IRestResource
Inherited Members

Methods

SubAccount(long)

Gets resource for specific sub account, identified by subAccountId.

IOrganizationSubAccountResource SubAccount(long subAccountId)

Parameters

subAccountId long

ID of sub account to get resource for.

Returns

IOrganizationSubAccountResource

Resource for the sub account with specified ID.

Exceptions

ArgumentOutOfRangeException

When subAccountId is less than or equal to zero.

SubAccounts()

Gets sub account collection resource for the organization, represented by this resource instance.

IOrganizationSubAccountCollectionResource SubAccounts()

Returns

IOrganizationSubAccountCollectionResource

Sub account collection resource for the organization, represented by this resource instance.