This commit was generated by cvs2svn to compensate for changes in r5562,
[freeside.git] / FS / FS / prepay_credit.pm
index cffedeb..bf85dfa 100644 (file)
@@ -51,6 +51,8 @@ fields are currently supported:
 
 =item seconds - time amount of credit (see L<FS::svc_acct/seconds>)
 
+=item agentnum - optional agent (see L<FS::agent>) for this prepaid card
+
 =back
 
 =head1 METHODS
@@ -59,7 +61,7 @@ fields are currently supported:
 
 =item new HASHREF
 
-Creates a new pre-paid credit.  To add the example to the database, see
+Creates a new pre-paid credit.  To add the pre-paid credit to the database, see
 L<"insert">.
 
 Note that this stores the hash reference, not a distinct copy of the hash it
@@ -108,6 +110,9 @@ sub check {
   || $self->ut_alpha('identifier')
   || $self->ut_money('amount')
   || $self->ut_numbern('seconds')
+  || $self->ut_numbern('upbytes')
+  || $self->ut_numbern('downbytes')
+  || $self->ut_numbern('totalbytes')
   || $self->ut_foreign_keyn('agentnum', 'agent', 'agentnum')
   || $self->SUPER::check
   ;