{"action":"closed","issue":{"url":"https://api.github.com/repos/EasyPost/easypost-csharp/issues/111","repository_url":"https://api.github.com/repos/EasyPost/easypost-csharp","labels_url":"https://api.github.com/repos/EasyPost/easypost-csharp/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/EasyPost/easypost-csharp/issues/111/comments","events_url":"https://api.github.com/repos/EasyPost/easypost-csharp/issues/111/events","html_url":"https://github.com/EasyPost/easypost-csharp/issues/111","id":316391713,"number":111,"title":"Zip code validation does not seem to be working with dotNet lib 4.5 (v 2.3.1.4)","user":{"login":"ameetj85","id":13681342,"avatar_url":"https://avatars0.githubusercontent.com/u/13681342?v=4","gravatar_id":"","url":"https://api.github.com/users/ameetj85","html_url":"https://github.com/ameetj85","followers_url":"https://api.github.com/users/ameetj85/followers","following_url":"https://api.github.com/users/ameetj85/following{/other_user}","gists_url":"https://api.github.com/users/ameetj85/gists{/gist_id}","starred_url":"https://api.github.com/users/ameetj85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameetj85/subscriptions","organizations_url":"https://api.github.com/users/ameetj85/orgs","repos_url":"https://api.github.com/users/ameetj85/repos","events_url":"https://api.github.com/users/ameetj85/events{/privacy}","received_events_url":"https://api.github.com/users/ameetj85/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-20T19:52:28Z","updated_at":"2018-04-22T17:44:25Z","closed_at":"2018-04-22T17:44:25Z","author_association":"NONE","body":"Hello folks,\r\n\r\nI am using the dotNet 4.5 version of the library. I have set verify_strict to \"delivery\" and \"zip4\", even though my zipcode is only 5 characters long. When I call .Create() on the Address object I am able to verify that the library correctly identifies wrong or missing street address values and city and state values. I am unable to get the library to verify the zipcode. I can use almost any 5 digit zipcode and the Create() method raises no errors.\r\n\r\nPlease advise.\r\nThanks.\r\nAmeet.\r\n\r\n\r\nThe following is the address that I am using:\r\nname=John Doe\r\nstreet1=3 Park Ave\r\nstreet2=22nd Floor\r\ncity=New York\r\nstate=NY\r\nzip=77777 <--- this should be raised as an invalid zipcode value.\r\ncountry=US\r\n\r\nFollowing is the code that I am using in my test app:\r\n\r\ntoAddress = new Address()\r\n                        {\r\n                            company = values[0],\r\n                            street1 = values[1],\r\n                            street2 = values[2],\r\n                            city = values[3],\r\n                            state = values[4],\r\n                            country = values[5],\r\n                            zip = values[6],\r\n                            residential = false,\r\n                            verify_strict = new List<string>() { \"delivery\", \"zip4\" }\r\n                            \r\n                        };\r\ntry\r\n                {\r\n                    toAddress.Create();\r\n                }\r\n                catch(HttpException ex)\r\n                {\r\n                    Console.WriteLine(\"Recepient Address verification failed: \" + ex.Message);\r\n                }\r\n\r\n"}}
{"actor":{"display_login":"att14"}}