public function addPrice($key, $value = null) { if (isset($value)) { $this->json[$key] = RequestFormatter::formatPrice($value); } return $this; }