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
City
Gets or sets city.
[JsonPropertyName("city")]
[JsonPropertyOrder(3)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? City { get; set; }
Property Value
Country
Gets or sets country.
[JsonPropertyName("country")]
[JsonPropertyOrder(4)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Country { get; set; }
Property Value
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
Phone
Gets or sets phone number.
[JsonPropertyName("phone")]
[JsonPropertyOrder(5)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Phone { get; set; }
Property Value
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
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
WebsiteUrl
Gets or sets company website URL.
[JsonPropertyName("website_url")]
[JsonPropertyOrder(9)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Uri? WebsiteUrl { get; set; }
Property Value
ZipCode
Gets or sets ZIP or postal code.
[JsonPropertyName("zip_code")]
[JsonPropertyOrder(6)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ZipCode { get; set; }