{"action":"created","comment":{"url":"https://api.github.com/repos/mercadopago/px-android/pulls/comments/173939377","pull_request_review_id":103207382,"id":173939377,"diff_hunk":"@@ -0,0 +1,230 @@\n+package com.mercadopago.plugins.model;\n+\n+import android.os.Parcel;\n+import android.os.Parcelable;\n+import android.support.annotation.ColorRes;\n+import android.support.annotation.DrawableRes;\n+import android.support.annotation.NonNull;\n+import android.support.annotation.Nullable;\n+import android.support.annotation.StringRes;\n+\n+import com.mercadopago.R;\n+import com.mercadopago.util.TextUtils;\n+\n+public final class BusinessPayment implements PluginPayment, Parcelable {\n+\n+    private final String help;\n+    private final int iconId;\n+    private final String title;\n+    private final Status status;\n+    private final boolean hasPaymentMethod;\n+    private final ButtonAction buttonActionPrimary;\n+    private final ButtonAction buttonActionSecondary;\n+\n+    private BusinessPayment(Builder builder) {\n+        this.help = builder.help;\n+        this.title = builder.title;\n+        this.status = builder.status;\n+        this.iconId = builder.iconId;\n+        this.hasPaymentMethod = builder.hasPaymentMethod;\n+        this.buttonActionPrimary = builder.buttonPrimary;\n+        this.buttonActionSecondary = builder.buttonSecondary;\n+    }\n+\n+    protected BusinessPayment(Parcel in) {\n+        iconId = in.readInt();\n+        title = in.readString();\n+        hasPaymentMethod = in.readByte() != 0;\n+        buttonActionPrimary = in.readParcelable(ButtonAction.class.getClassLoader());\n+        buttonActionSecondary = in.readParcelable(ButtonAction.class.getClassLoader());\n+        status = Status.fromName(in.readString());\n+        help = in.readString();\n+    }\n+\n+    public static final Creator<BusinessPayment> CREATOR = new Creator<BusinessPayment>() {\n+        @Override\n+        public BusinessPayment createFromParcel(Parcel in) {\n+            return new BusinessPayment(in);\n+        }\n+\n+        @Override\n+        public BusinessPayment[] newArray(int size) {\n+            return new BusinessPayment[size];\n+        }\n+    };\n+\n+    @Override\n+    public void process(final Processor processor) {\n+        processor.process(this);\n+    }\n+\n+    @Override\n+    public int describeContents() {\n+        return 0;\n+    }\n+\n+    @Override\n+    public void writeToParcel(final Parcel dest, final int flags) {\n+        dest.writeInt(iconId);\n+        dest.writeString(title);\n+        dest.writeByte((byte) (hasPaymentMethod ? 1 : 0));\n+        dest.writeParcelable(buttonActionPrimary, flags);\n+        dest.writeParcelable(buttonActionSecondary, flags);\n+        dest.writeString(status.name);\n+        dest.writeString(help);\n+    }\n+\n+    public Status getStatus() {\n+        return status;\n+    }\n+\n+    public int getIcon() {\n+        return iconId;\n+    }\n+\n+    public String getTitle() {\n+        return title;\n+    }\n+\n+    public boolean hasPrimaryButton() {\n+        return buttonActionPrimary != null;\n+    }\n+\n+    public boolean hasSecondaryButton() {\n+        return buttonActionSecondary != null;\n+    }\n+\n+    public boolean hasHelp() {\n+        return TextUtils.isNotEmpty(help);\n+    }\n+\n+    public ButtonAction getSecondaryAction() {\n+        return buttonActionSecondary;\n+    }\n+\n+    public ButtonAction getPrimaryAction() {\n+        return buttonActionPrimary;\n+    }\n+\n+    public String getHelp() {\n+        return help;\n+    }\n+\n+    public enum Status {\n+        APPROVED(\"approved\", R.color.mpsdk_green_payment_result_background, R.drawable.mpsdk_badge_check, 0),\n+        REJECTED(\"rejected\", R.color.mpsdk_red_payment_result_background, R.drawable.mpsdk_badge_error, R.string.mpsdk_rejection_label),\n+        PENDING(\"pending\", R.color.mpsdk_orange_payment_result_background, R.drawable.mpsdk_badge_pending_orange, 0);","path":"sdk/src/main/java/com/mercadopago/plugins/model/BusinessPayment.java","position":116,"original_position":116,"commit_id":"d2d731a5595f9e9374258ed1a453b78b8a28fbd1","original_commit_id":"c34531fb382ca503d38268fd356555ff236f3fea","user":{"login":"valeserber","id":5674142,"avatar_url":"https://avatars3.githubusercontent.com/u/5674142?v=4","gravatar_id":"","url":"https://api.github.com/users/valeserber","html_url":"https://github.com/valeserber","followers_url":"https://api.github.com/users/valeserber/followers","following_url":"https://api.github.com/users/valeserber/following{/other_user}","gists_url":"https://api.github.com/users/valeserber/gists{/gist_id}","starred_url":"https://api.github.com/users/valeserber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valeserber/subscriptions","organizations_url":"https://api.github.com/users/valeserber/orgs","repos_url":"https://api.github.com/users/valeserber/repos","events_url":"https://api.github.com/users/valeserber/events{/privacy}","received_events_url":"https://api.github.com/users/valeserber/received_events","type":"User","site_admin":false},"body":"Teóricamente \"PENDING\" no es la pantalla naranja. Las naranjas son rechazos que son recuperables. Las de pending son verdes.","created_at":"2018-03-12T20:40:50Z","updated_at":"2018-03-12T20:42:07Z","html_url":"https://github.com/mercadopago/px-android/pull/897#discussion_r173939377","pull_request_url":"https://api.github.com/repos/mercadopago/px-android/pulls/897","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mercadopago/px-android/pulls/comments/173939377"},"html":{"href":"https://github.com/mercadopago/px-android/pull/897#discussion_r173939377"},"pull_request":{"href":"https://api.github.com/repos/mercadopago/px-android/pulls/897"}}},"pull_request":{"url":"https://api.github.com/repos/mercadopago/px-android/pulls/897","id":174389120,"html_url":"https://github.com/mercadopago/px-android/pull/897","diff_url":"https://github.com/mercadopago/px-android/pull/897.diff","patch_url":"https://github.com/mercadopago/px-android/pull/897.patch","issue_url":"https://api.github.com/repos/mercadopago/px-android/issues/897","number":897,"state":"open","locked":false,"title":"[feature] Business result for single player / wallet","user":{"login":"zehemz","id":7827612,"avatar_url":"https://avatars0.githubusercontent.com/u/7827612?v=4","gravatar_id":"","url":"https://api.github.com/users/zehemz","html_url":"https://github.com/zehemz","followers_url":"https://api.github.com/users/zehemz/followers","following_url":"https://api.github.com/users/zehemz/following{/other_user}","gists_url":"https://api.github.com/users/zehemz/gists{/gist_id}","starred_url":"https://api.github.com/users/zehemz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zehemz/subscriptions","organizations_url":"https://api.github.com/users/zehemz/orgs","repos_url":"https://api.github.com/users/zehemz/repos","events_url":"https://api.github.com/users/zehemz/events{/privacy}","received_events_url":"https://api.github.com/users/zehemz/received_events","type":"User","site_admin":false},"body":"Generado para  single player - wallet.\r\n\r\nAgregada nueva forma de procesar y mostrar pagos con una vista custom para pagos que requieren de información dinámica del mismo.\r\n\r\nEjemplo:\r\n```\r\nBusinessPayment result = new BusinessPayment.Builder(BusinessPayment.Status.REJECTED, R.drawable.mpsdk_icon_card, \"ASD\")\r\n                        .setHelp(\"HELP!\")\r\n                        .setPrimaryButton(new ButtonAction(\"ASD\", 23))\r\n                        .setSecondaryButton(new ButtonAction(\"ASD\", 34))\r\n                        .build();\r\n\r\ngetDispatcher().dispatch(new PaymentPluginProcessorResultAction(result));\r\n\r\n```\r\n\r\nMas info acá https://docs.google.com/presentation/d/1YUPmuEb23EEmuINJGmkeou_8JBrfguPUCUyPFP64jiw/edit#slide=id.g1f5797b1e1_0_0","created_at":"2018-03-12T14:42:48Z","updated_at":"2018-03-12T20:42:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"064d64862bdff86a11d8074089f8e3de819ce288","assignee":null,"assignees":[],"requested_reviewers":[{"login":"matiasromar","id":4195740,"avatar_url":"https://avatars0.githubusercontent.com/u/4195740?v=4","gravatar_id":"","url":"https://api.github.com/users/matiasromar","html_url":"https://github.com/matiasromar","followers_url":"https://api.github.com/users/matiasromar/followers","following_url":"https://api.github.com/users/matiasromar/following{/other_user}","gists_url":"https://api.github.com/users/matiasromar/gists{/gist_id}","starred_url":"https://api.github.com/users/matiasromar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matiasromar/subscriptions","organizations_url":"https://api.github.com/users/matiasromar/orgs","repos_url":"https://api.github.com/users/matiasromar/repos","events_url":"https://api.github.com/users/matiasromar/events{/privacy}","received_events_url":"https://api.github.com/users/matiasromar/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":852684862,"url":"https://api.github.com/repos/mercadopago/px-android/labels/DO%20NOT%20MERGE","name":"DO NOT MERGE","color":"ed5ec0","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mercadopago/px-android/pulls/897/commits","review_comments_url":"https://api.github.com/repos/mercadopago/px-android/pulls/897/comments","review_comment_url":"https://api.github.com/repos/mercadopago/px-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mercadopago/px-android/issues/897/comments","statuses_url":"https://api.github.com/repos/mercadopago/px-android/statuses/d2d731a5595f9e9374258ed1a453b78b8a28fbd1","head":{"label":"mercadopago:business_result_for_wallet","ref":"business_result_for_wallet","sha":"d2d731a5595f9e9374258ed1a453b78b8a28fbd1","user":{"login":"mercadopago","id":900583,"avatar_url":"https://avatars3.githubusercontent.com/u/900583?v=4","gravatar_id":"","url":"https://api.github.com/users/mercadopago","html_url":"https://github.com/mercadopago","followers_url":"https://api.github.com/users/mercadopago/followers","following_url":"https://api.github.com/users/mercadopago/following{/other_user}","gists_url":"https://api.github.com/users/mercadopago/gists{/gist_id}","starred_url":"https://api.github.com/users/mercadopago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mercadopago/subscriptions","organizations_url":"https://api.github.com/users/mercadopago/orgs","repos_url":"https://api.github.com/users/mercadopago/repos","events_url":"https://api.github.com/users/mercadopago/events{/privacy}","received_events_url":"https://api.github.com/users/mercadopago/received_events","type":"Organization","site_admin":false},"repo":{"id":49529486,"name":"px-android","full_name":"mercadopago/px-android","owner":{"login":"mercadopago","id":900583,"avatar_url":"https://avatars3.githubusercontent.com/u/900583?v=4","gravatar_id":"","url":"https://api.github.com/users/mercadopago","html_url":"https://github.com/mercadopago","followers_url":"https://api.github.com/users/mercadopago/followers","following_url":"https://api.github.com/users/mercadopago/following{/other_user}","gists_url":"https://api.github.com/users/mercadopago/gists{/gist_id}","starred_url":"https://api.github.com/users/mercadopago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mercadopago/subscriptions","organizations_url":"https://api.github.com/users/mercadopago/orgs","repos_url":"https://api.github.com/users/mercadopago/repos","events_url":"https://api.github.com/users/mercadopago/events{/privacy}","received_events_url":"https://api.github.com/users/mercadopago/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mercadopago/px-android","description":"MercadoPago SDK Android","fork":false,"url":"https://api.github.com/repos/mercadopago/px-android","forks_url":"https://api.github.com/repos/mercadopago/px-android/forks","keys_url":"https://api.github.com/repos/mercadopago/px-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mercadopago/px-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mercadopago/px-android/teams","hooks_url":"https://api.github.com/repos/mercadopago/px-android/hooks","issue_events_url":"https://api.github.com/repos/mercadopago/px-android/issues/events{/number}","events_url":"https://api.github.com/repos/mercadopago/px-android/events","assignees_url":"https://api.github.com/repos/mercadopago/px-android/assignees{/user}","branches_url":"https://api.github.com/repos/mercadopago/px-android/branches{/branch}","tags_url":"https://api.github.com/repos/mercadopago/px-android/tags","blobs_url":"https://api.github.com/repos/mercadopago/px-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mercadopago/px-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mercadopago/px-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/mercadopago/px-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mercadopago/px-android/statuses/{sha}","languages_url":"https://api.github.com/repos/mercadopago/px-android/languages","stargazers_url":"https://api.github.com/repos/mercadopago/px-android/stargazers","contributors_url":"https://api.github.com/repos/mercadopago/px-android/contributors","subscribers_url":"https://api.github.com/repos/mercadopago/px-android/subscribers","subscription_url":"https://api.github.com/repos/mercadopago/px-android/subscription","commits_url":"https://api.github.com/repos/mercadopago/px-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/mercadopago/px-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/mercadopago/px-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/mercadopago/px-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/mercadopago/px-android/contents/{+path}","compare_url":"https://api.github.com/repos/mercadopago/px-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mercadopago/px-android/merges","archive_url":"https://api.github.com/repos/mercadopago/px-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mercadopago/px-android/downloads","issues_url":"https://api.github.com/repos/mercadopago/px-android/issues{/number}","pulls_url":"https://api.github.com/repos/mercadopago/px-android/pulls{/number}","milestones_url":"https://api.github.com/repos/mercadopago/px-android/milestones{/number}","notifications_url":"https://api.github.com/repos/mercadopago/px-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mercadopago/px-android/labels{/name}","releases_url":"https://api.github.com/repos/mercadopago/px-android/releases{/id}","deployments_url":"https://api.github.com/repos/mercadopago/px-android/deployments","created_at":"2016-01-12T21:18:39Z","updated_at":"2018-03-12T15:13:39Z","pushed_at":"2018-03-12T20:31:57Z","git_url":"git://github.com/mercadopago/px-android.git","ssh_url":"git@github.com:mercadopago/px-android.git","clone_url":"https://github.com/mercadopago/px-android.git","svn_url":"https://github.com/mercadopago/px-android","homepage":"http://mercadopago.github.io/px-android","size":82476,"stargazers_count":21,"watchers_count":21,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":26,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":17,"open_issues":26,"watchers":21,"default_branch":"master"}},"base":{"label":"mercadopago:develop","ref":"develop","sha":"cc9c2586767dfef8c37033c9eaac68bf976393cd","user":{"login":"mercadopago","id":900583,"avatar_url":"https://avatars3.githubusercontent.com/u/900583?v=4","gravatar_id":"","url":"https://api.github.com/users/mercadopago","html_url":"https://github.com/mercadopago","followers_url":"https://api.github.com/users/mercadopago/followers","following_url":"https://api.github.com/users/mercadopago/following{/other_user}","gists_url":"https://api.github.com/users/mercadopago/gists{/gist_id}","starred_url":"https://api.github.com/users/mercadopago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mercadopago/subscriptions","organizations_url":"https://api.github.com/users/mercadopago/orgs","repos_url":"https://api.github.com/users/mercadopago/repos","events_url":"https://api.github.com/users/mercadopago/events{/privacy}","received_events_url":"https://api.github.com/users/mercadopago/received_events","type":"Organization","site_admin":false},"repo":{"id":49529486,"name":"px-android","full_name":"mercadopago/px-android","owner":{"login":"mercadopago","id":900583,"avatar_url":"https://avatars3.githubusercontent.com/u/900583?v=4","gravatar_id":"","url":"https://api.github.com/users/mercadopago","html_url":"https://github.com/mercadopago","followers_url":"https://api.github.com/users/mercadopago/followers","following_url":"https://api.github.com/users/mercadopago/following{/other_user}","gists_url":"https://api.github.com/users/mercadopago/gists{/gist_id}","starred_url":"https://api.github.com/users/mercadopago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mercadopago/subscriptions","organizations_url":"https://api.github.com/users/mercadopago/orgs","repos_url":"https://api.github.com/users/mercadopago/repos","events_url":"https://api.github.com/users/mercadopago/events{/privacy}","received_events_url":"https://api.github.com/users/mercadopago/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mercadopago/px-android","description":"MercadoPago SDK Android","fork":false,"url":"https://api.github.com/repos/mercadopago/px-android","forks_url":"https://api.github.com/repos/mercadopago/px-android/forks","keys_url":"https://api.github.com/repos/mercadopago/px-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mercadopago/px-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mercadopago/px-android/teams","hooks_url":"https://api.github.com/repos/mercadopago/px-android/hooks","issue_events_url":"https://api.github.com/repos/mercadopago/px-android/issues/events{/number}","events_url":"https://api.github.com/repos/mercadopago/px-android/events","assignees_url":"https://api.github.com/repos/mercadopago/px-android/assignees{/user}","branches_url":"https://api.github.com/repos/mercadopago/px-android/branches{/branch}","tags_url":"https://api.github.com/repos/mercadopago/px-android/tags","blobs_url":"https://api.github.com/repos/mercadopago/px-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mercadopago/px-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mercadopago/px-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/mercadopago/px-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mercadopago/px-android/statuses/{sha}","languages_url":"https://api.github.com/repos/mercadopago/px-android/languages","stargazers_url":"https://api.github.com/repos/mercadopago/px-android/stargazers","contributors_url":"https://api.github.com/repos/mercadopago/px-android/contributors","subscribers_url":"https://api.github.com/repos/mercadopago/px-android/subscribers","subscription_url":"https://api.github.com/repos/mercadopago/px-android/subscription","commits_url":"https://api.github.com/repos/mercadopago/px-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/mercadopago/px-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/mercadopago/px-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/mercadopago/px-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/mercadopago/px-android/contents/{+path}","compare_url":"https://api.github.com/repos/mercadopago/px-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mercadopago/px-android/merges","archive_url":"https://api.github.com/repos/mercadopago/px-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mercadopago/px-android/downloads","issues_url":"https://api.github.com/repos/mercadopago/px-android/issues{/number}","pulls_url":"https://api.github.com/repos/mercadopago/px-android/pulls{/number}","milestones_url":"https://api.github.com/repos/mercadopago/px-android/milestones{/number}","notifications_url":"https://api.github.com/repos/mercadopago/px-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mercadopago/px-android/labels{/name}","releases_url":"https://api.github.com/repos/mercadopago/px-android/releases{/id}","deployments_url":"https://api.github.com/repos/mercadopago/px-android/deployments","created_at":"2016-01-12T21:18:39Z","updated_at":"2018-03-12T15:13:39Z","pushed_at":"2018-03-12T20:31:57Z","git_url":"git://github.com/mercadopago/px-android.git","ssh_url":"git@github.com:mercadopago/px-android.git","clone_url":"https://github.com/mercadopago/px-android.git","svn_url":"https://github.com/mercadopago/px-android","homepage":"http://mercadopago.github.io/px-android","size":82476,"stargazers_count":21,"watchers_count":21,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":26,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":17,"open_issues":26,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mercadopago/px-android/pulls/897"},"html":{"href":"https://github.com/mercadopago/px-android/pull/897"},"issue":{"href":"https://api.github.com/repos/mercadopago/px-android/issues/897"},"comments":{"href":"https://api.github.com/repos/mercadopago/px-android/issues/897/comments"},"review_comments":{"href":"https://api.github.com/repos/mercadopago/px-android/pulls/897/comments"},"review_comment":{"href":"https://api.github.com/repos/mercadopago/px-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mercadopago/px-android/pulls/897/commits"},"statuses":{"href":"https://api.github.com/repos/mercadopago/px-android/statuses/d2d731a5595f9e9374258ed1a453b78b8a28fbd1"}},"author_association":"NONE"}}
{"actor":{"display_login":"valeserber"}}