|
| 1 | +using Sportradar.Mbs.Sdk.Entities.Common; |
| 2 | +using System.Text.Json.Serialization; |
| 3 | + |
| 4 | +namespace Sportradar.Mbs.Sdk.Entities.Request; |
| 5 | + |
| 6 | +/// <summary> |
| 7 | +/// Represents a request to inform about an account status change. |
| 8 | +/// </summary> |
| 9 | +public class AccountStatusInformRequest : ContentRequestBase |
| 10 | +{ |
| 11 | + /// <summary> |
| 12 | + /// JSON property that defines the type of request. |
| 13 | + /// </summary> |
| 14 | + [JsonInclude] |
| 15 | + [JsonPropertyName("type")] |
| 16 | + private string Type => "account-status-inform"; |
| 17 | + |
| 18 | + /// <summary> |
| 19 | + /// Duration of the account status change. |
| 20 | + /// </summary> |
| 21 | + [JsonPropertyName("duration")] |
| 22 | + public StatusDuration? Duration { get; set; } |
| 23 | + |
| 24 | + /// <summary> |
| 25 | + /// Reason for the account status change. |
| 26 | + /// </summary> |
| 27 | + [JsonPropertyName("reason")] |
| 28 | + public string? Reason { get; set; } |
| 29 | + |
| 30 | + /// <summary> |
| 31 | + /// Entity that initiated the request. |
| 32 | + /// </summary> |
| 33 | + [JsonPropertyName("initiator")] |
| 34 | + public Initiator? Initiator { get; set; } |
| 35 | + |
| 36 | + /// <summary> |
| 37 | + /// End customer affected by the status change. |
| 38 | + /// </summary> |
| 39 | + [JsonPropertyName("endCustomer")] |
| 40 | + public EndCustomer? EndCustomer { get; set; } |
| 41 | + |
| 42 | + /// <summary> |
| 43 | + /// Start time of the status period in UTC (epoch time). |
| 44 | + /// </summary> |
| 45 | + [JsonPropertyName("periodStartUtc")] |
| 46 | + public long PeriodStartUtc { get; set; } |
| 47 | + |
| 48 | + /// <summary> |
| 49 | + /// Status value associated with the request. |
| 50 | + /// </summary> |
| 51 | + [JsonPropertyName("status")] |
| 52 | + public StatusValue? Status { get; set; } |
| 53 | + |
| 54 | + /// <summary> |
| 55 | + /// End time of the status period in UTC (epoch time). |
| 56 | + /// </summary> |
| 57 | + [JsonPropertyName("periodEndUtc")] |
| 58 | + public long PeriodEndUtc { get; set; } |
| 59 | +} |
0 commit comments