Table of Contents

Class UpdateCompanyInfoRequest

Namespace
Mailtrap.SendingDomains.Requests
Assembly
Mailtrap.Abstractions.dll

Request object for updating company information for a sending domain. Only properties set on the request are sent.

public sealed record UpdateCompanyInfoRequest : IEquatable<UpdateCompanyInfoRequest>
Inheritance
UpdateCompanyInfoRequest
Implements

Properties

Address

Gets or sets street address.

[JsonPropertyName("address")]
[JsonPropertyOrder(2)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Address { get; set; }

Property Value

string

Street address, or null to leave unchanged.

City

Gets or sets city.

[JsonPropertyName("city")]
[JsonPropertyOrder(3)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? City { get; set; }

Property Value

string

City, or null to leave unchanged.

Country

Gets or sets country.

[JsonPropertyName("country")]
[JsonPropertyOrder(4)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Country { get; set; }

Property Value

string

Country, or null to leave unchanged.

InfoLevel

Gets or sets whether the sender is a business or an individual.

[JsonPropertyName("info_level")]
[JsonPropertyOrder(10)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public CompanyInfoLevel? InfoLevel { get; set; }

Property Value

CompanyInfoLevel

Sender info level, or null to leave unchanged.

Name

Gets or sets company or individual name.

[JsonPropertyName("name")]
[JsonPropertyOrder(1)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Name { get; set; }

Property Value

string

Company or individual name, or null to leave unchanged.

Phone

Gets or sets phone number.

[JsonPropertyName("phone")]
[JsonPropertyOrder(5)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Phone { get; set; }

Property Value

string

Phone number, or null to leave unchanged.

PrivacyPolicyUrl

Gets or sets URL of the privacy policy page.

[JsonPropertyName("privacy_policy_url")]
[JsonPropertyOrder(7)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Uri? PrivacyPolicyUrl { get; set; }

Property Value

Uri

URL of the privacy policy page, or null to leave unchanged.

TermsOfServiceUrl

Gets or sets URL of the terms of service page.

[JsonPropertyName("terms_of_service_url")]
[JsonPropertyOrder(8)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Uri? TermsOfServiceUrl { get; set; }

Property Value

Uri

URL of the terms of service page, or null to leave unchanged.

WebsiteUrl

Gets or sets company website URL.

[JsonPropertyName("website_url")]
[JsonPropertyOrder(9)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Uri? WebsiteUrl { get; set; }

Property Value

Uri

Company website URL, or null to leave unchanged.

ZipCode

Gets or sets ZIP or postal code.

[JsonPropertyName("zip_code")]
[JsonPropertyOrder(6)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ZipCode { get; set; }

Property Value

string

ZIP or postal code, or null to leave unchanged.