{"action":"created","issue":{"url":"https://api.github.com/repos/USKPA-dev/uskpa/issues/45","repository_url":"https://api.github.com/repos/USKPA-dev/uskpa","labels_url":"https://api.github.com/repos/USKPA-dev/uskpa/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/USKPA-dev/uskpa/issues/45/comments","events_url":"https://api.github.com/repos/USKPA-dev/uskpa/issues/45/events","html_url":"https://github.com/USKPA-dev/uskpa/issues/45","id":315932161,"number":45,"title":"As a user, there are business rules around certificate fields so I do not incorrectly enter them.","user":{"login":"porta-antiporta","id":16668007,"avatar_url":"https://avatars0.githubusercontent.com/u/16668007?v=4","gravatar_id":"","url":"https://api.github.com/users/porta-antiporta","html_url":"https://github.com/porta-antiporta","followers_url":"https://api.github.com/users/porta-antiporta/followers","following_url":"https://api.github.com/users/porta-antiporta/following{/other_user}","gists_url":"https://api.github.com/users/porta-antiporta/gists{/gist_id}","starred_url":"https://api.github.com/users/porta-antiporta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/porta-antiporta/subscriptions","organizations_url":"https://api.github.com/users/porta-antiporta/orgs","repos_url":"https://api.github.com/users/porta-antiporta/repos","events_url":"https://api.github.com/users/porta-antiporta/events{/privacy}","received_events_url":"https://api.github.com/users/porta-antiporta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Jkrzy","id":3485564,"avatar_url":"https://avatars2.githubusercontent.com/u/3485564?v=4","gravatar_id":"","url":"https://api.github.com/users/Jkrzy","html_url":"https://github.com/Jkrzy","followers_url":"https://api.github.com/users/Jkrzy/followers","following_url":"https://api.github.com/users/Jkrzy/following{/other_user}","gists_url":"https://api.github.com/users/Jkrzy/gists{/gist_id}","starred_url":"https://api.github.com/users/Jkrzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jkrzy/subscriptions","organizations_url":"https://api.github.com/users/Jkrzy/orgs","repos_url":"https://api.github.com/users/Jkrzy/repos","events_url":"https://api.github.com/users/Jkrzy/events{/privacy}","received_events_url":"https://api.github.com/users/Jkrzy/received_events","type":"User","site_admin":false},"assignees":[{"login":"Jkrzy","id":3485564,"avatar_url":"https://avatars2.githubusercontent.com/u/3485564?v=4","gravatar_id":"","url":"https://api.github.com/users/Jkrzy","html_url":"https://github.com/Jkrzy","followers_url":"https://api.github.com/users/Jkrzy/followers","following_url":"https://api.github.com/users/Jkrzy/following{/other_user}","gists_url":"https://api.github.com/users/Jkrzy/gists{/gist_id}","starred_url":"https://api.github.com/users/Jkrzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jkrzy/subscriptions","organizations_url":"https://api.github.com/users/Jkrzy/orgs","repos_url":"https://api.github.com/users/Jkrzy/repos","events_url":"https://api.github.com/users/Jkrzy/events{/privacy}","received_events_url":"https://api.github.com/users/Jkrzy/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-04-19T15:37:39Z","updated_at":"2018-05-09T19:56:17Z","closed_at":null,"author_association":"NONE","body":"- [x] Date of expiry is 60 days after date of issue\r\n- [x] Order of dates is the following\r\n    - Assigned\r\n    - Prepared\r\n    - Shipped\r\n    - Delivered\r\n    - i.e. `Delivered` can't be earlier than `Shipped` etc\r\n- [x] HTS Code is one of: 7102.10, 7102.21 and 7102.31\r\n- [x] When preparing a certificate, all fields visible on the certificate are mandatory fields.\r\n- [x] Validation on amount paid should be $20 x # of certificates sold"},"comment":{"url":"https://api.github.com/repos/USKPA-dev/uskpa/issues/comments/387856565","html_url":"https://github.com/USKPA-dev/uskpa/issues/45#issuecomment-387856565","issue_url":"https://api.github.com/repos/USKPA-dev/uskpa/issues/45","id":387856565,"user":{"login":"porta-antiporta","id":16668007,"avatar_url":"https://avatars0.githubusercontent.com/u/16668007?v=4","gravatar_id":"","url":"https://api.github.com/users/porta-antiporta","html_url":"https://github.com/porta-antiporta","followers_url":"https://api.github.com/users/porta-antiporta/followers","following_url":"https://api.github.com/users/porta-antiporta/following{/other_user}","gists_url":"https://api.github.com/users/porta-antiporta/gists{/gist_id}","starred_url":"https://api.github.com/users/porta-antiporta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/porta-antiporta/subscriptions","organizations_url":"https://api.github.com/users/porta-antiporta/orgs","repos_url":"https://api.github.com/users/porta-antiporta/repos","events_url":"https://api.github.com/users/porta-antiporta/events{/privacy}","received_events_url":"https://api.github.com/users/porta-antiporta/received_events","type":"User","site_admin":false},"created_at":"2018-05-09T19:56:17Z","updated_at":"2018-05-09T19:56:17Z","author_association":"NONE","body":"@Jkrzy to clarify, the added logic is to provide an error message to the user when say a duplicate certificate is to be assigned.\r\n\r\nIIRC, there already is logic to safeguard from issuing duplicate certificates, there's just no notification/reason as to why it fails."}}
{"actor":{"display_login":"porta-antiporta"}}