Skip to content

Commit 3866332

Browse files
add license and billing enums
1 parent c50d84b commit 3866332

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

steam/enums/common.py

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,53 @@ class EPurchaseResultDetail(SteamIntEnum):
896896
PaymentMethodNotSupportedForProduct = 83
897897

898898

899+
class ELicenseFlags(SteamIntEnum):
900+
NONE = 0
901+
Renew = 0x01
902+
RenewalFailed = 0x02
903+
Pending = 0x04
904+
Expired = 0x08
905+
CancelledByUser = 0x10
906+
CancelledByAdmin = 0x20
907+
LowViolenceContent = 0x40
908+
ImportedFromSteam2 = 0x80
909+
ForceRunRestriction = 0x100
910+
RegionRestrictionExpired = 0x200
911+
CancelledByFriendlyFraudLock = 0x400
912+
NotActivated = 0x800
913+
914+
915+
class ELicenseType(SteamIntEnum):
916+
NoLicense = 0
917+
SinglePurchase = 1
918+
SinglePurchaseLimitedUse = 2
919+
RecurringCharge = 3
920+
RecurringChargeLimitedUse = 4
921+
RecurringChargeLimitedUseWithOverages = 5
922+
RecurringOption = 6
923+
LimitedUseDelayedActivation = 7
924+
925+
926+
class EBillingType(SteamIntEnum):
927+
NoCost = 0
928+
BillOnceOnly = 1
929+
BillMonthly = 2
930+
ProofOfPrepurchaseOnly = 3
931+
GuestPass = 4
932+
HardwarePromo = 5
933+
Gift = 6
934+
AutoGrant = 7
935+
OEMTicket = 8
936+
RecurringOption = 9
937+
BillOnceOrCDKey = 10
938+
Repurchaseable = 11
939+
FreeOnDemand = 12
940+
Rental = 13
941+
CommercialLicense = 14
942+
FreeCommercialLicense = 15
943+
NumBillingTypes = 16
944+
945+
899946
# Do not remove
900947
from enum import EnumMeta
901948

0 commit comments

Comments
 (0)