Coverage for functions \ flipdare \ generated \ shared \ stripe \ stripe_onboard_result.py: 100%
0 statements
« prev ^ index » next coverage.py v7.13.0, created at 2026-05-08 12:22 +1000
« prev ^ index » next coverage.py v7.13.0, created at 2026-05-08 12:22 +1000
1#!/usr/bin/env python
2#
3# Copyright (c) 2025, flipdare.com. Please see the AUTHORS file
4# for details. All rights reserved. Use of this source code is governed by a
5# BSD-style license that can be found in the LICENSE file.
6#
7# NOTE: THIS FILE IS AUTO GENERATED. DO NOT EDIT.
8#
9# Generated by codegen_models.py
10#
11# Modify 'codegen_models.py'
12# and re-run the script above to update.
13#
15# pragma: no cover
17from enum import StrEnum
20class StripeOnboardResult(StrEnum):
22 # Declared here so type-checkers know these attributes exist.
23 # They are populated per-member inside __new__.
24 _label: str
26 def __new__(
27 cls,
28 code: str,
29 label: str | None = None,
30 ) -> "StripeOnboardResult":
31 obj = str.__new__(cls, code)
32 obj._value_ = code
33 # Only set attributes if they are provided (during member definition)
34 if label is not None:
35 obj._label = label
36 return obj
38 # ---- Members --------------------------------------------------------
39 # fmt: off
40 NOT_STARTED = ("NOT_STARTED", "Onboarding not started.")
41 IN_PROGRESS = ("IN_PROGRESS", "Onboarding in progress.")
42 COMPLETED = ("COMPLETED", "Onboarding complete.")
43 DETAILS_NOT_SUBMITTED = ("DETAILS_NOT_SUBMITTED", "Onboarding incomplete, account details not submitted.")
44 CHARGES_NOT_ENABLED = ("CHARGES_NOT_ENABLED", "Onboarding incomplete, charges not enabled.")
45 PAYOUTS_NOT_ENABLED = ("PAYOUTS_NOT_ENABLED", "Onboarding incomplete, payouts not enabled.")
46 TRANSFERS_NOT_ENABLED = ("TRANSFERS_NOT_ENABLED", "Onboarding incomplete, transfers not enabled.")
47 NO_CAPABILITIES = ("NO_CAPABILITIES", "Onboarding incomplete, insufficient account information for account.")
48 CARD_PAYMENTS_NOT_ACTIVE = ("CARD_PAYMENTS_NOT_ACTIVE", "Onboarding incomplete, card payments capability not active.")
49 NO_REQUIREMENTS = ("NO_REQUIREMENTS", "Onboarding incomplete, insufficient account information for account.")
50 PENDING_REQUIREMENTS = ("PENDING_REQUIREMENTS", "Onboarding incomplete, account has pending requirements.")
51 PAST_DUE_REQUIREMENTS = ("PAST_DUE_REQUIREMENTS", "Onboarding incomplete, account has past due requirements.")
52 DISABLED = ("DISABLED", "Onboarding incomplete, Stripe has disabled the account.")
53 CLOSED = ("CLOSED", "Account has been closed by Stripe. Please contact Stripe support for more information.")
54 SUBMITTED = ("SUBMITTED", "Onboarding complete, account has been submitted for review by Stripe.")
55 UNKNOWN = ("UNKNOWN", "Onboarding result is unknown or unsuccessful, please try again later.")
56 # fmt: on
57 # ---- Properties -----------------------------------------------------
58 @property
59 def label(self) -> str:
60 return self._label