{"action":"created","issue":{"url":"https://api.github.com/repos/interchange/interchange6-schema/issues/175","labels_url":"https://api.github.com/repos/interchange/interchange6-schema/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/interchange/interchange6-schema/issues/175/comments","events_url":"https://api.github.com/repos/interchange/interchange6-schema/issues/175/events","html_url":"https://github.com/interchange/interchange6-schema/issues/175","id":66011387,"number":175,"title":"default billing and shipping address","user":{"login":"sbatschelet","id":1249749,"avatar_url":"https://avatars.githubusercontent.com/u/1249749?v=3","gravatar_id":"","url":"https://api.github.com/users/sbatschelet","html_url":"https://github.com/sbatschelet","followers_url":"https://api.github.com/users/sbatschelet/followers","following_url":"https://api.github.com/users/sbatschelet/following{/other_user}","gists_url":"https://api.github.com/users/sbatschelet/gists{/gist_id}","starred_url":"https://api.github.com/users/sbatschelet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbatschelet/subscriptions","organizations_url":"https://api.github.com/users/sbatschelet/orgs","repos_url":"https://api.github.com/users/sbatschelet/repos","events_url":"https://api.github.com/users/sbatschelet/events{/privacy}","received_events_url":"https://api.github.com/users/sbatschelet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/interchange/interchange6-schema/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/interchange/interchange6-schema/labels/schema","name":"schema","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-02T21:05:50Z","updated_at":"2015-04-03T19:45:27Z","closed_at":null,"body":"A user can have many addresses but from what I can tell we can not define a default for shipping or billing.  One way this could be accomplished is to add a billing_address_id and shipping_address_id to User.  Then we can have an address book of addresses but the defaults are directly set in User.  This allows us to populate user forms with defined defaults. "},"comment":{"url":"https://api.github.com/repos/interchange/interchange6-schema/issues/comments/89404964","html_url":"https://github.com/interchange/interchange6-schema/issues/175#issuecomment-89404964","issue_url":"https://api.github.com/repos/interchange/interchange6-schema/issues/175","id":89404964,"user":{"login":"SysPete","id":6115812,"avatar_url":"https://avatars.githubusercontent.com/u/6115812?v=3","gravatar_id":"","url":"https://api.github.com/users/SysPete","html_url":"https://github.com/SysPete","followers_url":"https://api.github.com/users/SysPete/followers","following_url":"https://api.github.com/users/SysPete/following{/other_user}","gists_url":"https://api.github.com/users/SysPete/gists{/gist_id}","starred_url":"https://api.github.com/users/SysPete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SysPete/subscriptions","organizations_url":"https://api.github.com/users/SysPete/orgs","repos_url":"https://api.github.com/users/SysPete/repos","events_url":"https://api.github.com/users/SysPete/events{/privacy}","received_events_url":"https://api.github.com/users/SysPete/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T19:45:27Z","updated_at":"2015-04-03T19:45:27Z","body":"Not keen on adding columns to User for this. I think I'd prefer priority\ncolumn in Address. You could set priority to 10000 for default address\nand then increment priority by 1 each time an address is used so you\npresent address options in a sensible order.\n\n"}}