Skip to content

Commit fae23fd

Browse files
committed
fix
1 parent 6dcce30 commit fae23fd

File tree

6 files changed

+15
-12
lines changed

6 files changed

+15
-12
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class TransactionStatusType(Enum):
99
FAIL = "FAIL"
1010
PROCESSING = "PROCESSING"
1111
CANCELLED = "CANCELLED"
12+
PENDING = "PENDING"
1213

1314
def to_ams_dict(self):
1415
return self.name
@@ -26,5 +27,7 @@ def value_of(value):
2627
return TransactionStatusType.PROCESSING
2728
elif TransactionStatusType.CANCELLED.value == value:
2829
return TransactionStatusType.CANCELLED
30+
elif TransactionStatusType.PENDING.value == value:
31+
return TransactionStatusType.PENDING
2932
else:
3033
return None

com/alipay/ams/api/request/pay/alipay_create_session_request.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,31 +109,31 @@ def env(self):
109109

110110
@env.setter
111111
def env(self, value):
112-
self.__env = value;
112+
self.__env = value
113113

114114
@property
115115
def merchant_region(self):
116116
return self.__merchant_region
117117

118118
@merchant_region.setter
119119
def merchant_region(self, value):
120-
self.__merchant_region = value;
120+
self.__merchant_region = value
121121

122122
@property
123123
def credit_pay_plan(self):
124124
return self.__credit_pay_plan
125125

126126
@credit_pay_plan.setter
127127
def credit_pay_plan(self, value):
128-
self.__credit_pay_plan = value;
128+
self.__credit_pay_plan = value
129129

130130
@property
131131
def enable_installment_collection(self):
132132
return self.__enable_installment_collection
133133

134134
@enable_installment_collection.setter
135135
def enable_installment_collection(self, value):
136-
self.__enable_installment_collection = value;
136+
self.__enable_installment_collection = value
137137

138138
def to_ams_json(self):
139139
json_str = json.dumps(obj=self.__to_ams_dict(), default=lambda o: o.to_ams_dict(), indent=3)

com/alipay/ams/api/request/pay/alipay_pay_consult_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def user_region(self):
113113

114114
@user_region.setter
115115
def user_region(self, value):
116-
self.__user_region = value;
116+
self.__user_region = value
117117

118118
@property
119119
def payment_factor(self):

com/alipay/ams/api/request/pay/alipay_pay_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def env(self):
166166

167167
@env.setter
168168
def env(self, value):
169-
self.__env = value;
169+
self.__env = value
170170

171171
@property
172172
def merchant_account_id(self):

com/alipay/ams/api/response/pay/alipay_capture_response.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(self, rsp_body):
1414
self.__payment_id = None
1515
self.__capture_amount = None
1616
self.__capture_time = None
17-
self.__acquirer__reference__no = None
17+
self.__acquirer_reference_no = None
1818
self.__parse_rsp_body(rsp_body)
1919

2020
@property
@@ -39,7 +39,7 @@ def capture_time(self):
3939

4040
@property
4141
def acquirer__reference__no(self):
42-
return self.__acquirer__reference__no
42+
return self.__acquirer_reference_no
4343

4444
def __parse_rsp_body(self, rsp_body):
4545
response = super(AlipayCaptureResponse, self).parse_rsp_body(rsp_body)
@@ -56,4 +56,4 @@ def __parse_rsp_body(self, rsp_body):
5656
if 'captureTime' in response:
5757
self.__capture_time = response['captureTime']
5858
if 'acquirerReferenceNo' in response:
59-
self.__acquirer__reference__no = response['acquirerReferenceNo']
59+
self.__acquirer_reference_no = response['acquirerReferenceNo']

com/alipay/ams/api/response/pay/alipay_create_session_response.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def payment_session_data(self):
1515
return self.__payment_session_data
1616

1717
@property
18-
def payment_session_expiry_Time(self):
19-
return self.__payment_session_expiry_Time
18+
def payment_session_expiry_time(self):
19+
return self.__payment_session_expiry_time
2020

2121
@property
2222
def payment_session_id(self):
@@ -27,6 +27,6 @@ def __parse_rsp_body(self, rsp_body):
2727
if 'paymentSessionData' in rsp_json:
2828
self.__payment_session_data = rsp_json['paymentSessionData']
2929
if 'paymentSessionExpiryTime' in rsp_json:
30-
self.__payment_session_expiry_Time = rsp_json['paymentSessionExpiryTime']
30+
self.__payment_session_expiry_time = rsp_json['paymentSessionExpiryTime']
3131
if 'paymentSessionId' in rsp_json:
3232
self.__payment_session_id = rsp_json['paymentSessionId']

0 commit comments

Comments
 (0)