ittybittyapps / appstoreconnect-cli

An easy to use command-line tool for interacting with the Apple AppStore Connect API
MIT License
173 stars 17 forks source link

Implement DownloadFinancialReportsCommand #195

Closed DechengMa closed 4 years ago

DechengMa commented 4 years ago

Closes #90

📝 Summary of Changes

Changes proposed in this pull request:

⚠️ Items of Note

The suffix of the downloaded file is .gz

🧐🗒 Reviewer Notes

💁 Example

USAGE: asc reports financial [--api-issuer <uuid>] [--api-key-id <keyid>] [--csv] [--json] [--table] [--yaml] <region-code> <report-date> <vendor-number> <output-filename>

ARGUMENTS:
  <region-code>           You can download consolidated or separate financial reports per territory. 
        Possible values: (AE, AU, BG, BR, CA, CH, CL, CN, CO, CZ, DK, EG, EU, GB, HK, HU, ID, IL, IN, JP, KR, KZ, MX, MY, NG, NO, NZ,
        PE, PH, PK, PL, QA, RU, SA, SE, SG, TR, TW, TZ, US, VN, WW, ZA, ZZ)
  <report-date>           The date of the report you wish to download based on the Apple Fiscal Calendar. 
        The date is specified in the YYYY-MM format.
  <vendor-number>         Your vendor number. 
  <output-filename>       The downloaded report file name.

🔨 How To Test

swift run asc reports financial AU 2020-05 12345678 ./../report

orj commented 4 years ago

Also, don't forget to update the README TODOs.