{"action":"created","comment":{"url":"https://api.github.com/repos/Sylius/Sylius/pulls/comments/102023396","pull_request_review_id":22763430,"id":102023396,"diff_hunk":"@@ -238,185 +373,291 @@ Response will contain an updated order information.\n .. code-block:: json\n \n     {\n-        \"adjustments\": {\n-        },\n-        \"adjustments_total\": 4750,\n-        \"billing_address\": {\n-        },\n-        \"channel\": {\n-        },\n-        \"checkout_state\": \"shipping\",\n-        \"comments\": [],\n-        \"confirmed\": true,\n-        \"created_at\": \"2014-12-15T13:15:22+0000\",\n-        \"email\": \"xschaefer@example.com\",\n-        \"expires_at\": \"2014-12-15T16:15:22+0000\",\n-        \"id\": 52,\n-        \"items\": [\n-        ],\n-        \"items_total\": 1500000,\n-        \"payments\": [],\n-        \"shipments\": [\n+        \"shipments\":[\n             {\n-                \"_links\": {\n-                    \"method\": {\n-                        \"href\": \"/app_dev.php/api/v1/shipping-methods/4\"\n+                \"methods\":[\n+                    {\n+                        \"id\":1,\n+                        \"code\":\"ups\",\n+                        \"name\":\"UPS\",\n+                        \"description\":\"Dolorem consequatur itaque neque non voluptas dolor.\",\n+                        \"price\":8787\n                     },\n-                    \"order\": {\n-                        \"href\": \"/app_dev.php/api/v1/orders/52\"\n+                    {\n+                        \"id\":2,\n+                        \"code\":\"dhl_express\",\n+                        \"name\":\"DHL Express\",\n+                        \"description\":\"Voluptatem ipsum dolor vitae corrupti eum repellat.\",\n+                        \"price\":3549\n                     },\n-                    \"self\": {\n-                        \"href\": \"/app_dev.php/api/v1/shipments/51\"\n+                    {\n+                        \"id\":3,\n+                        \"code\":\"fedex\",\n+                        \"name\":\"FedEx\",\n+                        \"description\":\"Qui nostrum minus accusantium molestiae voluptatem eaque.\",\n+                        \"price\":3775\n                     }\n-                },\n-                \"created_at\": \"2014-12-15T14:30:40+0000\",\n-                \"id\": 51,\n-                \"method\": {\n-                    \"_links\": {\n-                        \"self\": {\n-                            \"href\": \"/app_dev.php/api/v1/shipping-methods/4\"\n-                        },\n-                        \"zone\": {\n-                            \"href\": \"/app_dev.php/api/v1/zones/4\"\n-                        }\n-                    },\n-                    \"calculator\": \"flexible_rate\",\n-                    \"category_requirement\": 1,\n-                    \"configuration\": {\n-                        \"additional_item_cost\": 500,\n-                        \"additional_item_limit\": 10,\n-                        \"first_item_cost\": 4000\n-                    },\n-                    \"created_at\": \"2014-12-03T09:54:28+0000\",\n-                    \"enabled\": true,\n-                    \"id\": 4,\n-                    \"name\": \"FedEx World Shipping\",\n-                    \"updated_at\": \"2014-12-03T09:54:28+0000\"\n-                },\n-                \"state\": \"checkout\",\n-                \"updated_at\": \"2014-12-15T14:30:41+0000\"\n+                ]\n             }\n-        ],\n-        \"shipping_address\": {\n-        },\n-        \"state\": \"cart\",\n-        \"total\": 1504750,\n-        \"updated_at\": \"2014-12-15T14:30:41+0000\",\n-        \"user\": {\n-        }\n+        ]\n     }\n \n+Response contains the proposed shipments and for each, it also has a list of shipping methods available with calculated price.","path":"docs/api/checkouts.rst","position":651,"original_position":651,"commit_id":"de9363569b17f6adc55d75d1b8c13905f06c6b2f","original_commit_id":"de9363569b17f6adc55d75d1b8c13905f06c6b2f","user":{"login":"TheMadeleine","id":13198869,"avatar_url":"https://avatars.githubusercontent.com/u/13198869?v=3","gravatar_id":"","url":"https://api.github.com/users/TheMadeleine","html_url":"https://github.com/TheMadeleine","followers_url":"https://api.github.com/users/TheMadeleine/followers","following_url":"https://api.github.com/users/TheMadeleine/following{/other_user}","gists_url":"https://api.github.com/users/TheMadeleine/gists{/gist_id}","starred_url":"https://api.github.com/users/TheMadeleine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheMadeleine/subscriptions","organizations_url":"https://api.github.com/users/TheMadeleine/orgs","repos_url":"https://api.github.com/users/TheMadeleine/repos","events_url":"https://api.github.com/users/TheMadeleine/events{/privacy}","received_events_url":"https://api.github.com/users/TheMadeleine/received_events","type":"User","site_admin":false},"body":"The response contains proposed shipments and for each of them, it has a list of the available shipping methods alongside their calculated prices.","created_at":"2017-02-20T14:01:19Z","updated_at":"2017-02-20T14:12:57Z","html_url":"https://github.com/Sylius/Sylius/pull/7518#discussion_r102023396","pull_request_url":"https://api.github.com/repos/Sylius/Sylius/pulls/7518","_links":{"self":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/comments/102023396"},"html":{"href":"https://github.com/Sylius/Sylius/pull/7518#discussion_r102023396"},"pull_request":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/7518"}}},"pull_request":{"url":"https://api.github.com/repos/Sylius/Sylius/pulls/7518","id":106305307,"html_url":"https://github.com/Sylius/Sylius/pull/7518","diff_url":"https://github.com/Sylius/Sylius/pull/7518.diff","patch_url":"https://github.com/Sylius/Sylius/pull/7518.patch","issue_url":"https://api.github.com/repos/Sylius/Sylius/issues/7518","number":7518,"state":"open","locked":false,"title":"[WIP] [API] [Documentation] [Checkout] Documentation for checkout and a few tweaks ","user":{"login":"lchrusciel","id":6213903,"avatar_url":"https://avatars.githubusercontent.com/u/6213903?v=3","gravatar_id":"","url":"https://api.github.com/users/lchrusciel","html_url":"https://github.com/lchrusciel","followers_url":"https://api.github.com/users/lchrusciel/followers","following_url":"https://api.github.com/users/lchrusciel/following{/other_user}","gists_url":"https://api.github.com/users/lchrusciel/gists{/gist_id}","starred_url":"https://api.github.com/users/lchrusciel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lchrusciel/subscriptions","organizations_url":"https://api.github.com/users/lchrusciel/orgs","repos_url":"https://api.github.com/users/lchrusciel/repos","events_url":"https://api.github.com/users/lchrusciel/events{/privacy}","received_events_url":"https://api.github.com/users/lchrusciel/received_events","type":"User","site_admin":false},"body":"| Q               | A\r\n| --------------- | ---\r\n| Bug fix?        | yes |\r\n| New feature?    | no |\r\n| BC breaks?      | yes (different serialization in API) |\r\n| Related tickets |  |\r\n| License         | MIT |\r\n","created_at":"2017-02-15T12:59:17Z","updated_at":"2017-02-20T14:12:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f8d4fbd38d08ba023af278cf478fc786c0f72c15","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Sylius/Sylius/pulls/7518/commits","review_comments_url":"https://api.github.com/repos/Sylius/Sylius/pulls/7518/comments","review_comment_url":"https://api.github.com/repos/Sylius/Sylius/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sylius/Sylius/issues/7518/comments","statuses_url":"https://api.github.com/repos/Sylius/Sylius/statuses/de9363569b17f6adc55d75d1b8c13905f06c6b2f","head":{"label":"lchrusciel:checkout-docs","ref":"checkout-docs","sha":"de9363569b17f6adc55d75d1b8c13905f06c6b2f","user":{"login":"lchrusciel","id":6213903,"avatar_url":"https://avatars.githubusercontent.com/u/6213903?v=3","gravatar_id":"","url":"https://api.github.com/users/lchrusciel","html_url":"https://github.com/lchrusciel","followers_url":"https://api.github.com/users/lchrusciel/followers","following_url":"https://api.github.com/users/lchrusciel/following{/other_user}","gists_url":"https://api.github.com/users/lchrusciel/gists{/gist_id}","starred_url":"https://api.github.com/users/lchrusciel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lchrusciel/subscriptions","organizations_url":"https://api.github.com/users/lchrusciel/orgs","repos_url":"https://api.github.com/users/lchrusciel/repos","events_url":"https://api.github.com/users/lchrusciel/events{/privacy}","received_events_url":"https://api.github.com/users/lchrusciel/received_events","type":"User","site_admin":false},"repo":{"id":27534661,"name":"Sylius","full_name":"lchrusciel/Sylius","owner":{"login":"lchrusciel","id":6213903,"avatar_url":"https://avatars.githubusercontent.com/u/6213903?v=3","gravatar_id":"","url":"https://api.github.com/users/lchrusciel","html_url":"https://github.com/lchrusciel","followers_url":"https://api.github.com/users/lchrusciel/followers","following_url":"https://api.github.com/users/lchrusciel/following{/other_user}","gists_url":"https://api.github.com/users/lchrusciel/gists{/gist_id}","starred_url":"https://api.github.com/users/lchrusciel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lchrusciel/subscriptions","organizations_url":"https://api.github.com/users/lchrusciel/orgs","repos_url":"https://api.github.com/users/lchrusciel/repos","events_url":"https://api.github.com/users/lchrusciel/events{/privacy}","received_events_url":"https://api.github.com/users/lchrusciel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lchrusciel/Sylius","description":"Modern e-commerce for PHP, based on the Symfony2 framework.","fork":true,"url":"https://api.github.com/repos/lchrusciel/Sylius","forks_url":"https://api.github.com/repos/lchrusciel/Sylius/forks","keys_url":"https://api.github.com/repos/lchrusciel/Sylius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lchrusciel/Sylius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lchrusciel/Sylius/teams","hooks_url":"https://api.github.com/repos/lchrusciel/Sylius/hooks","issue_events_url":"https://api.github.com/repos/lchrusciel/Sylius/issues/events{/number}","events_url":"https://api.github.com/repos/lchrusciel/Sylius/events","assignees_url":"https://api.github.com/repos/lchrusciel/Sylius/assignees{/user}","branches_url":"https://api.github.com/repos/lchrusciel/Sylius/branches{/branch}","tags_url":"https://api.github.com/repos/lchrusciel/Sylius/tags","blobs_url":"https://api.github.com/repos/lchrusciel/Sylius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lchrusciel/Sylius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lchrusciel/Sylius/git/refs{/sha}","trees_url":"https://api.github.com/repos/lchrusciel/Sylius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lchrusciel/Sylius/statuses/{sha}","languages_url":"https://api.github.com/repos/lchrusciel/Sylius/languages","stargazers_url":"https://api.github.com/repos/lchrusciel/Sylius/stargazers","contributors_url":"https://api.github.com/repos/lchrusciel/Sylius/contributors","subscribers_url":"https://api.github.com/repos/lchrusciel/Sylius/subscribers","subscription_url":"https://api.github.com/repos/lchrusciel/Sylius/subscription","commits_url":"https://api.github.com/repos/lchrusciel/Sylius/commits{/sha}","git_commits_url":"https://api.github.com/repos/lchrusciel/Sylius/git/commits{/sha}","comments_url":"https://api.github.com/repos/lchrusciel/Sylius/comments{/number}","issue_comment_url":"https://api.github.com/repos/lchrusciel/Sylius/issues/comments{/number}","contents_url":"https://api.github.com/repos/lchrusciel/Sylius/contents/{+path}","compare_url":"https://api.github.com/repos/lchrusciel/Sylius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lchrusciel/Sylius/merges","archive_url":"https://api.github.com/repos/lchrusciel/Sylius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lchrusciel/Sylius/downloads","issues_url":"https://api.github.com/repos/lchrusciel/Sylius/issues{/number}","pulls_url":"https://api.github.com/repos/lchrusciel/Sylius/pulls{/number}","milestones_url":"https://api.github.com/repos/lchrusciel/Sylius/milestones{/number}","notifications_url":"https://api.github.com/repos/lchrusciel/Sylius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lchrusciel/Sylius/labels{/name}","releases_url":"https://api.github.com/repos/lchrusciel/Sylius/releases{/id}","deployments_url":"https://api.github.com/repos/lchrusciel/Sylius/deployments","created_at":"2014-12-04T10:09:34Z","updated_at":"2016-01-12T07:29:40Z","pushed_at":"2017-02-20T13:35:55Z","git_url":"git://github.com/lchrusciel/Sylius.git","ssh_url":"git@github.com:lchrusciel/Sylius.git","clone_url":"https://github.com/lchrusciel/Sylius.git","svn_url":"https://github.com/lchrusciel/Sylius","homepage":"Sylius.org","size":56380,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Sylius:master","ref":"master","sha":"96bcde6498fdcd9ddcf02d28ef0fda406b2ef718","user":{"login":"Sylius","id":719423,"avatar_url":"https://avatars.githubusercontent.com/u/719423?v=3","gravatar_id":"","url":"https://api.github.com/users/Sylius","html_url":"https://github.com/Sylius","followers_url":"https://api.github.com/users/Sylius/followers","following_url":"https://api.github.com/users/Sylius/following{/other_user}","gists_url":"https://api.github.com/users/Sylius/gists{/gist_id}","starred_url":"https://api.github.com/users/Sylius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sylius/subscriptions","organizations_url":"https://api.github.com/users/Sylius/orgs","repos_url":"https://api.github.com/users/Sylius/repos","events_url":"https://api.github.com/users/Sylius/events{/privacy}","received_events_url":"https://api.github.com/users/Sylius/received_events","type":"Organization","site_admin":false},"repo":{"id":2717549,"name":"Sylius","full_name":"Sylius/Sylius","owner":{"login":"Sylius","id":719423,"avatar_url":"https://avatars.githubusercontent.com/u/719423?v=3","gravatar_id":"","url":"https://api.github.com/users/Sylius","html_url":"https://github.com/Sylius","followers_url":"https://api.github.com/users/Sylius/followers","following_url":"https://api.github.com/users/Sylius/following{/other_user}","gists_url":"https://api.github.com/users/Sylius/gists{/gist_id}","starred_url":"https://api.github.com/users/Sylius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sylius/subscriptions","organizations_url":"https://api.github.com/users/Sylius/orgs","repos_url":"https://api.github.com/users/Sylius/repos","events_url":"https://api.github.com/users/Sylius/events{/privacy}","received_events_url":"https://api.github.com/users/Sylius/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sylius/Sylius","description":"eCommerce PHP framework built on top of Symfony with component-based architecture and format-agnostic rendering. (HTML/JSON/XML)","fork":false,"url":"https://api.github.com/repos/Sylius/Sylius","forks_url":"https://api.github.com/repos/Sylius/Sylius/forks","keys_url":"https://api.github.com/repos/Sylius/Sylius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sylius/Sylius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sylius/Sylius/teams","hooks_url":"https://api.github.com/repos/Sylius/Sylius/hooks","issue_events_url":"https://api.github.com/repos/Sylius/Sylius/issues/events{/number}","events_url":"https://api.github.com/repos/Sylius/Sylius/events","assignees_url":"https://api.github.com/repos/Sylius/Sylius/assignees{/user}","branches_url":"https://api.github.com/repos/Sylius/Sylius/branches{/branch}","tags_url":"https://api.github.com/repos/Sylius/Sylius/tags","blobs_url":"https://api.github.com/repos/Sylius/Sylius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sylius/Sylius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sylius/Sylius/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sylius/Sylius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sylius/Sylius/statuses/{sha}","languages_url":"https://api.github.com/repos/Sylius/Sylius/languages","stargazers_url":"https://api.github.com/repos/Sylius/Sylius/stargazers","contributors_url":"https://api.github.com/repos/Sylius/Sylius/contributors","subscribers_url":"https://api.github.com/repos/Sylius/Sylius/subscribers","subscription_url":"https://api.github.com/repos/Sylius/Sylius/subscription","commits_url":"https://api.github.com/repos/Sylius/Sylius/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sylius/Sylius/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sylius/Sylius/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sylius/Sylius/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sylius/Sylius/contents/{+path}","compare_url":"https://api.github.com/repos/Sylius/Sylius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sylius/Sylius/merges","archive_url":"https://api.github.com/repos/Sylius/Sylius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sylius/Sylius/downloads","issues_url":"https://api.github.com/repos/Sylius/Sylius/issues{/number}","pulls_url":"https://api.github.com/repos/Sylius/Sylius/pulls{/number}","milestones_url":"https://api.github.com/repos/Sylius/Sylius/milestones{/number}","notifications_url":"https://api.github.com/repos/Sylius/Sylius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sylius/Sylius/labels{/name}","releases_url":"https://api.github.com/repos/Sylius/Sylius/releases{/id}","deployments_url":"https://api.github.com/repos/Sylius/Sylius/deployments","created_at":"2011-11-05T22:05:52Z","updated_at":"2017-02-20T09:15:48Z","pushed_at":"2017-02-20T14:04:32Z","git_url":"git://github.com/Sylius/Sylius.git","ssh_url":"git@github.com:Sylius/Sylius.git","clone_url":"https://github.com/Sylius/Sylius.git","svn_url":"https://github.com/Sylius/Sylius","homepage":"http://Sylius.org","size":56256,"stargazers_count":2797,"watchers_count":2797,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1028,"mirror_url":null,"open_issues_count":457,"forks":1028,"open_issues":457,"watchers":2797,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/7518"},"html":{"href":"https://github.com/Sylius/Sylius/pull/7518"},"issue":{"href":"https://api.github.com/repos/Sylius/Sylius/issues/7518"},"comments":{"href":"https://api.github.com/repos/Sylius/Sylius/issues/7518/comments"},"review_comments":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/7518/comments"},"review_comment":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/7518/commits"},"statuses":{"href":"https://api.github.com/repos/Sylius/Sylius/statuses/de9363569b17f6adc55d75d1b8c13905f06c6b2f"}}}}
{"actor":{"display_login":"TheMadeleine"}}