Class ReportResponse
Represents the state of an asynchronous report, returned by both the get-status and cancel-report endpoints.
public record ReportResponse : IEquatable<ReportResponse>
- Inheritance
-
ReportResponse
- Implements
- Inherited Members
Constructors
ReportResponse(Guid, ReportStatus, DateTimeOffset, DateTimeOffset, long, ReportLinks, ReportProduct, string, Maybe<DateTimeOffset>, Maybe<DateTimeOffset>, Maybe<bool>, Maybe<Uri>)
Represents the state of an asynchronous report, returned by both the get-status and cancel-report endpoints.
public ReportResponse(Guid RequestId, ReportStatus RequestStatus, DateTimeOffset ReceiveTime, DateTimeOffset StartTime, long ItemsCount, ReportLinks Links, ReportProduct Product, string AccountId, Maybe<DateTimeOffset> DateStart, Maybe<DateTimeOffset> DateEnd, Maybe<bool> IncludeSubaccounts, Maybe<Uri> CallbackUrl)
Parameters
RequestIdGuidThe unique identifier of the report.
RequestStatusReportStatusThe current status of the report.
ReceiveTimeDateTimeOffsetThe time the report request was received.
StartTimeDateTimeOffsetThe time report processing started.
ItemsCountlongThe number of records in the report.
LinksReportLinksHAL links for navigating to the report and its download.
ProductReportProductThe product type the report covers.
AccountIdstringThe account ID (API key) the report is for.
DateStartMaybe<DateTimeOffset>The start of the reporting period.
DateEndMaybe<DateTimeOffset>The end of the reporting period.
IncludeSubaccountsMaybe<bool>Whether sub-account data is included in the report.
CallbackUrlMaybe<Uri>The webhook URL that receives a notification when the report is ready.
Properties
AccountId
The account ID (API key) the report is for.
[JsonPropertyName("account_id")]
public string AccountId { get; init; }
Property Value
CallbackUrl
The webhook URL that receives a notification when the report is ready.
[JsonPropertyName("callback_url")]
[JsonConverter(typeof(MaybeJsonConverter<Uri>))]
public Maybe<Uri> CallbackUrl { get; init; }
Property Value
DateEnd
The end of the reporting period.
[JsonPropertyName("date_end")]
[JsonConverter(typeof(MaybeJsonConverter<DateTimeOffset>))]
public Maybe<DateTimeOffset> DateEnd { get; init; }
Property Value
DateStart
The start of the reporting period.
[JsonPropertyName("date_start")]
[JsonConverter(typeof(MaybeJsonConverter<DateTimeOffset>))]
public Maybe<DateTimeOffset> DateStart { get; init; }
Property Value
IncludeSubaccounts
Whether sub-account data is included in the report.
[JsonPropertyName("include_subaccounts")]
[JsonConverter(typeof(MaybeJsonConverter<bool>))]
public Maybe<bool> IncludeSubaccounts { get; init; }
Property Value
ItemsCount
The number of records in the report.
[JsonPropertyName("items_count")]
public long ItemsCount { get; init; }
Property Value
Links
HAL links for navigating to the report and its download.
[JsonPropertyName("_links")]
public ReportLinks Links { get; init; }
Property Value
Product
The product type the report covers.
[JsonPropertyName("product")]
[JsonConverter(typeof(EnumDescriptionJsonConverter<ReportProduct>))]
public ReportProduct Product { get; init; }
Property Value
ReceiveTime
The time the report request was received.
[JsonPropertyName("receive_time")]
public DateTimeOffset ReceiveTime { get; init; }
Property Value
RequestId
The unique identifier of the report.
[JsonPropertyName("request_id")]
public Guid RequestId { get; init; }
Property Value
RequestStatus
The current status of the report.
[JsonPropertyName("request_status")]
[JsonConverter(typeof(EnumDescriptionJsonConverter<ReportStatus>))]
public ReportStatus RequestStatus { get; init; }
Property Value
StartTime
The time report processing started.
[JsonPropertyName("start_time")]
public DateTimeOffset StartTime { get; init; }