Coverage for benefits / enrollment_littlepay / migrations / 0001_initial.py: 100%
7 statements
« prev ^ index » next coverage.py v7.13.4, created at 2026-02-13 19:35 +0000
« prev ^ index » next coverage.py v7.13.4, created at 2026-02-13 19:35 +0000
1# Generated by Django 5.1.7 on 2025-05-05 19:07
3from django.db import migrations, models
5import benefits.core.models.common
6import benefits.secrets
9class Migration(migrations.Migration):
11 initial = True
13 dependencies = []
15 operations = [
16 migrations.CreateModel(
17 name="LittlepayConfig",
18 fields=[
19 ("id", models.AutoField(primary_key=True, serialize=False)),
20 (
21 "environment",
22 models.TextField(
23 choices=[("qa", "QA"), ("prod", "Production")],
24 help_text="A label to indicate which environment this configuration is for.",
25 ),
26 ),
27 (
28 "agency_slug",
29 models.SlugField(
30 choices=[("cst", "cst"), ("mst", "mst"), ("nevco", "nevco"), ("sacrt", "sacrt"), ("sbmtd", "sbmtd")],
31 help_text="A label to indicate which agency this configuration is for. Note: the field "
32 "that controls which configuration an agency actually uses is on the TransitAgency model.",
33 ),
34 ),
35 (
36 "audience",
37 models.TextField(
38 blank=True,
39 default="",
40 help_text="This agency's audience value used to access the TransitProcessor's API.",
41 ),
42 ),
43 (
44 "client_id",
45 models.TextField(
46 blank=True,
47 default="",
48 help_text="This agency's client_id value used to access the TransitProcessor's API.",
49 ),
50 ),
51 (
52 "client_secret_name",
53 benefits.core.models.common.SecretNameField(
54 blank=True,
55 default="",
56 help_text="The name of the secret containing this agency's client_secret value used to access "
57 "the TransitProcessor's API.",
58 max_length=127,
59 validators=[benefits.secrets.SecretNameValidator()],
60 ),
61 ),
62 ],
63 ),
64 ]