{"action":"created","comment":{"url":"https://api.github.com/repos/pagseguro/ruby/pulls/comments/58582769","id":58582769,"diff_hunk":"@@ -0,0 +1,53 @@\n+module PagSeguro\n+  class SubscriptionPaymentOrder\n+    include Extensions::MassAssignment\n+    include Extensions::EnsureType\n+\n+    STATUSES = {\n+      scheduled: 1,\n+      processing: 2,\n+      not_processed: 3,\n+      suspended: 4,\n+      paid: 5,\n+      not_paid: 6\n+    }\n+\n+    attr_accessor :errors\n+\n+    attr_accessor :code\n+    attr_accessor :status\n+    attr_accessor :amount\n+    attr_accessor :gross_amount\n+    attr_accessor :last_event_date\n+    attr_accessor :scheduling_date\n+    attr_reader :discount\n+    attr_reader :transaction\n+\n+    def discount=(discount)\n+      @discount = ensure_type(PagSeguro::SubscriptionDiscount, discount)\n+    end\n+\n+    def transaction=(transaction)\n+      @transaction = ensure_type(PagSeguro::SubscriptionTransaction, transaction)\n+    end\n+\n+    def status_code\n+      # puts \"status: #{@status}\"","path":"lib/pagseguro/subscription_payment_order.rb","position":35,"original_position":35,"commit_id":"fb4ed0b3a85c895a384c2272cd6372fd48ad05ed","original_commit_id":"fb4ed0b3a85c895a384c2272cd6372fd48ad05ed","user":{"login":"dmitryrck","id":53300,"avatar_url":"https://avatars.githubusercontent.com/u/53300?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitryrck","html_url":"https://github.com/dmitryrck","followers_url":"https://api.github.com/users/dmitryrck/followers","following_url":"https://api.github.com/users/dmitryrck/following{/other_user}","gists_url":"https://api.github.com/users/dmitryrck/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitryrck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitryrck/subscriptions","organizations_url":"https://api.github.com/users/dmitryrck/orgs","repos_url":"https://api.github.com/users/dmitryrck/repos","events_url":"https://api.github.com/users/dmitryrck/events{/privacy}","received_events_url":"https://api.github.com/users/dmitryrck/received_events","type":"User","site_admin":false},"body":"@rafaelrpbelo debug detected :P ","created_at":"2016-04-05T17:44:31Z","updated_at":"2016-04-05T17:44:31Z","html_url":"https://github.com/pagseguro/ruby/pull/211#discussion_r58582769","pull_request_url":"https://api.github.com/repos/pagseguro/ruby/pulls/211","_links":{"self":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/comments/58582769"},"html":{"href":"https://github.com/pagseguro/ruby/pull/211#discussion_r58582769"},"pull_request":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/211"}}},"pull_request":{"url":"https://api.github.com/repos/pagseguro/ruby/pulls/211","id":65001086,"html_url":"https://github.com/pagseguro/ruby/pull/211","diff_url":"https://github.com/pagseguro/ruby/pull/211.diff","patch_url":"https://github.com/pagseguro/ruby/pull/211.patch","issue_url":"https://api.github.com/repos/pagseguro/ruby/issues/211","number":211,"state":"open","locked":false,"title":"Subscription search payment orders","user":{"login":"rafaelrpbelo","id":2837358,"avatar_url":"https://avatars.githubusercontent.com/u/2837358?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelrpbelo","html_url":"https://github.com/rafaelrpbelo","followers_url":"https://api.github.com/users/rafaelrpbelo/followers","following_url":"https://api.github.com/users/rafaelrpbelo/following{/other_user}","gists_url":"https://api.github.com/users/rafaelrpbelo/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelrpbelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelrpbelo/subscriptions","organizations_url":"https://api.github.com/users/rafaelrpbelo/orgs","repos_url":"https://api.github.com/users/rafaelrpbelo/repos","events_url":"https://api.github.com/users/rafaelrpbelo/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelrpbelo/received_events","type":"User","site_admin":false},"body":"It was created somethings that help to receive the response this report, like:\r\n- PagSeguro::SubscriptionPaymentOrder\r\n- PagSeguro::SubscriptionTransaction\r\n- PagSeguro::SubscriptionSearchPaymentOrders (report)\r\n","created_at":"2016-04-01T20:31:57Z","updated_at":"2016-04-05T17:44:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"55fcda62f15e7927a0e9222fa969d76e2d9465f1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pagseguro/ruby/pulls/211/commits","review_comments_url":"https://api.github.com/repos/pagseguro/ruby/pulls/211/comments","review_comment_url":"https://api.github.com/repos/pagseguro/ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pagseguro/ruby/issues/211/comments","statuses_url":"https://api.github.com/repos/pagseguro/ruby/statuses/fb4ed0b3a85c895a384c2272cd6372fd48ad05ed","head":{"label":"pagseguro:subscription-search-payment-orders","ref":"subscription-search-payment-orders","sha":"fb4ed0b3a85c895a384c2272cd6372fd48ad05ed","user":{"login":"pagseguro","id":123060,"avatar_url":"https://avatars.githubusercontent.com/u/123060?v=3","gravatar_id":"","url":"https://api.github.com/users/pagseguro","html_url":"https://github.com/pagseguro","followers_url":"https://api.github.com/users/pagseguro/followers","following_url":"https://api.github.com/users/pagseguro/following{/other_user}","gists_url":"https://api.github.com/users/pagseguro/gists{/gist_id}","starred_url":"https://api.github.com/users/pagseguro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagseguro/subscriptions","organizations_url":"https://api.github.com/users/pagseguro/orgs","repos_url":"https://api.github.com/users/pagseguro/repos","events_url":"https://api.github.com/users/pagseguro/events{/privacy}","received_events_url":"https://api.github.com/users/pagseguro/received_events","type":"Organization","site_admin":false},"repo":{"id":9632355,"name":"ruby","full_name":"pagseguro/ruby","owner":{"login":"pagseguro","id":123060,"avatar_url":"https://avatars.githubusercontent.com/u/123060?v=3","gravatar_id":"","url":"https://api.github.com/users/pagseguro","html_url":"https://github.com/pagseguro","followers_url":"https://api.github.com/users/pagseguro/followers","following_url":"https://api.github.com/users/pagseguro/following{/other_user}","gists_url":"https://api.github.com/users/pagseguro/gists{/gist_id}","starred_url":"https://api.github.com/users/pagseguro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagseguro/subscriptions","organizations_url":"https://api.github.com/users/pagseguro/orgs","repos_url":"https://api.github.com/users/pagseguro/repos","events_url":"https://api.github.com/users/pagseguro/events{/privacy}","received_events_url":"https://api.github.com/users/pagseguro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pagseguro/ruby","description":"Biblioteca de integração em Ruby","fork":false,"url":"https://api.github.com/repos/pagseguro/ruby","forks_url":"https://api.github.com/repos/pagseguro/ruby/forks","keys_url":"https://api.github.com/repos/pagseguro/ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pagseguro/ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pagseguro/ruby/teams","hooks_url":"https://api.github.com/repos/pagseguro/ruby/hooks","issue_events_url":"https://api.github.com/repos/pagseguro/ruby/issues/events{/number}","events_url":"https://api.github.com/repos/pagseguro/ruby/events","assignees_url":"https://api.github.com/repos/pagseguro/ruby/assignees{/user}","branches_url":"https://api.github.com/repos/pagseguro/ruby/branches{/branch}","tags_url":"https://api.github.com/repos/pagseguro/ruby/tags","blobs_url":"https://api.github.com/repos/pagseguro/ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pagseguro/ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pagseguro/ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/pagseguro/ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pagseguro/ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/pagseguro/ruby/languages","stargazers_url":"https://api.github.com/repos/pagseguro/ruby/stargazers","contributors_url":"https://api.github.com/repos/pagseguro/ruby/contributors","subscribers_url":"https://api.github.com/repos/pagseguro/ruby/subscribers","subscription_url":"https://api.github.com/repos/pagseguro/ruby/subscription","commits_url":"https://api.github.com/repos/pagseguro/ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/pagseguro/ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/pagseguro/ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/pagseguro/ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/pagseguro/ruby/contents/{+path}","compare_url":"https://api.github.com/repos/pagseguro/ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pagseguro/ruby/merges","archive_url":"https://api.github.com/repos/pagseguro/ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pagseguro/ruby/downloads","issues_url":"https://api.github.com/repos/pagseguro/ruby/issues{/number}","pulls_url":"https://api.github.com/repos/pagseguro/ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/pagseguro/ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/pagseguro/ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pagseguro/ruby/labels{/name}","releases_url":"https://api.github.com/repos/pagseguro/ruby/releases{/id}","deployments_url":"https://api.github.com/repos/pagseguro/ruby/deployments","created_at":"2013-04-23T20:14:45Z","updated_at":"2016-04-04T11:31:04Z","pushed_at":"2016-04-05T17:33:46Z","git_url":"git://github.com/pagseguro/ruby.git","ssh_url":"git@github.com:pagseguro/ruby.git","clone_url":"https://github.com/pagseguro/ruby.git","svn_url":"https://github.com/pagseguro/ruby","homepage":"","size":1229,"stargazers_count":73,"watchers_count":73,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":58,"mirror_url":null,"open_issues_count":7,"forks":58,"open_issues":7,"watchers":73,"default_branch":"master"}},"base":{"label":"pagseguro:dev","ref":"dev","sha":"1695e734f8466c79de5bccd0634127eff15d4314","user":{"login":"pagseguro","id":123060,"avatar_url":"https://avatars.githubusercontent.com/u/123060?v=3","gravatar_id":"","url":"https://api.github.com/users/pagseguro","html_url":"https://github.com/pagseguro","followers_url":"https://api.github.com/users/pagseguro/followers","following_url":"https://api.github.com/users/pagseguro/following{/other_user}","gists_url":"https://api.github.com/users/pagseguro/gists{/gist_id}","starred_url":"https://api.github.com/users/pagseguro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagseguro/subscriptions","organizations_url":"https://api.github.com/users/pagseguro/orgs","repos_url":"https://api.github.com/users/pagseguro/repos","events_url":"https://api.github.com/users/pagseguro/events{/privacy}","received_events_url":"https://api.github.com/users/pagseguro/received_events","type":"Organization","site_admin":false},"repo":{"id":9632355,"name":"ruby","full_name":"pagseguro/ruby","owner":{"login":"pagseguro","id":123060,"avatar_url":"https://avatars.githubusercontent.com/u/123060?v=3","gravatar_id":"","url":"https://api.github.com/users/pagseguro","html_url":"https://github.com/pagseguro","followers_url":"https://api.github.com/users/pagseguro/followers","following_url":"https://api.github.com/users/pagseguro/following{/other_user}","gists_url":"https://api.github.com/users/pagseguro/gists{/gist_id}","starred_url":"https://api.github.com/users/pagseguro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagseguro/subscriptions","organizations_url":"https://api.github.com/users/pagseguro/orgs","repos_url":"https://api.github.com/users/pagseguro/repos","events_url":"https://api.github.com/users/pagseguro/events{/privacy}","received_events_url":"https://api.github.com/users/pagseguro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pagseguro/ruby","description":"Biblioteca de integração em Ruby","fork":false,"url":"https://api.github.com/repos/pagseguro/ruby","forks_url":"https://api.github.com/repos/pagseguro/ruby/forks","keys_url":"https://api.github.com/repos/pagseguro/ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pagseguro/ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pagseguro/ruby/teams","hooks_url":"https://api.github.com/repos/pagseguro/ruby/hooks","issue_events_url":"https://api.github.com/repos/pagseguro/ruby/issues/events{/number}","events_url":"https://api.github.com/repos/pagseguro/ruby/events","assignees_url":"https://api.github.com/repos/pagseguro/ruby/assignees{/user}","branches_url":"https://api.github.com/repos/pagseguro/ruby/branches{/branch}","tags_url":"https://api.github.com/repos/pagseguro/ruby/tags","blobs_url":"https://api.github.com/repos/pagseguro/ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pagseguro/ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pagseguro/ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/pagseguro/ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pagseguro/ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/pagseguro/ruby/languages","stargazers_url":"https://api.github.com/repos/pagseguro/ruby/stargazers","contributors_url":"https://api.github.com/repos/pagseguro/ruby/contributors","subscribers_url":"https://api.github.com/repos/pagseguro/ruby/subscribers","subscription_url":"https://api.github.com/repos/pagseguro/ruby/subscription","commits_url":"https://api.github.com/repos/pagseguro/ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/pagseguro/ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/pagseguro/ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/pagseguro/ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/pagseguro/ruby/contents/{+path}","compare_url":"https://api.github.com/repos/pagseguro/ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pagseguro/ruby/merges","archive_url":"https://api.github.com/repos/pagseguro/ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pagseguro/ruby/downloads","issues_url":"https://api.github.com/repos/pagseguro/ruby/issues{/number}","pulls_url":"https://api.github.com/repos/pagseguro/ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/pagseguro/ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/pagseguro/ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pagseguro/ruby/labels{/name}","releases_url":"https://api.github.com/repos/pagseguro/ruby/releases{/id}","deployments_url":"https://api.github.com/repos/pagseguro/ruby/deployments","created_at":"2013-04-23T20:14:45Z","updated_at":"2016-04-04T11:31:04Z","pushed_at":"2016-04-05T17:33:46Z","git_url":"git://github.com/pagseguro/ruby.git","ssh_url":"git@github.com:pagseguro/ruby.git","clone_url":"https://github.com/pagseguro/ruby.git","svn_url":"https://github.com/pagseguro/ruby","homepage":"","size":1229,"stargazers_count":73,"watchers_count":73,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":58,"mirror_url":null,"open_issues_count":7,"forks":58,"open_issues":7,"watchers":73,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/211"},"html":{"href":"https://github.com/pagseguro/ruby/pull/211"},"issue":{"href":"https://api.github.com/repos/pagseguro/ruby/issues/211"},"comments":{"href":"https://api.github.com/repos/pagseguro/ruby/issues/211/comments"},"review_comments":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/211/comments"},"review_comment":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/211/commits"},"statuses":{"href":"https://api.github.com/repos/pagseguro/ruby/statuses/fb4ed0b3a85c895a384c2272cd6372fd48ad05ed"}}}}