global-open-sdk-python 1.7.1__py3-none-any.whl → 1.7.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- com/alipay/ams/api/_version.py +1 -1
- com/alipay/ams/api/model/ams_inquiry_payment_result.py +151 -0
- com/alipay/ams/api/model/batch_payment_transaction.py +116 -0
- com/alipay/ams/api/model/buyer.py +3 -3
- com/alipay/ams/api/model/buyer_tax_id.py +1 -1
- com/alipay/ams/api/model/fund_transfer_info.py +101 -0
- com/alipay/ams/api/model/fund_transfer_party_address.py +82 -0
- com/alipay/ams/api/model/fund_transfer_party_name.py +52 -0
- com/alipay/ams/api/model/fund_transfer_recipient.py +71 -0
- com/alipay/ams/api/model/fund_transfer_sender.py +56 -0
- com/alipay/ams/api/model/invoice_customer_details.py +6 -6
- com/alipay/ams/api/model/order.py +1 -1
- com/alipay/ams/api/request/pay/alipay_inquire_batch_payment_request.py +42 -0
- com/alipay/ams/api/request/pay/alipay_pay_request.py +17 -0
- com/alipay/ams/api/request/pay/alipay_payment_session_request.py +17 -0
- com/alipay/ams/api/response/pay/alipay_inquire_batch_payment_response.py +204 -0
- {global_open_sdk_python-1.7.1.dist-info → global_open_sdk_python-1.7.2.dist-info}/METADATA +1 -1
- {global_open_sdk_python-1.7.1.dist-info → global_open_sdk_python-1.7.2.dist-info}/RECORD +21 -12
- {global_open_sdk_python-1.7.1.dist-info → global_open_sdk_python-1.7.2.dist-info}/WHEEL +1 -1
- {global_open_sdk_python-1.7.1.dist-info → global_open_sdk_python-1.7.2.dist-info}/licenses/LICENSE +0 -0
- {global_open_sdk_python-1.7.1.dist-info → global_open_sdk_python-1.7.2.dist-info}/top_level.txt +0 -0
com/alipay/ams/api/_version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
VERSION = "1.7.
|
|
1
|
+
VERSION = "1.7.2"
|
|
2
2
|
USER_AGENT = "global-open-sdk-python/" + VERSION
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import json
|
|
2
|
+
from com.alipay.ams.api.model.amount import Amount
|
|
3
|
+
from com.alipay.ams.api.model.payment_result_info import PaymentResultInfo
|
|
4
|
+
from com.alipay.ams.api.model.batch_payment_transaction import BatchPaymentTransaction
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class AmsInquiryPaymentResult:
|
|
10
|
+
def __init__(self):
|
|
11
|
+
|
|
12
|
+
self.__payment_request_id = None # type: str
|
|
13
|
+
self.__payment_id = None # type: str
|
|
14
|
+
self.__payment_amount = None # type: Amount
|
|
15
|
+
self.__payment_status = None # type: str
|
|
16
|
+
self.__payment_result_code = None # type: str
|
|
17
|
+
self.__payment_result_message = None # type: str
|
|
18
|
+
self.__payment_result_info = None # type: PaymentResultInfo
|
|
19
|
+
self.__transactions = None # type: [BatchPaymentTransaction]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@property
|
|
23
|
+
def payment_request_id(self):
|
|
24
|
+
"""
|
|
25
|
+
Merchant-assigned sub-order payment request ID (maximum 64 characters).
|
|
26
|
+
"""
|
|
27
|
+
return self.__payment_request_id
|
|
28
|
+
|
|
29
|
+
@payment_request_id.setter
|
|
30
|
+
def payment_request_id(self, value):
|
|
31
|
+
self.__payment_request_id = value
|
|
32
|
+
@property
|
|
33
|
+
def payment_id(self):
|
|
34
|
+
"""
|
|
35
|
+
Antom-assigned sub-order payment ID (maximum 64 characters).
|
|
36
|
+
"""
|
|
37
|
+
return self.__payment_id
|
|
38
|
+
|
|
39
|
+
@payment_id.setter
|
|
40
|
+
def payment_id(self, value):
|
|
41
|
+
self.__payment_id = value
|
|
42
|
+
@property
|
|
43
|
+
def payment_amount(self):
|
|
44
|
+
"""Gets the payment_amount of this AmsInquiryPaymentResult.
|
|
45
|
+
|
|
46
|
+
"""
|
|
47
|
+
return self.__payment_amount
|
|
48
|
+
|
|
49
|
+
@payment_amount.setter
|
|
50
|
+
def payment_amount(self, value):
|
|
51
|
+
self.__payment_amount = value
|
|
52
|
+
@property
|
|
53
|
+
def payment_status(self):
|
|
54
|
+
"""
|
|
55
|
+
Payment status (maximum 16 characters), returned on successful inquiry. SUCCESS: succeeded; FAIL: failed; PROCESSING: processing; CANCELLED: canceled; PENDING: payment complete, final result pending. SUCCESS, FAIL and CANCELLED are final; PROCESSING and PENDING are intermediate. Every sub-order in a batch shares the same payment status.
|
|
56
|
+
"""
|
|
57
|
+
return self.__payment_status
|
|
58
|
+
|
|
59
|
+
@payment_status.setter
|
|
60
|
+
def payment_status(self, value):
|
|
61
|
+
self.__payment_status = value
|
|
62
|
+
@property
|
|
63
|
+
def payment_result_code(self):
|
|
64
|
+
"""
|
|
65
|
+
Sub-order result code (maximum 64 characters), returned on successful inquiry. Applicable codes: SUCCESS (Payment succeeded); ACCESS_DENIED (Access denied); CURRENCY_NOT_SUPPORT (Currency not supported); FRAUD_REJECT (Risk control prevents further processing); INVALID_API (API invalid or inactive); INVALID_CARD (Invalid card); ORDER_NOT_EXIST (Order does not exist); INVALID_EXPIRY_DATE_FORMAT (Invalid card expiry year or month format); ISSUER_REJECTS_TRANSACTION (Issuer rejected transaction); INVALID_ACCESS_TOKEN (Access token expired, revoked, or absent); INVALID_MERCHANT_STATUS (Restricted merchant status); KEY_NOT_FOUND (Antom or merchant key not found); MERCHANT_KYB_NOT_QUALIFIED (Merchant KYB status disqualifies payment); NO_INTERFACE_DEF (Interface undefined); NO_PAY_OPTIONS (No payment options available); ORDER_IS_CLOSED (Payment request ID matches a closed transaction); PARAM_ILLEGAL (Missing or invalid parameter); PAYMENT_AMOUNT_EXCEED_LIMIT (Amount exceeds contract or payment method limit); PAYMENT_COUNT_EXCEED_LIMIT (Payment count exceeds payment method limit); PAYMENT_NOT_QUALIFIED (Merchant not eligible for payment); PROCESS_FAIL (General business failure); RISK_REJECT (Risk control prevents further processing); SUSPECTED_CARD (Card suspected of fraud); SUSPECTED_RISK (Suspected security risk prevents further processing); SYSTEM_ERROR (System error); USER_AMOUNT_EXCEED_LIMIT (Amount exceeds user payment limit); USER_BALANCE_NOT_ENOUGH (Insufficient user balance); USER_KYC_NOT_QUALIFIED (User KYC status disqualifies payment); USER_PAYMENT_VERIFICATION_FAILED (User restricted from payment at provider); USER_STATUS_ABNORMAL (User status abnormal at provider); PAYMENT_IN_PROCESS (Payment processing); UNKNOWN_EXCEPTION (API call failed for an unknown reason); CARD_NOT_SUPPORTED (Card not supported for transaction); INVALID_EXPIRATION_DATE (Invalid card expiration date); INVALID_CARD_NUMBER (Invalid card number); DO_NOT_HONOR (Issuer declined payment).
|
|
66
|
+
"""
|
|
67
|
+
return self.__payment_result_code
|
|
68
|
+
|
|
69
|
+
@payment_result_code.setter
|
|
70
|
+
def payment_result_code(self, value):
|
|
71
|
+
self.__payment_result_code = value
|
|
72
|
+
@property
|
|
73
|
+
def payment_result_message(self):
|
|
74
|
+
"""
|
|
75
|
+
Message explaining the sub-order result code (maximum 256 characters); returned on successful inquiry.
|
|
76
|
+
"""
|
|
77
|
+
return self.__payment_result_message
|
|
78
|
+
|
|
79
|
+
@payment_result_message.setter
|
|
80
|
+
def payment_result_message(self, value):
|
|
81
|
+
self.__payment_result_message = value
|
|
82
|
+
@property
|
|
83
|
+
def payment_result_info(self):
|
|
84
|
+
"""Gets the payment_result_info of this AmsInquiryPaymentResult.
|
|
85
|
+
|
|
86
|
+
"""
|
|
87
|
+
return self.__payment_result_info
|
|
88
|
+
|
|
89
|
+
@payment_result_info.setter
|
|
90
|
+
def payment_result_info(self, value):
|
|
91
|
+
self.__payment_result_info = value
|
|
92
|
+
@property
|
|
93
|
+
def transactions(self):
|
|
94
|
+
"""
|
|
95
|
+
Transaction details returned when a refund or capture exists.
|
|
96
|
+
"""
|
|
97
|
+
return self.__transactions
|
|
98
|
+
|
|
99
|
+
@transactions.setter
|
|
100
|
+
def transactions(self, value):
|
|
101
|
+
self.__transactions = value
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
def to_ams_dict(self):
|
|
107
|
+
params = dict()
|
|
108
|
+
if hasattr(self, "payment_request_id") and self.payment_request_id is not None:
|
|
109
|
+
params['paymentRequestId'] = self.payment_request_id
|
|
110
|
+
if hasattr(self, "payment_id") and self.payment_id is not None:
|
|
111
|
+
params['paymentId'] = self.payment_id
|
|
112
|
+
if hasattr(self, "payment_amount") and self.payment_amount is not None:
|
|
113
|
+
params['paymentAmount'] = self.payment_amount
|
|
114
|
+
if hasattr(self, "payment_status") and self.payment_status is not None:
|
|
115
|
+
params['paymentStatus'] = self.payment_status
|
|
116
|
+
if hasattr(self, "payment_result_code") and self.payment_result_code is not None:
|
|
117
|
+
params['paymentResultCode'] = self.payment_result_code
|
|
118
|
+
if hasattr(self, "payment_result_message") and self.payment_result_message is not None:
|
|
119
|
+
params['paymentResultMessage'] = self.payment_result_message
|
|
120
|
+
if hasattr(self, "payment_result_info") and self.payment_result_info is not None:
|
|
121
|
+
params['paymentResultInfo'] = self.payment_result_info
|
|
122
|
+
if hasattr(self, "transactions") and self.transactions is not None:
|
|
123
|
+
params['transactions'] = self.transactions
|
|
124
|
+
return params
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
def parse_rsp_body(self, response_body):
|
|
128
|
+
if isinstance(response_body, str):
|
|
129
|
+
response_body = json.loads(response_body)
|
|
130
|
+
if 'paymentRequestId' in response_body:
|
|
131
|
+
self.__payment_request_id = response_body['paymentRequestId']
|
|
132
|
+
if 'paymentId' in response_body:
|
|
133
|
+
self.__payment_id = response_body['paymentId']
|
|
134
|
+
if 'paymentAmount' in response_body:
|
|
135
|
+
self.__payment_amount = Amount()
|
|
136
|
+
self.__payment_amount.parse_rsp_body(response_body['paymentAmount'])
|
|
137
|
+
if 'paymentStatus' in response_body:
|
|
138
|
+
self.__payment_status = response_body['paymentStatus']
|
|
139
|
+
if 'paymentResultCode' in response_body:
|
|
140
|
+
self.__payment_result_code = response_body['paymentResultCode']
|
|
141
|
+
if 'paymentResultMessage' in response_body:
|
|
142
|
+
self.__payment_result_message = response_body['paymentResultMessage']
|
|
143
|
+
if 'paymentResultInfo' in response_body:
|
|
144
|
+
self.__payment_result_info = PaymentResultInfo()
|
|
145
|
+
self.__payment_result_info.parse_rsp_body(response_body['paymentResultInfo'])
|
|
146
|
+
if 'transactions' in response_body:
|
|
147
|
+
self.__transactions = []
|
|
148
|
+
for item in response_body['transactions']:
|
|
149
|
+
obj = BatchPaymentTransaction()
|
|
150
|
+
obj.parse_rsp_body(item)
|
|
151
|
+
self.__transactions.append(obj)
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import json
|
|
2
|
+
from com.alipay.ams.api.model.result import Result
|
|
3
|
+
from com.alipay.ams.api.model.amount import Amount
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class BatchPaymentTransaction:
|
|
9
|
+
def __init__(self):
|
|
10
|
+
|
|
11
|
+
self.__transaction_result = None # type: Result
|
|
12
|
+
self.__transaction_id = None # type: str
|
|
13
|
+
self.__transaction_type = None # type: str
|
|
14
|
+
self.__transaction_status = None # type: str
|
|
15
|
+
self.__transaction_amount = None # type: Amount
|
|
16
|
+
self.__transaction_request_id = None # type: str
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@property
|
|
20
|
+
def transaction_result(self):
|
|
21
|
+
"""Gets the transaction_result of this BatchPaymentTransaction.
|
|
22
|
+
|
|
23
|
+
"""
|
|
24
|
+
return self.__transaction_result
|
|
25
|
+
|
|
26
|
+
@transaction_result.setter
|
|
27
|
+
def transaction_result(self, value):
|
|
28
|
+
self.__transaction_result = value
|
|
29
|
+
@property
|
|
30
|
+
def transaction_id(self):
|
|
31
|
+
"""
|
|
32
|
+
Antom-assigned transaction ID (maximum 64 characters); equals refundId for REFUND and captureId for CAPTURE.
|
|
33
|
+
"""
|
|
34
|
+
return self.__transaction_id
|
|
35
|
+
|
|
36
|
+
@transaction_id.setter
|
|
37
|
+
def transaction_id(self, value):
|
|
38
|
+
self.__transaction_id = value
|
|
39
|
+
@property
|
|
40
|
+
def transaction_type(self):
|
|
41
|
+
"""
|
|
42
|
+
Transaction type (maximum 16 characters). REFUND: refund; CAPTURE: capture; INCREMENTAL: incremental amount adjustment.
|
|
43
|
+
"""
|
|
44
|
+
return self.__transaction_type
|
|
45
|
+
|
|
46
|
+
@transaction_type.setter
|
|
47
|
+
def transaction_type(self, value):
|
|
48
|
+
self.__transaction_type = value
|
|
49
|
+
@property
|
|
50
|
+
def transaction_status(self):
|
|
51
|
+
"""
|
|
52
|
+
Transaction status (maximum 16 characters). SUCCESS: succeeded; FAIL: failed; PROCESSING: processing; CANCELLED: canceled.
|
|
53
|
+
"""
|
|
54
|
+
return self.__transaction_status
|
|
55
|
+
|
|
56
|
+
@transaction_status.setter
|
|
57
|
+
def transaction_status(self, value):
|
|
58
|
+
self.__transaction_status = value
|
|
59
|
+
@property
|
|
60
|
+
def transaction_amount(self):
|
|
61
|
+
"""Gets the transaction_amount of this BatchPaymentTransaction.
|
|
62
|
+
|
|
63
|
+
"""
|
|
64
|
+
return self.__transaction_amount
|
|
65
|
+
|
|
66
|
+
@transaction_amount.setter
|
|
67
|
+
def transaction_amount(self, value):
|
|
68
|
+
self.__transaction_amount = value
|
|
69
|
+
@property
|
|
70
|
+
def transaction_request_id(self):
|
|
71
|
+
"""
|
|
72
|
+
Merchant-assigned transaction request ID (maximum 64 characters); equals refundRequestId for REFUND and captureRequestId for CAPTURE.
|
|
73
|
+
"""
|
|
74
|
+
return self.__transaction_request_id
|
|
75
|
+
|
|
76
|
+
@transaction_request_id.setter
|
|
77
|
+
def transaction_request_id(self, value):
|
|
78
|
+
self.__transaction_request_id = value
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def to_ams_dict(self):
|
|
84
|
+
params = dict()
|
|
85
|
+
if hasattr(self, "transaction_result") and self.transaction_result is not None:
|
|
86
|
+
params['transactionResult'] = self.transaction_result
|
|
87
|
+
if hasattr(self, "transaction_id") and self.transaction_id is not None:
|
|
88
|
+
params['transactionId'] = self.transaction_id
|
|
89
|
+
if hasattr(self, "transaction_type") and self.transaction_type is not None:
|
|
90
|
+
params['transactionType'] = self.transaction_type
|
|
91
|
+
if hasattr(self, "transaction_status") and self.transaction_status is not None:
|
|
92
|
+
params['transactionStatus'] = self.transaction_status
|
|
93
|
+
if hasattr(self, "transaction_amount") and self.transaction_amount is not None:
|
|
94
|
+
params['transactionAmount'] = self.transaction_amount
|
|
95
|
+
if hasattr(self, "transaction_request_id") and self.transaction_request_id is not None:
|
|
96
|
+
params['transactionRequestId'] = self.transaction_request_id
|
|
97
|
+
return params
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
def parse_rsp_body(self, response_body):
|
|
101
|
+
if isinstance(response_body, str):
|
|
102
|
+
response_body = json.loads(response_body)
|
|
103
|
+
if 'transactionResult' in response_body:
|
|
104
|
+
self.__transaction_result = Result()
|
|
105
|
+
self.__transaction_result.parse_rsp_body(response_body['transactionResult'])
|
|
106
|
+
if 'transactionId' in response_body:
|
|
107
|
+
self.__transaction_id = response_body['transactionId']
|
|
108
|
+
if 'transactionType' in response_body:
|
|
109
|
+
self.__transaction_type = response_body['transactionType']
|
|
110
|
+
if 'transactionStatus' in response_body:
|
|
111
|
+
self.__transaction_status = response_body['transactionStatus']
|
|
112
|
+
if 'transactionAmount' in response_body:
|
|
113
|
+
self.__transaction_amount = Amount()
|
|
114
|
+
self.__transaction_amount.parse_rsp_body(response_body['transactionAmount'])
|
|
115
|
+
if 'transactionRequestId' in response_body:
|
|
116
|
+
self.__transaction_request_id = response_body['transactionRequestId']
|
|
@@ -10,7 +10,7 @@ from com.alipay.ams.api.model.address import Address
|
|
|
10
10
|
class Buyer:
|
|
11
11
|
def __init__(self):
|
|
12
12
|
|
|
13
|
-
self.__preferred_locales = None # type: str
|
|
13
|
+
self.__preferred_locales = None # type: [str]
|
|
14
14
|
self.__business_name = None # type: str
|
|
15
15
|
self.__buyer_type = None # type: str
|
|
16
16
|
self.__reference_buyer_id = None # type: str
|
|
@@ -31,7 +31,7 @@ class Buyer:
|
|
|
31
31
|
@property
|
|
32
32
|
def preferred_locales(self):
|
|
33
33
|
"""
|
|
34
|
-
|
|
34
|
+
Ordered PDF-language preferences for createPaymentSession. Omitted, null, empty or unsupported preferences use English. Does not read or update customer preferences or select Checkout UI or email language. Omit in APIs that do not document support.
|
|
35
35
|
"""
|
|
36
36
|
return self.__preferred_locales
|
|
37
37
|
|
|
@@ -91,7 +91,7 @@ class Buyer:
|
|
|
91
91
|
@property
|
|
92
92
|
def buyer_email(self):
|
|
93
93
|
"""
|
|
94
|
-
The email of the buyer. Specify this parameter: When you require risk control. When the value of paymentMethodType is CARD. Providing this information helps to increase the accuracy of anti-money laundering and fraud detection, and increase payment success rates. More information: Maximum length: 64 characters
|
|
94
|
+
The email of the buyer. Specify this parameter: When you require risk control. When the value of paymentMethodType is CARD. Providing this information helps to increase the accuracy of anti-money laundering and fraud detection, and increase payment success rates. More information: Maximum length: 64 characters
|
|
95
95
|
"""
|
|
96
96
|
return self.__buyer_email
|
|
97
97
|
|
|
@@ -24,7 +24,7 @@ class BuyerTaxId:
|
|
|
24
24
|
@property
|
|
25
25
|
def region(self):
|
|
26
26
|
"""
|
|
27
|
-
Optional
|
|
27
|
+
Optional tax ID subdivision information. The accepted format and length depend on the API. The supplied value is transmitted unchanged.
|
|
28
28
|
"""
|
|
29
29
|
return self.__region
|
|
30
30
|
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import json
|
|
2
|
+
from com.alipay.ams.api.model.fund_transfer_sender import FundTransferSender
|
|
3
|
+
from com.alipay.ams.api.model.fund_transfer_recipient import FundTransferRecipient
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class FundTransferInfo:
|
|
9
|
+
def __init__(self):
|
|
10
|
+
|
|
11
|
+
self.__fund_transfer_type = None # type: str
|
|
12
|
+
self.__seller_mcc = None # type: str
|
|
13
|
+
self.__seller_name = None # type: str
|
|
14
|
+
self.__transfer_sender = None # type: FundTransferSender
|
|
15
|
+
self.__transfer_recipient = None # type: FundTransferRecipient
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@property
|
|
19
|
+
def fund_transfer_type(self):
|
|
20
|
+
"""
|
|
21
|
+
The fund transfer scenario. Supported values: ACCOUNTFUNDINGTRANSACTION means an account funding transaction (AFT, top-up only); BACKTOBACKTRANSACTION means a back-to-back transaction (B2B, top-up followed by a purchase). Maximum length: 32 characters. If neither scenario is specified, the transaction is handled as a normal purchase.
|
|
22
|
+
"""
|
|
23
|
+
return self.__fund_transfer_type
|
|
24
|
+
|
|
25
|
+
@fund_transfer_type.setter
|
|
26
|
+
def fund_transfer_type(self, value):
|
|
27
|
+
self.__fund_transfer_type = value
|
|
28
|
+
@property
|
|
29
|
+
def seller_mcc(self):
|
|
30
|
+
"""
|
|
31
|
+
The actual seller merchant category code for a back-to-back transaction, applicable only to SDWO wallet merchants. Use a four-digit ISO 18245 MCC. A value supplied by a non-wallet merchant is ignored. If omitted for a wallet merchant, the MCC registered with Antom is used independently of sellerName. Maximum length: 4 characters.
|
|
32
|
+
"""
|
|
33
|
+
return self.__seller_mcc
|
|
34
|
+
|
|
35
|
+
@seller_mcc.setter
|
|
36
|
+
def seller_mcc(self, value):
|
|
37
|
+
self.__seller_mcc = value
|
|
38
|
+
@property
|
|
39
|
+
def seller_name(self):
|
|
40
|
+
"""
|
|
41
|
+
The actual seller name for a back-to-back transaction, applicable only to SDWO wallet merchants. The cardholder statement merchant name uses the format AlipayHK*<sellerName>, TNGD*<sellerName>, or GrabPay*<sellerName>, as applicable. A value supplied by a non-wallet merchant is ignored. If omitted for a wallet merchant, the merchant name registered with Antom is used independently of sellerMcc. Maximum length: 256 characters.
|
|
42
|
+
"""
|
|
43
|
+
return self.__seller_name
|
|
44
|
+
|
|
45
|
+
@seller_name.setter
|
|
46
|
+
def seller_name(self, value):
|
|
47
|
+
self.__seller_name = value
|
|
48
|
+
@property
|
|
49
|
+
def transfer_sender(self):
|
|
50
|
+
"""Gets the transfer_sender of this FundTransferInfo.
|
|
51
|
+
|
|
52
|
+
"""
|
|
53
|
+
return self.__transfer_sender
|
|
54
|
+
|
|
55
|
+
@transfer_sender.setter
|
|
56
|
+
def transfer_sender(self, value):
|
|
57
|
+
self.__transfer_sender = value
|
|
58
|
+
@property
|
|
59
|
+
def transfer_recipient(self):
|
|
60
|
+
"""Gets the transfer_recipient of this FundTransferInfo.
|
|
61
|
+
|
|
62
|
+
"""
|
|
63
|
+
return self.__transfer_recipient
|
|
64
|
+
|
|
65
|
+
@transfer_recipient.setter
|
|
66
|
+
def transfer_recipient(self, value):
|
|
67
|
+
self.__transfer_recipient = value
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def to_ams_dict(self):
|
|
73
|
+
params = dict()
|
|
74
|
+
if hasattr(self, "fund_transfer_type") and self.fund_transfer_type is not None:
|
|
75
|
+
params['fundTransferType'] = self.fund_transfer_type
|
|
76
|
+
if hasattr(self, "seller_mcc") and self.seller_mcc is not None:
|
|
77
|
+
params['sellerMcc'] = self.seller_mcc
|
|
78
|
+
if hasattr(self, "seller_name") and self.seller_name is not None:
|
|
79
|
+
params['sellerName'] = self.seller_name
|
|
80
|
+
if hasattr(self, "transfer_sender") and self.transfer_sender is not None:
|
|
81
|
+
params['transferSender'] = self.transfer_sender
|
|
82
|
+
if hasattr(self, "transfer_recipient") and self.transfer_recipient is not None:
|
|
83
|
+
params['transferRecipient'] = self.transfer_recipient
|
|
84
|
+
return params
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def parse_rsp_body(self, response_body):
|
|
88
|
+
if isinstance(response_body, str):
|
|
89
|
+
response_body = json.loads(response_body)
|
|
90
|
+
if 'fundTransferType' in response_body:
|
|
91
|
+
self.__fund_transfer_type = response_body['fundTransferType']
|
|
92
|
+
if 'sellerMcc' in response_body:
|
|
93
|
+
self.__seller_mcc = response_body['sellerMcc']
|
|
94
|
+
if 'sellerName' in response_body:
|
|
95
|
+
self.__seller_name = response_body['sellerName']
|
|
96
|
+
if 'transferSender' in response_body:
|
|
97
|
+
self.__transfer_sender = FundTransferSender()
|
|
98
|
+
self.__transfer_sender.parse_rsp_body(response_body['transferSender'])
|
|
99
|
+
if 'transferRecipient' in response_body:
|
|
100
|
+
self.__transfer_recipient = FundTransferRecipient()
|
|
101
|
+
self.__transfer_recipient.parse_rsp_body(response_body['transferRecipient'])
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import json
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FundTransferPartyAddress:
|
|
7
|
+
def __init__(self):
|
|
8
|
+
|
|
9
|
+
self.__address1 = None # type: str
|
|
10
|
+
self.__city = None # type: str
|
|
11
|
+
self.__state = None # type: str
|
|
12
|
+
self.__region = None # type: str
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@property
|
|
16
|
+
def address1(self):
|
|
17
|
+
"""
|
|
18
|
+
The street address of the fund transfer party. Maximum length: 256 characters.
|
|
19
|
+
"""
|
|
20
|
+
return self.__address1
|
|
21
|
+
|
|
22
|
+
@address1.setter
|
|
23
|
+
def address1(self, value):
|
|
24
|
+
self.__address1 = value
|
|
25
|
+
@property
|
|
26
|
+
def city(self):
|
|
27
|
+
"""
|
|
28
|
+
The city of the fund transfer party. Maximum length: 32 characters.
|
|
29
|
+
"""
|
|
30
|
+
return self.__city
|
|
31
|
+
|
|
32
|
+
@city.setter
|
|
33
|
+
def city(self, value):
|
|
34
|
+
self.__city = value
|
|
35
|
+
@property
|
|
36
|
+
def state(self):
|
|
37
|
+
"""
|
|
38
|
+
The state, province, or administrative subdivision code of the fund transfer party. Maximum length: 64 characters.
|
|
39
|
+
"""
|
|
40
|
+
return self.__state
|
|
41
|
+
|
|
42
|
+
@state.setter
|
|
43
|
+
def state(self, value):
|
|
44
|
+
self.__state = value
|
|
45
|
+
@property
|
|
46
|
+
def region(self):
|
|
47
|
+
"""
|
|
48
|
+
The country code of the fund transfer party in ISO 3166-1 alpha-2 format. Maximum length: 2 characters.
|
|
49
|
+
"""
|
|
50
|
+
return self.__region
|
|
51
|
+
|
|
52
|
+
@region.setter
|
|
53
|
+
def region(self, value):
|
|
54
|
+
self.__region = value
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def to_ams_dict(self):
|
|
60
|
+
params = dict()
|
|
61
|
+
if hasattr(self, "address1") and self.address1 is not None:
|
|
62
|
+
params['address1'] = self.address1
|
|
63
|
+
if hasattr(self, "city") and self.city is not None:
|
|
64
|
+
params['city'] = self.city
|
|
65
|
+
if hasattr(self, "state") and self.state is not None:
|
|
66
|
+
params['state'] = self.state
|
|
67
|
+
if hasattr(self, "region") and self.region is not None:
|
|
68
|
+
params['region'] = self.region
|
|
69
|
+
return params
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def parse_rsp_body(self, response_body):
|
|
73
|
+
if isinstance(response_body, str):
|
|
74
|
+
response_body = json.loads(response_body)
|
|
75
|
+
if 'address1' in response_body:
|
|
76
|
+
self.__address1 = response_body['address1']
|
|
77
|
+
if 'city' in response_body:
|
|
78
|
+
self.__city = response_body['city']
|
|
79
|
+
if 'state' in response_body:
|
|
80
|
+
self.__state = response_body['state']
|
|
81
|
+
if 'region' in response_body:
|
|
82
|
+
self.__region = response_body['region']
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import json
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FundTransferPartyName:
|
|
7
|
+
def __init__(self):
|
|
8
|
+
|
|
9
|
+
self.__first_name = None # type: str
|
|
10
|
+
self.__last_name = None # type: str
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@property
|
|
14
|
+
def first_name(self):
|
|
15
|
+
"""
|
|
16
|
+
The first name of the fund transfer party. Maximum length: 32 characters.
|
|
17
|
+
"""
|
|
18
|
+
return self.__first_name
|
|
19
|
+
|
|
20
|
+
@first_name.setter
|
|
21
|
+
def first_name(self, value):
|
|
22
|
+
self.__first_name = value
|
|
23
|
+
@property
|
|
24
|
+
def last_name(self):
|
|
25
|
+
"""
|
|
26
|
+
The last name of the fund transfer party. Maximum length: 32 characters.
|
|
27
|
+
"""
|
|
28
|
+
return self.__last_name
|
|
29
|
+
|
|
30
|
+
@last_name.setter
|
|
31
|
+
def last_name(self, value):
|
|
32
|
+
self.__last_name = value
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def to_ams_dict(self):
|
|
38
|
+
params = dict()
|
|
39
|
+
if hasattr(self, "first_name") and self.first_name is not None:
|
|
40
|
+
params['firstName'] = self.first_name
|
|
41
|
+
if hasattr(self, "last_name") and self.last_name is not None:
|
|
42
|
+
params['lastName'] = self.last_name
|
|
43
|
+
return params
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def parse_rsp_body(self, response_body):
|
|
47
|
+
if isinstance(response_body, str):
|
|
48
|
+
response_body = json.loads(response_body)
|
|
49
|
+
if 'firstName' in response_body:
|
|
50
|
+
self.__first_name = response_body['firstName']
|
|
51
|
+
if 'lastName' in response_body:
|
|
52
|
+
self.__last_name = response_body['lastName']
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import json
|
|
2
|
+
from com.alipay.ams.api.model.fund_transfer_party_name import FundTransferPartyName
|
|
3
|
+
from com.alipay.ams.api.model.fund_transfer_party_address import FundTransferPartyAddress
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class FundTransferRecipient:
|
|
9
|
+
def __init__(self):
|
|
10
|
+
|
|
11
|
+
self.__recipient_name = None # type: FundTransferPartyName
|
|
12
|
+
self.__address = None # type: FundTransferPartyAddress
|
|
13
|
+
self.__recipient_account_number = None # type: str
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@property
|
|
17
|
+
def recipient_name(self):
|
|
18
|
+
"""Gets the recipient_name of this FundTransferRecipient.
|
|
19
|
+
|
|
20
|
+
"""
|
|
21
|
+
return self.__recipient_name
|
|
22
|
+
|
|
23
|
+
@recipient_name.setter
|
|
24
|
+
def recipient_name(self, value):
|
|
25
|
+
self.__recipient_name = value
|
|
26
|
+
@property
|
|
27
|
+
def address(self):
|
|
28
|
+
"""Gets the address of this FundTransferRecipient.
|
|
29
|
+
|
|
30
|
+
"""
|
|
31
|
+
return self.__address
|
|
32
|
+
|
|
33
|
+
@address.setter
|
|
34
|
+
def address(self, value):
|
|
35
|
+
self.__address = value
|
|
36
|
+
@property
|
|
37
|
+
def recipient_account_number(self):
|
|
38
|
+
"""
|
|
39
|
+
The account number of the wallet receiving the top-up. Only letters, digits, and hyphens are supported. Maximum length: 64 characters.
|
|
40
|
+
"""
|
|
41
|
+
return self.__recipient_account_number
|
|
42
|
+
|
|
43
|
+
@recipient_account_number.setter
|
|
44
|
+
def recipient_account_number(self, value):
|
|
45
|
+
self.__recipient_account_number = value
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def to_ams_dict(self):
|
|
51
|
+
params = dict()
|
|
52
|
+
if hasattr(self, "recipient_name") and self.recipient_name is not None:
|
|
53
|
+
params['recipientName'] = self.recipient_name
|
|
54
|
+
if hasattr(self, "address") and self.address is not None:
|
|
55
|
+
params['address'] = self.address
|
|
56
|
+
if hasattr(self, "recipient_account_number") and self.recipient_account_number is not None:
|
|
57
|
+
params['recipientAccountNumber'] = self.recipient_account_number
|
|
58
|
+
return params
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def parse_rsp_body(self, response_body):
|
|
62
|
+
if isinstance(response_body, str):
|
|
63
|
+
response_body = json.loads(response_body)
|
|
64
|
+
if 'recipientName' in response_body:
|
|
65
|
+
self.__recipient_name = FundTransferPartyName()
|
|
66
|
+
self.__recipient_name.parse_rsp_body(response_body['recipientName'])
|
|
67
|
+
if 'address' in response_body:
|
|
68
|
+
self.__address = FundTransferPartyAddress()
|
|
69
|
+
self.__address.parse_rsp_body(response_body['address'])
|
|
70
|
+
if 'recipientAccountNumber' in response_body:
|
|
71
|
+
self.__recipient_account_number = response_body['recipientAccountNumber']
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import json
|
|
2
|
+
from com.alipay.ams.api.model.fund_transfer_party_name import FundTransferPartyName
|
|
3
|
+
from com.alipay.ams.api.model.fund_transfer_party_address import FundTransferPartyAddress
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class FundTransferSender:
|
|
9
|
+
def __init__(self):
|
|
10
|
+
|
|
11
|
+
self.__sender_name = None # type: FundTransferPartyName
|
|
12
|
+
self.__address = None # type: FundTransferPartyAddress
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@property
|
|
16
|
+
def sender_name(self):
|
|
17
|
+
"""Gets the sender_name of this FundTransferSender.
|
|
18
|
+
|
|
19
|
+
"""
|
|
20
|
+
return self.__sender_name
|
|
21
|
+
|
|
22
|
+
@sender_name.setter
|
|
23
|
+
def sender_name(self, value):
|
|
24
|
+
self.__sender_name = value
|
|
25
|
+
@property
|
|
26
|
+
def address(self):
|
|
27
|
+
"""Gets the address of this FundTransferSender.
|
|
28
|
+
|
|
29
|
+
"""
|
|
30
|
+
return self.__address
|
|
31
|
+
|
|
32
|
+
@address.setter
|
|
33
|
+
def address(self, value):
|
|
34
|
+
self.__address = value
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def to_ams_dict(self):
|
|
40
|
+
params = dict()
|
|
41
|
+
if hasattr(self, "sender_name") and self.sender_name is not None:
|
|
42
|
+
params['senderName'] = self.sender_name
|
|
43
|
+
if hasattr(self, "address") and self.address is not None:
|
|
44
|
+
params['address'] = self.address
|
|
45
|
+
return params
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def parse_rsp_body(self, response_body):
|
|
49
|
+
if isinstance(response_body, str):
|
|
50
|
+
response_body = json.loads(response_body)
|
|
51
|
+
if 'senderName' in response_body:
|
|
52
|
+
self.__sender_name = FundTransferPartyName()
|
|
53
|
+
self.__sender_name.parse_rsp_body(response_body['senderName'])
|
|
54
|
+
if 'address' in response_body:
|
|
55
|
+
self.__address = FundTransferPartyAddress()
|
|
56
|
+
self.__address.parse_rsp_body(response_body['address'])
|
|
@@ -14,7 +14,7 @@ class InvoiceCustomerDetails:
|
|
|
14
14
|
self.__first_name = None # type: str
|
|
15
15
|
self.__last_name = None # type: str
|
|
16
16
|
self.__business_address = None # type: CustomerBusinessAddress
|
|
17
|
-
self.__preferred_locales = None # type: str
|
|
17
|
+
self.__preferred_locales = None # type: [str]
|
|
18
18
|
self.__tax_ids = None # type: [BuyerTaxId]
|
|
19
19
|
|
|
20
20
|
|
|
@@ -31,7 +31,7 @@ class InvoiceCustomerDetails:
|
|
|
31
31
|
@property
|
|
32
32
|
def customer_type(self):
|
|
33
33
|
"""
|
|
34
|
-
B (business) or C (consumer).
|
|
34
|
+
B (business) or C (consumer). Omitted or null values default to C on the server, regardless of an existing customer profile.
|
|
35
35
|
"""
|
|
36
36
|
return self.__customer_type
|
|
37
37
|
|
|
@@ -41,7 +41,7 @@ class InvoiceCustomerDetails:
|
|
|
41
41
|
@property
|
|
42
42
|
def business_name(self):
|
|
43
43
|
"""
|
|
44
|
-
|
|
44
|
+
Business name supplied for this invoice. For type B, provide a nonblank value in the request; an existing customer profile does not supply it.
|
|
45
45
|
"""
|
|
46
46
|
return self.__business_name
|
|
47
47
|
|
|
@@ -51,7 +51,7 @@ class InvoiceCustomerDetails:
|
|
|
51
51
|
@property
|
|
52
52
|
def first_name(self):
|
|
53
53
|
"""
|
|
54
|
-
|
|
54
|
+
First name supplied for this invoice. For type C, provide a nonblank value in the request; an existing customer profile does not supply it. Optional contact name for type B.
|
|
55
55
|
"""
|
|
56
56
|
return self.__first_name
|
|
57
57
|
|
|
@@ -61,7 +61,7 @@ class InvoiceCustomerDetails:
|
|
|
61
61
|
@property
|
|
62
62
|
def last_name(self):
|
|
63
63
|
"""
|
|
64
|
-
|
|
64
|
+
Last name supplied for this invoice. For type C, provide a nonblank value in the request; an existing customer profile does not supply it. Optional contact name for type B.
|
|
65
65
|
"""
|
|
66
66
|
return self.__last_name
|
|
67
67
|
|
|
@@ -81,7 +81,7 @@ class InvoiceCustomerDetails:
|
|
|
81
81
|
@property
|
|
82
82
|
def preferred_locales(self):
|
|
83
83
|
"""
|
|
84
|
-
|
|
84
|
+
Ordered invoice and offline receipt PDF-language preferences. Omit or use null to retain stored customer preferences; an empty array uses English. Does not select email language.
|
|
85
85
|
"""
|
|
86
86
|
return self.__preferred_locales
|
|
87
87
|
|
|
@@ -45,7 +45,7 @@ class Order:
|
|
|
45
45
|
@property
|
|
46
46
|
def send_receipt(self):
|
|
47
47
|
"""
|
|
48
|
-
For createPaymentSession,
|
|
48
|
+
For createPaymentSession, false suppresses automatic receipt email only. True, null or omission retain the existing eligible post-payment email rules. Does not suppress receipt PDF creation or guarantee email delivery. Omit in APIs that do not document support.
|
|
49
49
|
"""
|
|
50
50
|
return self.__send_receipt
|
|
51
51
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import json
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
from com.alipay.ams.api.request.alipay_request import AlipayRequest
|
|
6
|
+
|
|
7
|
+
class AlipayInquireBatchPaymentRequest(AlipayRequest):
|
|
8
|
+
def __init__(self):
|
|
9
|
+
super(AlipayInquireBatchPaymentRequest, self).__init__("/ams/api/v1/payments/inquireBatchPayment")
|
|
10
|
+
|
|
11
|
+
self.__batch_payment_request_id = None # type: str
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@property
|
|
15
|
+
def batch_payment_request_id(self):
|
|
16
|
+
"""
|
|
17
|
+
Merchant-assigned batch request ID (maximum 64 characters), the only accepted query key. paymentId and paymentRequestId are not query keys. Repeating a query has no additional effects but returns the latest visible state, not a fixed response.
|
|
18
|
+
"""
|
|
19
|
+
return self.__batch_payment_request_id
|
|
20
|
+
|
|
21
|
+
@batch_payment_request_id.setter
|
|
22
|
+
def batch_payment_request_id(self, value):
|
|
23
|
+
self.__batch_payment_request_id = value
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def to_ams_json(self):
|
|
27
|
+
json_str = json.dumps(obj=self.to_ams_dict(), default=lambda o: o.to_ams_dict(), indent=3)
|
|
28
|
+
return json_str
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def to_ams_dict(self):
|
|
32
|
+
params = dict()
|
|
33
|
+
if hasattr(self, "batch_payment_request_id") and self.batch_payment_request_id is not None:
|
|
34
|
+
params['batchPaymentRequestId'] = self.batch_payment_request_id
|
|
35
|
+
return params
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def parse_rsp_body(self, response_body):
|
|
39
|
+
if isinstance(response_body, str):
|
|
40
|
+
response_body = json.loads(response_body)
|
|
41
|
+
if 'batchPaymentRequestId' in response_body:
|
|
42
|
+
self.__batch_payment_request_id = response_body['batchPaymentRequestId']
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import json
|
|
2
|
+
from com.alipay.ams.api.model.fund_transfer_info import FundTransferInfo
|
|
2
3
|
from com.alipay.ams.api.model.customized_info import CustomizedInfo
|
|
3
4
|
from com.alipay.ams.api.model.quote import Quote
|
|
4
5
|
from com.alipay.ams.api.model.agreement_info import AgreementInfo
|
|
@@ -24,6 +25,7 @@ class AlipayPayRequest(AlipayRequest):
|
|
|
24
25
|
def __init__(self):
|
|
25
26
|
super(AlipayPayRequest, self).__init__("/ams/api/v1/payments/pay")
|
|
26
27
|
|
|
28
|
+
self.__fund_transfer_info = None # type: FundTransferInfo
|
|
27
29
|
self.__metadata = None # type: str
|
|
28
30
|
self.__customized_info = None # type: CustomizedInfo
|
|
29
31
|
self.__payment_quote = None # type: Quote
|
|
@@ -56,6 +58,16 @@ class AlipayPayRequest(AlipayRequest):
|
|
|
56
58
|
self.__locale = None # type: str
|
|
57
59
|
|
|
58
60
|
|
|
61
|
+
@property
|
|
62
|
+
def fund_transfer_info(self):
|
|
63
|
+
"""Gets the fund_transfer_info of this AlipayPayRequest.
|
|
64
|
+
|
|
65
|
+
"""
|
|
66
|
+
return self.__fund_transfer_info
|
|
67
|
+
|
|
68
|
+
@fund_transfer_info.setter
|
|
69
|
+
def fund_transfer_info(self, value):
|
|
70
|
+
self.__fund_transfer_info = value
|
|
59
71
|
@property
|
|
60
72
|
def metadata(self):
|
|
61
73
|
"""
|
|
@@ -365,6 +377,8 @@ class AlipayPayRequest(AlipayRequest):
|
|
|
365
377
|
|
|
366
378
|
def to_ams_dict(self):
|
|
367
379
|
params = dict()
|
|
380
|
+
if hasattr(self, "fund_transfer_info") and self.fund_transfer_info is not None:
|
|
381
|
+
params['fundTransferInfo'] = self.fund_transfer_info
|
|
368
382
|
if hasattr(self, "metadata") and self.metadata is not None:
|
|
369
383
|
params['metadata'] = self.metadata
|
|
370
384
|
if hasattr(self, "customized_info") and self.customized_info is not None:
|
|
@@ -431,6 +445,9 @@ class AlipayPayRequest(AlipayRequest):
|
|
|
431
445
|
def parse_rsp_body(self, response_body):
|
|
432
446
|
if isinstance(response_body, str):
|
|
433
447
|
response_body = json.loads(response_body)
|
|
448
|
+
if 'fundTransferInfo' in response_body:
|
|
449
|
+
self.__fund_transfer_info = FundTransferInfo()
|
|
450
|
+
self.__fund_transfer_info.parse_rsp_body(response_body['fundTransferInfo'])
|
|
434
451
|
if 'metadata' in response_body:
|
|
435
452
|
self.__metadata = response_body['metadata']
|
|
436
453
|
if 'customizedInfo' in response_body:
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import json
|
|
2
|
+
from com.alipay.ams.api.model.fund_transfer_info import FundTransferInfo
|
|
2
3
|
from com.alipay.ams.api.model.customized_info import CustomizedInfo
|
|
3
4
|
from com.alipay.ams.api.model.quote import Quote
|
|
4
5
|
from com.alipay.ams.api.model.amount import Amount
|
|
@@ -27,6 +28,7 @@ class AlipayPaymentSessionRequest(AlipayRequest):
|
|
|
27
28
|
def __init__(self):
|
|
28
29
|
super(AlipayPaymentSessionRequest, self).__init__("/ams/api/v1/payments/createPaymentSession")
|
|
29
30
|
|
|
31
|
+
self.__fund_transfer_info = None # type: FundTransferInfo
|
|
30
32
|
self.__merchant_account_id = None # type: str
|
|
31
33
|
self.__metadata = None # type: str
|
|
32
34
|
self.__allowed_payment_method_regions = None # type: [str]
|
|
@@ -62,6 +64,16 @@ class AlipayPaymentSessionRequest(AlipayRequest):
|
|
|
62
64
|
self.__automatic_tax = None # type: AutomaticTax
|
|
63
65
|
|
|
64
66
|
|
|
67
|
+
@property
|
|
68
|
+
def fund_transfer_info(self):
|
|
69
|
+
"""Gets the fund_transfer_info of this AlipayPaymentSessionRequest.
|
|
70
|
+
|
|
71
|
+
"""
|
|
72
|
+
return self.__fund_transfer_info
|
|
73
|
+
|
|
74
|
+
@fund_transfer_info.setter
|
|
75
|
+
def fund_transfer_info(self, value):
|
|
76
|
+
self.__fund_transfer_info = value
|
|
65
77
|
@property
|
|
66
78
|
def merchant_account_id(self):
|
|
67
79
|
"""
|
|
@@ -401,6 +413,8 @@ class AlipayPaymentSessionRequest(AlipayRequest):
|
|
|
401
413
|
|
|
402
414
|
def to_ams_dict(self):
|
|
403
415
|
params = dict()
|
|
416
|
+
if hasattr(self, "fund_transfer_info") and self.fund_transfer_info is not None:
|
|
417
|
+
params['fundTransferInfo'] = self.fund_transfer_info
|
|
404
418
|
if hasattr(self, "merchant_account_id") and self.merchant_account_id is not None:
|
|
405
419
|
params['merchantAccountId'] = self.merchant_account_id
|
|
406
420
|
if hasattr(self, "metadata") and self.metadata is not None:
|
|
@@ -473,6 +487,9 @@ class AlipayPaymentSessionRequest(AlipayRequest):
|
|
|
473
487
|
def parse_rsp_body(self, response_body):
|
|
474
488
|
if isinstance(response_body, str):
|
|
475
489
|
response_body = json.loads(response_body)
|
|
490
|
+
if 'fundTransferInfo' in response_body:
|
|
491
|
+
self.__fund_transfer_info = FundTransferInfo()
|
|
492
|
+
self.__fund_transfer_info.parse_rsp_body(response_body['fundTransferInfo'])
|
|
476
493
|
if 'merchantAccountId' in response_body:
|
|
477
494
|
self.__merchant_account_id = response_body['merchantAccountId']
|
|
478
495
|
if 'metadata' in response_body:
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import json
|
|
2
|
+
from com.alipay.ams.api.model.result import Result
|
|
3
|
+
from com.alipay.ams.api.model.amount import Amount
|
|
4
|
+
from com.alipay.ams.api.model.redirect_action_form import RedirectActionForm
|
|
5
|
+
from com.alipay.ams.api.model.psp_customer_info import PspCustomerInfo
|
|
6
|
+
from com.alipay.ams.api.model.amount import Amount
|
|
7
|
+
from com.alipay.ams.api.model.ams_inquiry_payment_result import AmsInquiryPaymentResult
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
from com.alipay.ams.api.response.alipay_response import AlipayResponse
|
|
12
|
+
|
|
13
|
+
class AlipayInquireBatchPaymentResponse(AlipayResponse):
|
|
14
|
+
def __init__(self, rsp_body):
|
|
15
|
+
super(AlipayResponse, self).__init__()
|
|
16
|
+
|
|
17
|
+
self.__result = None # type: Result
|
|
18
|
+
self.__batch_payment_request_id = None # type: str
|
|
19
|
+
self.__payment_amount = None # type: Amount
|
|
20
|
+
self.__payment_create_time = None # type: str
|
|
21
|
+
self.__payment_method_type = None # type: str
|
|
22
|
+
self.__redirect_action_form = None # type: RedirectActionForm
|
|
23
|
+
self.__psp_customer_info = None # type: PspCustomerInfo
|
|
24
|
+
self.__payment_time = None # type: str
|
|
25
|
+
self.__auth_expirytime = None # type: str
|
|
26
|
+
self.__customs_declaration_amount = None # type: Amount
|
|
27
|
+
self.__payment_results = None # type: [AmsInquiryPaymentResult]
|
|
28
|
+
self.parse_rsp_body(rsp_body)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def result(self):
|
|
33
|
+
"""Gets the result of this AlipayInquireBatchPaymentResponse.
|
|
34
|
+
|
|
35
|
+
"""
|
|
36
|
+
return self.__result
|
|
37
|
+
|
|
38
|
+
@result.setter
|
|
39
|
+
def result(self, value):
|
|
40
|
+
self.__result = value
|
|
41
|
+
@property
|
|
42
|
+
def batch_payment_request_id(self):
|
|
43
|
+
"""
|
|
44
|
+
Echo of queried batch ID (maximum 64 characters), returned when result.resultStatus is S.
|
|
45
|
+
"""
|
|
46
|
+
return self.__batch_payment_request_id
|
|
47
|
+
|
|
48
|
+
@batch_payment_request_id.setter
|
|
49
|
+
def batch_payment_request_id(self, value):
|
|
50
|
+
self.__batch_payment_request_id = value
|
|
51
|
+
@property
|
|
52
|
+
def payment_amount(self):
|
|
53
|
+
"""Gets the payment_amount of this AlipayInquireBatchPaymentResponse.
|
|
54
|
+
|
|
55
|
+
"""
|
|
56
|
+
return self.__payment_amount
|
|
57
|
+
|
|
58
|
+
@payment_amount.setter
|
|
59
|
+
def payment_amount(self, value):
|
|
60
|
+
self.__payment_amount = value
|
|
61
|
+
@property
|
|
62
|
+
def payment_create_time(self):
|
|
63
|
+
"""
|
|
64
|
+
Batch payment creation time in ISO 8601 format, returned on successful inquiry.
|
|
65
|
+
"""
|
|
66
|
+
return self.__payment_create_time
|
|
67
|
+
|
|
68
|
+
@payment_create_time.setter
|
|
69
|
+
def payment_create_time(self, value):
|
|
70
|
+
self.__payment_create_time = value
|
|
71
|
+
@property
|
|
72
|
+
def payment_method_type(self):
|
|
73
|
+
"""
|
|
74
|
+
Payment method type (maximum 64 characters), for example ALIPAY_CN; returned with Checkout Page integration.
|
|
75
|
+
"""
|
|
76
|
+
return self.__payment_method_type
|
|
77
|
+
|
|
78
|
+
@payment_method_type.setter
|
|
79
|
+
def payment_method_type(self, value):
|
|
80
|
+
self.__payment_method_type = value
|
|
81
|
+
@property
|
|
82
|
+
def redirect_action_form(self):
|
|
83
|
+
"""Gets the redirect_action_form of this AlipayInquireBatchPaymentResponse.
|
|
84
|
+
|
|
85
|
+
"""
|
|
86
|
+
return self.__redirect_action_form
|
|
87
|
+
|
|
88
|
+
@redirect_action_form.setter
|
|
89
|
+
def redirect_action_form(self, value):
|
|
90
|
+
self.__redirect_action_form = value
|
|
91
|
+
@property
|
|
92
|
+
def psp_customer_info(self):
|
|
93
|
+
"""Gets the psp_customer_info of this AlipayInquireBatchPaymentResponse.
|
|
94
|
+
|
|
95
|
+
"""
|
|
96
|
+
return self.__psp_customer_info
|
|
97
|
+
|
|
98
|
+
@psp_customer_info.setter
|
|
99
|
+
def psp_customer_info(self, value):
|
|
100
|
+
self.__psp_customer_info = value
|
|
101
|
+
@property
|
|
102
|
+
def payment_time(self):
|
|
103
|
+
"""
|
|
104
|
+
ISO 8601 time when the batch payment reached final success; the start of cancellation and refund eligibility periods.
|
|
105
|
+
"""
|
|
106
|
+
return self.__payment_time
|
|
107
|
+
|
|
108
|
+
@payment_time.setter
|
|
109
|
+
def payment_time(self, value):
|
|
110
|
+
self.__payment_time = value
|
|
111
|
+
@property
|
|
112
|
+
def auth_expirytime(self):
|
|
113
|
+
"""
|
|
114
|
+
Authorization expiration time, returned when paymentMethodType is CARD.
|
|
115
|
+
"""
|
|
116
|
+
return self.__auth_expirytime
|
|
117
|
+
|
|
118
|
+
@auth_expirytime.setter
|
|
119
|
+
def auth_expirytime(self, value):
|
|
120
|
+
self.__auth_expirytime = value
|
|
121
|
+
@property
|
|
122
|
+
def customs_declaration_amount(self):
|
|
123
|
+
"""Gets the customs_declaration_amount of this AlipayInquireBatchPaymentResponse.
|
|
124
|
+
|
|
125
|
+
"""
|
|
126
|
+
return self.__customs_declaration_amount
|
|
127
|
+
|
|
128
|
+
@customs_declaration_amount.setter
|
|
129
|
+
def customs_declaration_amount(self, value):
|
|
130
|
+
self.__customs_declaration_amount = value
|
|
131
|
+
@property
|
|
132
|
+
def payment_results(self):
|
|
133
|
+
"""
|
|
134
|
+
Sub-order payment summaries, returned when result.resultStatus is S.
|
|
135
|
+
"""
|
|
136
|
+
return self.__payment_results
|
|
137
|
+
|
|
138
|
+
@payment_results.setter
|
|
139
|
+
def payment_results(self, value):
|
|
140
|
+
self.__payment_results = value
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
def to_ams_dict(self):
|
|
146
|
+
params = dict()
|
|
147
|
+
if hasattr(self, "result") and self.result is not None:
|
|
148
|
+
params['result'] = self.result
|
|
149
|
+
if hasattr(self, "batch_payment_request_id") and self.batch_payment_request_id is not None:
|
|
150
|
+
params['batchPaymentRequestId'] = self.batch_payment_request_id
|
|
151
|
+
if hasattr(self, "payment_amount") and self.payment_amount is not None:
|
|
152
|
+
params['paymentAmount'] = self.payment_amount
|
|
153
|
+
if hasattr(self, "payment_create_time") and self.payment_create_time is not None:
|
|
154
|
+
params['paymentCreateTime'] = self.payment_create_time
|
|
155
|
+
if hasattr(self, "payment_method_type") and self.payment_method_type is not None:
|
|
156
|
+
params['paymentMethodType'] = self.payment_method_type
|
|
157
|
+
if hasattr(self, "redirect_action_form") and self.redirect_action_form is not None:
|
|
158
|
+
params['redirectActionForm'] = self.redirect_action_form
|
|
159
|
+
if hasattr(self, "psp_customer_info") and self.psp_customer_info is not None:
|
|
160
|
+
params['pspCustomerInfo'] = self.psp_customer_info
|
|
161
|
+
if hasattr(self, "payment_time") and self.payment_time is not None:
|
|
162
|
+
params['paymentTime'] = self.payment_time
|
|
163
|
+
if hasattr(self, "auth_expirytime") and self.auth_expirytime is not None:
|
|
164
|
+
params['authExpirytime'] = self.auth_expirytime
|
|
165
|
+
if hasattr(self, "customs_declaration_amount") and self.customs_declaration_amount is not None:
|
|
166
|
+
params['customsDeclarationAmount'] = self.customs_declaration_amount
|
|
167
|
+
if hasattr(self, "payment_results") and self.payment_results is not None:
|
|
168
|
+
params['paymentResults'] = self.payment_results
|
|
169
|
+
return params
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
def parse_rsp_body(self, response_body):
|
|
173
|
+
response_body = super(AlipayInquireBatchPaymentResponse, self).parse_rsp_body(response_body)
|
|
174
|
+
if 'result' in response_body:
|
|
175
|
+
self.__result = Result()
|
|
176
|
+
self.__result.parse_rsp_body(response_body['result'])
|
|
177
|
+
if 'batchPaymentRequestId' in response_body:
|
|
178
|
+
self.__batch_payment_request_id = response_body['batchPaymentRequestId']
|
|
179
|
+
if 'paymentAmount' in response_body:
|
|
180
|
+
self.__payment_amount = Amount()
|
|
181
|
+
self.__payment_amount.parse_rsp_body(response_body['paymentAmount'])
|
|
182
|
+
if 'paymentCreateTime' in response_body:
|
|
183
|
+
self.__payment_create_time = response_body['paymentCreateTime']
|
|
184
|
+
if 'paymentMethodType' in response_body:
|
|
185
|
+
self.__payment_method_type = response_body['paymentMethodType']
|
|
186
|
+
if 'redirectActionForm' in response_body:
|
|
187
|
+
self.__redirect_action_form = RedirectActionForm()
|
|
188
|
+
self.__redirect_action_form.parse_rsp_body(response_body['redirectActionForm'])
|
|
189
|
+
if 'pspCustomerInfo' in response_body:
|
|
190
|
+
self.__psp_customer_info = PspCustomerInfo()
|
|
191
|
+
self.__psp_customer_info.parse_rsp_body(response_body['pspCustomerInfo'])
|
|
192
|
+
if 'paymentTime' in response_body:
|
|
193
|
+
self.__payment_time = response_body['paymentTime']
|
|
194
|
+
if 'authExpirytime' in response_body:
|
|
195
|
+
self.__auth_expirytime = response_body['authExpirytime']
|
|
196
|
+
if 'customsDeclarationAmount' in response_body:
|
|
197
|
+
self.__customs_declaration_amount = Amount()
|
|
198
|
+
self.__customs_declaration_amount.parse_rsp_body(response_body['customsDeclarationAmount'])
|
|
199
|
+
if 'paymentResults' in response_body:
|
|
200
|
+
self.__payment_results = []
|
|
201
|
+
for item in response_body['paymentResults']:
|
|
202
|
+
obj = AmsInquiryPaymentResult()
|
|
203
|
+
obj.parse_rsp_body(item)
|
|
204
|
+
self.__payment_results.append(obj)
|
|
@@ -2,7 +2,7 @@ com/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
|
2
2
|
com/alipay/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
com/alipay/ams/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
com/alipay/ams/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
com/alipay/ams/api/_version.py,sha256=
|
|
5
|
+
com/alipay/ams/api/_version.py,sha256=jJ0xP4AhL7zNLRrz9tBkMUkCsbS8L-Bqx3W41oHRLvw,67
|
|
6
6
|
com/alipay/ams/api/api_key_alipay_client.py,sha256=Ru39_7CXwK2VBWVJlRhCXDZOSduX1vJ2XN11R3eNlpU,2251
|
|
7
7
|
com/alipay/ams/api/api_key_auth.py,sha256=KfsTco4pVrF7QhJDWxx_p3VzV5TlXCYDDZSM7xe5oLk,2910
|
|
8
8
|
com/alipay/ams/api/default_alipay_client.py,sha256=SgOl-1-TY_vQrLfkzzmwnsWyG11K-baHNG7kyrvJWas,10172
|
|
@@ -33,6 +33,7 @@ com/alipay/ams/api/model/agreement_info.py,sha256=DqFcgYc93oAHN8XF0SvWxYi5heGyV8
|
|
|
33
33
|
com/alipay/ams/api/model/amount.py,sha256=x7jQp6XphhU27eqhi3eIrlmb_yToq3LpRvS5JaGpeVU,1968
|
|
34
34
|
com/alipay/ams/api/model/amount_limit.py,sha256=_ZsQvkOY7iSd2ymbTNk7IfqRYC4eWTF9OJJniy89NL4,2191
|
|
35
35
|
com/alipay/ams/api/model/amount_limit_info.py,sha256=0UGNxbstQlAtHUn3tbbquBfXSEsk3cMC3L4vUSTtggk,2255
|
|
36
|
+
com/alipay/ams/api/model/ams_inquiry_payment_result.py,sha256=lrdJsUnReD2hLodRvyuVws687PZ4o2gHO68rDv1IlN0,7944
|
|
36
37
|
com/alipay/ams/api/model/ancillary_data.py,sha256=tGrkkY8IuBVJ4MxWZnmHAvzZKNTe-bUk8K2RR9xNLo4,1641
|
|
37
38
|
com/alipay/ams/api/model/antom_path_constants.py,sha256=ZcRfkT8sG5Qj92MlNafakfBs6t5w91_0UvglfA90Z78,3194
|
|
38
39
|
com/alipay/ams/api/model/apple_pay_configuration.py,sha256=t_7tXiWh6YmuHF8sEXJsaud1koMv4WVOmLt02ON5Y2Q,2038
|
|
@@ -54,6 +55,7 @@ com/alipay/ams/api/model/authorization_error.py,sha256=VTgfE_jGRnZShRAHOJNlrF5Ij
|
|
|
54
55
|
com/alipay/ams/api/model/authorization_phase.py,sha256=SolKmQlQSbpCDxoOM4K4PuuVB3r6kAlOpKQsOTxMN1I,215
|
|
55
56
|
com/alipay/ams/api/model/automatic_tax.py,sha256=Os4aSmkEB321RRGFqPhvWsUvj0HZWK-Rkq3lXxm7pSc,973
|
|
56
57
|
com/alipay/ams/api/model/available_payment_method.py,sha256=MjLXJ6Ni1VwuJAcKyzAk9ReW-cgBza5Txz9lfN_qZHA,2363
|
|
58
|
+
com/alipay/ams/api/model/batch_payment_transaction.py,sha256=j1Ig3SXeauC3F-S1OVt4XuRf8b_VBM9gIj5uKAOOvJU,4537
|
|
57
59
|
com/alipay/ams/api/model/billing_discount.py,sha256=lPPDcMG0lZhlgl8E0yNs__4wne4im1Hzph6_3g4T8wo,1775
|
|
58
60
|
com/alipay/ams/api/model/billing_subscription.py,sha256=nYmujmoRBNzd82Avp905XHFSj7ZylNohIjAYXWTlMZI,7663
|
|
59
61
|
com/alipay/ams/api/model/billing_subscription_cancel_cancellation_details.py,sha256=w1XexoKAVhU0c37hvCYHSGBCf7XQKHP7UMBTSJtqwr4,1333
|
|
@@ -68,8 +70,8 @@ com/alipay/ams/api/model/billing_trial_settings.py,sha256=M-nFVbO6_dGuzgeeop5VsB
|
|
|
68
70
|
com/alipay/ams/api/model/browser_info.py,sha256=LcWBZ0yEX4p9_NRLDzwWUZph-FinHLzZc1zP-4uIDvM,3028
|
|
69
71
|
com/alipay/ams/api/model/business_info.py,sha256=3I3cw7im6cGDfMyIrQHzz6Uqkk_34J4di5FGIXfLbRs,5358
|
|
70
72
|
com/alipay/ams/api/model/business_type.py,sha256=bt8O6UDsqGCl2ot9SJAkpHPHljp2BWU0sOfYw25_fgc,222
|
|
71
|
-
com/alipay/ams/api/model/buyer.py,sha256=
|
|
72
|
-
com/alipay/ams/api/model/buyer_tax_id.py,sha256=
|
|
73
|
+
com/alipay/ams/api/model/buyer.py,sha256=UnaTQlSrlbg501P4fqb8y3omQB6bchMo-04vkHWTVmo,12730
|
|
74
|
+
com/alipay/ams/api/model/buyer_tax_id.py,sha256=u88tg4aJHAgsRe09vyBG78RHMyYM3mCtbpUb4Y5gba8,1896
|
|
73
75
|
com/alipay/ams/api/model/cancellation_type.py,sha256=H2YeNMzp2EQcjyZ9NdKwE8tP9tAjgL-42cEjI1XZ7mY,165
|
|
74
76
|
com/alipay/ams/api/model/capture_mode.py,sha256=01Rwr-WHLJPsq89-WI5tZlZ3Pqhxhxf1KYqEwmthmVc,168
|
|
75
77
|
com/alipay/ams/api/model/card.py,sha256=reS07dDKvh9id0RvLG8e1HvH4q82j4R4N_b3tnVTJR0,3298
|
|
@@ -157,6 +159,11 @@ com/alipay/ams/api/model/external_payment_method_detail.py,sha256=JPTC95ATXfOfJM
|
|
|
157
159
|
com/alipay/ams/api/model/fail_reason.py,sha256=cExzjMDFh2QJ09FsvJ_-jXvgzKAiZivObaRMKLoe0jg,607
|
|
158
160
|
com/alipay/ams/api/model/foreign_exchange_quote.py,sha256=_FyXIZETpj2tQNIyhLu6CT1RChJAIgHlpb4GbsBdkgY,3079
|
|
159
161
|
com/alipay/ams/api/model/fund_move_detail.py,sha256=4-XkROOoVvSH1cfbPsNyK-gM0wUIjDtAwRFmUlIE0Jg,8269
|
|
162
|
+
com/alipay/ams/api/model/fund_transfer_info.py,sha256=tXO4W350GuPCMbL7kcgNnydZJ79hdXYm2Ex1UNhm6_s,4476
|
|
163
|
+
com/alipay/ams/api/model/fund_transfer_party_address.py,sha256=IWBEz_9qFrhe059W5hK8-Nq1IQOb31JDM6O6amXiiKE,2330
|
|
164
|
+
com/alipay/ams/api/model/fund_transfer_party_name.py,sha256=q1eXpbElSVyb2byKoBuucCqXJjNzStyb2ipcfH5qWZA,1376
|
|
165
|
+
com/alipay/ams/api/model/fund_transfer_recipient.py,sha256=xR6NDyrF6GA2MXNqR8S_LVJRJK5NvcXXaxvF88Y4sBM,2496
|
|
166
|
+
com/alipay/ams/api/model/fund_transfer_sender.py,sha256=piwy1n86Omp9Npvetk4OZiNWPh5EGEtNxoMp4CeFmTo,1664
|
|
160
167
|
com/alipay/ams/api/model/funding_type.py,sha256=eC5DXRYADV6qVblOvD0ZVSCXJ-LpXUCsFga2ef3UB8U,1155
|
|
161
168
|
com/alipay/ams/api/model/funds_type.py,sha256=mL51BD4jAVkEhjeMpT5SvINb25WTCj-PkBd25f0meu8,586
|
|
162
169
|
com/alipay/ams/api/model/gaming.py,sha256=ClN-195kC9TxqSx8efjfUPvRvikX6LeYkXzXDkH_QLQ,2620
|
|
@@ -174,7 +181,7 @@ com/alipay/ams/api/model/invoice.py,sha256=PP-RRNvi220war9WVPuWXPwLMT434thIG553X
|
|
|
174
181
|
com/alipay/ams/api/model/invoice_address.py,sha256=bKxcIHTuB1jFb93uz3_y_k1eZFUAhvHFVmJlWM3nf0o,3270
|
|
175
182
|
com/alipay/ams/api/model/invoice_create_item.py,sha256=K3937CPGVrF4gTj6dptA1FYLSY18PAxcGwGKZzZYjz8,8001
|
|
176
183
|
com/alipay/ams/api/model/invoice_custom_field.py,sha256=_w50owHe005MrzB5TyMGmBmU8ztOyFzkZxy-SKgLvWk,1219
|
|
177
|
-
com/alipay/ams/api/model/invoice_customer_details.py,sha256=
|
|
184
|
+
com/alipay/ams/api/model/invoice_customer_details.py,sha256=BwojkUbkxRi3yNi_LYJ3I8GGetJ_VN5n52xNH2FoI3I,5704
|
|
178
185
|
com/alipay/ams/api/model/invoice_item.py,sha256=Aq74s7101btVKSRPojILDUhVcd4CxB3ohjJbOURJnpc,9055
|
|
179
186
|
com/alipay/ams/api/model/invoice_note.py,sha256=3kU3ZVkZZDWumpEJm_-jJVdlthATzATT5qs9RCcabgs,2570
|
|
180
187
|
com/alipay/ams/api/model/invoice_payment.py,sha256=7Oz62UcqnRZ6LNf27bLThd2lO0IkfWB0TewtIFxrdlo,10436
|
|
@@ -198,7 +205,7 @@ com/alipay/ams/api/model/method_type.py,sha256=QCtDOyu8HwjIlwmBsT2o3ieYmCvHLKKLO
|
|
|
198
205
|
com/alipay/ams/api/model/mpi_data.py,sha256=49C-FAZ52xSk7mSGsUAcCAeMi9B0RVX4T5ZHBvLGlgw,2875
|
|
199
206
|
com/alipay/ams/api/model/notification_event.py,sha256=58llKHDq48kvTOEBy2r1T1Hq2rDlx5xpxZV4Ocseiw8,4149
|
|
200
207
|
com/alipay/ams/api/model/notify_invoice_info.py,sha256=JKP-roK9kaLjA6HCrILJcqCwPKMctEppwfTwIJQL6Go,2158
|
|
201
|
-
com/alipay/ams/api/model/order.py,sha256=
|
|
208
|
+
com/alipay/ams/api/model/order.py,sha256=5RUSesUm4iufI-6uTUeCxfeiMaiGXHX4JsiGX75ab6M,14127
|
|
202
209
|
com/alipay/ams/api/model/order_code_form.py,sha256=xUeYDa3Q26fUdH75FdJaNOLlvDzbVHXqWarm0MrRElE,2973
|
|
203
210
|
com/alipay/ams/api/model/order_info.py,sha256=_xzfdc07SIsZtDMFq42XM3KizChKn46Dd6Z0PihCkI4,944
|
|
204
211
|
com/alipay/ams/api/model/os_type.py,sha256=uzdhvrcpMwElbSJDsZHtUwCiADGk7UoPUAsrScf9FzE,620
|
|
@@ -516,6 +523,7 @@ com/alipay/ams/api/request/pay/alipay_create_order_request.py,sha256=Qaroj-2JT4E
|
|
|
516
523
|
com/alipay/ams/api/request/pay/alipay_create_release_request.py,sha256=WdoPf2KxzhO4xDDA9OTIw-sd2yjwMZfrl9HIGn1_8yc,2520
|
|
517
524
|
com/alipay/ams/api/request/pay/alipay_create_rule_request.py,sha256=9A152DiKFaH3uc_yAtQcaBsLHlln0wiHAn1b_GoYF6w,5301
|
|
518
525
|
com/alipay/ams/api/request/pay/alipay_create_session_request.py,sha256=QMjnPTXNErGBSIQxH37KeH_sFBQZYryUzAugwBOHTVI,10384
|
|
526
|
+
com/alipay/ams/api/request/pay/alipay_inquire_batch_payment_request.py,sha256=--qB4l73Nl0WdoqEONp2OdTSjL65XO0gNRfPYZMLinY,1540
|
|
519
527
|
com/alipay/ams/api/request/pay/alipay_inquire_exchange-rate_request.py,sha256=8l66nRaEGhqlqzZ2xjP-WtjNAkoqBzS_B-cTUPDwMt0,3142
|
|
520
528
|
com/alipay/ams/api/request/pay/alipay_inquire_exchange_rate_request.py,sha256=68_mBlH0WAneuOqOd8XLNVNj55CUXcaJNl7bi54P3Z4,5199
|
|
521
529
|
com/alipay/ams/api/request/pay/alipay_inquire_hold_list_request.py,sha256=83mCK1QedT7roJ3Ael_zeBtAKCyxDtuNBsIkBfvXSn0,4028
|
|
@@ -525,8 +533,8 @@ com/alipay/ams/api/request/pay/alipay_inquiry_refund_request.py,sha256=e2AF3D4fI
|
|
|
525
533
|
com/alipay/ams/api/request/pay/alipay_pay_cancel_request.py,sha256=JCdwzpYnWaNyyrLDJL9rNFz0y-x4YtetE7sCDmbBs7Q,3077
|
|
526
534
|
com/alipay/ams/api/request/pay/alipay_pay_consult_request.py,sha256=P6gaVeBTXobzrzVG7p7XiX_xcu1beWzEyMBFmZ8T5lM,13677
|
|
527
535
|
com/alipay/ams/api/request/pay/alipay_pay_query_request.py,sha256=cVkjkXEwPjh2Dl20Eepi_YvHlaIdm_K9R4d0bh_LQ_0,3003
|
|
528
|
-
com/alipay/ams/api/request/pay/alipay_pay_request.py,sha256=
|
|
529
|
-
com/alipay/ams/api/request/pay/alipay_payment_session_request.py,sha256=
|
|
536
|
+
com/alipay/ams/api/request/pay/alipay_pay_request.py,sha256=2CZA0qf7PDN26_VitTfyz7GCju0qBCzB9yttwi-wNiE,24277
|
|
537
|
+
com/alipay/ams/api/request/pay/alipay_payment_session_request.py,sha256=q2Dri_e1eAve6js5YCYsIJBtCBVVcjAJMDti5fN4U2E,26315
|
|
530
538
|
com/alipay/ams/api/request/pay/alipay_refund_query_request.py,sha256=toPeVWYhPp4HA79_8bbWqodL_aVbJz3KRajQ8RSadlE,1672
|
|
531
539
|
com/alipay/ams/api/request/pay/alipay_refund_request.py,sha256=K8At4o06pabQ_ZfS0y3IMV2qJLywRsm8S4J2RNUGS0Q,13245
|
|
532
540
|
com/alipay/ams/api/request/pay/alipay_retrieve_payment_session_request.py,sha256=P_Mm7m238hneuba5VQabAhJTVXh6vYM7fsd9Dg0z0SQ,1009
|
|
@@ -708,6 +716,7 @@ com/alipay/ams/api/response/pay/alipay_create_order_response.py,sha256=8-I1HBvyk
|
|
|
708
716
|
com/alipay/ams/api/response/pay/alipay_create_release_response.py,sha256=cl9egzPLBR3jHyBm9jmMCTeT5-sxutU1QiSySrSBhpM,4181
|
|
709
717
|
com/alipay/ams/api/response/pay/alipay_create_rule_response.py,sha256=QtBqoo6sY3ZytsRf-JZsngGpjlTlO-QBIP2zh-aXq0s,8661
|
|
710
718
|
com/alipay/ams/api/response/pay/alipay_create_session_response.py,sha256=DS_SCuU0X0Vwl0ZMU1B6JBsEhDACT5cPhQZwhXRnsVo,1180
|
|
719
|
+
com/alipay/ams/api/response/pay/alipay_inquire_batch_payment_response.py,sha256=aSXN9GPQ6nO3N1WUInm1afq8ZLjGR9q47YyJjP2AkxU,8414
|
|
711
720
|
com/alipay/ams/api/response/pay/alipay_inquire_exchange_rate_response.py,sha256=-1ch0aTFRmYqhP8Ir2acdEPk93NBawzab6JbAHKI8C0,2558
|
|
712
721
|
com/alipay/ams/api/response/pay/alipay_inquire_hold_list_response.py,sha256=v8fSz0zSmxE9JXhg8zhbZRaeGE_64m33DcoxK9-NfFw,2556
|
|
713
722
|
com/alipay/ams/api/response/pay/alipay_inquire_release_response.py,sha256=DEtcXP1KC2xlydcRSr02NvKlCuJ8h5DqudFlNovadEw,4148
|
|
@@ -765,8 +774,8 @@ com/alipay/ams/api/tools/signature_tool.py,sha256=BPkhyBjoelK14fdFnWzJCSBw3DDpi2
|
|
|
765
774
|
com/alipay/ams/api/tools/webhook_tool.py,sha256=egmjmWl_fiCc3Dh2Md1IZ6A_JH_6he5obFKcZy4ZVHM,613
|
|
766
775
|
com/alipay/ams/api/tools/resources/__init__.py,sha256=bKHpCZYZY3O29jAYctDwJPtIpHg-PS57lE67nBkmfgs,56
|
|
767
776
|
com/alipay/ams/api/tools/resources/amount-currency-rules.json,sha256=Sx9Ip1E8XJOwjMTRIa0Sk84PzIPV7IaFagEM3rlLg7o,1360
|
|
768
|
-
global_open_sdk_python-1.7.
|
|
769
|
-
global_open_sdk_python-1.7.
|
|
770
|
-
global_open_sdk_python-1.7.
|
|
771
|
-
global_open_sdk_python-1.7.
|
|
772
|
-
global_open_sdk_python-1.7.
|
|
777
|
+
global_open_sdk_python-1.7.2.dist-info/licenses/LICENSE,sha256=76Wscr16XZ-XStXIsmXgcsxutSSumPK2kJZj8C6bhJg,1063
|
|
778
|
+
global_open_sdk_python-1.7.2.dist-info/METADATA,sha256=HtWkpct3opjdgrrqUVcnD_9ex-U40Cl7Dhtpic_Cj9g,1267
|
|
779
|
+
global_open_sdk_python-1.7.2.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
780
|
+
global_open_sdk_python-1.7.2.dist-info/top_level.txt,sha256=A7eVUp0bsHtbJ7vD4f_Ju79_mDJojU9deED6-LV9_s0,4
|
|
781
|
+
global_open_sdk_python-1.7.2.dist-info/RECORD,,
|
{global_open_sdk_python-1.7.1.dist-info → global_open_sdk_python-1.7.2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{global_open_sdk_python-1.7.1.dist-info → global_open_sdk_python-1.7.2.dist-info}/top_level.txt
RENAMED
|
File without changes
|