Skip to content

Commit e5c46da

Browse files
committed
__int__ -> __init__,format
1 parent 8af91ef commit e5c46da

39 files changed

+86
-87
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
class AgreementInfo(object):
5-
def __int__(self):
5+
def __init__(self):
66
self.__auth_state = None
77
self.__user_login_id = None
88

@@ -32,4 +32,4 @@ def __to_ams_dict(self):
3232
params['authState'] = self.__auth_state
3333
if self.__user_login_id is not None:
3434
params['userLoginId'] = self.__user_login_id
35-
return params
35+
return params

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from enum import Enum, unique
22

3-
class CancellationType(Enum):
4-
53

4+
class CancellationType(Enum):
65
CANCEL = "CANCEL"
76
TERMINATE = "TERMINATE"
87

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ def __init__(self):
1616
self.__brand = None
1717
self.__card_issuer = None
1818
self.__country_issue = None
19-
self.__inst_user_name = None #type: UserName
19+
self.__inst_user_name = None # type: UserName
2020
self.__expiry_year = None
2121
self.__expiry_month = None
22-
self.__billing_address = None #type: Address
22+
self.__billing_address = None # type: Address
2323
self.__mask = None
2424
self.__last4 = None
2525
self.__payment_method_detail_metadata = None

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class CouponPaymentMethodDetail(object):
1010

1111
def __init__(self):
1212
self.__coupon_id = None
13-
self.__available_amount = None #type: Amount
13+
self.__available_amount = None # type: Amount
1414
self.__coupon_name = None
1515
self.__coupon_description = None
1616
self.__coupon_expire_time = None

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class DiscountPaymentMethodDetail(object):
1010

1111
def __init__(self):
1212
self.__discount_id = None
13-
self.__available_amount = None #type: Amount
13+
self.__available_amount = None # type: Amount
1414
self.__discount_name = None
1515
self.__discount_description = None
1616
self.__payment_method_detail_metadata = None

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def __init__(self):
1616
self.__store_terminal_id = None
1717
self.__store_terminal_request_time = None
1818
self.__extend_info = None
19-
self.__browser_info = None # type: BrowserInfo
19+
self.__browser_info = None # type: BrowserInfo
2020
self.__color_depth = None
2121
self.__screen_height = None
2222
self.__screen_width = None

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def __init__(self):
1010
self.__goods_name = None
1111
self.__goods_category = None
1212
self.__goods_brand = None
13-
self.__goods_unit_amount = None # type:Amount
13+
self.__goods_unit_amount = None # type:Amount
1414
self.__goods_quantity = None
1515
self.__goods_sku_name = None
1616
self.__delivery_method_type = None # type:DeliveryMethodType

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
class Installment(object):
88
def __init__(self):
9-
self.__support_card_brands = None #type: list[SupportCardBrand]
10-
self.__plans = None #type: list[Plan]
9+
self.__support_card_brands = None # type: list[SupportCardBrand]
10+
self.__plans = None # type: list[Plan]
1111

1212
@property
1313
def support_card_brands(self):
@@ -39,4 +39,3 @@ def parse_rsp_body(self, installment_body):
3939
for plan in self.plans:
4040
plan.parse_rsp_body(plan)
4141
self.plans = plan
42-

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def __init__(self):
99
self.__merchant_mcc = None
1010
self.__merchant_name = None
1111
self.__merchant_display_name = None
12-
self.__merchant_address = None # type: Address
12+
self.__merchant_address = None # type: Address
1313
self.__merchant_register_date = None
1414
self.__merchant_type = None # type: MerchantType
1515
self.__store = None

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ def __init__(self):
99
self.__reference_merchant_id = None
1010
self.__merchant_display_name = None
1111
self.__merchant_mcc = None
12-
self.__logo = None #type: Logo
13-
self.__websites = None #type: list[WebSite]
14-
self.__merchant_address = None #type: Address
15-
self.__registration_detail = None #type: RegistrationDetail
12+
self.__logo = None # type: Logo
13+
self.__websites = None # type: list[WebSite]
14+
self.__merchant_address = None # type: Address
15+
self.__registration_detail = None # type: RegistrationDetail
1616

1717
@property
1818
def reference_merchant_id(self):

0 commit comments

Comments
 (0)