Last active
December 21, 2022 19:31
-
-
Save calvinszeto/3801d40ef495f489094de5fbaf574040 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Query { | |
nonprofitOrgDonationsDetails(nonprofitOrgId: Int): NonprofitOrgDonationsDetails | |
} | |
type NonprofitOrgDonationsDetails { | |
""" | |
Presentational attribute. The state in which we display | |
the nonprofit’s ability to receive donations. | |
""" | |
state: NonprofitOrgDonationsState! | |
""" | |
All errors related to the ability for this nonprofit to receive donations. | |
""" | |
errors: [NonprofitOrgDonationsErrors!] | |
""" | |
URL for entering or re-entering Stripe Connect onboarding. | |
Returns null if nonprofit has completed onboarding. | |
""" | |
onboardingUrl: String | |
} | |
enum NonprofitOrgDonationsState { | |
""" | |
Nonprofit hasn’t started onboarding yet. Prompt them to start KYC. | |
""" | |
NOT_STARTED | |
""" | |
Nonprofit has started but not completed onboarding. | |
Prompt them to resume KYC. | |
""" | |
STARTED | |
""" | |
Stripe is still verifying details from onboarding. | |
Prompt them to start editing their portal. | |
""" | |
VERIFYING_STRIPE | |
""" | |
Stripe has verified the account with no errors, but | |
the nonprofit is pending 501c3 verification. | |
Prompt them to start editing their portal. | |
Potentially have different copy from the VERIFYING_STRIPE state. | |
""" | |
VERIFYING_501C3 | |
""" | |
Stripe has returned errors from onboarding. | |
Prompt the user to return to KYC to fix them. | |
""" | |
ERRORED_STRIPE | |
""" | |
Stripe has verified the account with no errors, but | |
Resilia was not able to verify their 501(c)(3) status. | |
Prompt the user to contact success? | |
""" | |
DISABLED_BY_501C3 | |
""" | |
The nonprofit is ready to receive donations. | |
""" | |
READY | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@calvinszeto what happens when a user starts the KYC process but abandons it? Would we soley rely on
STARTED
?