Table of Contents

Class CreateSubAccountRequest

Namespace
Mailtrap.Organizations.Requests
Assembly
Mailtrap.Abstractions.dll

Request to create a new sub account under an organization. Wraps the attributes in an account envelope, matching the API contract.

public sealed record CreateSubAccountRequest : IValidatable, IEquatable<CreateSubAccountRequest>
Inheritance
CreateSubAccountRequest
Implements

Properties

Account

Gets or sets the sub account attributes.

[JsonPropertyName("account")]
[JsonPropertyOrder(1)]
[JsonRequired]
public SubAccountAttributes Account { get; set; }

Property Value

SubAccountAttributes

Methods

Validate()

Validates the current instance.

public ValidationResult Validate()

Returns

ValidationResult

Object containing validation errors, if any.