send("/reports/2021-06-30/reports", [ 'method' => 'GET', 'query' => $queryParams, ]); } public function getReportsAsync($queryParams = []) { return $this->sendAsync("/reports/2021-06-30/reports", [ 'method' => 'GET', 'query' => $queryParams, ]); } /** * Operation createReport * */ public function createReport($body = []) { return $this->send("/reports/2021-06-30/reports", [ 'method' => 'POST', 'json' => $body ]); } public function createReportAsync($body = []) { return $this->sendAsync("/reports/2021-06-30/reports", [ 'method' => 'POST', 'json' => $body ]); } /** * Operation cancelReport * * @param string $reportId The identifier for the report. This identifier is unique only in combination with a seller ID. * */ public function cancelReport($reportId) { return $this->send("/reports/2021-06-30/reports/{$reportId}", [ 'method' => 'DELETE', ]); } public function cancelReportAsync($reportId) { return $this->sendAsync("/reports/2021-06-30/reports/{$reportId}", [ 'method' => 'DELETE', ]); } /** * Operation getReport * * @param string $reportId The identifier for the report. This identifier is unique only in combination with a seller ID. * */ public function getReport($reportId) { return $this->send("/reports/2021-06-30/reports/{$reportId}", [ 'method' => 'GET', ]); } public function getReportAsync($reportId) { return $this->sendAsync("/reports/2021-06-30/reports/{$reportId}", [ 'method' => 'GET', ]); } /** * Operation getReportSchedules * * @param array $queryParams * - *reportTypes* array - A list of report types used to filter report schedules. * */ public function getReportSchedules($queryParams = []) { return $this->send("/reports/2021-06-30/schedules", [ 'method' => 'GET', 'query' => $queryParams, ]); } public function getReportSchedulesAsync($queryParams = []) { return $this->sendAsync("/reports/2021-06-30/schedules", [ 'method' => 'GET', 'query' => $queryParams, ]); } /** * Operation createReportSchedule * */ public function createReportSchedule($body = []) { return $this->send("/reports/2021-06-30/schedules", [ 'method' => 'POST', 'json' => $body ]); } public function createReportScheduleAsync($body = []) { return $this->sendAsync("/reports/2021-06-30/schedules", [ 'method' => 'POST', 'json' => $body ]); } /** * Operation cancelReportSchedule * * @param string $reportScheduleId The identifier for the report schedule. This identifier is unique only in combination with a seller ID. * */ public function cancelReportSchedule($reportScheduleId) { return $this->send("/reports/2021-06-30/schedules/{$reportScheduleId}", [ 'method' => 'DELETE', ]); } public function cancelReportScheduleAsync($reportScheduleId) { return $this->sendAsync("/reports/2021-06-30/schedules/{$reportScheduleId}", [ 'method' => 'DELETE', ]); } /** * Operation getReportSchedule * * @param string $reportScheduleId The identifier for the report schedule. This identifier is unique only in combination with a seller ID. * */ public function getReportSchedule($reportScheduleId) { return $this->send("/reports/2021-06-30/schedules/{$reportScheduleId}", [ 'method' => 'GET', ]); } public function getReportScheduleAsync($reportScheduleId) { return $this->sendAsync("/reports/2021-06-30/schedules/{$reportScheduleId}", [ 'method' => 'GET', ]); } /** * Operation getReportDocument * * @param string $reportDocumentId The identifier for the report document. * */ public function getReportDocument($reportDocumentId) { return $this->send("/reports/2021-06-30/documents/{$reportDocumentId}", [ 'method' => 'GET', ]); } public function getReportDocumentAsync($reportDocumentId) { return $this->sendAsync("/reports/2021-06-30/documents/{$reportDocumentId}", [ 'method' => 'GET', ]); } }