forked from makazeu/steam-key
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EPurchaseResult.js
143 lines (142 loc) · 4.34 KB
/
EPurchaseResult.js
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/**
* @enum EPurchaseResultDetail
*/
module.exports = {
"NoDetail": 0,
"AVSFailure": 1,
"InsufficientFunds": 2,
"ContactSupport": 3,
"Timeout": 4,
"InvalidPackage": 5,
"InvalidPaymentMethod": 6,
"InvalidData": 7,
"OthersInProgress": 8,
"AlreadyPurchased": 9,
"WrongPrice": 10,
"FraudCheckFailed": 11,
"CancelledByUser": 12,
"RestrictedCountry": 13,
"BadActivationCode": 14,
"DuplicateActivationCode": 15,
"UseOtherPaymentMethod": 16,
"UseOtherFunctionSource": 17,
"InvalidShippingAddress": 18,
"RegionNotSupported": 19,
"AcctIsBlocked": 20,
"AcctNotVerified": 21,
"InvalidAccount": 22,
"StoreBillingCountryMismatch": 23,
"DoesNotOwnRequiredApp": 24,
"CanceledByNewTransaction": 25,
"ForceCanceledPending": 26,
"FailCurrencyTransProvider": 27,
"FailedCyberCafe": 28,
"NeedsPreApproval": 29,
"PreApprovalDenied": 30,
"WalletCurrencyMismatch": 31,
"EmailNotValidated": 32,
"ExpiredCard": 33,
"TransactionExpired": 34,
"WouldExceedMaxWallet": 35,
"MustLoginPS3AppForPurchase": 36,
"CannotShipToPOBox": 37,
"InsufficientInventory": 38,
"CannotGiftShippedGoods": 39,
"CannotShipInternationally": 40,
"BillingAgreementCancelled": 41,
"InvalidCoupon": 42,
"ExpiredCoupon": 43,
"AccountLocked": 44,
"OtherAbortableInProgress": 45,
"ExceededSteamLimit": 46,
"OverlappingPackagesInCart": 47,
"NoWallet": 48,
"NoCachedPaymentMethod": 49,
"CannotRedeemCodeFromClient": 50,
"PurchaseAmountNoSupportedByProvider": 51,
"OverlappingPackagesInPendingTransaction": 52,
"RateLimited": 53,
"OwnsExcludedApp": 54,
"CreditCardBinMismatchesType": 55,
"CartValueTooHigh": 56,
"BillingAgreementAlreadyExists": 57,
"POSACodeNotActivated": 58,
"CannotShipToCountry": 59,
"HungTransactionCancelled": 60,
"PaypalInternalError": 61,
"UnknownGlobalCollectError": 62,
"InvalidTaxAddress": 63,
"PhysicalProductLimitExceeded": 64,
"PurchaseCannotBeReplayed": 65,
"DelayedCompletion": 66,
"BundleTypeCannotBeGifted": 67,
// Value-to-name mapping for convenience
"0": "NoDetail",
"1": "AVSFailure",
"2": "InsufficientFunds",
"3": "ContactSupport",
"4": "Timeout",
"5": "InvalidPackage",
"6": "InvalidPaymentMethod",
"7": "InvalidData",
"8": "OthersInProgress",
"9": "AlreadyPurchased",
"10": "WrongPrice",
"11": "FraudCheckFailed",
"12": "CancelledByUser",
"13": "RestrictedCountry",
"14": "BadActivationCode",
"15": "DuplicateActivationCode",
"16": "UseOtherPaymentMethod",
"17": "UseOtherFunctionSource",
"18": "InvalidShippingAddress",
"19": "RegionNotSupported",
"20": "AcctIsBlocked",
"21": "AcctNotVerified",
"22": "InvalidAccount",
"23": "StoreBillingCountryMismatch",
"24": "DoesNotOwnRequiredApp",
"25": "CanceledByNewTransaction",
"26": "ForceCanceledPending",
"27": "FailCurrencyTransProvider",
"28": "FailedCyberCafe",
"29": "NeedsPreApproval",
"30": "PreApprovalDenied",
"31": "WalletCurrencyMismatch",
"32": "EmailNotValidated",
"33": "ExpiredCard",
"34": "TransactionExpired",
"35": "WouldExceedMaxWallet",
"36": "MustLoginPS3AppForPurchase",
"37": "CannotShipToPOBox",
"38": "InsufficientInventory",
"39": "CannotGiftShippedGoods",
"40": "CannotShipInternationally",
"41": "BillingAgreementCancelled",
"42": "InvalidCoupon",
"43": "ExpiredCoupon",
"44": "AccountLocked",
"45": "OtherAbortableInProgress",
"46": "ExceededSteamLimit",
"47": "OverlappingPackagesInCart",
"48": "NoWallet",
"49": "NoCachedPaymentMethod",
"50": "CannotRedeemCodeFromClient",
"51": "PurchaseAmountNoSupportedByProvider",
"52": "OverlappingPackagesInPendingTransaction",
"53": "RateLimited",
"54": "OwnsExcludedApp",
"55": "CreditCardBinMismatchesType",
"56": "CartValueTooHigh",
"57": "BillingAgreementAlreadyExists",
"58": "POSACodeNotActivated",
"59": "CannotShipToCountry",
"60": "HungTransactionCancelled",
"61": "PaypalInternalError",
"62": "UnknownGlobalCollectError",
"63": "InvalidTaxAddress",
"64": "PhysicalProductLimitExceeded",
"65": "PurchaseCannotBeReplayed",
"66": "DelayedCompletion",
"67": "BundleTypeCannotBeGifted",
};