Cookies from a previous run. These can be acquired using saveCookiesFn to avoid unnecessary repeated authentications.
Emit log messages at this level. Currently only LogLevel.DEBUG is used.
If provided, otpFn will be called during login if a OTP code is required. This option will be ignored if otpSecret is provided.
If provided, otpSecret will be used to generate an OTP code during login. This is the code you get during the Authenticator App setup on the 2SV Settings page. Care should be taken to store this securely. An insecurely stored OTP secret is the same as not having OTP at all.
Amazon account password. This may be a string or a provider function.
Puppeteer launch options. See the Puppeteer docs for more info.
If provided, this function will be called with Puppeteer's cookies after login which can be provided to cookies when creating a new instance of AmazonOrderReportsApi.
Amazon account username. This may be a string or a provider function.
Retrieve ordered items in the given date range. If no date range is given, the previous 30 days will be used.
End of date range to report.
Start of date range to report.
Retrieve refunds in the given date range. If no date range is given, the previous 30 days will be used.
End of date range to report.
Start of date range to report.
Retrieve shipments in the given date range. If no date range is given, the previous 30 days will be used.
End of date range to report.
Start of date range to report.
Start the internal Puppeteer isntance. This will be called automatically by getItems, getRefunds and getShipments, but you may also call it manually.
Stop the internal Puppeteer instance.
Generated using TypeDoc
Base URL to use for Amazon.
https://www.amazon.com