Skip to main content

steam_enums/
epaymentmethod.rs

1#![allow(non_camel_case_types)]
2#![allow(non_upper_case_globals)]
3#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
4#[repr(i32)]
5pub enum EPaymentMethod {
6    None = 0,
7    ActivationCode = 1,
8    CreditCard = 2,
9    Giropay = 3,
10    PayPal = 4,
11    Ideal = 5,
12    PaySafeCard = 6,
13    Sofort = 7,
14    GuestPass = 8,
15    WebMoney = 9,
16    MoneyBookers = 10,
17    AliPay = 11,
18    Yandex = 12,
19    Kiosk = 13,
20    Qiwi = 14,
21    GameStop = 15,
22    HardwarePromo = 16,
23    MoPay = 17,
24    BoletoBancario = 18,
25    BoaCompraGold = 19,
26    BancoDoBrasilOnline = 20,
27    ItauOnline = 21,
28    BradescoOnline = 22,
29    Pagseguro = 23,
30    VisaBrazil = 24,
31    AmexBrazil = 25,
32    Aura = 26,
33    Hipercard = 27,
34    MastercardBrazil = 28,
35    DinersCardBrazil = 29,
36    AuthorizedDevice = 30,
37    MOLPoints = 31,
38    ClickAndBuy = 32,
39    Beeline = 33,
40    Konbini = 34,
41    EClubPoints = 35,
42    CreditCardJapan = 36,
43    BankTransferJapan = 37,
44    PayEasy = 38,
45    Zong = 39,
46    CultureVoucher = 40,
47    BookVoucher = 41,
48    HappymoneyVoucher = 42,
49    ConvenientStoreVoucher = 43,
50    GameVoucher = 44,
51    Multibanco = 45,
52    Payshop = 46,
53    MaestroBoaCompra = 47,
54    OXXO = 48,
55    ToditoCash = 49,
56    Carnet = 50,
57    SPEI = 51,
58    ThreePay = 52,
59    IsBank = 53,
60    Garanti = 54,
61    Akbank = 55,
62    YapiKredi = 56,
63    Halkbank = 57,
64    BankAsya = 58,
65    Finansbank = 59,
66    DenizBank = 60,
67    PTT = 61,
68    CashU = 62,
69    SantanderRio = 63,
70    AutoGrant = 64,
71    WebMoneyJapan = 65,
72    OneCard = 66,
73    PSE = 67,
74    Exito = 68,
75    Efecty = 69,
76    Paloto = 70,
77    PinValidda = 71,
78    MangirKart = 72,
79    BancoCreditoDePeru = 73,
80    BBVAContinental = 74,
81    SafetyPay = 75,
82    PagoEfectivo = 76,
83    Trustly = 77,
84    UnionPay = 78,
85    BitCoin = 79,
86    LicensedSite = 80,
87    BitCash = 81,
88    NetCash = 82,
89    Nanaco = 83,
90    Tenpay = 84,
91    WeChat = 85,
92    CashonDelivery = 86,
93    CreditCardNodwin = 87,
94    DebitCardNodwin = 88,
95    NetBankingNodwin = 89,
96    CashCardNodwin = 90,
97    WalletNodwin = 91,
98    MobileDegica = 92,
99    Naranja = 93,
100    Cencosud = 94,
101    Cabal = 95,
102    PagoFacil = 96,
103    Rapipago = 97,
104    BancoNacionaldeCostaRica = 98,
105    BancoPoplar = 99,
106    RedPagos = 100,
107    SPE = 101,
108    Multicaja = 102,
109    RedCompra = 103,
110    ZiraatBank = 104,
111    VakiflarBank = 105,
112    KuveytTurkBank = 106,
113    EkonomiBank = 107,
114    Pichincha = 108,
115    PichinchaCash = 109,
116    Przelewy24 = 110,
117    Trustpay = 111,
118    POLi = 112,
119    MercadoPago = 113,
120    PayU = 114,
121    VTCPayWallet = 115,
122    MrCash = 116,
123    EPS = 117,
124    Interac = 118,
125    VTCPayCards = 119,
126    VTCPayOnlineBanking = 120,
127    VisaElectronBoaCompra = 121,
128    CafeFunded = 122,
129    OCA = 123,
130    Lider = 124,
131    WebMoneySteamCardJapan = 125,
132    WebMoneySteamCardTopUpJapan = 126,
133    Toss = 127,
134    Wallet = 128,
135    Valve = 129,
136    MasterComp = 130,
137    Promotional = 131,
138    MasterSubscription = 134,
139    Payco = 135,
140    MobileWalletJapan = 136,
141    BoletoFlash = 137,
142    PIX = 138,
143    GCash = 139,
144    KakaoPay = 140,
145    Dana = 141,
146    TrueMoney = 142,
147    TouchnGo = 143,
148    LinePay = 144,
149    MerPay = 145,
150    PayPay = 146,
151    AlfaClick = 147,
152    Sberbank = 148,
153    YooMoney = 149,
154    Tinkoff = 150,
155    CashInCIS = 151,
156    AuPAY = 152,
157    AliPayHK = 153,
158    NaverPay = 154,
159    Linkaja = 155,
160    ShopeePay = 156,
161    GrabPay = 157,
162    PayNow = 158,
163    OnlineBankingThailand = 159,
164    CashOptionsThailand = 160,
165    OEMTicket = 256,
166    Split = 512,
167    Complimentary = 1024,
168    FamilyGroup = 1025,
169}
170
171impl EPaymentMethod {
172    pub fn from_i32(val: i32) -> Option<Self> {
173        match val {
174            x if x == Self::None as i32 => Some(Self::None),
175            x if x == Self::ActivationCode as i32 => Some(Self::ActivationCode),
176            x if x == Self::CreditCard as i32 => Some(Self::CreditCard),
177            x if x == Self::Giropay as i32 => Some(Self::Giropay),
178            x if x == Self::PayPal as i32 => Some(Self::PayPal),
179            x if x == Self::Ideal as i32 => Some(Self::Ideal),
180            x if x == Self::PaySafeCard as i32 => Some(Self::PaySafeCard),
181            x if x == Self::Sofort as i32 => Some(Self::Sofort),
182            x if x == Self::GuestPass as i32 => Some(Self::GuestPass),
183            x if x == Self::WebMoney as i32 => Some(Self::WebMoney),
184            x if x == Self::MoneyBookers as i32 => Some(Self::MoneyBookers),
185            x if x == Self::AliPay as i32 => Some(Self::AliPay),
186            x if x == Self::Yandex as i32 => Some(Self::Yandex),
187            x if x == Self::Kiosk as i32 => Some(Self::Kiosk),
188            x if x == Self::Qiwi as i32 => Some(Self::Qiwi),
189            x if x == Self::GameStop as i32 => Some(Self::GameStop),
190            x if x == Self::HardwarePromo as i32 => Some(Self::HardwarePromo),
191            x if x == Self::MoPay as i32 => Some(Self::MoPay),
192            x if x == Self::BoletoBancario as i32 => Some(Self::BoletoBancario),
193            x if x == Self::BoaCompraGold as i32 => Some(Self::BoaCompraGold),
194            x if x == Self::BancoDoBrasilOnline as i32 => Some(Self::BancoDoBrasilOnline),
195            x if x == Self::ItauOnline as i32 => Some(Self::ItauOnline),
196            x if x == Self::BradescoOnline as i32 => Some(Self::BradescoOnline),
197            x if x == Self::Pagseguro as i32 => Some(Self::Pagseguro),
198            x if x == Self::VisaBrazil as i32 => Some(Self::VisaBrazil),
199            x if x == Self::AmexBrazil as i32 => Some(Self::AmexBrazil),
200            x if x == Self::Aura as i32 => Some(Self::Aura),
201            x if x == Self::Hipercard as i32 => Some(Self::Hipercard),
202            x if x == Self::MastercardBrazil as i32 => Some(Self::MastercardBrazil),
203            x if x == Self::DinersCardBrazil as i32 => Some(Self::DinersCardBrazil),
204            x if x == Self::AuthorizedDevice as i32 => Some(Self::AuthorizedDevice),
205            x if x == Self::MOLPoints as i32 => Some(Self::MOLPoints),
206            x if x == Self::ClickAndBuy as i32 => Some(Self::ClickAndBuy),
207            x if x == Self::Beeline as i32 => Some(Self::Beeline),
208            x if x == Self::Konbini as i32 => Some(Self::Konbini),
209            x if x == Self::EClubPoints as i32 => Some(Self::EClubPoints),
210            x if x == Self::CreditCardJapan as i32 => Some(Self::CreditCardJapan),
211            x if x == Self::BankTransferJapan as i32 => Some(Self::BankTransferJapan),
212            x if x == Self::PayEasy as i32 => Some(Self::PayEasy),
213            x if x == Self::Zong as i32 => Some(Self::Zong),
214            x if x == Self::CultureVoucher as i32 => Some(Self::CultureVoucher),
215            x if x == Self::BookVoucher as i32 => Some(Self::BookVoucher),
216            x if x == Self::HappymoneyVoucher as i32 => Some(Self::HappymoneyVoucher),
217            x if x == Self::ConvenientStoreVoucher as i32 => Some(Self::ConvenientStoreVoucher),
218            x if x == Self::GameVoucher as i32 => Some(Self::GameVoucher),
219            x if x == Self::Multibanco as i32 => Some(Self::Multibanco),
220            x if x == Self::Payshop as i32 => Some(Self::Payshop),
221            x if x == Self::MaestroBoaCompra as i32 => Some(Self::MaestroBoaCompra),
222            x if x == Self::OXXO as i32 => Some(Self::OXXO),
223            x if x == Self::ToditoCash as i32 => Some(Self::ToditoCash),
224            x if x == Self::Carnet as i32 => Some(Self::Carnet),
225            x if x == Self::SPEI as i32 => Some(Self::SPEI),
226            x if x == Self::ThreePay as i32 => Some(Self::ThreePay),
227            x if x == Self::IsBank as i32 => Some(Self::IsBank),
228            x if x == Self::Garanti as i32 => Some(Self::Garanti),
229            x if x == Self::Akbank as i32 => Some(Self::Akbank),
230            x if x == Self::YapiKredi as i32 => Some(Self::YapiKredi),
231            x if x == Self::Halkbank as i32 => Some(Self::Halkbank),
232            x if x == Self::BankAsya as i32 => Some(Self::BankAsya),
233            x if x == Self::Finansbank as i32 => Some(Self::Finansbank),
234            x if x == Self::DenizBank as i32 => Some(Self::DenizBank),
235            x if x == Self::PTT as i32 => Some(Self::PTT),
236            x if x == Self::CashU as i32 => Some(Self::CashU),
237            x if x == Self::SantanderRio as i32 => Some(Self::SantanderRio),
238            x if x == Self::AutoGrant as i32 => Some(Self::AutoGrant),
239            x if x == Self::WebMoneyJapan as i32 => Some(Self::WebMoneyJapan),
240            x if x == Self::OneCard as i32 => Some(Self::OneCard),
241            x if x == Self::PSE as i32 => Some(Self::PSE),
242            x if x == Self::Exito as i32 => Some(Self::Exito),
243            x if x == Self::Efecty as i32 => Some(Self::Efecty),
244            x if x == Self::Paloto as i32 => Some(Self::Paloto),
245            x if x == Self::PinValidda as i32 => Some(Self::PinValidda),
246            x if x == Self::MangirKart as i32 => Some(Self::MangirKart),
247            x if x == Self::BancoCreditoDePeru as i32 => Some(Self::BancoCreditoDePeru),
248            x if x == Self::BBVAContinental as i32 => Some(Self::BBVAContinental),
249            x if x == Self::SafetyPay as i32 => Some(Self::SafetyPay),
250            x if x == Self::PagoEfectivo as i32 => Some(Self::PagoEfectivo),
251            x if x == Self::Trustly as i32 => Some(Self::Trustly),
252            x if x == Self::UnionPay as i32 => Some(Self::UnionPay),
253            x if x == Self::BitCoin as i32 => Some(Self::BitCoin),
254            x if x == Self::LicensedSite as i32 => Some(Self::LicensedSite),
255            x if x == Self::BitCash as i32 => Some(Self::BitCash),
256            x if x == Self::NetCash as i32 => Some(Self::NetCash),
257            x if x == Self::Nanaco as i32 => Some(Self::Nanaco),
258            x if x == Self::Tenpay as i32 => Some(Self::Tenpay),
259            x if x == Self::WeChat as i32 => Some(Self::WeChat),
260            x if x == Self::CashonDelivery as i32 => Some(Self::CashonDelivery),
261            x if x == Self::CreditCardNodwin as i32 => Some(Self::CreditCardNodwin),
262            x if x == Self::DebitCardNodwin as i32 => Some(Self::DebitCardNodwin),
263            x if x == Self::NetBankingNodwin as i32 => Some(Self::NetBankingNodwin),
264            x if x == Self::CashCardNodwin as i32 => Some(Self::CashCardNodwin),
265            x if x == Self::WalletNodwin as i32 => Some(Self::WalletNodwin),
266            x if x == Self::MobileDegica as i32 => Some(Self::MobileDegica),
267            x if x == Self::Naranja as i32 => Some(Self::Naranja),
268            x if x == Self::Cencosud as i32 => Some(Self::Cencosud),
269            x if x == Self::Cabal as i32 => Some(Self::Cabal),
270            x if x == Self::PagoFacil as i32 => Some(Self::PagoFacil),
271            x if x == Self::Rapipago as i32 => Some(Self::Rapipago),
272            x if x == Self::BancoNacionaldeCostaRica as i32 => Some(Self::BancoNacionaldeCostaRica),
273            x if x == Self::BancoPoplar as i32 => Some(Self::BancoPoplar),
274            x if x == Self::RedPagos as i32 => Some(Self::RedPagos),
275            x if x == Self::SPE as i32 => Some(Self::SPE),
276            x if x == Self::Multicaja as i32 => Some(Self::Multicaja),
277            x if x == Self::RedCompra as i32 => Some(Self::RedCompra),
278            x if x == Self::ZiraatBank as i32 => Some(Self::ZiraatBank),
279            x if x == Self::VakiflarBank as i32 => Some(Self::VakiflarBank),
280            x if x == Self::KuveytTurkBank as i32 => Some(Self::KuveytTurkBank),
281            x if x == Self::EkonomiBank as i32 => Some(Self::EkonomiBank),
282            x if x == Self::Pichincha as i32 => Some(Self::Pichincha),
283            x if x == Self::PichinchaCash as i32 => Some(Self::PichinchaCash),
284            x if x == Self::Przelewy24 as i32 => Some(Self::Przelewy24),
285            x if x == Self::Trustpay as i32 => Some(Self::Trustpay),
286            x if x == Self::POLi as i32 => Some(Self::POLi),
287            x if x == Self::MercadoPago as i32 => Some(Self::MercadoPago),
288            x if x == Self::PayU as i32 => Some(Self::PayU),
289            x if x == Self::VTCPayWallet as i32 => Some(Self::VTCPayWallet),
290            x if x == Self::MrCash as i32 => Some(Self::MrCash),
291            x if x == Self::EPS as i32 => Some(Self::EPS),
292            x if x == Self::Interac as i32 => Some(Self::Interac),
293            x if x == Self::VTCPayCards as i32 => Some(Self::VTCPayCards),
294            x if x == Self::VTCPayOnlineBanking as i32 => Some(Self::VTCPayOnlineBanking),
295            x if x == Self::VisaElectronBoaCompra as i32 => Some(Self::VisaElectronBoaCompra),
296            x if x == Self::CafeFunded as i32 => Some(Self::CafeFunded),
297            x if x == Self::OCA as i32 => Some(Self::OCA),
298            x if x == Self::Lider as i32 => Some(Self::Lider),
299            x if x == Self::WebMoneySteamCardJapan as i32 => Some(Self::WebMoneySteamCardJapan),
300            x if x == Self::WebMoneySteamCardTopUpJapan as i32 => Some(Self::WebMoneySteamCardTopUpJapan),
301            x if x == Self::Toss as i32 => Some(Self::Toss),
302            x if x == Self::Wallet as i32 => Some(Self::Wallet),
303            x if x == Self::Valve as i32 => Some(Self::Valve),
304            x if x == Self::MasterComp as i32 => Some(Self::MasterComp),
305            x if x == Self::Promotional as i32 => Some(Self::Promotional),
306            x if x == Self::MasterSubscription as i32 => Some(Self::MasterSubscription),
307            x if x == Self::Payco as i32 => Some(Self::Payco),
308            x if x == Self::MobileWalletJapan as i32 => Some(Self::MobileWalletJapan),
309            x if x == Self::BoletoFlash as i32 => Some(Self::BoletoFlash),
310            x if x == Self::PIX as i32 => Some(Self::PIX),
311            x if x == Self::GCash as i32 => Some(Self::GCash),
312            x if x == Self::KakaoPay as i32 => Some(Self::KakaoPay),
313            x if x == Self::Dana as i32 => Some(Self::Dana),
314            x if x == Self::TrueMoney as i32 => Some(Self::TrueMoney),
315            x if x == Self::TouchnGo as i32 => Some(Self::TouchnGo),
316            x if x == Self::LinePay as i32 => Some(Self::LinePay),
317            x if x == Self::MerPay as i32 => Some(Self::MerPay),
318            x if x == Self::PayPay as i32 => Some(Self::PayPay),
319            x if x == Self::AlfaClick as i32 => Some(Self::AlfaClick),
320            x if x == Self::Sberbank as i32 => Some(Self::Sberbank),
321            x if x == Self::YooMoney as i32 => Some(Self::YooMoney),
322            x if x == Self::Tinkoff as i32 => Some(Self::Tinkoff),
323            x if x == Self::CashInCIS as i32 => Some(Self::CashInCIS),
324            x if x == Self::AuPAY as i32 => Some(Self::AuPAY),
325            x if x == Self::AliPayHK as i32 => Some(Self::AliPayHK),
326            x if x == Self::NaverPay as i32 => Some(Self::NaverPay),
327            x if x == Self::Linkaja as i32 => Some(Self::Linkaja),
328            x if x == Self::ShopeePay as i32 => Some(Self::ShopeePay),
329            x if x == Self::GrabPay as i32 => Some(Self::GrabPay),
330            x if x == Self::PayNow as i32 => Some(Self::PayNow),
331            x if x == Self::OnlineBankingThailand as i32 => Some(Self::OnlineBankingThailand),
332            x if x == Self::CashOptionsThailand as i32 => Some(Self::CashOptionsThailand),
333            x if x == Self::OEMTicket as i32 => Some(Self::OEMTicket),
334            x if x == Self::Split as i32 => Some(Self::Split),
335            x if x == Self::Complimentary as i32 => Some(Self::Complimentary),
336            x if x == Self::FamilyGroup as i32 => Some(Self::FamilyGroup),
337            _ => None,
338        }
339    }
340}