PageRenderTime 51ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/llinventory/lltransactiontypes.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 124 lines | 56 code | 15 blank | 53 comment | 0 complexity | f2ac6e855818904578c633242b807a41 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file lltransactiontypes.h
  3. *
  4. * $LicenseInfo:firstyear=2003&license=viewerlgpl$
  5. * Second Life Viewer Source Code
  6. * Copyright (C) 2010, Linden Research, Inc.
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public
  10. * License as published by the Free Software Foundation;
  11. * version 2.1 of the License only.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with this library; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  21. *
  22. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  23. * $/LicenseInfo$
  24. */
  25. #ifndef LL_LLTRANSACTIONTYPES_H
  26. #define LL_LLTRANSACTIONTYPES_H
  27. // *NOTE: The constants in this file are also in the
  28. // transaction_description table in the database. If you add a
  29. // constant here, please add it to the database. eg:
  30. //
  31. // insert into transaction_description
  32. // set type = 1000, description = 'Object Claim';
  33. //
  34. // Also add it to the various L$ string lookups on the dataserver
  35. // in lldatamoney
  36. // Money transaction failure codes
  37. const U8 TRANS_FAIL_SIMULATOR_TIMEOUT = 1;
  38. const U8 TRANS_FAIL_DATASERVER_TIMEOUT = 2;
  39. const U8 TRANS_FAIL_APPLICATION = 3;
  40. // Codes up to 999 for error conditions
  41. const S32 TRANS_NULL = 0;
  42. // Codes 1000-1999 reserved for one-time charges
  43. const S32 TRANS_OBJECT_CLAIM = 1000;
  44. const S32 TRANS_LAND_CLAIM = 1001;
  45. const S32 TRANS_GROUP_CREATE = 1002;
  46. const S32 TRANS_OBJECT_PUBLIC_CLAIM = 1003;
  47. const S32 TRANS_GROUP_JOIN = 1004; // May be moved to group transactions eventually
  48. const S32 TRANS_TELEPORT_CHARGE = 1100; // FF not sure why this jumps to 1100...
  49. const S32 TRANS_UPLOAD_CHARGE = 1101;
  50. const S32 TRANS_LAND_AUCTION = 1102;
  51. const S32 TRANS_CLASSIFIED_CHARGE = 1103;
  52. // Codes 2000-2999 reserved for recurrent charges
  53. const S32 TRANS_OBJECT_TAX = 2000;
  54. const S32 TRANS_LAND_TAX = 2001;
  55. const S32 TRANS_LIGHT_TAX = 2002;
  56. const S32 TRANS_PARCEL_DIR_FEE = 2003;
  57. const S32 TRANS_GROUP_TAX = 2004; // Taxes incurred as part of group membership
  58. const S32 TRANS_CLASSIFIED_RENEW = 2005;
  59. // Codes 2100-2999 reserved for recurring billing services
  60. // New codes can be created through an admin interface so may not
  61. // automatically end up in the list below :-(
  62. // So make sure you check the transaction_description table
  63. const S32 TRANS_RECURRING_GENERIC = 2100;
  64. // Codes 3000-3999 reserved for inventory transactions
  65. const S32 TRANS_GIVE_INVENTORY = 3000;
  66. // Codes 5000-5999 reserved for transfers between users
  67. const S32 TRANS_OBJECT_SALE = 5000;
  68. const S32 TRANS_GIFT = 5001;
  69. const S32 TRANS_LAND_SALE = 5002;
  70. const S32 TRANS_REFER_BONUS = 5003;
  71. const S32 TRANS_INVENTORY_SALE = 5004;
  72. const S32 TRANS_REFUND_PURCHASE = 5005;
  73. const S32 TRANS_LAND_PASS_SALE = 5006;
  74. const S32 TRANS_DWELL_BONUS = 5007;
  75. const S32 TRANS_PAY_OBJECT = 5008;
  76. const S32 TRANS_OBJECT_PAYS = 5009;
  77. // Codes 5100-5999 reserved for recurring billing transfers between users
  78. // New codes can be created through an admin interface so may not
  79. // automatically end up in the list below :-(
  80. // So make sure you check the transaction_description table
  81. const S32 TRANS_RECURRING_GENERIC_USER = 5100;
  82. // Codes 6000-6999 reserved for group transactions
  83. //const S32 TRANS_GROUP_JOIN = 6000; //reserved for future use
  84. const S32 TRANS_GROUP_LAND_DEED = 6001;
  85. const S32 TRANS_GROUP_OBJECT_DEED = 6002;
  86. const S32 TRANS_GROUP_LIABILITY = 6003;
  87. const S32 TRANS_GROUP_DIVIDEND = 6004;
  88. const S32 TRANS_MEMBERSHIP_DUES = 6005;
  89. // Codes 8000-8999 reserved for one-type credits
  90. const S32 TRANS_OBJECT_RELEASE = 8000;
  91. const S32 TRANS_LAND_RELEASE = 8001;
  92. const S32 TRANS_OBJECT_DELETE = 8002;
  93. const S32 TRANS_OBJECT_PUBLIC_DECAY = 8003;
  94. const S32 TRANS_OBJECT_PUBLIC_DELETE= 8004;
  95. // Code 9000-9099 reserved for usertool transactions
  96. const S32 TRANS_LINDEN_ADJUSTMENT = 9000;
  97. const S32 TRANS_LINDEN_GRANT = 9001;
  98. const S32 TRANS_LINDEN_PENALTY = 9002;
  99. const S32 TRANS_EVENT_FEE = 9003;
  100. const S32 TRANS_EVENT_PRIZE = 9004;
  101. // These must match entries in money_stipend table in MySQL
  102. // Codes 10000-10999 reserved for stipend credits
  103. const S32 TRANS_STIPEND_BASIC = 10000;
  104. const S32 TRANS_STIPEND_DEVELOPER = 10001;
  105. const S32 TRANS_STIPEND_ALWAYS = 10002;
  106. const S32 TRANS_STIPEND_DAILY = 10003;
  107. const S32 TRANS_STIPEND_RATING = 10004;
  108. const S32 TRANS_STIPEND_DELTA = 10005;
  109. #endif