reports

package
v0.0.0-...-ce6a40e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reports

type Reports struct {
	*mws.Client
}

Reports is the client for the api

func NewClient

func NewClient(config mws.Config) (*Reports, error)

NewClient generate a new product client

func (Reports) CancelReportRequests

func (r Reports) CancelReportRequests(optional ...mws.Parameters) (*mws.Response, error)

CancelReportRequests Cancels one or more report requests. Optional Parameters:

	ReportRequestIdList - []string. A structured list of ReportRequestId values. If you pass in ReportRequestId values, other query conditions are ignored.
 ReportTypeList - []string. A structured list of ReportType enumeration values.
 ReportProcessingStatusList - []string. A structured list of report processing statuses by which to filter report requests.
     Values: _SUBMITTED_, _IN_PROGRESS_, _CANCELLED_, _DONE_, _DONE_NO_DATA_.
		Default: All.
 RequestedFromDate: string. The start of the date range used for selecting the data to report, in ISO 8601 date time format .
 RequestedToDate: string. The end of the date range used for selecting the data to report, in ISO 8601 date time format .

http://docs.developer.amazonservices.com/en_US/reports/Reports_CancelReportRequests.html

func (Reports) GetReport

func (r Reports) GetReport(reportID string) (*mws.Response, error)

GetReport Returns the contents of a report and the Content-MD5 header for the returned report body. http://docs.developer.amazonservices.com/en_US/reports/Reports_GetReport.html

func (Reports) GetReportCount

func (r Reports) GetReportCount(optional ...mws.Parameters) (*mws.Response, error)

GetReportCount Returns a count of the reports, created in the previous 90 days, with a status of _DONE_ and that are available for download. Optional Parameters:

 ReportTypeList - []string. A structured list of ReportType enumeration values.
	Acknowledged - bool. A Boolean value that indicates if an order report has been acknowledged by a prior call to UpdateReportAcknowledgements.
 AvailableFromDate: string. The start of the date range used for selecting the data to report, in ISO 8601 date time format .
 AvailableToDate: string. The end of the date range used for selecting the data to report, in ISO 8601 date time format .

http://docs.developer.amazonservices.com/en_US/reports/Reports_GetReportCount.html

func (Reports) GetReportList

func (r Reports) GetReportList(optional ...mws.Parameters) (*mws.Response, error)

GetReportList Returns a list of reports that were created in the previous 90 days. Optional Parameters:

 MaxCount - int. A non-negative integer that represents the maximum number of report requests to return. Max: 100.
 ReportTypeList - []string. A structured list of ReportType enumeration values.
	Acknowledged - bool. A Boolean value that indicates if an order report has been acknowledged by a prior call to UpdateReportAcknowledgements.
 AvailableFromDate: string. The start of the date range used for selecting the data to report, in ISO 8601 date time format .
 AvailableToDate: string. The end of the date range used for selecting the data to report, in ISO 8601 date time format .
	ReportRequestIdList - []string. A structured list of ReportRequestId values. If you pass in ReportRequestId values, other query conditions are ignored.

http://docs.developer.amazonservices.com/en_US/reports/Reports_GetReportList.html

func (Reports) GetReportListByNextToken

func (r Reports) GetReportListByNextToken(nextToken string) (*mws.Response, error)

GetReportListByNextToken Returns a list of reports using the NextToken, which was supplied by a previous request to either GetReportListByNextToken or GetReportList, where the value of HasNext was true in the previous call. http://docs.developer.amazonservices.com/en_US/reports/Reports_GetReportListByNextToken.html

func (Reports) GetReportRequestCount

func (r Reports) GetReportRequestCount(optional ...mws.Parameters) (*mws.Response, error)

GetReportRequestCount Returns a count of report requests that have been submitted to Amazon MWS for processing. Optional Parameters:

 ReportTypeList - []string. A structured list of ReportType enumeration values.
 ReportProcessingStatusList - []string. A structured list of report processing statuses by which to filter report requests.
     Values: _SUBMITTED_, _IN_PROGRESS_, _CANCELLED_, _DONE_, _DONE_NO_DATA_.
		Default: All.
 RequestedFromDate: string. The start of the date range used for selecting the data to report, in ISO 8601 date time format .
 RequestedToDate: string. The end of the date range used for selecting the data to report, in ISO 8601 date time format .

http://docs.developer.amazonservices.com/en_US/reports/Reports_GetReportRequestCount.html

func (Reports) GetReportRequestList

func (r Reports) GetReportRequestList(optional ...mws.Parameters) (*mws.Response, error)

GetReportRequestList Returns a list of report requests that you can use to get the ReportRequestId for a report. Optional Parameters:

	ReportRequestIdList - []string. A structured list of ReportRequestId values. If you pass in ReportRequestId values, other query conditions are ignored.
 ReportTypeList - []string. A structured list of ReportType enumeration values.
 ReportProcessingStatusList - []string. A structured list of report processing statuses by which to filter report requests.
     Values: _SUBMITTED_, _IN_PROGRESS_, _CANCELLED_, _DONE_, _DONE_NO_DATA_.
		Default: All.
 MaxCount - int. A non-negative integer that represents the maximum number of report requests to return. Max: 100.
 RequestedFromDate: string. The start of the date range used for selecting the data to report, in ISO 8601 date time format .
 RequestedToDate: string. The end of the date range used for selecting the data to report, in ISO 8601 date time format .

http://docs.developer.amazonservices.com/en_US/reports/Reports_GetReportRequestList.html

func (Reports) GetReportRequestListByNextToken

func (r Reports) GetReportRequestListByNextToken(nextToken string) (*mws.Response, error)

GetReportRequestListByNextToken Returns a list of report requests using the NextToken, which was supplied by a previous request to either GetReportRequestListByNextToken or GetReportRequestList, where the value of HasNext was true in that previous request. http://docs.developer.amazonservices.com/en_US/reports/Reports_GetReportRequestListByNextToken.html

func (Reports) GetReportScheduleCount

func (r Reports) GetReportScheduleCount(optional ...mws.Parameters) (*mws.Response, error)

GetReportScheduleCount Returns a count of order report requests that are scheduled to be submitted to Amazon MWS. http://docs.developer.amazonservices.com/en_US/reports/Reports_GetReportScheduleCount.html

func (Reports) GetReportScheduleList

func (r Reports) GetReportScheduleList(optional ...mws.Parameters) (*mws.Response, error)

GetReportScheduleList Returns a list of order report requests that are scheduled to be submitted to Amazon MWS for processing. http://docs.developer.amazonservices.com/en_US/reports/Reports_GetReportScheduleList.html

func (Reports) ManageReportSchedule

func (r Reports) ManageReportSchedule(reportType string, schedule string, optional ...mws.Parameters) (*mws.Response, error)

ManageReportSchedule Creates, updates, or deletes a report request schedule for a specified report type. http://docs.developer.amazonservices.com/en_US/reports/Reports_ManageReportSchedule.html schedule - string. A value of the Schedule that indicates how often a report request should be created.

Detail: http://docs.developer.amazonservices.com/en_US/reports/Reports_Schedule.html
Values: _15_MINUTES_, _30_MINUTES_, _1_HOUR_, _2_HOURS_, _4_HOURS_, _8_HOURS_,
	_12_HOURS_, _1_DAY_, _2_DAYS_, _72_HOURS_, _1_WEEK_, _14_DAYS_,
	_15_DAYS_, _30_DAYS_, _NEVER_

Optional Parameters:

 ScheduleDate - string. The date when the next report request is scheduled to be submitted.
		Value can be no more than 366 days in the future. In ISO 8601 date time format .

func (Reports) Name

func (r Reports) Name() string

Name return the name of the api

func (Reports) RequestReport

func (r Reports) RequestReport(reportType string, optional ...mws.Parameters) (*mws.Response, error)

RequestReport Creates a report request and submits the request to Amazon MWS. Optional Parameters:

	StartDate - string. The start of a date range used for selecting the data to report. Values in ISO 8601 date time format.
 EndDate - string. The end of a date range used for selecting the data to report. Values in ISO 8601 date time format.
 ReportOptions - string. Additional information to pass to the report.
 MarketplaceIdList - []string. A list of one or more marketplace IDs for the marketplaces you are registered to sell in.

http://docs.developer.amazonservices.com/en_US/reports/Reports_RequestReport.html

func (Reports) UpdateReportAcknowledgements

func (r Reports) UpdateReportAcknowledgements(ids []string, optional ...mws.Parameters) (*mws.Response, error)

UpdateReportAcknowledgements Updates the acknowledged status of one or more reports. http://docs.developer.amazonservices.com/en_US/reports/Reports_UpdateReportAcknowledgements.html Optional Parameters:

Acknowledged - string. A Boolean value that indicates that you have received and stored a report.

func (Reports) Version

func (r Reports) Version() string

Version return the current version of api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL