Skip to content

Commit ce43c2a

Browse files
authored
Merge pull request #55 from alipay/sdk-automation/20260107-0545
Update all services
2 parents eaa142e + bf607b4 commit ce43c2a

File tree

1 file changed

+93
-18
lines changed

1 file changed

+93
-18
lines changed

com/alipay/ams/api/model/card_brand.py

Lines changed: 93 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,43 @@
33
class CardBrand(Enum):
44
"""CardBrand枚举类"""
55

6-
VISA = "VISA"
7-
MASTERCARD = "MASTERCARD"
8-
MAESTRO = "MAESTRO"
96
AMEX = "AMEX"
10-
JCB = "JCB"
7+
BC = "BC"
8+
CARNET = "CARNET"
9+
CARTES_BANCAIRES = "CARTES_BANCAIRES"
10+
CITI = "CITI"
11+
CUP = "CUP"
1112
DINERS = "DINERS"
1213
DISCOVER = "DISCOVER"
13-
CUP = "CUP"
14-
MIR = "MIR"
1514
ELO = "ELO"
15+
GWANGJUBANK = "GWANGJUBANK"
1616
HIPERCARD = "HIPERCARD"
17+
HYUNDAI = "HYUNDAI"
18+
IBK_BC = "IBK_BC"
19+
JCB = "JCB"
20+
JEJUBANK = "JEJUBANK"
21+
JEONBUKBANK = "JEONBUKBANK"
22+
KAKAOBANK = "KAKAOBANK"
23+
KBANK = "KBANK"
24+
KDBBANK = "KDBBANK"
25+
KEBHANA = "KEBHANA"
26+
KOOKMIN = "KOOKMIN"
27+
LOTTE = "LOTTE"
28+
MAESTRO = "MAESTRO"
29+
MASTERCARD = "MASTERCARD"
30+
MIR = "MIR"
31+
NONGHYUP = "NONGHYUP"
32+
POST = "POST"
33+
SAEMAUL = "SAEMAUL"
34+
SAMSUNG = "SAMSUNG"
35+
SAVINGBANK = "SAVINGBANK"
36+
SHINHAN = "SHINHAN"
37+
SHINHYEOP = "SHINHYEOP"
38+
SUHYEOP = "SUHYEOP"
39+
TOSSBANK = "TOSSBANK"
1740
TROY = "TROY"
41+
VISA = "VISA"
42+
WOORI = "WOORI"
1843

1944
def to_ams_dict(self) -> str:
2045
return self.name
@@ -24,28 +49,78 @@ def value_of(value):
2449
if not value:
2550
return None
2651

27-
if CardBrand.VISA.value == value:
28-
return CardBrand.VISA
29-
if CardBrand.MASTERCARD.value == value:
30-
return CardBrand.MASTERCARD
31-
if CardBrand.MAESTRO.value == value:
32-
return CardBrand.MAESTRO
3352
if CardBrand.AMEX.value == value:
3453
return CardBrand.AMEX
35-
if CardBrand.JCB.value == value:
36-
return CardBrand.JCB
54+
if CardBrand.BC.value == value:
55+
return CardBrand.BC
56+
if CardBrand.CARNET.value == value:
57+
return CardBrand.CARNET
58+
if CardBrand.CARTES_BANCAIRES.value == value:
59+
return CardBrand.CARTES_BANCAIRES
60+
if CardBrand.CITI.value == value:
61+
return CardBrand.CITI
62+
if CardBrand.CUP.value == value:
63+
return CardBrand.CUP
3764
if CardBrand.DINERS.value == value:
3865
return CardBrand.DINERS
3966
if CardBrand.DISCOVER.value == value:
4067
return CardBrand.DISCOVER
41-
if CardBrand.CUP.value == value:
42-
return CardBrand.CUP
43-
if CardBrand.MIR.value == value:
44-
return CardBrand.MIR
4568
if CardBrand.ELO.value == value:
4669
return CardBrand.ELO
70+
if CardBrand.GWANGJUBANK.value == value:
71+
return CardBrand.GWANGJUBANK
4772
if CardBrand.HIPERCARD.value == value:
4873
return CardBrand.HIPERCARD
74+
if CardBrand.HYUNDAI.value == value:
75+
return CardBrand.HYUNDAI
76+
if CardBrand.IBK_BC.value == value:
77+
return CardBrand.IBK_BC
78+
if CardBrand.JCB.value == value:
79+
return CardBrand.JCB
80+
if CardBrand.JEJUBANK.value == value:
81+
return CardBrand.JEJUBANK
82+
if CardBrand.JEONBUKBANK.value == value:
83+
return CardBrand.JEONBUKBANK
84+
if CardBrand.KAKAOBANK.value == value:
85+
return CardBrand.KAKAOBANK
86+
if CardBrand.KBANK.value == value:
87+
return CardBrand.KBANK
88+
if CardBrand.KDBBANK.value == value:
89+
return CardBrand.KDBBANK
90+
if CardBrand.KEBHANA.value == value:
91+
return CardBrand.KEBHANA
92+
if CardBrand.KOOKMIN.value == value:
93+
return CardBrand.KOOKMIN
94+
if CardBrand.LOTTE.value == value:
95+
return CardBrand.LOTTE
96+
if CardBrand.MAESTRO.value == value:
97+
return CardBrand.MAESTRO
98+
if CardBrand.MASTERCARD.value == value:
99+
return CardBrand.MASTERCARD
100+
if CardBrand.MIR.value == value:
101+
return CardBrand.MIR
102+
if CardBrand.NONGHYUP.value == value:
103+
return CardBrand.NONGHYUP
104+
if CardBrand.POST.value == value:
105+
return CardBrand.POST
106+
if CardBrand.SAEMAUL.value == value:
107+
return CardBrand.SAEMAUL
108+
if CardBrand.SAMSUNG.value == value:
109+
return CardBrand.SAMSUNG
110+
if CardBrand.SAVINGBANK.value == value:
111+
return CardBrand.SAVINGBANK
112+
if CardBrand.SHINHAN.value == value:
113+
return CardBrand.SHINHAN
114+
if CardBrand.SHINHYEOP.value == value:
115+
return CardBrand.SHINHYEOP
116+
if CardBrand.SUHYEOP.value == value:
117+
return CardBrand.SUHYEOP
118+
if CardBrand.TOSSBANK.value == value:
119+
return CardBrand.TOSSBANK
49120
if CardBrand.TROY.value == value:
50121
return CardBrand.TROY
122+
if CardBrand.VISA.value == value:
123+
return CardBrand.VISA
124+
if CardBrand.WOORI.value == value:
125+
return CardBrand.WOORI
51126
return None

0 commit comments

Comments
 (0)