{"action":"created","issue":{"url":"https://api.github.com/repos/pydanny/dj-stripe/issues/205","labels_url":"https://api.github.com/repos/pydanny/dj-stripe/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/pydanny/dj-stripe/issues/205/comments","events_url":"https://api.github.com/repos/pydanny/dj-stripe/issues/205/events","html_url":"https://github.com/pydanny/dj-stripe/issues/205","id":87391251,"number":205,"title":"Time-card functionality","user":{"login":"TigerDX","id":213062,"avatar_url":"https://avatars.githubusercontent.com/u/213062?v=3","gravatar_id":"","url":"https://api.github.com/users/TigerDX","html_url":"https://github.com/TigerDX","followers_url":"https://api.github.com/users/TigerDX/followers","following_url":"https://api.github.com/users/TigerDX/following{/other_user}","gists_url":"https://api.github.com/users/TigerDX/gists{/gist_id}","starred_url":"https://api.github.com/users/TigerDX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TigerDX/subscriptions","organizations_url":"https://api.github.com/users/TigerDX/orgs","repos_url":"https://api.github.com/users/TigerDX/repos","events_url":"https://api.github.com/users/TigerDX/events{/privacy}","received_events_url":"https://api.github.com/users/TigerDX/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydanny/dj-stripe/labels/feature","name":"feature","color":"009800"},{"url":"https://api.github.com/repos/pydanny/dj-stripe/labels/proposal","name":"proposal","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-11T15:49:21Z","updated_at":"2015-06-12T21:41:49Z","closed_at":null,"body":"Stripe only lets you create value-based coupons, and while you can set a duration, it doesn't set a new renewal date so users can immediately see when their next actual billing date will be.\r\n\r\nI wrote a method allowing users to redeem a time-card, and have the specified number of days added to their account by manipulating the trial-end date of the subscription. For new users, they'll have a new subscription that lasts as long as the time-card, and existing users will have time added on to the end of their subscription, complete with a new current_period_end. The only drawback is that the subscription status becomes `trialing`.\r\n\r\nIf this is desired functionality, I'll create a pull-request with the code I have. If I do that, should it be a customer model method or utility function?"},"comment":{"url":"https://api.github.com/repos/pydanny/dj-stripe/issues/comments/111626053","html_url":"https://github.com/pydanny/dj-stripe/issues/205#issuecomment-111626053","issue_url":"https://api.github.com/repos/pydanny/dj-stripe/issues/205","id":111626053,"user":{"login":"TigerDX","id":213062,"avatar_url":"https://avatars.githubusercontent.com/u/213062?v=3","gravatar_id":"","url":"https://api.github.com/users/TigerDX","html_url":"https://github.com/TigerDX","followers_url":"https://api.github.com/users/TigerDX/followers","following_url":"https://api.github.com/users/TigerDX/following{/other_user}","gists_url":"https://api.github.com/users/TigerDX/gists{/gist_id}","starred_url":"https://api.github.com/users/TigerDX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TigerDX/subscriptions","organizations_url":"https://api.github.com/users/TigerDX/orgs","repos_url":"https://api.github.com/users/TigerDX/repos","events_url":"https://api.github.com/users/TigerDX/events{/privacy}","received_events_url":"https://api.github.com/users/TigerDX/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T21:41:49Z","updated_at":"2015-06-12T21:41:49Z","body":"Agreed.\r\n\r\nIs it worth considering that it's possible to pass in a negative `timedelta` when naming the method? `adjust_end_date` is more verbose, but accounts for that possibility. I can't see much use for shortening a user's subscription, except to correct mistakes, so maybe it's not that big of a deal."}}