Statement
Write checkOrderResponse(res) for a test of the POST /orders API. res is { status, headers, body }. Return the list of problems, in this order: "status" if it isn't 201; "content-type" if the Content-Type header (its name may come in any letter case) doesn't start with application/json; "body" if the body isn't an object (and then don't check its fields); "id" if it isn't a string starting with ord_; "total" if it isn't an integer ≥ 0 (cents); "currency" if it isn't EUR, USD or GBP; "items" if it isn't a list with at least one element; "createdAt" if it isn't a string with a valid date. A correct response returns [].