Coverage for functions \ flipdare \ generated \ shared \ stripe \ stripe_onboard_state.py: 100%

0 statements  

« 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) 2026 Flipdare Pty Ltd. All rights reserved. 

4# 

5# This file is part of Flipdare's proprietary software and contains 

6# confidential and copyrighted material. Unauthorised copying, 

7# modification, distribution, or use of this file is strictly 

8# prohibited without prior written permission from Flipdare Pty Ltd. 

9# 

10# This software includes third-party components licensed under MIT, 

11# BSD, and Apache 2.0 licences. See THIRD_PARTY_NOTICES for details. 

12# 

13# NOTE: THIS FILE IS AUTO GENERATED. DO NOT EDIT. 

14# 

15# Generated by codegen_models.py 

16# 

17# Modify 'codegen_models.py' 

18# and re-run the script above to update. 

19# 

20 

21# pragma: no cover 

22 

23from enum import StrEnum 

24 

25 

26class StripeOnboardState(StrEnum): 

27 

28 # Declared here so type-checkers know these attributes exist. 

29 # They are populated per-member inside __new__. 

30 _label: str 

31 

32 def __new__( 

33 cls, 

34 code: str, 

35 label: str | None = None, 

36 ) -> "StripeOnboardState": 

37 obj = str.__new__(cls, code) 

38 obj._value_ = code 

39 # Only set attributes if they are provided (during member definition) 

40 if label is not None: 

41 obj._label = label 

42 return obj 

43 

44 # ---- Members -------------------------------------------------------- 

45 # fmt: off 

46 NOT_STARTED = ("NOT_STARTED", "Onboarding not started.") 

47 IN_PROGRESS = ("IN_PROGRESS", "Onboarding in progress.") 

48 COMPLETED = ("COMPLETED", "Onboarding complete.") 

49 DETAILS_NOT_SUBMITTED = ("DETAILS_NOT_SUBMITTED", "Onboarding incomplete, account details not submitted.") 

50 CHARGES_NOT_ENABLED = ("CHARGES_NOT_ENABLED", "Onboarding incomplete, charges not enabled.") 

51 PAYOUTS_NOT_ENABLED = ("PAYOUTS_NOT_ENABLED", "Onboarding incomplete, payouts not enabled.") 

52 TRANSFERS_NOT_ENABLED = ("TRANSFERS_NOT_ENABLED", "Onboarding incomplete, transfers not enabled.") 

53 NO_CAPABILITIES = ("NO_CAPABILITIES", "Onboarding incomplete, insufficient account information for account.") 

54 CARD_PAYMENTS_NOT_ACTIVE = ("CARD_PAYMENTS_NOT_ACTIVE", "Onboarding incomplete, card payments capability not active.") 

55 NO_REQUIREMENTS = ("NO_REQUIREMENTS", "Onboarding incomplete, insufficient account information for account.") 

56 PENDING_REQUIREMENTS = ("PENDING_REQUIREMENTS", "Onboarding incomplete, account has pending requirements.") 

57 PAST_DUE_REQUIREMENTS = ("PAST_DUE_REQUIREMENTS", "Onboarding incomplete, account has past due requirements.") 

58 DISABLED = ("DISABLED", "Onboarding incomplete, Stripe has disabled the account.") 

59 CLOSED = ("CLOSED", "Account has been closed by Stripe. Please contact Stripe support for more information.") 

60 SUBMITTED = ("SUBMITTED", "Onboarding complete, account has been submitted for review by Stripe.") 

61 UNKNOWN = ("UNKNOWN", "Onboarding result is unknown or unsuccessful, please try again later.") 

62 # fmt: on 

63 # ---- Properties ----------------------------------------------------- 

64 @property 

65 def label(self) -> str: 

66 return self._label