summaryrefslogtreecommitdiff
path: root/indra/llinventory/lltransactiontypes.h
blob: 3732ad62fb49e586cc4aaa6802ab7238597b3ca8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/**
 * @file lltransactiontypes.h
 *
 * $LicenseInfo:firstyear=2003&license=viewerlgpl$
 * Second Life Viewer Source Code
 * Copyright (C) 2010, Linden Research, Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation;
 * version 2.1 of the License only.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
 * $/LicenseInfo$
 */

#ifndef LL_LLTRANSACTIONTYPES_H
#define LL_LLTRANSACTIONTYPES_H

// *NOTE: The constants in this file are also in the
// transaction_description table in the database. If you add a
// constant here, please add it to the database. eg:
//
//   insert into transaction_description
//     set type = 1000, description = 'Object Claim';
//
// Also add it to the various L$ string lookups on the dataserver
// in lldatamoney

// Money transaction failure codes
const U8 TRANS_FAIL_SIMULATOR_TIMEOUT   = 1;
const U8 TRANS_FAIL_DATASERVER_TIMEOUT  = 2;
const U8 TRANS_FAIL_APPLICATION         = 3;

// Codes up to 999 for error conditions
const S32 TRANS_NULL                = 0;

// Codes 1000-1999 reserved for one-time charges
const S32 TRANS_OBJECT_CLAIM        = 1000;
const S32 TRANS_LAND_CLAIM          = 1001;
const S32 TRANS_GROUP_CREATE        = 1002;
const S32 TRANS_OBJECT_PUBLIC_CLAIM = 1003;
const S32 TRANS_GROUP_JOIN          = 1004; // May be moved to group transactions eventually
const S32 TRANS_TELEPORT_CHARGE     = 1100; // FF not sure why this jumps to 1100...
const S32 TRANS_UPLOAD_CHARGE       = 1101;
const S32 TRANS_LAND_AUCTION        = 1102;
const S32 TRANS_CLASSIFIED_CHARGE   = 1103;

// Codes 2000-2999 reserved for recurrent charges
const S32 TRANS_OBJECT_TAX          = 2000;
const S32 TRANS_LAND_TAX            = 2001;
const S32 TRANS_LIGHT_TAX           = 2002;
const S32 TRANS_PARCEL_DIR_FEE      = 2003;
const S32 TRANS_GROUP_TAX           = 2004; // Taxes incurred as part of group membership
const S32 TRANS_CLASSIFIED_RENEW    = 2005;

// Codes 2100-2999 reserved for recurring billing services
// New codes can be created through an admin interface so may not
// automatically end up in the list below :-(
// So make sure you check the transaction_description table
const S32 TRANS_RECURRING_GENERIC  = 2100;

// Codes 3000-3999 reserved for inventory transactions
const S32 TRANS_GIVE_INVENTORY      = 3000;

// Codes 5000-5999 reserved for transfers between users
const S32 TRANS_OBJECT_SALE         = 5000;
const S32 TRANS_GIFT                = 5001;
const S32 TRANS_LAND_SALE           = 5002;
const S32 TRANS_REFER_BONUS         = 5003;
const S32 TRANS_INVENTORY_SALE      = 5004;
const S32 TRANS_REFUND_PURCHASE     = 5005;
const S32 TRANS_LAND_PASS_SALE      = 5006;
const S32 TRANS_DWELL_BONUS         = 5007;
const S32 TRANS_PAY_OBJECT          = 5008;
const S32 TRANS_OBJECT_PAYS         = 5009;

// Codes 5100-5999 reserved for recurring billing transfers between users
// New codes can be created through an admin interface so may not
// automatically end up in the list below :-(
// So make sure you check the transaction_description table
const S32 TRANS_RECURRING_GENERIC_USER  = 5100;

// Codes 6000-6999 reserved for group transactions
//const S32 TRANS_GROUP_JOIN            = 6000;  //reserved for future use
const S32 TRANS_GROUP_LAND_DEED     = 6001;
const S32 TRANS_GROUP_OBJECT_DEED   = 6002;
const S32 TRANS_GROUP_LIABILITY     = 6003;
const S32 TRANS_GROUP_DIVIDEND      = 6004;
const S32 TRANS_MEMBERSHIP_DUES     = 6005;

// Codes 8000-8999 reserved for one-type credits
const S32 TRANS_OBJECT_RELEASE      = 8000;
const S32 TRANS_LAND_RELEASE        = 8001;
const S32 TRANS_OBJECT_DELETE       = 8002;
const S32 TRANS_OBJECT_PUBLIC_DECAY = 8003;
const S32 TRANS_OBJECT_PUBLIC_DELETE= 8004;

// Code 9000-9099 reserved for usertool transactions
const S32 TRANS_LINDEN_ADJUSTMENT   = 9000;
const S32 TRANS_LINDEN_GRANT        = 9001;
const S32 TRANS_LINDEN_PENALTY      = 9002;
const S32 TRANS_EVENT_FEE           = 9003;
const S32 TRANS_EVENT_PRIZE         = 9004;

// These must match entries in money_stipend table in MySQL
// Codes 10000-10999 reserved for stipend credits
const S32 TRANS_STIPEND_BASIC       = 10000;
const S32 TRANS_STIPEND_DEVELOPER   = 10001;
const S32 TRANS_STIPEND_ALWAYS      = 10002;
const S32 TRANS_STIPEND_DAILY       = 10003;
const S32 TRANS_STIPEND_RATING      = 10004;
const S32 TRANS_STIPEND_DELTA       = 10005;

#endif