PageRenderTime 29ms CodeModel.GetById 22ms app.highlight 5ms RepoModel.GetById 1ms 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
  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
 26#ifndef LL_LLTRANSACTIONTYPES_H
 27#define LL_LLTRANSACTIONTYPES_H
 28
 29// *NOTE: The constants in this file are also in the
 30// transaction_description table in the database. If you add a
 31// constant here, please add it to the database. eg:
 32//
 33//   insert into transaction_description 
 34//     set type = 1000, description = 'Object Claim';
 35//
 36// Also add it to the various L$ string lookups on the dataserver
 37// in lldatamoney
 38
 39// Money transaction failure codes
 40const U8 TRANS_FAIL_SIMULATOR_TIMEOUT	= 1;
 41const U8 TRANS_FAIL_DATASERVER_TIMEOUT	= 2;
 42const U8 TRANS_FAIL_APPLICATION         = 3;
 43
 44// Codes up to 999 for error conditions
 45const S32 TRANS_NULL				= 0;
 46
 47// Codes 1000-1999 reserved for one-time charges
 48const S32 TRANS_OBJECT_CLAIM		= 1000;
 49const S32 TRANS_LAND_CLAIM			= 1001;
 50const S32 TRANS_GROUP_CREATE		= 1002;
 51const S32 TRANS_OBJECT_PUBLIC_CLAIM	= 1003;
 52const S32 TRANS_GROUP_JOIN		    = 1004; // May be moved to group transactions eventually
 53const S32 TRANS_TELEPORT_CHARGE		= 1100; // FF not sure why this jumps to 1100... 
 54const S32 TRANS_UPLOAD_CHARGE		= 1101;
 55const S32 TRANS_LAND_AUCTION		= 1102;
 56const S32 TRANS_CLASSIFIED_CHARGE	= 1103;
 57
 58// Codes 2000-2999 reserved for recurrent charges
 59const S32 TRANS_OBJECT_TAX			= 2000;
 60const S32 TRANS_LAND_TAX			= 2001;
 61const S32 TRANS_LIGHT_TAX			= 2002;
 62const S32 TRANS_PARCEL_DIR_FEE		= 2003;
 63const S32 TRANS_GROUP_TAX		    = 2004; // Taxes incurred as part of group membership
 64const S32 TRANS_CLASSIFIED_RENEW	= 2005;
 65
 66// Codes 2100-2999 reserved for recurring billing services
 67// New codes can be created through an admin interface so may not
 68// automatically end up in the list below :-(
 69// So make sure you check the transaction_description table
 70const S32 TRANS_RECURRING_GENERIC  = 2100;
 71
 72// Codes 3000-3999 reserved for inventory transactions
 73const S32 TRANS_GIVE_INVENTORY		= 3000;
 74
 75// Codes 5000-5999 reserved for transfers between users
 76const S32 TRANS_OBJECT_SALE			= 5000;
 77const S32 TRANS_GIFT				= 5001;
 78const S32 TRANS_LAND_SALE			= 5002;
 79const S32 TRANS_REFER_BONUS			= 5003;
 80const S32 TRANS_INVENTORY_SALE		= 5004;
 81const S32 TRANS_REFUND_PURCHASE		= 5005;
 82const S32 TRANS_LAND_PASS_SALE		= 5006;
 83const S32 TRANS_DWELL_BONUS			= 5007;
 84const S32 TRANS_PAY_OBJECT			= 5008;
 85const S32 TRANS_OBJECT_PAYS			= 5009;
 86
 87// Codes 5100-5999 reserved for recurring billing transfers between users
 88// New codes can be created through an admin interface so may not
 89// automatically end up in the list below :-(
 90// So make sure you check the transaction_description table
 91const S32 TRANS_RECURRING_GENERIC_USER  = 5100;
 92
 93// Codes 6000-6999 reserved for group transactions
 94//const S32 TRANS_GROUP_JOIN		    = 6000;  //reserved for future use
 95const S32 TRANS_GROUP_LAND_DEED		= 6001;
 96const S32 TRANS_GROUP_OBJECT_DEED	= 6002;
 97const S32 TRANS_GROUP_LIABILITY		= 6003;
 98const S32 TRANS_GROUP_DIVIDEND		= 6004;
 99const S32 TRANS_MEMBERSHIP_DUES		= 6005;
100
101// Codes 8000-8999 reserved for one-type credits
102const S32 TRANS_OBJECT_RELEASE		= 8000;
103const S32 TRANS_LAND_RELEASE		= 8001;
104const S32 TRANS_OBJECT_DELETE		= 8002;
105const S32 TRANS_OBJECT_PUBLIC_DECAY	= 8003;
106const S32 TRANS_OBJECT_PUBLIC_DELETE= 8004;
107
108// Code 9000-9099 reserved for usertool transactions
109const S32 TRANS_LINDEN_ADJUSTMENT	= 9000;
110const S32 TRANS_LINDEN_GRANT		= 9001;
111const S32 TRANS_LINDEN_PENALTY		= 9002;
112const S32 TRANS_EVENT_FEE			= 9003;
113const S32 TRANS_EVENT_PRIZE			= 9004;
114
115// These must match entries in money_stipend table in MySQL
116// Codes 10000-10999 reserved for stipend credits
117const S32 TRANS_STIPEND_BASIC		= 10000;
118const S32 TRANS_STIPEND_DEVELOPER	= 10001;
119const S32 TRANS_STIPEND_ALWAYS		= 10002;
120const S32 TRANS_STIPEND_DAILY		= 10003;
121const S32 TRANS_STIPEND_RATING		= 10004;
122const S32 TRANS_STIPEND_DELTA       = 10005;
123
124#endif