журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[ljcom] r12242: LJSUP-12855: Implement Account base clas...

Committer: nnikulochkina
LJSUP-12855: Implement Account base class
U   trunk/cgi-bin/LJ/Pay/Wallet/Error.pm
Modified: trunk/cgi-bin/LJ/Pay/Wallet/Error.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Wallet/Error.pm	2012-07-09 10:30:14 UTC (rev 12241)
+++ trunk/cgi-bin/LJ/Pay/Wallet/Error.pm	2012-07-09 10:59:25 UTC (rev 12242)
@@ -38,6 +38,8 @@
 
 BEGIN {
     $errors = {
+
+        # Wallet errors, 0 < code < 100
         ERROR_INVALID_PAYITEM           => 1,
         ERROR_CANNOT_GET_RCPT           => 2,
         ERROR_CANNOT_GET_CART           => 3,
@@ -55,6 +57,12 @@
         ERROR_CANNOT_SAVE_PAYITEM       => 15,
         ERROR_CART_ALREADY_PAID         => 16,
         ERROR_RCPT_IS_SELF              => 17,
+
+        # Account errors, 100 <= code < 200 
+        ERROR_ACC_INSUFFICIENT_FUNDS    => 100,
+        ERROR_INVALID_ACCOUNT           => 101,
+        ERROR_BLOCKED_EXISTS            => 102,
+
     };
 
     our @EXPORT = ();
@@ -214,6 +222,26 @@
 
 Thrown by the /shop/wallet.bml logic.
 
+=item ERROR_ACC_INSUFFICIENT_FUNDS
+
+The system found out that it is not possible to write off the specified amount of tokens from this account.
+
+Parameters: need, have (how much tokens are needed, how much the user has).
+
+Thrown by LJ::Pay::Wallet::Account
+
+=item ERROR_INVALID_ACCOUNT
+
+Specified account does not belong to specified user.
+
+Thrown by LJ::Pay::Wallet::Account
+
+=item ERROR_BLOCKED_EXISTS
+
+Existing blocking was found for this account.
+
+Thrown by LJ::Pay::Wallet::Account
+
 =back
 
 =cut

Tags: ljcom, nikulochkina, nnikulochkina, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments