From 3af8b498233318237c5d7a2c2d2de004b03face6 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Wed, 13 Nov 2019 10:46:26 -0500 Subject: [PATCH] Some docs --- src/_zkapauthorizer/model.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/_zkapauthorizer/model.py b/src/_zkapauthorizer/model.py index b42f78e..8fd2e8f 100644 --- a/src/_zkapauthorizer/model.py +++ b/src/_zkapauthorizer/model.py @@ -413,6 +413,16 @@ class RandomToken(object): @attr.s class Voucher(object): + """ + :ivar unicode number: The text string which gives this voucher its + identity. + + :ivar datetime created: The time at which this voucher was added to this + node. + + :ivar bool redeemed: ``True`` if this voucher has successfully been + redeemed with a payment server, ``False`` otherwise. + """ number = attr.ib() created = attr.ib(default=None, validator=attr.validators.optional(attr.validators.instance_of(datetime))) redeemed = attr.ib(default=False, validator=attr.validators.instance_of(bool)) -- GitLab