antchain-bot 1.11.3__tar.gz → 1.11.4__tar.gz
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.
- {antchain_bot-1.11.3 → antchain_bot-1.11.4}/PKG-INFO +1 -1
- {antchain_bot-1.11.3 → antchain_bot-1.11.4}/antchain_bot.egg-info/PKG-INFO +1 -1
- antchain_bot-1.11.4/antchain_sdk_bot/__init__.py +1 -0
- {antchain_bot-1.11.3 → antchain_bot-1.11.4}/antchain_sdk_bot/client.py +2 -2
- {antchain_bot-1.11.3 → antchain_bot-1.11.4}/antchain_sdk_bot/models.py +24 -0
- {antchain_bot-1.11.3 → antchain_bot-1.11.4}/setup.py +1 -1
- antchain_bot-1.11.3/antchain_sdk_bot/__init__.py +0 -1
- {antchain_bot-1.11.3 → antchain_bot-1.11.4}/LICENSE +0 -0
- {antchain_bot-1.11.3 → antchain_bot-1.11.4}/MANIFEST.in +0 -0
- {antchain_bot-1.11.3 → antchain_bot-1.11.4}/README-CN.md +0 -0
- {antchain_bot-1.11.3 → antchain_bot-1.11.4}/README.md +0 -0
- {antchain_bot-1.11.3 → antchain_bot-1.11.4}/antchain_bot.egg-info/SOURCES.txt +0 -0
- {antchain_bot-1.11.3 → antchain_bot-1.11.4}/antchain_bot.egg-info/dependency_links.txt +0 -0
- {antchain_bot-1.11.3 → antchain_bot-1.11.4}/antchain_bot.egg-info/requires.txt +0 -0
- {antchain_bot-1.11.3 → antchain_bot-1.11.4}/antchain_bot.egg-info/top_level.txt +0 -0
- {antchain_bot-1.11.3 → antchain_bot-1.11.4}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.11.4'
|
|
@@ -135,7 +135,7 @@ class Client:
|
|
|
135
135
|
'req_msg_id': AntchainUtils.get_nonce(),
|
|
136
136
|
'access_key': self._access_key_id,
|
|
137
137
|
'base_sdk_version': 'TeaSDK-2.0',
|
|
138
|
-
'sdk_version': '1.11.
|
|
138
|
+
'sdk_version': '1.11.4',
|
|
139
139
|
'_prod_code': 'BOT',
|
|
140
140
|
'_prod_channel': 'undefined'
|
|
141
141
|
}
|
|
@@ -239,7 +239,7 @@ class Client:
|
|
|
239
239
|
'req_msg_id': AntchainUtils.get_nonce(),
|
|
240
240
|
'access_key': self._access_key_id,
|
|
241
241
|
'base_sdk_version': 'TeaSDK-2.0',
|
|
242
|
-
'sdk_version': '1.11.
|
|
242
|
+
'sdk_version': '1.11.4',
|
|
243
243
|
'_prod_code': 'BOT',
|
|
244
244
|
'_prod_channel': 'undefined'
|
|
245
245
|
}
|
|
@@ -22274,6 +22274,9 @@ class PayDigitalkeyWithholdRequest(TeaModel):
|
|
|
22274
22274
|
agreement_no: str = None,
|
|
22275
22275
|
timeout_express: str = None,
|
|
22276
22276
|
async_type: str = None,
|
|
22277
|
+
discountable_amount: int = None,
|
|
22278
|
+
sub_merchant: SubMerchantParams = None,
|
|
22279
|
+
body: str = None,
|
|
22277
22280
|
):
|
|
22278
22281
|
# OAuth模式下的授权token
|
|
22279
22282
|
self.auth_token = auth_token
|
|
@@ -22296,6 +22299,12 @@ class PayDigitalkeyWithholdRequest(TeaModel):
|
|
|
22296
22299
|
self.timeout_express = timeout_express
|
|
22297
22300
|
# 异步支付类型
|
|
22298
22301
|
self.async_type = async_type
|
|
22302
|
+
# 可打折金额。 参与优惠计算的金额,单位为元,精确到小数点后两位,取值范围[0.01,100000000]。 如果同时传入了【可打折金额】、【不可打折金额】和【订单总金额】,则必须满足如下条件:【订单总金额】=【可打折金额】+【不可打折金额】。 如果订单金额全部参与优惠计算,则【可打折金额】和【不可打折金额】都无需传入。
|
|
22303
|
+
self.discountable_amount = discountable_amount
|
|
22304
|
+
# 二级商户信息
|
|
22305
|
+
self.sub_merchant = sub_merchant
|
|
22306
|
+
# 订单附加信息。 如果请求时传递了该参数,将在异步通知、对账单中原样返回,同时会在商户和用户的pc账单详情中作为交易描述展示
|
|
22307
|
+
self.body = body
|
|
22299
22308
|
|
|
22300
22309
|
def validate(self):
|
|
22301
22310
|
self.validate_required(self.out_trade_no, 'out_trade_no')
|
|
@@ -22305,6 +22314,8 @@ class PayDigitalkeyWithholdRequest(TeaModel):
|
|
|
22305
22314
|
self.validate_required(self.total_amount, 'total_amount')
|
|
22306
22315
|
self.validate_required(self.agreement_no, 'agreement_no')
|
|
22307
22316
|
self.validate_required(self.async_type, 'async_type')
|
|
22317
|
+
if self.sub_merchant:
|
|
22318
|
+
self.sub_merchant.validate()
|
|
22308
22319
|
|
|
22309
22320
|
def to_map(self):
|
|
22310
22321
|
_map = super().to_map()
|
|
@@ -22334,6 +22345,12 @@ class PayDigitalkeyWithholdRequest(TeaModel):
|
|
|
22334
22345
|
result['timeout_express'] = self.timeout_express
|
|
22335
22346
|
if self.async_type is not None:
|
|
22336
22347
|
result['async_type'] = self.async_type
|
|
22348
|
+
if self.discountable_amount is not None:
|
|
22349
|
+
result['discountable_amount'] = self.discountable_amount
|
|
22350
|
+
if self.sub_merchant is not None:
|
|
22351
|
+
result['sub_merchant'] = self.sub_merchant.to_map()
|
|
22352
|
+
if self.body is not None:
|
|
22353
|
+
result['body'] = self.body
|
|
22337
22354
|
return result
|
|
22338
22355
|
|
|
22339
22356
|
def from_map(self, m: dict = None):
|
|
@@ -22360,6 +22377,13 @@ class PayDigitalkeyWithholdRequest(TeaModel):
|
|
|
22360
22377
|
self.timeout_express = m.get('timeout_express')
|
|
22361
22378
|
if m.get('async_type') is not None:
|
|
22362
22379
|
self.async_type = m.get('async_type')
|
|
22380
|
+
if m.get('discountable_amount') is not None:
|
|
22381
|
+
self.discountable_amount = m.get('discountable_amount')
|
|
22382
|
+
if m.get('sub_merchant') is not None:
|
|
22383
|
+
temp_model = SubMerchantParams()
|
|
22384
|
+
self.sub_merchant = temp_model.from_map(m['sub_merchant'])
|
|
22385
|
+
if m.get('body') is not None:
|
|
22386
|
+
self.body = m.get('body')
|
|
22363
22387
|
return self
|
|
22364
22388
|
|
|
22365
22389
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.11.3'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|