{"action":"created","issue":{"url":"https://api.github.com/repos/recurly/recurly-client-php/issues/182","repository_url":"https://api.github.com/repos/recurly/recurly-client-php","labels_url":"https://api.github.com/repos/recurly/recurly-client-php/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/recurly/recurly-client-php/issues/182/comments","events_url":"https://api.github.com/repos/recurly/recurly-client-php/issues/182/events","html_url":"https://github.com/recurly/recurly-client-php/issues/182","id":105970182,"node_id":"MDU6SXNzdWUxMDU5NzAxODI=","number":182,"title":"Varied results when obtaining subscription values via different API calls.","user":{"login":"ScottSpittle","id":1223461,"node_id":"MDQ6VXNlcjEyMjM0NjE=","avatar_url":"https://avatars1.githubusercontent.com/u/1223461?v=4","gravatar_id":"","url":"https://api.github.com/users/ScottSpittle","html_url":"https://github.com/ScottSpittle","followers_url":"https://api.github.com/users/ScottSpittle/followers","following_url":"https://api.github.com/users/ScottSpittle/following{/other_user}","gists_url":"https://api.github.com/users/ScottSpittle/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottSpittle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottSpittle/subscriptions","organizations_url":"https://api.github.com/users/ScottSpittle/orgs","repos_url":"https://api.github.com/users/ScottSpittle/repos","events_url":"https://api.github.com/users/ScottSpittle/events{/privacy}","received_events_url":"https://api.github.com/users/ScottSpittle/received_events","type":"User","site_admin":false},"labels":[{"id":276684157,"node_id":"MDU6TGFiZWwyNzY2ODQxNTc=","url":"https://api.github.com/repos/recurly/recurly-client-php/labels/bug?","name":"bug?","color":"f7c6c7","default":false}],"state":"open","locked":false,"assignee":{"login":"bhelx","id":185919,"node_id":"MDQ6VXNlcjE4NTkxOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/185919?v=4","gravatar_id":"","url":"https://api.github.com/users/bhelx","html_url":"https://github.com/bhelx","followers_url":"https://api.github.com/users/bhelx/followers","following_url":"https://api.github.com/users/bhelx/following{/other_user}","gists_url":"https://api.github.com/users/bhelx/gists{/gist_id}","starred_url":"https://api.github.com/users/bhelx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhelx/subscriptions","organizations_url":"https://api.github.com/users/bhelx/orgs","repos_url":"https://api.github.com/users/bhelx/repos","events_url":"https://api.github.com/users/bhelx/events{/privacy}","received_events_url":"https://api.github.com/users/bhelx/received_events","type":"User","site_admin":false},"assignees":[{"login":"bhelx","id":185919,"node_id":"MDQ6VXNlcjE4NTkxOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/185919?v=4","gravatar_id":"","url":"https://api.github.com/users/bhelx","html_url":"https://github.com/bhelx","followers_url":"https://api.github.com/users/bhelx/followers","following_url":"https://api.github.com/users/bhelx/following{/other_user}","gists_url":"https://api.github.com/users/bhelx/gists{/gist_id}","starred_url":"https://api.github.com/users/bhelx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhelx/subscriptions","organizations_url":"https://api.github.com/users/bhelx/orgs","repos_url":"https://api.github.com/users/bhelx/repos","events_url":"https://api.github.com/users/bhelx/events{/privacy}","received_events_url":"https://api.github.com/users/bhelx/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2015-09-11T08:51:14Z","updated_at":"2018-10-12T21:56:42Z","closed_at":null,"author_association":"NONE","body":"Recurly_InvoiceList->get()  - This returns all invoices, each of which has a subscription object, if I were to then execute $inv['subscription']->get()->getValues(), the return values of that subscription would contain the index 'tax_in_cents'.\n\n```\n\"subscription\" => array:18 [\n  \"subscription_add_ons\" => []\n  \"account\" => Recurly_Stub {}\n  \"invoice\" => Recurly_Stub {}\n  \"plan\" => array:4 []\n  \"uuid\" => \"3120d38908eec85d1da0a54b87bd8663\"\n  \"state\" => \"active\"\n  \"unit_amount_in_cents\" => 10000\n  \"currency\" => \"USD\"\n  \"quantity\" => 2\n  \"activated_at\" => DateTime {}\n  \"current_period_started_at\" => DateTime {}\n  \"current_period_ends_at\" => DateTime {}\n  \"tax_in_cents\" => 3800\n  \"tax_type\" => \"vat\"\n  \"tax_region\" => \"DE\"\n  \"tax_rate\" => 0.19\n  \"net_terms\" => 0\n  \"collection_method\" => \"automatic\"\n]\n```\n\nRecurly_TransactionList->get()  - This returns all invoices, each of which has a subscription object, if I were to then execute $trans['subscription']->get()->getValues(), the return values of that subscription would NOT contain the index 'tax_in_cents'.\n\n```\n\"subscription\" => array:14 [\n  \"subscription_add_ons\" => []\n  \"account\" => Recurly_Stub {}\n  \"invoice\" => Recurly_Stub {}\n  \"plan\" => array:4 []\n  \"uuid\" => \"3120d38908eec85d1da0a54b87bd8663\"\n  \"state\" => \"active\"\n  \"unit_amount_in_cents\" => 10000\n  \"currency\" => \"USD\"\n  \"quantity\" => 2\n  \"activated_at\" => DateTime {}\n  \"current_period_started_at\" => DateTime {}\n  \"current_period_ends_at\" => DateTime {}\n  \"net_terms\" => 0\n  \"collection_method\" => \"automatic\"\n]\n```\n\nCan you provide the tax information please for both routes.\n"},"comment":{"url":"https://api.github.com/repos/recurly/recurly-client-php/issues/comments/429473859","html_url":"https://github.com/recurly/recurly-client-php/issues/182#issuecomment-429473859","issue_url":"https://api.github.com/repos/recurly/recurly-client-php/issues/182","id":429473859,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTQ3Mzg1OQ==","user":{"login":"aaron-suarez","id":2008701,"node_id":"MDQ6VXNlcjIwMDg3MDE=","avatar_url":"https://avatars1.githubusercontent.com/u/2008701?v=4","gravatar_id":"","url":"https://api.github.com/users/aaron-suarez","html_url":"https://github.com/aaron-suarez","followers_url":"https://api.github.com/users/aaron-suarez/followers","following_url":"https://api.github.com/users/aaron-suarez/following{/other_user}","gists_url":"https://api.github.com/users/aaron-suarez/gists{/gist_id}","starred_url":"https://api.github.com/users/aaron-suarez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaron-suarez/subscriptions","organizations_url":"https://api.github.com/users/aaron-suarez/orgs","repos_url":"https://api.github.com/users/aaron-suarez/repos","events_url":"https://api.github.com/users/aaron-suarez/events{/privacy}","received_events_url":"https://api.github.com/users/aaron-suarez/received_events","type":"User","site_admin":false},"created_at":"2018-10-12T21:56:42Z","updated_at":"2018-10-12T21:56:42Z","author_association":"CONTRIBUTOR","body":"@ScottSpittle Is this still an issue?\r\n\r\nI tried your code to find out if it was, and it's not valid for the latest version of this library. If this is still an issue, please let us know how to reproduce. If it's not an issue, I'll go ahead and close this out"}}
{"actor":{"display_login":"aaron-suarez"}}