Skip to content
Snippets Groups Projects
Commit 3af8b498 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Some docs

parent 61f5afaf
No related branches found
No related tags found
1 merge request!62More Voucher metadata
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment