Closed Bug 997265 Opened 12 years ago Closed 11 years ago

Consolidate Provider objects and provider constants.

Categories

(Marketplace Graveyard :: Payments/Refunds, defect, P4)

Avenir
x86
macOS
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: muffinresearch, Unassigned)

Details

Currently we have constants for providers e.g: https://github.com/mozilla/zamboni/blob/master/apps/constants/payments.py#L121 And we also have shiny new provider objects defined in mkt.developers.providers. https://github.com/mozilla/zamboni/blob/master/mkt/developers/providers.py#L237 This bug is to remove the constants in favour of using the objects so there's a single source of truth for providers.
Having a constant that refers to a provider is pretty useful, eg: https://github.com/mozilla/zamboni/blob/master/mkt/developers/models.py#L61-L62
And those constants are the same in solitude and webpay...
Priority: -- → P4
(In reply to Andy McKay [:andym] from comment #2) > And those constants are the same in solitude and webpay... So maybe the answer is to keep the constants but have them reference the provider objects?
Summary: Use Provider objects as the single source of truth for providers. → Consolidate Provider objects and provider constants.
So seems like there's a good use-case in keeping the constants - perhaps we can instead think about folding the objects into the constants file to be consistent with how we have defined regions?
Someone could move it to marketplace-constants.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.