antchain-bot 1.11.2__py3-none-any.whl → 1.11.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: antchain-bot
3
- Version: 1.11.2
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,8 @@
1
+ antchain_sdk_bot/__init__.py,sha256=kLkclzQvdajyysN7WP0A3DcDJ18Wnla5MLHAmV2xpsw,22
2
+ antchain_sdk_bot/client.py,sha256=U44fE8OfDUx4KrOMtW64TvI-6959R2w-RxtFmePBVH0,538680
3
+ antchain_sdk_bot/models.py,sha256=BYxl1a2OMFKGSf1sCKgUhkUPZGAiEl_pnL0gVBqgaNE,1386132
4
+ antchain_bot-1.11.4.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
+ antchain_bot-1.11.4.dist-info/METADATA,sha256=vqnUjZJMGKLynF1VgoE4W2hY-Rpzns8p8DcprFIYJMY,1988
6
+ antchain_bot-1.11.4.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
7
+ antchain_bot-1.11.4.dist-info/top_level.txt,sha256=gpn1OPRhS8ydjW8IxqApJiA6jx285ves96g9kcJN9iA,17
8
+ antchain_bot-1.11.4.dist-info/RECORD,,
@@ -1 +1 @@
1
- __version__ = '1.11.2'
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.2',
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.2',
242
+ 'sdk_version': '1.11.4',
243
243
  '_prod_code': 'BOT',
244
244
  '_prod_channel': 'undefined'
245
245
  }
@@ -21969,7 +21969,7 @@ class SignDigitalkeyWithholdRequest(TeaModel):
21969
21969
  alipay_user_id: str = None,
21970
21970
  sign_scene: str = None,
21971
21971
  external_agreement_no: str = None,
21972
- sub_merchant: str = None,
21972
+ sub_merchant: SubMerchantParams = None,
21973
21973
  sign_validity_period: str = None,
21974
21974
  effect_time: int = None,
21975
21975
  ):
@@ -22007,6 +22007,8 @@ class SignDigitalkeyWithholdRequest(TeaModel):
22007
22007
  self.validate_required(self.external_logon_id, 'external_logon_id')
22008
22008
  self.validate_required(self.sign_scene, 'sign_scene')
22009
22009
  self.validate_required(self.external_agreement_no, 'external_agreement_no')
22010
+ if self.sub_merchant:
22011
+ self.sub_merchant.validate()
22010
22012
 
22011
22013
  def to_map(self):
22012
22014
  _map = super().to_map()
@@ -22035,7 +22037,7 @@ class SignDigitalkeyWithholdRequest(TeaModel):
22035
22037
  if self.external_agreement_no is not None:
22036
22038
  result['external_agreement_no'] = self.external_agreement_no
22037
22039
  if self.sub_merchant is not None:
22038
- result['sub_merchant'] = self.sub_merchant
22040
+ result['sub_merchant'] = self.sub_merchant.to_map()
22039
22041
  if self.sign_validity_period is not None:
22040
22042
  result['sign_validity_period'] = self.sign_validity_period
22041
22043
  if self.effect_time is not None:
@@ -22065,7 +22067,8 @@ class SignDigitalkeyWithholdRequest(TeaModel):
22065
22067
  if m.get('external_agreement_no') is not None:
22066
22068
  self.external_agreement_no = m.get('external_agreement_no')
22067
22069
  if m.get('sub_merchant') is not None:
22068
- self.sub_merchant = m.get('sub_merchant')
22070
+ temp_model = SubMerchantParams()
22071
+ self.sub_merchant = temp_model.from_map(m['sub_merchant'])
22069
22072
  if m.get('sign_validity_period') is not None:
22070
22073
  self.sign_validity_period = m.get('sign_validity_period')
22071
22074
  if m.get('effect_time') is not None:
@@ -22271,6 +22274,9 @@ class PayDigitalkeyWithholdRequest(TeaModel):
22271
22274
  agreement_no: str = None,
22272
22275
  timeout_express: str = None,
22273
22276
  async_type: str = None,
22277
+ discountable_amount: int = None,
22278
+ sub_merchant: SubMerchantParams = None,
22279
+ body: str = None,
22274
22280
  ):
22275
22281
  # OAuth模式下的授权token
22276
22282
  self.auth_token = auth_token
@@ -22293,6 +22299,12 @@ class PayDigitalkeyWithholdRequest(TeaModel):
22293
22299
  self.timeout_express = timeout_express
22294
22300
  # 异步支付类型
22295
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
22296
22308
 
22297
22309
  def validate(self):
22298
22310
  self.validate_required(self.out_trade_no, 'out_trade_no')
@@ -22302,6 +22314,8 @@ class PayDigitalkeyWithholdRequest(TeaModel):
22302
22314
  self.validate_required(self.total_amount, 'total_amount')
22303
22315
  self.validate_required(self.agreement_no, 'agreement_no')
22304
22316
  self.validate_required(self.async_type, 'async_type')
22317
+ if self.sub_merchant:
22318
+ self.sub_merchant.validate()
22305
22319
 
22306
22320
  def to_map(self):
22307
22321
  _map = super().to_map()
@@ -22331,6 +22345,12 @@ class PayDigitalkeyWithholdRequest(TeaModel):
22331
22345
  result['timeout_express'] = self.timeout_express
22332
22346
  if self.async_type is not None:
22333
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
22334
22354
  return result
22335
22355
 
22336
22356
  def from_map(self, m: dict = None):
@@ -22357,6 +22377,13 @@ class PayDigitalkeyWithholdRequest(TeaModel):
22357
22377
  self.timeout_express = m.get('timeout_express')
22358
22378
  if m.get('async_type') is not None:
22359
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')
22360
22387
  return self
22361
22388
 
22362
22389
 
@@ -1,8 +0,0 @@
1
- antchain_sdk_bot/__init__.py,sha256=H-6R8gUq3MUNNT4xpCN_gTw8Ps6JCfpA2-xg_w6XjCc,22
2
- antchain_sdk_bot/client.py,sha256=wTIK1nSyKYAngTRt5vWUepIwWkXKG63SLIz5X03uiso,538680
3
- antchain_sdk_bot/models.py,sha256=2AWvInRUoUsMvbvQ5OQqRliU6PAplgBX4oaT9JVEFPo,1384347
4
- antchain_bot-1.11.2.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
- antchain_bot-1.11.2.dist-info/METADATA,sha256=K2IuCBLjWoegWQeEprX08DxAtXcOGkVtgVGbi0vWTn8,1988
6
- antchain_bot-1.11.2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
7
- antchain_bot-1.11.2.dist-info/top_level.txt,sha256=gpn1OPRhS8ydjW8IxqApJiA6jx285ves96g9kcJN9iA,17
8
- antchain_bot-1.11.2.dist-info/RECORD,,