Coverage for benefits/core/context/flow.py: 100%

19 statements  

« prev     ^ index     » next       coverage.py v7.8.0, created at 2025-04-22 21:13 +0000

1from dataclasses import asdict, dataclass 

2 

3from django.db import models 

4from django.utils.translation import gettext_lazy as _ 

5 

6 

7class SystemName(models.TextChoices): 

8 AGENCY_CARD = "agency_card" 

9 CALFRESH = "calfresh" 

10 COURTESY_CARD = "courtesy_card" 

11 MEDICARE = "medicare" 

12 OLDER_ADULT = "senior" 

13 REDUCED_FARE_MOBILITY_ID = "mobility_pass" 

14 VETERAN = "veteran" 

15 

16 

17@dataclass 

18class FlowHelp: 

19 

20 id: str 

21 headline: str 

22 text: str 

23 

24 def dict(self): 

25 return asdict(self) 

26 

27 

28flows_help = { 

29 SystemName.AGENCY_CARD.value: [ 

30 FlowHelp( 

31 id="cst-agency-card", 

32 headline=_("What is an Agency Card?"), 

33 text=_( 

34 "California State Transit issues Agency Cards to riders who qualify for a number of reduced fare " 

35 "programs. This transit benefit may need to be renewed in the future based on the expiration date of the " 

36 'Agency Card. Learn more at the <a href="https://www.agency-website.com" target="_blank" rel="noopener noreferrer">www.agency-website.com</a>.' # noqa: E501 

37 ), 

38 ) 

39 ], 

40 SystemName.CALFRESH.value: [ 

41 FlowHelp( 

42 id="calfresh-transit-benefit", 

43 headline=_("How do I know if I’m eligible for the transit benefit for CalFresh Cardholders?"), 

44 text=_( 

45 "We verify your eligibility as a CalFresh Cardholder by confirming you have received funds in your " 

46 "CalFresh account at any point in the last three months. This means you are eligible for a transit " 

47 "benefit even if you did not receive funds in your CalFresh account this month or last month." 

48 ), 

49 ), 

50 FlowHelp( 

51 id="calfresh-transit-benefit-no-account-changes", 

52 headline=_("Will this transit benefit change my CalFresh account?"), 

53 text=_("No. Your monthly CalFresh allotment will not change."), 

54 ), 

55 FlowHelp( 

56 id="calfresh-transit-benefit-enrollment", 

57 headline=_("Do I need my Golden State Advantage card to enroll?"), 

58 text=_( 

59 "No, you do not need your physical EBT card to enroll. We use information from Login.gov and the " 

60 "California Department of Social Services to enroll you in the benefit." 

61 ), 

62 ), 

63 FlowHelp( 

64 id="calfresh-transit-benefit-payment", 

65 headline=_("Can I use my Golden State Advantage card to pay for transit rides?"), 

66 text=_( 

67 "No. You can not use your EBT or P-EBT card to pay for public transportation. " 

68 "When you tap to ride, use your personal contactless debit or credit card to pay for public transportation." # noqa: E501 

69 ), 

70 ), 

71 ], 

72 SystemName.COURTESY_CARD.value: [ 

73 FlowHelp( 

74 id="mst-agency-card", 

75 headline=_("What is a Courtesy Card?"), 

76 text=_( 

77 "Monterey-Salinas Transit issues Courtesy Cards to riders who qualify for a number of reduced fare programs. " # noqa: E501 

78 "This transit benefit may need to be renewed in the future based on the expiration date of the Courtesy Card. " # noqa: E501 

79 'Learn more at the <a href="https://mst.org/riders-guide/how-to-ride/courtesy-card/" target="_blank" rel="noopener noreferrer">MST Riders Guide</a>.' # noqa: E501 

80 ), 

81 ) 

82 ], 

83 SystemName.MEDICARE.value: [ 

84 FlowHelp( 

85 id="medicare-transit-benefit", 

86 headline=_("How do I know if I qualify for the Medicare Cardholder option?"), 

87 text=_( 

88 "You qualify for this option if you have a Medicare card. To enroll you will need an account with Medicare.gov. " # noqa: E501 

89 "You will need to sign up for a Medicare.gov account if you do not currently have one. Deceased Medicare cardholders do not qualify." # noqa: E501 

90 ), 

91 ), 

92 FlowHelp( 

93 id="medicare-transit-benefit-enrollment", 

94 headline=_("Do I need my Medicare card to enroll?"), 

95 text=_( 

96 "No, you do not need your physical Medicare card to enroll in a transit benefit. " 

97 "You will need the information on your card to create an account at Medicare.gov if you do not currently have an online account." # noqa: E501 

98 ), 

99 ), 

100 FlowHelp( 

101 id="medicare-transit-benefit-payment", 

102 headline=_("Do I need to bring my Medicare card when I ride public transportation?"), 

103 text=_( 

104 "No, you do not need your physical Medicare card to use your transit benefit on public transportation. " 

105 "Once you have enrolled you can use your contactless debit or credit card to tap to ride with a reduced fare." # noqa: E501 

106 ), 

107 ), 

108 FlowHelp( 

109 id="medicare-transit-benefit-recommended", 

110 headline=_("What if I qualify for more than one option?"), 

111 text=_( 

112 "You can enroll in any option you qualify for. We recommend enrolling in the Medicare Cardholder option if you qualify for it." # noqa: 501 

113 ), 

114 ), 

115 ], 

116 SystemName.REDUCED_FARE_MOBILITY_ID.value: [ 

117 FlowHelp( 

118 id="sbmtd-agency-card", 

119 headline=_("What is a Reduced Fare Mobility ID?"), 

120 text=_( 

121 "The Santa Barbara Metropolitan Transit District issues Reduced Fare Mobility ID cards to eligible riders. " # noqa: E501 

122 "This transit benefit may need to be renewed in the future based on the expiration date of the Reduced Fare Mobility ID. " # noqa: E501 

123 'Learn more at the <a href="https://sbmtd.gov/fares-passes/" target="_blank" rel="noopener noreferrer">SBMTD Fares & Passes</a>.' # noqa: E501 

124 ), 

125 ) 

126 ], 

127}