1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-14 10:52:41 +01:00
phorge-phorge/src/applications/phid
epriestley 960ac3b2a6 Phortune v0
Summary:
Ref T2787. This does very little so far, but makes inroads on accounts and billing. This is mostly just modeled on what Stripe looks like. The objects are:

  - **Account**: Has one or more authorized users, who can make manage the account. An example might be "Phacility", and the three of us would be able to manage it. A user may be associated with more than one account (e.g., a corporate account and a personal account) but the UI tries to simplify the common case of a single account.
  - **Payment Method**: Something we can get sweet sweet money from; for now, a credit card registered with Stripe. Payment methods are associated with an account.
  - **Product**: A good (one time charge) or service (recurring charge). This might be "t-shirt" or "enterprise plan" or "hourly support" or whatever else.
  - **Purchase**: Represents a user purchasing a Product for an Account, using a Payment Method. e.g., you bought a shirt, or started a plan, or purchased support.
  - **Charge**: Actual charges against payment methods. A Purchase can create more than one charge if it's a plan, or if the first charge fails and we re-bill.

This doesn't fully account for stuff like coupons/discounts yet but they should fit into the model without any issues.

This only implements `Account`, and that only partially.

Test Plan: {F37531}

Reviewers: chad, btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2787

Differential Revision: https://secure.phabricator.com/D5435
2013-03-28 09:10:34 -07:00
..
application Implement very basic uberhome 2013-01-15 15:41:22 -08:00
conduit Uninstall Conduit calls when uninstalling applications 2013-03-13 07:09:05 -07:00
config Formalize phid.external-loaders 2013-01-19 10:20:24 -08:00
controller Display full handle name in PHID lookup 2013-03-13 00:55:07 -07:00
handle Consolidate Macro loading 2013-03-22 13:07:20 -07:00
storage Support "M" in phid.lookup and ircbot 2013-03-05 12:31:52 -08:00
PhabricatorObjectHandle.php Render commit summaries when rendering handles 2013-02-21 15:09:35 -08:00
PhabricatorPHIDConstants.php Phortune v0 2013-03-28 09:10:34 -07:00
utils.php Add feed integration to generic transactions 2012-12-11 14:00:21 -08:00