Gary-Community-Ventures / benefits-calculator

MIT License
5 stars 3 forks source link

Optional Contact Storage Refactor #1205

Open Linda-Vu opened 2 months ago

Linda-Vu commented 2 months ago

Refactor the current Hubspot code to include a base class definition which will allow us to implement Brevo as a solution for the NC while maintaining the Hubspot functionality in the Colorado instance.

Linda-Vu commented 2 months ago

@bespinosa01, @CalebPena could y'all see if this ticket is ok? feel free to add better acceptance criteria! tysm :)

CalebPena commented 2 months ago

Something like

class CrmIntegration:
    def __init__(self, user: User, screen: Screen):
         ...

    def add(self):
         ...

    def update(self):
        ...

    # if you want to have different criteria for integrating,
    # then we can both have a method to determine if a user should be uploaded to the CRM
    def should_integrate(self):
        ...
Linda-Vu commented 2 months ago

@bespinosa01 @mexi-cano we need to start on this in the new sprint (starting Monday) to enable the Brevo integration - any thoughts on who I should assign it to?