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
Methods
Validate()
Validates the current instance.
public ValidationResult Validate()
Returns
- ValidationResult
Object containing validation errors, if any.