Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
abuzuhri committed Feb 2, 2022
2 parents 6f12a17 + 9f211ac commit 4bdef8c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 460 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Build
id: build-project
run: dotnet build ./Source/FikaAmazonAPI/FikaAmazonAPI.csproj --configuration Release --no-restore


- name: Pack
id: pack-prohject
Expand All @@ -49,14 +49,19 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.USERGIHUB_TOKEN }}

- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1


- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.USERGIHUB_TOKEN }}
with:
tag_name: ${{ github.event.release.tag_name }}
release_name: Release ${{ github.event.release.tag_name }}
tag_name: ${{steps.tag.outputs.tag}}
release_name: Release ${{steps.tag.outputs.tag}}
body: TODO
draft: false
prerelease: false
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ The purpose of this package is to have an easy way of getting started with the A
- [x] [Uploads](https://github.com/amzn/selling-partner-api-docs/blob/main/references/uploads-api/uploads_2020-11-01.md)
- [x] [shipmentInvoicingV0](https://github.com/amzn/selling-partner-api-docs/blob/main/references/shipment-invoicing-api/shipmentInvoicingV0.md)
- [x] [Shippings](https://github.com/amzn/selling-partner-api-docs/blob/main/references/shipping-api/shipping.md)
- [x] [CatalogItemsV0](https://github.com/amzn/selling-partner-api-docs/blob/main/references/catalog-items-api/catalogItemsV0.md)
- [x] [CatalogItemsV0](https://github.com/amzn/selling-partner-api-docs/blob/main/references/catalog-items-api/catalogItemsV0.md) (deprecated soon)
- [ ] [CatalogItemsV20201201](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2020-12-01-reference)
- [x] [FBAInventory](https://github.com/amzn/selling-partner-api-docs/tree/main/references/fba-inventory-api)
- [x] [FBASmallAndLight](https://github.com/amzn/selling-partner-api-docs/blob/main/references/fba-small-and-light-api/fbaSmallandLight.md)
- [x] [FBAInboundEligibility](https://github.com/amzn/selling-partner-api-docs/blob/main/references/fba-inbound-eligibility-api/fbaInbound.md)
Expand Down Expand Up @@ -190,7 +191,7 @@ var report= amazonConnection.Reports.CreateReport(parameters);
```

### Report Manager 🚀🧑‍🚀✨
Easy way to get the report you need and convert the file return from amazon to class or list, this feature only ready for some reports as its will take much times to finish for all reports ....
Easy way to get the report you need and convert the file return from amazon to class or list, this feature only ready for some reports as its will take much times to finish for [All report type](https://github.com/amzn/selling-partner-api-docs/blob/main/references/reports-api/reporttype-values.md) ....
```CSharp
ReportManager reportManager = new ReportManager(amazonConnection);
var products = reportManager.GetProducts(); //GET_MERCHANT_LISTINGS_ALL_DATA
Expand Down
17 changes: 0 additions & 17 deletions Source/FikaAmazonAPI/ReportGeneration/ReportManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,6 @@ private string GetFeedbackFromDate(AmazonConnection amazonConnection, DateTime f
#endregion

#region Performance
public SellerFeedBackDataResult GetSellerFeedBackDataFromDays(int days)
{
DateTime fromDate = DateTime.UtcNow.AddDays(-1 * days);
DateTime toDate = DateTime.UtcNow;
return GetSellerPerformance(fromDate, toDate);
}
public SellerFeedBackDataResult GetSellerPerformance(DateTime fromDate, DateTime toDate)
{
var path = GetSellerPerformance(_amazonConnection, fromDate, toDate);
SellerFeedBackData sellerPerformanceReport = new SellerFeedBackData(path);
return sellerPerformanceReport.Data;
}

private string GetSellerPerformance(AmazonConnection amazonConnection, DateTime fromDate, DateTime toDate)
{
return amazonConnection.Reports.CreateReportAndDownloadFile(ReportTypes.GET_SELLER_FEEDBACK_DATA, fromDate);
}
#endregion

#region Reimbursement
Expand Down
Loading

0 comments on commit 4bdef8c

Please sign in to comment.