{"action":"created","comment":{"url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/pulls/comments/34898353","id":34898353,"diff_hunk":"@@ -0,0 +1,100 @@\n+package com.yandex.money.api.model.showcase.components.uicontrol;\n+\n+import com.yandex.money.api.model.showcase.Fee;\n+import com.yandex.money.api.utils.Currency;\n+\n+import java.math.BigDecimal;\n+\n+/**\n+ * The cost of transaction.\n+ *\n+ * @author Aleksandr Ershov (asershov@yamoney.com)\n+ */\n+public final class Amount extends Number {\n+\n+    /**\n+     * The currency. Default is {@link Currency#RUB}.\n+     */\n+    public final Currency currency;\n+\n+    /**\n+     * Fee. Default is {@link Fee#NO_FEE}.\n+     */\n+    public final Fee fee;\n+\n+    private Amount(Builder builder) {\n+        super(builder);\n+        currency = builder.currency;\n+        fee = builder.fee;\n+    }\n+\n+    /**\n+     * {@link Amount} builder.\n+     */\n+    public static final class Builder extends Number.Builder {\n+\n+        private static final BigDecimal PENNY = new BigDecimal(\"0.01\");\n+\n+        private Currency currency = Currency.RUB;\n+        private Fee fee;\n+\n+        public Builder() {\n+            super(PENNY, null, PENNY);\n+        }\n+\n+        @Override\n+        public Amount create() {\n+            return new Amount(this);\n+        }\n+\n+        @Override\n+        public Builder setMin(BigDecimal min) {\n+            if (min != null) {\n+                super.setMin(min);\n+            }\n+            return this;\n+        }\n+\n+        public Builder setCurrency(Currency currency) {\n+            if (currency != null) {\n+                this.currency = currency;\n+            }\n+            return this;\n+        }\n+\n+        public Builder setFee(Fee fee) {\n+            this.fee = fee;\n+            return this;\n+        }\n+    }\n+\n+    /**\n+     * The type of input.\n+     */\n+    public enum AmountType {\n+        /**","path":"src/main/java/com/yandex/money/api/model/showcase/components/uicontrol/Amount.java","position":75,"original_position":75,"commit_id":"b895661a054625f1f875cd2e478dda8796d6b671","original_commit_id":"b895661a054625f1f875cd2e478dda8796d6b671","user":{"login":"yasevich","id":7524839,"avatar_url":"https://avatars.githubusercontent.com/u/7524839?v=3","gravatar_id":"","url":"https://api.github.com/users/yasevich","html_url":"https://github.com/yasevich","followers_url":"https://api.github.com/users/yasevich/followers","following_url":"https://api.github.com/users/yasevich/following{/other_user}","gists_url":"https://api.github.com/users/yasevich/gists{/gist_id}","starred_url":"https://api.github.com/users/yasevich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yasevich/subscriptions","organizations_url":"https://api.github.com/users/yasevich/orgs","repos_url":"https://api.github.com/users/yasevich/repos","events_url":"https://api.github.com/users/yasevich/events{/privacy}","received_events_url":"https://api.github.com/users/yasevich/received_events","type":"User","site_admin":false},"body":"Needs correction.","created_at":"2015-07-17T15:10:35Z","updated_at":"2015-07-17T15:10:35Z","html_url":"https://github.com/yandex-money/yandex-money-sdk-java/pull/7#discussion_r34898353","pull_request_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/pulls/comments/34898353"},"html":{"href":"https://github.com/yandex-money/yandex-money-sdk-java/pull/7#discussion_r34898353"},"pull_request":{"href":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/pulls/7","id":40236099,"html_url":"https://github.com/yandex-money/yandex-money-sdk-java/pull/7","diff_url":"https://github.com/yandex-money/yandex-money-sdk-java/pull/7.diff","patch_url":"https://github.com/yandex-money/yandex-money-sdk-java/pull/7.patch","issue_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/issues/7","number":7,"state":"open","locked":false,"title":"Payment forms formal description","user":{"login":"raymank26","id":8013845,"avatar_url":"https://avatars.githubusercontent.com/u/8013845?v=3","gravatar_id":"","url":"https://api.github.com/users/raymank26","html_url":"https://github.com/raymank26","followers_url":"https://api.github.com/users/raymank26/followers","following_url":"https://api.github.com/users/raymank26/following{/other_user}","gists_url":"https://api.github.com/users/raymank26/gists{/gist_id}","starred_url":"https://api.github.com/users/raymank26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymank26/subscriptions","organizations_url":"https://api.github.com/users/raymank26/orgs","repos_url":"https://api.github.com/users/raymank26/repos","events_url":"https://api.github.com/users/raymank26/events{/privacy}","received_events_url":"https://api.github.com/users/raymank26/received_events","type":"User","site_admin":false},"body":"Payment form hierarchy added.","created_at":"2015-07-17T14:25:55Z","updated_at":"2015-07-17T15:10:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9a908aa59829765313af849d4ef4a23015e2c46","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/pulls/7/commits","review_comments_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/pulls/7/comments","review_comment_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/issues/7/comments","statuses_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/statuses/b895661a054625f1f875cd2e478dda8796d6b671","head":{"label":"raymank26:feature/payment-forms","ref":"feature/payment-forms","sha":"b895661a054625f1f875cd2e478dda8796d6b671","user":{"login":"raymank26","id":8013845,"avatar_url":"https://avatars.githubusercontent.com/u/8013845?v=3","gravatar_id":"","url":"https://api.github.com/users/raymank26","html_url":"https://github.com/raymank26","followers_url":"https://api.github.com/users/raymank26/followers","following_url":"https://api.github.com/users/raymank26/following{/other_user}","gists_url":"https://api.github.com/users/raymank26/gists{/gist_id}","starred_url":"https://api.github.com/users/raymank26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymank26/subscriptions","organizations_url":"https://api.github.com/users/raymank26/orgs","repos_url":"https://api.github.com/users/raymank26/repos","events_url":"https://api.github.com/users/raymank26/events{/privacy}","received_events_url":"https://api.github.com/users/raymank26/received_events","type":"User","site_admin":false},"repo":{"id":36813593,"name":"yandex-money-sdk-java","full_name":"raymank26/yandex-money-sdk-java","owner":{"login":"raymank26","id":8013845,"avatar_url":"https://avatars.githubusercontent.com/u/8013845?v=3","gravatar_id":"","url":"https://api.github.com/users/raymank26","html_url":"https://github.com/raymank26","followers_url":"https://api.github.com/users/raymank26/followers","following_url":"https://api.github.com/users/raymank26/following{/other_user}","gists_url":"https://api.github.com/users/raymank26/gists{/gist_id}","starred_url":"https://api.github.com/users/raymank26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymank26/subscriptions","organizations_url":"https://api.github.com/users/raymank26/orgs","repos_url":"https://api.github.com/users/raymank26/repos","events_url":"https://api.github.com/users/raymank26/events{/privacy}","received_events_url":"https://api.github.com/users/raymank26/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/raymank26/yandex-money-sdk-java","description":"","fork":true,"url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java","forks_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/forks","keys_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/teams","hooks_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/hooks","issue_events_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/issues/events{/number}","events_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/events","assignees_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/assignees{/user}","branches_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/branches{/branch}","tags_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/tags","blobs_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/statuses/{sha}","languages_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/languages","stargazers_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/stargazers","contributors_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/contributors","subscribers_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/subscribers","subscription_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/subscription","commits_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/contents/{+path}","compare_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/merges","archive_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/downloads","issues_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/issues{/number}","pulls_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/pulls{/number}","milestones_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/milestones{/number}","notifications_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/labels{/name}","releases_url":"https://api.github.com/repos/raymank26/yandex-money-sdk-java/releases{/id}","created_at":"2015-06-03T15:42:43Z","updated_at":"2015-06-08T10:36:08Z","pushed_at":"2015-07-17T14:01:04Z","git_url":"git://github.com/raymank26/yandex-money-sdk-java.git","ssh_url":"git@github.com:raymank26/yandex-money-sdk-java.git","clone_url":"https://github.com/raymank26/yandex-money-sdk-java.git","svn_url":"https://github.com/raymank26/yandex-money-sdk-java","homepage":null,"size":685,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"yandex-money:feature/payment-forms","ref":"feature/payment-forms","sha":"cbba89840306425485543ff2ba1fa964224c88e4","user":{"login":"yandex-money","id":6553002,"avatar_url":"https://avatars.githubusercontent.com/u/6553002?v=3","gravatar_id":"","url":"https://api.github.com/users/yandex-money","html_url":"https://github.com/yandex-money","followers_url":"https://api.github.com/users/yandex-money/followers","following_url":"https://api.github.com/users/yandex-money/following{/other_user}","gists_url":"https://api.github.com/users/yandex-money/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex-money/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex-money/subscriptions","organizations_url":"https://api.github.com/users/yandex-money/orgs","repos_url":"https://api.github.com/users/yandex-money/repos","events_url":"https://api.github.com/users/yandex-money/events{/privacy}","received_events_url":"https://api.github.com/users/yandex-money/received_events","type":"Organization","site_admin":false},"repo":{"id":18875923,"name":"yandex-money-sdk-java","full_name":"yandex-money/yandex-money-sdk-java","owner":{"login":"yandex-money","id":6553002,"avatar_url":"https://avatars.githubusercontent.com/u/6553002?v=3","gravatar_id":"","url":"https://api.github.com/users/yandex-money","html_url":"https://github.com/yandex-money","followers_url":"https://api.github.com/users/yandex-money/followers","following_url":"https://api.github.com/users/yandex-money/following{/other_user}","gists_url":"https://api.github.com/users/yandex-money/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex-money/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex-money/subscriptions","organizations_url":"https://api.github.com/users/yandex-money/orgs","repos_url":"https://api.github.com/users/yandex-money/repos","events_url":"https://api.github.com/users/yandex-money/events{/privacy}","received_events_url":"https://api.github.com/users/yandex-money/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yandex-money/yandex-money-sdk-java","description":"","fork":false,"url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java","forks_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/forks","keys_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/teams","hooks_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/hooks","issue_events_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/issues/events{/number}","events_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/events","assignees_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/assignees{/user}","branches_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/branches{/branch}","tags_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/tags","blobs_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/statuses/{sha}","languages_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/languages","stargazers_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/stargazers","contributors_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/contributors","subscribers_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/subscribers","subscription_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/subscription","commits_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/contents/{+path}","compare_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/merges","archive_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/downloads","issues_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/issues{/number}","pulls_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/pulls{/number}","milestones_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/milestones{/number}","notifications_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/labels{/name}","releases_url":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/releases{/id}","created_at":"2014-04-17T11:22:26Z","updated_at":"2015-06-18T14:54:17Z","pushed_at":"2015-07-17T14:25:55Z","git_url":"git://github.com/yandex-money/yandex-money-sdk-java.git","ssh_url":"git@github.com:yandex-money/yandex-money-sdk-java.git","clone_url":"https://github.com/yandex-money/yandex-money-sdk-java.git","svn_url":"https://github.com/yandex-money/yandex-money-sdk-java","homepage":null,"size":1211,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":2,"forks":10,"open_issues":2,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/pulls/7"},"html":{"href":"https://github.com/yandex-money/yandex-money-sdk-java/pull/7"},"issue":{"href":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/issues/7"},"comments":{"href":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/yandex-money/yandex-money-sdk-java/statuses/b895661a054625f1f875cd2e478dda8796d6b671"}}}}