lltransactiontypes.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /**
  2. * @file lltransactiontypes.h
  3. *
  4. * $LicenseInfo:firstyear=2003&license=viewergpl$
  5. *
  6. * Copyright (c) 2003-2009, Linden Research, Inc.
  7. *
  8. * Second Life Viewer Source Code
  9. * The source code in this file ("Source Code") is provided by Linden Lab
  10. * to you under the terms of the GNU General Public License, version 2.0
  11. * ("GPL"), unless you have obtained a separate licensing agreement
  12. * ("Other License"), formally executed by you and Linden Lab. Terms of
  13. * the GPL can be found in doc/GPL-license.txt in this distribution, or
  14. * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
  15. *
  16. * There are special exceptions to the terms and conditions of the GPL as
  17. * it is applied to this Source Code. View the full text of the exception
  18. * in the file doc/FLOSS-exception.txt in this software distribution, or
  19. * online at
  20. * http://secondlifegrid.net/programs/open_source/licensing/flossexception
  21. *
  22. * By copying, modifying or distributing this software, you acknowledge
  23. * that you have read and understood your obligations described above,
  24. * and agree to abide by those obligations.
  25. *
  26. * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
  27. * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
  28. * COMPLETENESS OR PERFORMANCE.
  29. * $/LicenseInfo$
  30. */
  31. #ifndef LL_LLTRANSACTIONTYPES_H
  32. #define LL_LLTRANSACTIONTYPES_H
  33. // *NOTE: The constants in this file are also in the
  34. // transaction_description table in the database. If you add a
  35. // constant here, please add it to the database. eg:
  36. //
  37. // insert into transaction_description
  38. // set type = 1000, description = 'Object Claim';
  39. //
  40. // Also add it to the various L$ string lookups on the dataserver
  41. // in lldatamoney
  42. // Money transaction failure codes
  43. constexpr U8 TRANS_FAIL_SIMULATOR_TIMEOUT = 1;
  44. constexpr U8 TRANS_FAIL_DATASERVER_TIMEOUT = 2;
  45. constexpr U8 TRANS_FAIL_APPLICATION = 3;
  46. // Codes up to 999 for error conditions
  47. constexpr S32 TRANS_NULL = 0;
  48. // Codes 1000-1999 reserved for one-time charges
  49. constexpr S32 TRANS_OBJECT_CLAIM = 1000;
  50. constexpr S32 TRANS_LAND_CLAIM = 1001;
  51. constexpr S32 TRANS_GROUP_CREATE = 1002;
  52. constexpr S32 TRANS_OBJECT_PUBLIC_CLAIM = 1003;
  53. constexpr S32 TRANS_GROUP_JOIN = 1004; // May be moved to group transactions eventually
  54. constexpr S32 TRANS_TELEPORT_CHARGE = 1100; // FF not sure why this jumps to 1100...
  55. constexpr S32 TRANS_UPLOAD_CHARGE = 1101;
  56. constexpr S32 TRANS_LAND_AUCTION = 1102;
  57. constexpr S32 TRANS_CLASSIFIED_CHARGE = 1103;
  58. // Codes 2000-2999 reserved for recurrent charges
  59. constexpr S32 TRANS_OBJECT_TAX = 2000;
  60. constexpr S32 TRANS_LAND_TAX = 2001;
  61. constexpr S32 TRANS_LIGHT_TAX = 2002;
  62. constexpr S32 TRANS_PARCEL_DIR_FEE = 2003;
  63. constexpr S32 TRANS_GROUP_TAX = 2004; // Taxes incurred as part of group membership
  64. constexpr S32 TRANS_CLASSIFIED_RENEW = 2005;
  65. // Codes 2100-2999 reserved for recurring billing services
  66. // New codes can be created through an admin interface so may not
  67. // automatically end up in the list below :-(
  68. // So make sure you check the transaction_description table
  69. constexpr S32 TRANS_RECURRING_GENERIC = 2100;
  70. // Codes 3000-3999 reserved for inventory transactions
  71. constexpr S32 TRANS_GIVE_INVENTORY = 3000;
  72. // Codes 5000-5999 reserved for transfers between users
  73. constexpr S32 TRANS_OBJECT_SALE = 5000;
  74. constexpr S32 TRANS_GIFT = 5001;
  75. constexpr S32 TRANS_LAND_SALE = 5002;
  76. constexpr S32 TRANS_REFER_BONUS = 5003;
  77. constexpr S32 TRANS_INVENTORY_SALE = 5004;
  78. constexpr S32 TRANS_REFUND_PURCHASE = 5005;
  79. constexpr S32 TRANS_LAND_PASS_SALE = 5006;
  80. constexpr S32 TRANS_DWELL_BONUS = 5007;
  81. constexpr S32 TRANS_PAY_OBJECT = 5008;
  82. constexpr S32 TRANS_OBJECT_PAYS = 5009;
  83. // Codes 5100-5999 reserved for recurring billing transfers between users
  84. // New codes can be created through an admin interface so may not
  85. // automatically end up in the list below :-(
  86. // So make sure you check the transaction_description table
  87. constexpr S32 TRANS_RECURRING_GENERIC_USER = 5100;
  88. // Codes 6000-6999 reserved for group transactions
  89. //constexpr S32 TRANS_GROUP_JOIN = 6000; //reserved for future use
  90. constexpr S32 TRANS_GROUP_LAND_DEED = 6001;
  91. constexpr S32 TRANS_GROUP_OBJECT_DEED = 6002;
  92. constexpr S32 TRANS_GROUP_LIABILITY = 6003;
  93. constexpr S32 TRANS_GROUP_DIVIDEND = 6004;
  94. constexpr S32 TRANS_MEMBERSHIP_DUES = 6005;
  95. // Codes 8000-8999 reserved for one-type credits
  96. constexpr S32 TRANS_OBJECT_RELEASE = 8000;
  97. constexpr S32 TRANS_LAND_RELEASE = 8001;
  98. constexpr S32 TRANS_OBJECT_DELETE = 8002;
  99. constexpr S32 TRANS_OBJECT_PUBLIC_DECAY = 8003;
  100. constexpr S32 TRANS_OBJECT_PUBLIC_DELETE= 8004;
  101. // Code 9000-9099 reserved for usertool transactions
  102. constexpr S32 TRANS_LINDEN_ADJUSTMENT = 9000;
  103. constexpr S32 TRANS_LINDEN_GRANT = 9001;
  104. constexpr S32 TRANS_LINDEN_PENALTY = 9002;
  105. constexpr S32 TRANS_EVENT_FEE = 9003;
  106. constexpr S32 TRANS_EVENT_PRIZE = 9004;
  107. // These must match entries in money_stipend table in MySQL
  108. // Codes 10000-10999 reserved for stipend credits
  109. constexpr S32 TRANS_STIPEND_BASIC = 10000;
  110. constexpr S32 TRANS_STIPEND_DEVELOPER = 10001;
  111. constexpr S32 TRANS_STIPEND_ALWAYS = 10002;
  112. constexpr S32 TRANS_STIPEND_DAILY = 10003;
  113. constexpr S32 TRANS_STIPEND_RATING = 10004;
  114. constexpr S32 TRANS_STIPEND_DELTA = 10005;
  115. #endif