{"action":"closed","issue":{"url":"https://api.github.com/repos/gilt/apidoc/issues/297","labels_url":"https://api.github.com/repos/gilt/apidoc/issues/297/labels{/name}","comments_url":"https://api.github.com/repos/gilt/apidoc/issues/297/comments","events_url":"https://api.github.com/repos/gilt/apidoc/issues/297/events","html_url":"https://github.com/gilt/apidoc/issues/297","id":60535020,"number":297,"title":"ning client - error in parameter when list","user":{"login":"mbryzek","id":49875,"avatar_url":"https://avatars.githubusercontent.com/u/49875?v=3","gravatar_id":"","url":"https://api.github.com/users/mbryzek","html_url":"https://github.com/mbryzek","followers_url":"https://api.github.com/users/mbryzek/followers","following_url":"https://api.github.com/users/mbryzek/following{/other_user}","gists_url":"https://api.github.com/users/mbryzek/gists{/gist_id}","starred_url":"https://api.github.com/users/mbryzek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbryzek/subscriptions","organizations_url":"https://api.github.com/users/mbryzek/orgs","repos_url":"https://api.github.com/users/mbryzek/repos","events_url":"https://api.github.com/users/mbryzek/events{/privacy}","received_events_url":"https://api.github.com/users/mbryzek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gilt/apidoc/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-10T17:15:01Z","updated_at":"2015-03-13T15:38:30Z","closed_at":"2015-03-13T15:38:30Z","body":" override def putCheckoutAndOrderAndDiscountsByCheckoutGuid(\r\n                                                                checkoutGuid: String,\r\n                                                                discounts: Seq[com.gilt.checkout.api.v0.models.Discount]\r\n                                                                )(implicit ec: scala.concurrent.ExecutionContext): scala.concurrent.Future[com.gilt.checkout.api.v0.models.CheckoutSession] = {\r\n      val payload = play.api.libs.json.Json.toJson(discount)\r\n\r\n      _executeRequest(\"PUT\", s\"/checkout/${_root_.com.gilt.checkout.api.v0.PathSegment.encode(checkoutGuid, \"UTF-8\")}/order/discounts\", body = Some(payload)).map {\r\n        case r if r.getStatusCode == 200 => _root_.com.gilt.checkout.api.v0.Client.parseJson(\"com.gilt.checkout.api.v0.models.CheckoutSession\", r, _.validate[com.gilt.checkout.api.v0.models.CheckoutSession])\r\n        case r if r.getStatusCode == 400 => throw new com.gilt.checkout.api.v0.errors.ErrorResponseResponse(r)\r\n        case r if r.getStatusCode == 401 => throw new com.gilt.checkout.api.v0.errors.ErrorResponseResponse(r)\r\n        case r if r.getStatusCode == 422 => throw new com.gilt.checkout.api.v0.errors.ErrorResponseResponse(r)\r\n        case r => throw new com.gilt.checkout.api.v0.errors.FailedRequest(r.getStatusCode, s\"Unsupported response code[${r.getStatusCode}]. Expected: 200, 400, 401, 422\", r.getUri)\r\n      }\r\n    }"}}