{"action":"created","issue":{"url":"https://api.github.com/repos/pplu/aws-sdk-perl/issues/312","repository_url":"https://api.github.com/repos/pplu/aws-sdk-perl","labels_url":"https://api.github.com/repos/pplu/aws-sdk-perl/issues/312/labels{/name}","comments_url":"https://api.github.com/repos/pplu/aws-sdk-perl/issues/312/comments","events_url":"https://api.github.com/repos/pplu/aws-sdk-perl/issues/312/events","html_url":"https://github.com/pplu/aws-sdk-perl/issues/312","id":394457161,"node_id":"MDU6SXNzdWUzOTQ0NTcxNjE=","number":312,"title":"SNS - CheckIfPhoneNumberIsOptedOut is not working correctly","user":{"login":"SeptamusNonovant","id":25334205,"node_id":"MDQ6VXNlcjI1MzM0MjA1","avatar_url":"https://avatars0.githubusercontent.com/u/25334205?v=4","gravatar_id":"","url":"https://api.github.com/users/SeptamusNonovant","html_url":"https://github.com/SeptamusNonovant","followers_url":"https://api.github.com/users/SeptamusNonovant/followers","following_url":"https://api.github.com/users/SeptamusNonovant/following{/other_user}","gists_url":"https://api.github.com/users/SeptamusNonovant/gists{/gist_id}","starred_url":"https://api.github.com/users/SeptamusNonovant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeptamusNonovant/subscriptions","organizations_url":"https://api.github.com/users/SeptamusNonovant/orgs","repos_url":"https://api.github.com/users/SeptamusNonovant/repos","events_url":"https://api.github.com/users/SeptamusNonovant/events{/privacy}","received_events_url":"https://api.github.com/users/SeptamusNonovant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-27T18:10:37Z","updated_at":"2018-12-31T09:36:42Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nWhen using the SNS method `CheckIfPhoneNumberIsOptedOut(PhoneNumber => $phone_number)`, the `isOptedOut` parameter is not being returned.  All I am getting back is a `_requestId`:\r\n\r\n```\r\n$VAR1 = bless( {\r\n                 '_request_id' => 'f6e9766d-8e0a-5f31-9d46-22f298eb8ada'\r\n               }, 'Paws::SNS::CheckIfPhoneNumberIsOptedOutResponse' );\r\n```\r\n\r\nI'm not sure if the issue is the casing of some of the parameters, but here is how AWS takes it:\r\n`http://sns.us-east-1.amazonaws.com/?Action=CheckIfPhoneNumberIsOptedOut&Version=2010-03-31&phoneNumber=15555554444`\r\n\r\nAnd here is the XML response:\r\n```\r\n<CheckIfPhoneNumberIsOptedOutResponse\r\n\txmlns=\"http://sns.amazonaws.com/doc/2010-03-31/\">\r\n\t<CheckIfPhoneNumberIsOptedOutResult>\r\n\t\t<isOptedOut>false</isOptedOut>\r\n\t</CheckIfPhoneNumberIsOptedOutResult>\r\n\t<ResponseMetadata>\r\n\t\t<RequestId>aad6a426-1470-541b-af1d-f0b9035a2eac</RequestId>\r\n\t</ResponseMetadata>\r\n</CheckIfPhoneNumberIsOptedOutResponse>\r\n```\r\n\r\nNote the \"p\" in `phoneNumber` is lowercase, as is the \"i\" in `isOptedOut`\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/pplu/aws-sdk-perl/issues/comments/450625317","html_url":"https://github.com/pplu/aws-sdk-perl/issues/312#issuecomment-450625317","issue_url":"https://api.github.com/repos/pplu/aws-sdk-perl/issues/312","id":450625317,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDYyNTMxNw==","user":{"login":"pplu","id":53034,"node_id":"MDQ6VXNlcjUzMDM0","avatar_url":"https://avatars0.githubusercontent.com/u/53034?v=4","gravatar_id":"","url":"https://api.github.com/users/pplu","html_url":"https://github.com/pplu","followers_url":"https://api.github.com/users/pplu/followers","following_url":"https://api.github.com/users/pplu/following{/other_user}","gists_url":"https://api.github.com/users/pplu/gists{/gist_id}","starred_url":"https://api.github.com/users/pplu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pplu/subscriptions","organizations_url":"https://api.github.com/users/pplu/orgs","repos_url":"https://api.github.com/users/pplu/repos","events_url":"https://api.github.com/users/pplu/events{/privacy}","received_events_url":"https://api.github.com/users/pplu/received_events","type":"User","site_admin":false},"created_at":"2018-12-31T09:36:42Z","updated_at":"2018-12-31T09:36:42Z","author_association":"OWNER","body":"Hi @SeptamusNonovant,\r\n\r\n   Thanks for reporting this issue in a way it has helped trace down the problem immediately. I've opened a branch https://github.com/pplu/aws-sdk-perl/tree/fix/issue_312 for fixing it.\r\n\r\n   It's due to an error in the way the SNS classes are being generated (the fact that the attribute is returned in an xml key that is differently named is being ignored by the code generators). Luckily Paws already has infrastructure to support this case, so a quick fix is feasable. I've created a test case, and a quick fix that you can apply for the method you report: https://github.com/pplu/aws-sdk-perl/commit/add18c481aa9b2e717498d2ad315b3c871aab4b9\r\n\r\n   Please report if more methods you're using are affected by this bug (I suspect that some \"new\" methods are affected).\r\n\r\n"}}
{"actor":{"display_login":"pplu"}}