Skip to content

Commit 4cb39d9

Browse files
committed
chore: added new observations to the start and expiration
1 parent 873d918 commit 4cb39d9

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

src/budy/models/voucher.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,23 @@ class Voucher(base.BudyBase):
6868
will be performed using proper exchange rate conversion""",
6969
)
7070

71-
start = appier.field(type=int, index=True, safe=True, meta="datetime")
71+
start = appier.field(
72+
type=int,
73+
index=True,
74+
safe=True,
75+
meta="datetime",
76+
observations="""The start date of the voucher, meaning
77+
that the voucher is only valid after this date""",
78+
)
7279

73-
expiration = appier.field(type=int, index=True, safe=True, meta="datetime")
80+
expiration = appier.field(
81+
type=int,
82+
index=True,
83+
safe=True,
84+
meta="datetime",
85+
observations="""The expiration date of the voucher, meaning
86+
that the voucher is no longer valid after this date""",
87+
)
7488

7589
usage_count = appier.field(
7690
type=int,

0 commit comments

Comments
 (0)