Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ var reimbursementsOrder = reportManager.GetReimbursementsOrder(180); //GET_FBA_R
var feedbacks = reportManager.GetFeedbackFromDays(180); //GET_SELLER_FEEDBACK_DATA
var LedgerDetails = reportManager.GetLedgerDetailAsync(10); //GET_LEDGER_DETAIL_VIEW_DATA
var UnsuppressedInventory = reportManager.GetUnsuppressedInventoryDataAsync().ConfigureAwait(false).GetAwaiter().GetResult(); //GET_FBA_MYI_UNSUPPRESSED_INVENTORY_DATA
var sellerPerformance = reportManager.GetSellerPerformance(); //GET_V2_SELLER_PERFORMANCE_REPORT
```


Expand Down
33 changes: 32 additions & 1 deletion Source/FikaAmazonAPI/ReportGeneration/ReportManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -558,5 +558,36 @@
}

#endregion

#region Performance

/// <summary>
Comment on lines +561 to +564

Copilot AI Apr 20, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is already a #region Performance earlier in this file (currently empty). Adding another #region Performance at the end creates duplicate regions and makes navigation confusing. Either move these methods into the existing region or remove the earlier empty region.

Copilot uses AI. Check for mistakes.
/// Gets the seller performance report for the current marketplace, containing account health status
/// and performance metrics such as order defect rate, late shipment rate, and policy violations.
/// </summary>
/// <returns>A <see cref="SellerPerformanceReport"/> containing account status and performance metrics.</returns>
public SellerPerformanceReport GetSellerPerformance() =>
Task.Run(() => GetSellerPerformanceAsync()).ConfigureAwait(false).GetAwaiter().GetResult();

/// <summary>
/// Gets the seller performance report asynchronously for the current marketplace, containing account health status
/// and performance metrics such as order defect rate, late shipment rate, and policy violations.
/// </summary>
/// <param name="cancellationToken">A cancellation token that can be used to cancel the request.</param>
/// <returns>A task that resolves to a <see cref="SellerPerformanceReport"/> containing account status and performance metrics.</returns>
public async Task<SellerPerformanceReport> GetSellerPerformanceAsync(CancellationToken cancellationToken = default)
{
var path = await GetSellerPerformanceAsync(_amazonConnection, cancellationToken);
return new SellerPerformanceReport(path, _amazonConnection.RefNumber);
}

private async Task<string> GetSellerPerformanceAsync(AmazonConnection amazonConnection, CancellationToken cancellationToken = default)

Check warning on line 584 in Source/FikaAmazonAPI/ReportGeneration/ReportManager.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Make 'GetSellerPerformanceAsync' a static method.

See more on https://sonarcloud.io/project/issues?id=abuzuhri_Amazon-SP-API-CSharp&issues=AZ2pkvKKREGTegJImtC3&open=AZ2pkvKKREGTegJImtC3&pullRequest=926
{
return await amazonConnection.Reports.CreateReportAndDownloadFileAsync(
ReportTypes.GET_V2_SELLER_PERFORMANCE_REPORT,
cancellationToken: cancellationToken);
}

#endregion
}
}
}
Loading
Loading