diff --git a/includes/classes/AmazonReportRequest.php b/includes/classes/AmazonReportRequest.php index b61d1ae3..f49e3e18 100644 --- a/includes/classes/AmazonReportRequest.php +++ b/includes/classes/AmazonReportRequest.php @@ -176,6 +176,24 @@ public function resetTimeLimits(){ unset($this->options['StartDate']); unset($this->options['EndDate']); } + + /** + * Sets ReportOptions (Optional) + * + * Use this function to add ReportOptions (for example: custom = true) + * @param string $option
ReportOption
+ * @param string|boolean $value"true" or "false", or boolean
+ * @return boolean FALSE if improper input + */ + public function setReportOptions($option, $value){ + if ($value == 'true' || (is_bool($value) && $value == true)){ + $this->options['ReportOptions'] = $option.'=true'; + } else if ($value == 'false' || (is_bool($value) && $value == false)){ + $this->options['ReportOptions'] = $option.'=false'; + } else { + return false; + } + } /** * Sets whether or not the report should return the Sales Channel column. (Optional)