summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2002-02-18 18:07:59 +0000
committerivan <ivan>2002-02-18 18:07:59 +0000
commit6b9a7aefd98a10a0232e02d9fbbaffe30d4c6b97 (patch)
tree86352a2b63abf55d6071d6abe8daf7c6d8cd59f6
parent1c98cb6461e83c28e14341de568ba33328048293 (diff)
document 'seconds'
-rw-r--r--FS/FS/prepay_credit.pm15
1 files changed, 10 insertions, 5 deletions
diff --git a/FS/FS/prepay_credit.pm b/FS/FS/prepay_credit.pm
index f388b2312..7ed9b8344 100644
--- a/FS/FS/prepay_credit.pm
+++ b/FS/FS/prepay_credit.pm
@@ -21,6 +21,12 @@ FS::prepay_credit - Object methods for prepay_credit records
'amount' => '19.95',
};
+ $record = new FS::prepay_credit {
+ 'identifier' => '4198123455512121'
+ 'seconds' => '7200',
+ };
+
+
$error = $record->insert;
$error = $new_record->replace($old_record);
@@ -43,6 +49,8 @@ fields are currently supported:
=item amount - amount of the credit
+=item seconds - time amount of credit (see L<FS::svc_acct/seconds>)
+
=back
=head1 METHODS
@@ -99,21 +107,18 @@ sub check {
$self->ut_numbern('prepaynum')
|| $self->ut_alpha('identifier')
|| $self->ut_money('amount')
+ || $self->utnumbern('seconds')
;
}
=back
-=head1 VERSION
-
-$Id: prepay_credit.pm,v 1.3 2001-08-21 02:44:47 ivan Exp $
-
=head1 BUGS
=head1 SEE ALSO
-L<FS::Record>, schema.html from the base documentation.
+L<FS::svc_acct>, L<FS::Record>, schema.html from the base documentation.
=cut