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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: antchain_bot
3
- Version: 1.11.3
3
+ Version: 1.11.4
4
4
  Summary: Ant Chain BOT SDK Library for Python
5
5
  Home-page: https://github.com/alipay/antchain-openapi-prod-sdk
6
6
  Author: Ant Chain SDK
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: antchain-bot
3
- Version: 1.11.3
3
+ Version: 1.11.4
4
4
  Summary: Ant Chain BOT SDK Library for Python
5
5
  Home-page: https://github.com/alipay/antchain-openapi-prod-sdk
6
6
  Author: Ant Chain SDK
@@ -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.3',
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.3',
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
 
@@ -24,7 +24,7 @@ from setuptools import setup, find_packages
24
24
  """
25
25
  setup module for antchain_bot.
26
26
 
27
- Created on 05/06/2024
27
+ Created on 06/06/2024
28
28
 
29
29
  @author: Ant Chain SDK
30
30
  """
@@ -1 +0,0 @@
1
- __version__ = '1.11.3'
File without changes
File without changes
File without changes
File without changes