From f1113ee3b2323b7dd2223eff9dc546cacdd111b1 Mon Sep 17 00:00:00 2001 From: tencentcloudapi Date: Tue, 7 Jun 2022 06:40:59 +0800 Subject: [PATCH] release 3.0.649 --- CHANGELOG.md | 172 + SERVICE_CHANGELOG.md | 302 +- products.md | 21 +- tencentcloud/__init__.py | 2 +- tencentcloud/api/v20201106/models.py | 4 +- tencentcloud/cdn/v20180606/cdn_client.py | 29 + tencentcloud/cdn/v20180606/models.py | 58 + tencentcloud/cpdp/v20190820/cpdp_client.py | 406 ++ tencentcloud/cpdp/v20190820/errorcodes.py | 3 + tencentcloud/cpdp/v20190820/models.py | 5359 +++++++++++++------- tencentcloud/cvm/v20170312/errorcodes.py | 3 + tencentcloud/dlc/v20210125/models.py | 12 +- tencentcloud/ess/v20201111/models.py | 2 +- tencentcloud/mongodb/v20190725/models.py | 4 + tencentcloud/soe/v20180724/models.py | 4 +- tencentcloud/sqlserver/v20180328/models.py | 8 + tencentcloud/tan/__init__.py | 0 tencentcloud/tan/v20220420/__init__.py | 0 tencentcloud/tan/v20220420/errorcodes.py | 81 + tencentcloud/tan/v20220420/models.py | 67 + tencentcloud/tan/v20220420/tan_client.py | 55 + tencentcloud/teo/v20220106/errorcodes.py | 3 + tencentcloud/trtc/v20190722/models.py | 218 + tencentcloud/trtc/v20190722/trtc_client.py | 62 + tencentcloud/tts/v20190823/models.py | 4 +- tencentcloud/tts/v20190823/tts_client.py | 11 + tests/unit/test_import.py | 5 + 27 files changed, 5101 insertions(+), 1794 deletions(-) create mode 100644 tencentcloud/tan/__init__.py create mode 100644 tencentcloud/tan/v20220420/__init__.py create mode 100644 tencentcloud/tan/v20220420/errorcodes.py create mode 100644 tencentcloud/tan/v20220420/models.py create mode 100644 tencentcloud/tan/v20220420/tan_client.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 55ccd8a12..942da3f87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,175 @@ +# Release 3.0.649 + +## 内容分发网络(cdn) 版本:2018-06-06 + +### 第 103 次发布 + +发布时间:2022-06-07 06:02:40 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [AddCLSTopicDomains](https://cloud.tencent.com/document/api/228/74961) + + + +## 企业收付平台(cpdp) 版本:2019-08-20 + +### 第 67 次发布 + +发布时间:2022-06-07 06:04:05 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [ApplyFlexPayment](https://cloud.tencent.com/document/api/1122/74976) +* [ApplyFlexSettlement](https://cloud.tencent.com/document/api/1122/74975) +* [CreateFlexPayee](https://cloud.tencent.com/document/api/1122/74974) +* [FreezeFlexBalance](https://cloud.tencent.com/document/api/1122/74973) +* [ModifyFlexPayeeAccountRightStatus](https://cloud.tencent.com/document/api/1122/74972) +* [QueryFlexAmountBeforeTax](https://cloud.tencent.com/document/api/1122/74971) +* [QueryFlexFreezeOrderList](https://cloud.tencent.com/document/api/1122/74970) +* [QueryFlexPayeeAccountBalance](https://cloud.tencent.com/document/api/1122/74969) +* [QueryFlexPayeeAccountInfo](https://cloud.tencent.com/document/api/1122/74968) +* [QueryFlexPayeeAccountList](https://cloud.tencent.com/document/api/1122/74967) +* [QueryFlexPayeeInfo](https://cloud.tencent.com/document/api/1122/74966) +* [QueryFlexPaymentOrderList](https://cloud.tencent.com/document/api/1122/74965) +* [QueryFlexPaymentOrderStatus](https://cloud.tencent.com/document/api/1122/74964) +* [QueryFlexSettlementOrderList](https://cloud.tencent.com/document/api/1122/74963) + +新增数据结构: + +* [AmountBeforeTaxResult](https://cloud.tencent.com/document/api/1122/40683#AmountBeforeTaxResult) +* [ApplyFlexPaymentResult](https://cloud.tencent.com/document/api/1122/40683#ApplyFlexPaymentResult) +* [ApplyFlexSettlementResult](https://cloud.tencent.com/document/api/1122/40683#ApplyFlexSettlementResult) +* [CreateFlexPayeeResult](https://cloud.tencent.com/document/api/1122/40683#CreateFlexPayeeResult) +* [FlexFundingAccountInfo](https://cloud.tencent.com/document/api/1122/40683#FlexFundingAccountInfo) +* [FreezeFlexBalanceResult](https://cloud.tencent.com/document/api/1122/40683#FreezeFlexBalanceResult) +* [FreezeOrderResult](https://cloud.tencent.com/document/api/1122/40683#FreezeOrderResult) +* [FreezeOrders](https://cloud.tencent.com/document/api/1122/40683#FreezeOrders) +* [PayeeAccountBalanceResult](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountBalanceResult) +* [PayeeAccountInfoResult](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountInfoResult) +* [PayeeAccountInfos](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountInfos) +* [PayeeAccountPropertyInfo](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountPropertyInfo) +* [PayeeAccountUserInfo](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountUserInfo) +* [PayeeInfoResult](https://cloud.tencent.com/document/api/1122/40683#PayeeInfoResult) +* [PayeeTaxInfo](https://cloud.tencent.com/document/api/1122/40683#PayeeTaxInfo) +* [PayeeTaxTemplateInfo](https://cloud.tencent.com/document/api/1122/40683#PayeeTaxTemplateInfo) +* [PaymentOrderResult](https://cloud.tencent.com/document/api/1122/40683#PaymentOrderResult) +* [PaymentOrderStatusResult](https://cloud.tencent.com/document/api/1122/40683#PaymentOrderStatusResult) +* [PaymentOrders](https://cloud.tencent.com/document/api/1122/40683#PaymentOrders) +* [SettlementOrderResult](https://cloud.tencent.com/document/api/1122/40683#SettlementOrderResult) +* [SettlementOrders](https://cloud.tencent.com/document/api/1122/40683#SettlementOrders) + + + +## 数据湖计算(dlc) 版本:2021-01-25 + +### 第 19 次发布 + +发布时间:2022-06-07 06:06:14 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [DescribeSparkAppTasks](https://cloud.tencent.com/document/api/1342/74533) + + * 新增出参:SparkAppTasks + + + + +## 云数据库 MongoDB(mongodb) 版本:2019-07-25 + +### 第 21 次发布 + +发布时间:2022-06-07 06:10:21 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改数据结构: + +* [SpecificationInfo](https://cloud.tencent.com/document/api/240/38576#SpecificationInfo) + + * 新增成员:SupportMultiAZ + + + + +## 云数据库 MongoDB(mongodb) 版本:2018-04-08 + + + +## 云数据库 SQL Server(sqlserver) 版本:2018-03-28 + +### 第 33 次发布 + +发布时间:2022-06-07 06:12:09 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [RemoveBackups](https://cloud.tencent.com/document/api/238/46287) + + * 新增入参:StartTime, EndTime + + * **修改入参**:BackupNames + + + + +## 碳引擎(tan) 版本:2022-04-20 + +### 第 1 次发布 + +发布时间:2022-06-06 16:47:40 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [CreateBlockNodeRecords](https://cloud.tencent.com/document/api/1498/74949) + + + +## 实时音视频(trtc) 版本:2019-07-22 + +### 第 30 次发布 + +发布时间:2022-06-07 06:15:13 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [DescribeExternalTrtcMeasure](https://cloud.tencent.com/document/api/647/74978) +* [MeasureTrtcMcuExternal](https://cloud.tencent.com/document/api/647/74977) + +新增数据结构: + +* [SdkAppIdNewTrtcTimeUsage](https://cloud.tencent.com/document/api/647/44055#SdkAppIdNewTrtcTimeUsage) +* [TrtcTimeNewUsage](https://cloud.tencent.com/document/api/647/44055#TrtcTimeNewUsage) + + + # Release 3.0.648 ## 云服务器(cvm) 版本:2017-03-12 diff --git a/SERVICE_CHANGELOG.md b/SERVICE_CHANGELOG.md index 052129f0d..eb05f004a 100644 --- a/SERVICE_CHANGELOG.md +++ b/SERVICE_CHANGELOG.md @@ -1,10 +1,79 @@ # 本版本更新包含以下内容: -## 云服务器(cvm) 版本:2017-03-12 +## 内容分发网络(cdn) 版本:2018-06-06 -### 第 86 次发布 +### 第 103 次发布 -发布时间:2022-06-03 06:05:18 +发布时间:2022-06-07 06:02:40 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [AddCLSTopicDomains](https://cloud.tencent.com/document/api/228/74961) + + + +## 企业收付平台(cpdp) 版本:2019-08-20 + +### 第 67 次发布 + +发布时间:2022-06-07 06:04:05 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [ApplyFlexPayment](https://cloud.tencent.com/document/api/1122/74976) +* [ApplyFlexSettlement](https://cloud.tencent.com/document/api/1122/74975) +* [CreateFlexPayee](https://cloud.tencent.com/document/api/1122/74974) +* [FreezeFlexBalance](https://cloud.tencent.com/document/api/1122/74973) +* [ModifyFlexPayeeAccountRightStatus](https://cloud.tencent.com/document/api/1122/74972) +* [QueryFlexAmountBeforeTax](https://cloud.tencent.com/document/api/1122/74971) +* [QueryFlexFreezeOrderList](https://cloud.tencent.com/document/api/1122/74970) +* [QueryFlexPayeeAccountBalance](https://cloud.tencent.com/document/api/1122/74969) +* [QueryFlexPayeeAccountInfo](https://cloud.tencent.com/document/api/1122/74968) +* [QueryFlexPayeeAccountList](https://cloud.tencent.com/document/api/1122/74967) +* [QueryFlexPayeeInfo](https://cloud.tencent.com/document/api/1122/74966) +* [QueryFlexPaymentOrderList](https://cloud.tencent.com/document/api/1122/74965) +* [QueryFlexPaymentOrderStatus](https://cloud.tencent.com/document/api/1122/74964) +* [QueryFlexSettlementOrderList](https://cloud.tencent.com/document/api/1122/74963) + +新增数据结构: + +* [AmountBeforeTaxResult](https://cloud.tencent.com/document/api/1122/40683#AmountBeforeTaxResult) +* [ApplyFlexPaymentResult](https://cloud.tencent.com/document/api/1122/40683#ApplyFlexPaymentResult) +* [ApplyFlexSettlementResult](https://cloud.tencent.com/document/api/1122/40683#ApplyFlexSettlementResult) +* [CreateFlexPayeeResult](https://cloud.tencent.com/document/api/1122/40683#CreateFlexPayeeResult) +* [FlexFundingAccountInfo](https://cloud.tencent.com/document/api/1122/40683#FlexFundingAccountInfo) +* [FreezeFlexBalanceResult](https://cloud.tencent.com/document/api/1122/40683#FreezeFlexBalanceResult) +* [FreezeOrderResult](https://cloud.tencent.com/document/api/1122/40683#FreezeOrderResult) +* [FreezeOrders](https://cloud.tencent.com/document/api/1122/40683#FreezeOrders) +* [PayeeAccountBalanceResult](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountBalanceResult) +* [PayeeAccountInfoResult](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountInfoResult) +* [PayeeAccountInfos](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountInfos) +* [PayeeAccountPropertyInfo](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountPropertyInfo) +* [PayeeAccountUserInfo](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountUserInfo) +* [PayeeInfoResult](https://cloud.tencent.com/document/api/1122/40683#PayeeInfoResult) +* [PayeeTaxInfo](https://cloud.tencent.com/document/api/1122/40683#PayeeTaxInfo) +* [PayeeTaxTemplateInfo](https://cloud.tencent.com/document/api/1122/40683#PayeeTaxTemplateInfo) +* [PaymentOrderResult](https://cloud.tencent.com/document/api/1122/40683#PaymentOrderResult) +* [PaymentOrderStatusResult](https://cloud.tencent.com/document/api/1122/40683#PaymentOrderStatusResult) +* [PaymentOrders](https://cloud.tencent.com/document/api/1122/40683#PaymentOrders) +* [SettlementOrderResult](https://cloud.tencent.com/document/api/1122/40683#SettlementOrderResult) +* [SettlementOrders](https://cloud.tencent.com/document/api/1122/40683#SettlementOrders) + + + +## 数据湖计算(dlc) 版本:2021-01-25 + +### 第 19 次发布 + +发布时间:2022-06-07 06:06:14 本次发布包含了以下内容: @@ -12,68 +81,92 @@ 修改接口: -* [ModifyInstancesAttribute](https://cloud.tencent.com/document/api/213/15739) +* [DescribeSparkAppTasks](https://cloud.tencent.com/document/api/1342/74533) - * 新增入参:CamRoleName, CamRoleType + * 新增出参:SparkAppTasks -## 图像分析(tiia) 版本:2019-05-29 +## 云数据库 MongoDB(mongodb) 版本:2019-07-25 ### 第 21 次发布 -发布时间:2022-06-03 06:14:26 +发布时间:2022-06-07 06:10:21 本次发布包含了以下内容: 改善已有的文档。 -修改接口: +修改数据结构: -* [CreateImage](https://cloud.tencent.com/document/api/865/63487) +* [SpecificationInfo](https://cloud.tencent.com/document/api/240/38576#SpecificationInfo) - * 新增入参:EnableDetect, CategoryId, ImageRect + * 新增成员:SupportMultiAZ - * 新增出参:Object -* [SearchImage](https://cloud.tencent.com/document/api/865/63483) - * 新增入参:EnableDetect, CategoryId - * 新增出参:Object +## 云数据库 MongoDB(mongodb) 版本:2018-04-08 -新增数据结构: -* [Attribute](https://cloud.tencent.com/document/api/865/35474#Attribute) -* [Box](https://cloud.tencent.com/document/api/865/35474#Box) -* [ColorInfo](https://cloud.tencent.com/document/api/865/35474#ColorInfo) -* [ObjectInfo](https://cloud.tencent.com/document/api/865/35474#ObjectInfo) -* [Rect](https://cloud.tencent.com/document/api/865/35474#Rect) +## 云数据库 SQL Server(sqlserver) 版本:2018-03-28 +### 第 33 次发布 +发布时间:2022-06-07 06:12:09 -## 容器服务(tke) 版本:2018-05-25 +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [RemoveBackups](https://cloud.tencent.com/document/api/238/46287) + + * 新增入参:StartTime, EndTime + + * **修改入参**:BackupNames -### 第 103 次发布 -发布时间:2022-06-03 06:14:39 + + +## 碳引擎(tan) 版本:2022-04-20 + +### 第 1 次发布 + +发布时间:2022-06-06 16:47:40 本次发布包含了以下内容: 改善已有的文档。 -修改数据结构: +新增接口: -* [ClusterCIDRSettings](https://cloud.tencent.com/document/api/457/31866#ClusterCIDRSettings) +* [CreateBlockNodeRecords](https://cloud.tencent.com/document/api/1498/74949) - * 新增成员:IgnoreServiceCIDRConflict -* [ClusterNetworkSettings](https://cloud.tencent.com/document/api/457/31866#ClusterNetworkSettings) - * 新增成员:IgnoreServiceCIDRConflict +## 实时音视频(trtc) 版本:2019-07-22 + +### 第 30 次发布 + +发布时间:2022-06-07 06:15:13 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [DescribeExternalTrtcMeasure](https://cloud.tencent.com/document/api/647/74978) +* [MeasureTrtcMcuExternal](https://cloud.tencent.com/document/api/647/74977) + +新增数据结构: +* [SdkAppIdNewTrtcTimeUsage](https://cloud.tencent.com/document/api/647/44055#SdkAppIdNewTrtcTimeUsage) +* [TrtcTimeNewUsage](https://cloud.tencent.com/document/api/647/44055#TrtcTimeNewUsage) @@ -12395,6 +12488,18 @@ ## 内容分发网络(cdn) 版本:2018-06-06 +### 第 103 次发布 + +发布时间:2022-06-07 06:02:40 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [[AddCLSTopicDomains](https://cloud.tencent.com/document/api/228/74961)](https://cloud.tencent.com/document/api/#/#) + ### 第 102 次发布 发布时间:2022-04-25 06:02:44 @@ -20632,6 +20737,55 @@ ## 企业收付平台(cpdp) 版本:2019-08-20 +### 第 67 次发布 + +发布时间:2022-06-07 06:04:05 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [[ApplyFlexPayment](https://cloud.tencent.com/document/api/1122/74976)](https://cloud.tencent.com/document/api/#/#) +* [[ApplyFlexSettlement](https://cloud.tencent.com/document/api/1122/74975)](https://cloud.tencent.com/document/api/#/#) +* [[CreateFlexPayee](https://cloud.tencent.com/document/api/1122/74974)](https://cloud.tencent.com/document/api/#/#) +* [[FreezeFlexBalance](https://cloud.tencent.com/document/api/1122/74973)](https://cloud.tencent.com/document/api/#/#) +* [[ModifyFlexPayeeAccountRightStatus](https://cloud.tencent.com/document/api/1122/74972)](https://cloud.tencent.com/document/api/#/#) +* [[QueryFlexAmountBeforeTax](https://cloud.tencent.com/document/api/1122/74971)](https://cloud.tencent.com/document/api/#/#) +* [[QueryFlexFreezeOrderList](https://cloud.tencent.com/document/api/1122/74970)](https://cloud.tencent.com/document/api/#/#) +* [[QueryFlexPayeeAccountBalance](https://cloud.tencent.com/document/api/1122/74969)](https://cloud.tencent.com/document/api/#/#) +* [[QueryFlexPayeeAccountInfo](https://cloud.tencent.com/document/api/1122/74968)](https://cloud.tencent.com/document/api/#/#) +* [[QueryFlexPayeeAccountList](https://cloud.tencent.com/document/api/1122/74967)](https://cloud.tencent.com/document/api/#/#) +* [[QueryFlexPayeeInfo](https://cloud.tencent.com/document/api/1122/74966)](https://cloud.tencent.com/document/api/#/#) +* [[QueryFlexPaymentOrderList](https://cloud.tencent.com/document/api/1122/74965)](https://cloud.tencent.com/document/api/#/#) +* [[QueryFlexPaymentOrderStatus](https://cloud.tencent.com/document/api/1122/74964)](https://cloud.tencent.com/document/api/#/#) +* [[QueryFlexSettlementOrderList](https://cloud.tencent.com/document/api/1122/74963)](https://cloud.tencent.com/document/api/#/#) + +新增数据结构: + +* [[AmountBeforeTaxResult](https://cloud.tencent.com/document/api/1122/40683#AmountBeforeTaxResult)](https://cloud.tencent.com/document/api/1122/40683#[AmountBeforeTaxResult](https://cloud.tencent.com/document/api/1122/40683#AmountBeforeTaxResult)) +* [[ApplyFlexPaymentResult](https://cloud.tencent.com/document/api/1122/40683#ApplyFlexPaymentResult)](https://cloud.tencent.com/document/api/1122/40683#[ApplyFlexPaymentResult](https://cloud.tencent.com/document/api/1122/40683#ApplyFlexPaymentResult)) +* [[ApplyFlexSettlementResult](https://cloud.tencent.com/document/api/1122/40683#ApplyFlexSettlementResult)](https://cloud.tencent.com/document/api/1122/40683#[ApplyFlexSettlementResult](https://cloud.tencent.com/document/api/1122/40683#ApplyFlexSettlementResult)) +* [[CreateFlexPayeeResult](https://cloud.tencent.com/document/api/1122/40683#CreateFlexPayeeResult)](https://cloud.tencent.com/document/api/1122/40683#[CreateFlexPayeeResult](https://cloud.tencent.com/document/api/1122/40683#CreateFlexPayeeResult)) +* [[FlexFundingAccountInfo](https://cloud.tencent.com/document/api/1122/40683#FlexFundingAccountInfo)](https://cloud.tencent.com/document/api/1122/40683#[FlexFundingAccountInfo](https://cloud.tencent.com/document/api/1122/40683#FlexFundingAccountInfo)) +* [[FreezeFlexBalanceResult](https://cloud.tencent.com/document/api/1122/40683#FreezeFlexBalanceResult)](https://cloud.tencent.com/document/api/1122/40683#[FreezeFlexBalanceResult](https://cloud.tencent.com/document/api/1122/40683#FreezeFlexBalanceResult)) +* [[FreezeOrderResult](https://cloud.tencent.com/document/api/1122/40683#FreezeOrderResult)](https://cloud.tencent.com/document/api/1122/40683#[FreezeOrderResult](https://cloud.tencent.com/document/api/1122/40683#FreezeOrderResult)) +* [[FreezeOrders](https://cloud.tencent.com/document/api/1122/40683#FreezeOrders)](https://cloud.tencent.com/document/api/1122/40683#[FreezeOrders](https://cloud.tencent.com/document/api/1122/40683#FreezeOrders)) +* [[PayeeAccountBalanceResult](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountBalanceResult)](https://cloud.tencent.com/document/api/1122/40683#[PayeeAccountBalanceResult](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountBalanceResult)) +* [[PayeeAccountInfoResult](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountInfoResult)](https://cloud.tencent.com/document/api/1122/40683#[PayeeAccountInfoResult](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountInfoResult)) +* [[PayeeAccountInfos](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountInfos)](https://cloud.tencent.com/document/api/1122/40683#[PayeeAccountInfos](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountInfos)) +* [[PayeeAccountPropertyInfo](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountPropertyInfo)](https://cloud.tencent.com/document/api/1122/40683#[PayeeAccountPropertyInfo](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountPropertyInfo)) +* [[PayeeAccountUserInfo](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountUserInfo)](https://cloud.tencent.com/document/api/1122/40683#[PayeeAccountUserInfo](https://cloud.tencent.com/document/api/1122/40683#PayeeAccountUserInfo)) +* [[PayeeInfoResult](https://cloud.tencent.com/document/api/1122/40683#PayeeInfoResult)](https://cloud.tencent.com/document/api/1122/40683#[PayeeInfoResult](https://cloud.tencent.com/document/api/1122/40683#PayeeInfoResult)) +* [[PayeeTaxInfo](https://cloud.tencent.com/document/api/1122/40683#PayeeTaxInfo)](https://cloud.tencent.com/document/api/1122/40683#[PayeeTaxInfo](https://cloud.tencent.com/document/api/1122/40683#PayeeTaxInfo)) +* [[PayeeTaxTemplateInfo](https://cloud.tencent.com/document/api/1122/40683#PayeeTaxTemplateInfo)](https://cloud.tencent.com/document/api/1122/40683#[PayeeTaxTemplateInfo](https://cloud.tencent.com/document/api/1122/40683#PayeeTaxTemplateInfo)) +* [[PaymentOrderResult](https://cloud.tencent.com/document/api/1122/40683#PaymentOrderResult)](https://cloud.tencent.com/document/api/1122/40683#[PaymentOrderResult](https://cloud.tencent.com/document/api/1122/40683#PaymentOrderResult)) +* [[PaymentOrderStatusResult](https://cloud.tencent.com/document/api/1122/40683#PaymentOrderStatusResult)](https://cloud.tencent.com/document/api/1122/40683#[PaymentOrderStatusResult](https://cloud.tencent.com/document/api/1122/40683#PaymentOrderStatusResult)) +* [[PaymentOrders](https://cloud.tencent.com/document/api/1122/40683#PaymentOrders)](https://cloud.tencent.com/document/api/1122/40683#[PaymentOrders](https://cloud.tencent.com/document/api/1122/40683#PaymentOrders)) +* [[SettlementOrderResult](https://cloud.tencent.com/document/api/1122/40683#SettlementOrderResult)](https://cloud.tencent.com/document/api/1122/40683#[SettlementOrderResult](https://cloud.tencent.com/document/api/1122/40683#SettlementOrderResult)) +* [[SettlementOrders](https://cloud.tencent.com/document/api/1122/40683#SettlementOrders)](https://cloud.tencent.com/document/api/1122/40683#[SettlementOrders](https://cloud.tencent.com/document/api/1122/40683#SettlementOrders)) + ### 第 66 次发布 发布时间:2022-05-20 06:04:11 @@ -28373,6 +28527,21 @@ ## 数据湖计算(dlc) 版本:2021-01-25 +### 第 19 次发布 + +发布时间:2022-06-07 06:06:14 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [DescribeSparkAppTasks](https://cloud.tencent.com/document/api/1342/74533) + + * 新增出参:SparkAppTasks + + ### 第 18 次发布 发布时间:2022-06-01 06:09:45 @@ -46592,6 +46761,21 @@ ## 云数据库 MongoDB(mongodb) 版本:2019-07-25 +### 第 21 次发布 + +发布时间:2022-06-07 06:10:21 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改数据结构: + +* [SpecificationInfo](https://cloud.tencent.com/document/api/240/38576#SpecificationInfo) + + * 新增成员:SupportMultiAZ + + ### 第 20 次发布 发布时间:2022-04-01 06:11:50 @@ -56523,6 +56707,23 @@ ## 云数据库 SQL Server(sqlserver) 版本:2018-03-28 +### 第 33 次发布 + +发布时间:2022-06-07 06:12:09 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [RemoveBackups](https://cloud.tencent.com/document/api/238/46287) + + * 新增入参:StartTime, EndTime + + * **修改入参**:BackupNames + + ### 第 32 次发布 发布时间:2022-05-23 06:12:44 @@ -58656,6 +58857,23 @@ +## 碳引擎(tan) 版本:2022-04-20 + +### 第 1 次发布 + +发布时间:2022-06-06 16:47:40 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [[CreateBlockNodeRecords](https://cloud.tencent.com/document/api/1498/74949)](https://cloud.tencent.com/document/api/#/#) + + + + ## 腾讯云自动化助手(tat) 版本:2020-10-28 ### 第 17 次发布 @@ -65962,11 +66180,11 @@ 新增数据结构: -* [[Attribute](https://cloud.tencent.com/document/api/865/35474#Attribute)](https://cloud.tencent.com/document/api/865/35474#[Attribute](https://cloud.tencent.com/document/api/865/35474#Attribute)) -* [[Box](https://cloud.tencent.com/document/api/865/35474#Box)](https://cloud.tencent.com/document/api/865/35474#[Box](https://cloud.tencent.com/document/api/865/35474#Box)) -* [[ColorInfo](https://cloud.tencent.com/document/api/865/35474#ColorInfo)](https://cloud.tencent.com/document/api/865/35474#[ColorInfo](https://cloud.tencent.com/document/api/865/35474#ColorInfo)) -* [[ObjectInfo](https://cloud.tencent.com/document/api/865/35474#ObjectInfo)](https://cloud.tencent.com/document/api/865/35474#[ObjectInfo](https://cloud.tencent.com/document/api/865/35474#ObjectInfo)) -* [[Rect](https://cloud.tencent.com/document/api/865/35474#Rect)](https://cloud.tencent.com/document/api/865/35474#[Rect](https://cloud.tencent.com/document/api/865/35474#Rect)) +* [Attribute](https://cloud.tencent.com/document/api/865/35474#Attribute) +* [Box](https://cloud.tencent.com/document/api/865/35474#Box) +* [ColorInfo](https://cloud.tencent.com/document/api/865/35474#ColorInfo) +* [ObjectInfo](https://cloud.tencent.com/document/api/865/35474#ObjectInfo) +* [Rect](https://cloud.tencent.com/document/api/865/35474#Rect) ### 第 20 次发布 @@ -69560,6 +69778,24 @@ ## 实时音视频(trtc) 版本:2019-07-22 +### 第 30 次发布 + +发布时间:2022-06-07 06:15:13 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [[DescribeExternalTrtcMeasure](https://cloud.tencent.com/document/api/647/74978)](https://cloud.tencent.com/document/api/#/#) +* [[MeasureTrtcMcuExternal](https://cloud.tencent.com/document/api/647/74977)](https://cloud.tencent.com/document/api/#/#) + +新增数据结构: + +* [[SdkAppIdNewTrtcTimeUsage](https://cloud.tencent.com/document/api/647/44055#SdkAppIdNewTrtcTimeUsage)](https://cloud.tencent.com/document/api/647/44055#[SdkAppIdNewTrtcTimeUsage](https://cloud.tencent.com/document/api/647/44055#SdkAppIdNewTrtcTimeUsage)) +* [[TrtcTimeNewUsage](https://cloud.tencent.com/document/api/647/44055#TrtcTimeNewUsage)](https://cloud.tencent.com/document/api/647/44055#[TrtcTimeNewUsage](https://cloud.tencent.com/document/api/647/44055#TrtcTimeNewUsage)) + ### 第 29 次发布 发布时间:2022-05-17 06:17:44 diff --git a/products.md b/products.md index f14b9a6f3..c104f3daa 100644 --- a/products.md +++ b/products.md @@ -10,7 +10,7 @@ | antiddos | [DDoS 防护](https://cloud.tencent.com/document/product/1021) | 2022-05-17 06:03:35 | | apcas | [汽车精准获客服务](https://cloud.tencent.com/document/product/1244) | 2022-04-04 06:05:36 | | ape | [正版图库直通车](https://cloud.tencent.com/document/product/1181) | 2022-04-04 06:05:40 | -| api | [云 API](https://cloud.tencent.com/document/product/1278) | 2022-04-08 06:01:32 | +| api | [云 API](https://cloud.tencent.com/document/product/1278) | 2022-06-07 06:00:45 | | apigateway | [API网关](https://cloud.tencent.com/document/product/628) | 2022-04-21 06:05:25 | | apm | [应用性能观测](https://cloud.tencent.com/document/product/1463) | 2022-05-17 11:59:15 | | as | [弹性伸缩](https://cloud.tencent.com/document/product/377) | 2022-06-02 06:02:22 | @@ -38,7 +38,7 @@ | ccc | [云呼叫中心](https://cloud.tencent.com/document/product/679) | 2022-05-31 06:05:55 | | cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2022-06-02 06:03:38 | | cdc | [本地专用集群](https://cloud.tencent.com/document/product/1346) | 2022-05-16 17:18:07 | -| cdn | [内容分发网络](https://cloud.tencent.com/document/product/228) | 2022-05-20 06:02:50 | +| cdn | [内容分发网络](https://cloud.tencent.com/document/product/228) | 2022-06-07 06:02:40 | | cds | [数据安全审计](https://cloud.tencent.com/document/product/856) | 2022-04-04 06:17:07 | | cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2022-05-24 06:08:29 | | cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2022-04-04 06:17:16 | @@ -55,7 +55,7 @@ | cme | [多媒体创作引擎](https://cloud.tencent.com/document/product/1156) | 2022-04-22 06:07:06 | | cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2022-04-04 06:23:04 | | cms | [内容安全](https://cloud.tencent.com/document/product) | 2020-10-29 08:03:08 | -| cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2022-06-03 06:04:52 | +| cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2022-06-07 06:04:05 | | cr | [金融联络机器人](https://cloud.tencent.com/document/product/656) | 2021-02-24 08:03:24 | | cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2022-06-03 06:05:18 | | cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2022-05-31 06:08:47 | @@ -67,7 +67,7 @@ | dbdc | [云数据库独享集群](https://cloud.tencent.com/document/product/1322) | 2022-05-31 17:05:07 | | dc | [专线接入](https://cloud.tencent.com/document/product/216) | 2022-04-13 06:36:47 | | dcdb | [分布式数据库 TDSQL](https://cloud.tencent.com/document/product/557) | 2022-05-31 06:09:47 | -| dlc | [数据湖计算](https://cloud.tencent.com/document/product/1342) | 2022-06-01 06:09:45 | +| dlc | [数据湖计算](https://cloud.tencent.com/document/product/1342) | 2022-06-07 06:06:14 | | dnspod | [DNSPod](https://cloud.tencent.com/document/product/1427) | 2022-05-19 06:11:31 | | domain | [域名注册](https://cloud.tencent.com/document/product/242) | 2022-05-24 06:11:36 | | drm | [数字版权管理](https://cloud.tencent.com/document/product/1000) | 2022-04-04 06:38:48 | @@ -82,7 +82,7 @@ | eis | [企业集成服务](https://cloud.tencent.com/document/product/1270) | 2022-04-04 06:42:05 | | emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2022-05-23 06:08:01 | | es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2022-05-25 06:08:55 | -| ess | [电子签服务](https://cloud.tencent.com/document/product/1323) | 2022-06-02 06:08:09 | +| ess | [电子签服务](https://cloud.tencent.com/document/product/1323) | 2022-06-07 06:07:22 | | essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2022-06-02 06:08:13 | | facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2022-04-04 06:42:42 | | faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2022-06-02 06:08:18 | @@ -119,7 +119,7 @@ | memcached | [云数据库 Memcached](https://cloud.tencent.com/document/product/241) | 2022-04-04 06:57:44 | | mgobe | [游戏联机对战引擎](https://cloud.tencent.com/document/product/1038) | 2022-04-04 06:57:46 | | mna | [移动网络加速](https://cloud.tencent.com/document/product/1385) | 2022-04-04 06:57:51 | -| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2022-04-21 06:15:03 | +| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2022-06-07 06:10:21 | | monitor | [云监控](https://cloud.tencent.com/document/product/248) | 2022-05-26 06:14:37 | | mps | [视频处理](https://cloud.tencent.com/document/product/862) | 2022-05-25 06:12:20 | | mrs | [医疗报告结构化](https://cloud.tencent.com/document/product/1314) | 2022-04-04 07:00:09 | @@ -145,9 +145,9 @@ | smh | [智能媒资托管](https://cloud.tencent.com/document/product/1339) | 2022-04-25 06:11:28 | | smpn | [营销号码安全](https://cloud.tencent.com/document/product/1127) | 2022-04-04 07:05:41 | | sms | [短信](https://cloud.tencent.com/document/product/382) | 2022-04-14 06:16:29 | -| soe | [智聆口语评测](https://cloud.tencent.com/document/product/884) | 2022-05-26 06:16:15 | +| soe | [智聆口语评测](https://cloud.tencent.com/document/product/884) | 2022-06-07 06:12:07 | | solar | [智汇零售](https://cloud.tencent.com/document/product) | 2020-03-19 08:01:59 | -| sqlserver | [云数据库 SQL Server](https://cloud.tencent.com/document/product/238) | 2022-05-31 06:16:15 | +| sqlserver | [云数据库 SQL Server](https://cloud.tencent.com/document/product/238) | 2022-06-07 06:12:09 | | ssa | [安全运营中心](https://cloud.tencent.com/document/product/664) | 2022-04-22 06:14:46 | | ssl | [证书](https://cloud.tencent.com/document/product/400) | 2022-06-01 06:15:43 | | sslpod | [SSL 证书监控](https://cloud.tencent.com/document/product/1084) | 2022-04-04 07:07:55 | @@ -155,6 +155,7 @@ | sts | [安全凭证服务](https://cloud.tencent.com/document/product/1312) | 2022-05-18 06:16:35 | | taf | [流量反欺诈](https://cloud.tencent.com/document/product/1031) | 2022-04-04 07:08:16 | | tag | [标签](https://cloud.tencent.com/document/product/651) | 2022-04-08 06:12:35 | +| tan | [碳引擎](https://cloud.tencent.com/document/product/1498) | 2022-06-06 16:47:40 | | tat | [腾讯云自动化助手](https://cloud.tencent.com/document/product/1340) | 2022-04-08 06:12:44 | | tav | [文件检测](https://cloud.tencent.com/document/product) | 2019-11-28 22:10:04 | | tbaas | [TBaaS](https://cloud.tencent.com/document/product/663) | 2022-04-15 06:12:40 | @@ -185,11 +186,11 @@ | tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 | | tms | [文本内容安全](https://cloud.tencent.com/document/product/1124) | 2022-04-04 07:18:11 | | tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2022-05-19 06:19:37 | -| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2022-05-18 06:19:08 | +| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2022-06-07 06:15:13 | | tse | [腾讯云微服务引擎](https://cloud.tencent.com/document/product/1364) | 2022-06-02 06:16:18 | | tsf | [腾讯微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2022-05-20 06:20:03 | | tsw | [腾讯微服务观测平台 TSW](https://cloud.tencent.com/document/product/1311) | 2022-04-04 07:22:40 | -| tts | [语音合成](https://cloud.tencent.com/document/product/1073) | 2022-05-27 06:17:04 | +| tts | [语音合成](https://cloud.tencent.com/document/product/1073) | 2022-06-07 06:15:49 | | ump | [客流数字化平台](https://cloud.tencent.com/document/product/1320) | 2022-04-04 07:22:44 | | vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2022-05-10 06:14:42 | | vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2022-04-04 07:22:54 | diff --git a/tencentcloud/__init__.py b/tencentcloud/__init__.py index fbec26e50..7f434dc7e 100644 --- a/tencentcloud/__init__.py +++ b/tencentcloud/__init__.py @@ -14,4 +14,4 @@ # limitations under the License. -__version__ = '3.0.648' +__version__ = '3.0.649' diff --git a/tencentcloud/api/v20201106/models.py b/tencentcloud/api/v20201106/models.py index bdaf7efd2..683bbabd8 100644 --- a/tencentcloud/api/v20201106/models.py +++ b/tencentcloud/api/v20201106/models.py @@ -83,7 +83,7 @@ class DescribeRegionsRequest(AbstractModel): def __init__(self): r""" - :param Product: 待查询产品的名称,例如cvm + :param Product: 待查询产品的名称,例如cvm,具体取值请查询DescribeProducts接口 :type Product: str """ self.Product = None @@ -137,7 +137,7 @@ class DescribeZonesRequest(AbstractModel): def __init__(self): r""" - :param Product: 待查询产品的名称,例如cvm + :param Product: 待查询产品的名称,例如cvm,具体取值请查询DescribeProducts接口 :type Product: str """ self.Product = None diff --git a/tencentcloud/cdn/v20180606/cdn_client.py b/tencentcloud/cdn/v20180606/cdn_client.py index a5459f9c1..08c8ad3fa 100644 --- a/tencentcloud/cdn/v20180606/cdn_client.py +++ b/tencentcloud/cdn/v20180606/cdn_client.py @@ -26,6 +26,35 @@ class CdnClient(AbstractClient): _service = 'cdn' + def AddCLSTopicDomains(self, request): + """AddCLSTopicDomains 用于新增域名到某日志主题下 + + :param request: Request instance for AddCLSTopicDomains. + :type request: :class:`tencentcloud.cdn.v20180606.models.AddCLSTopicDomainsRequest` + :rtype: :class:`tencentcloud.cdn.v20180606.models.AddCLSTopicDomainsResponse` + + """ + try: + params = request._serialize() + headers = request.headers + body = self.call("AddCLSTopicDomains", params, headers=headers) + response = json.loads(body) + if "Error" not in response["Response"]: + model = models.AddCLSTopicDomainsResponse() + model._deserialize(response["Response"]) + return model + else: + code = response["Response"]["Error"]["Code"] + message = response["Response"]["Error"]["Message"] + reqid = response["Response"]["RequestId"] + raise TencentCloudSDKException(code, message, reqid) + except Exception as e: + if isinstance(e, TencentCloudSDKException): + raise + else: + raise TencentCloudSDKException(e.message, e.message) + + def AddCdnDomain(self, request): """AddCdnDomain 用于新增内容分发网络加速域名。1分钟内最多可新增100个域名。 diff --git a/tencentcloud/cdn/v20180606/models.py b/tencentcloud/cdn/v20180606/models.py index 0e52433b3..2c68ee938 100644 --- a/tencentcloud/cdn/v20180606/models.py +++ b/tencentcloud/cdn/v20180606/models.py @@ -99,6 +99,64 @@ def _deserialize(self, params): +class AddCLSTopicDomainsRequest(AbstractModel): + """AddCLSTopicDomains请求参数结构体 + + """ + + def __init__(self): + r""" + :param LogsetId: 日志集ID + :type LogsetId: str + :param TopicId: 日志主题ID + :type TopicId: str + :param DomainAreaConfigs: 域名区域配置 + :type DomainAreaConfigs: list of DomainAreaConfig + :param Channel: 接入渠道,cdn或者ecdn,默认值为cdn + :type Channel: str + """ + self.LogsetId = None + self.TopicId = None + self.DomainAreaConfigs = None + self.Channel = None + + + def _deserialize(self, params): + self.LogsetId = params.get("LogsetId") + self.TopicId = params.get("TopicId") + if params.get("DomainAreaConfigs") is not None: + self.DomainAreaConfigs = [] + for item in params.get("DomainAreaConfigs"): + obj = DomainAreaConfig() + obj._deserialize(item) + self.DomainAreaConfigs.append(obj) + self.Channel = params.get("Channel") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class AddCLSTopicDomainsResponse(AbstractModel): + """AddCLSTopicDomains返回参数结构体 + + """ + + def __init__(self): + r""" + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.RequestId = None + + + def _deserialize(self, params): + self.RequestId = params.get("RequestId") + + class AddCdnDomainRequest(AbstractModel): """AddCdnDomain请求参数结构体 diff --git a/tencentcloud/cpdp/v20190820/cpdp_client.py b/tencentcloud/cpdp/v20190820/cpdp_client.py index f18d9ce7f..f77adcacd 100644 --- a/tencentcloud/cpdp/v20190820/cpdp_client.py +++ b/tencentcloud/cpdp/v20190820/cpdp_client.py @@ -142,6 +142,64 @@ def ApplyApplicationMaterial(self, request): raise TencentCloudSDKException(e.message, e.message) + def ApplyFlexPayment(self, request): + """灵云V2-付款 + + :param request: Request instance for ApplyFlexPayment. + :type request: :class:`tencentcloud.cpdp.v20190820.models.ApplyFlexPaymentRequest` + :rtype: :class:`tencentcloud.cpdp.v20190820.models.ApplyFlexPaymentResponse` + + """ + try: + params = request._serialize() + headers = request.headers + body = self.call("ApplyFlexPayment", params, headers=headers) + response = json.loads(body) + if "Error" not in response["Response"]: + model = models.ApplyFlexPaymentResponse() + model._deserialize(response["Response"]) + return model + else: + code = response["Response"]["Error"]["Code"] + message = response["Response"]["Error"]["Message"] + reqid = response["Response"]["RequestId"] + raise TencentCloudSDKException(code, message, reqid) + except Exception as e: + if isinstance(e, TencentCloudSDKException): + raise + else: + raise TencentCloudSDKException(e.message, e.message) + + + def ApplyFlexSettlement(self, request): + """灵云V2-结算 + + :param request: Request instance for ApplyFlexSettlement. + :type request: :class:`tencentcloud.cpdp.v20190820.models.ApplyFlexSettlementRequest` + :rtype: :class:`tencentcloud.cpdp.v20190820.models.ApplyFlexSettlementResponse` + + """ + try: + params = request._serialize() + headers = request.headers + body = self.call("ApplyFlexSettlement", params, headers=headers) + response = json.loads(body) + if "Error" not in response["Response"]: + model = models.ApplyFlexSettlementResponse() + model._deserialize(response["Response"]) + return model + else: + code = response["Response"]["Error"]["Code"] + message = response["Response"]["Error"]["Message"] + reqid = response["Response"]["RequestId"] + raise TencentCloudSDKException(code, message, reqid) + except Exception as e: + if isinstance(e, TencentCloudSDKException): + raise + else: + raise TencentCloudSDKException(e.message, e.message) + + def ApplyOpenBankOrderDetailReceipt(self, request): """云企付-申请单笔交易回单 @@ -933,6 +991,35 @@ def CreateExternalAnchor(self, request): raise TencentCloudSDKException(e.message, e.message) + def CreateFlexPayee(self, request): + """灵云V2-收款用户开立 + + :param request: Request instance for CreateFlexPayee. + :type request: :class:`tencentcloud.cpdp.v20190820.models.CreateFlexPayeeRequest` + :rtype: :class:`tencentcloud.cpdp.v20190820.models.CreateFlexPayeeResponse` + + """ + try: + params = request._serialize() + headers = request.headers + body = self.call("CreateFlexPayee", params, headers=headers) + response = json.loads(body) + if "Error" not in response["Response"]: + model = models.CreateFlexPayeeResponse() + model._deserialize(response["Response"]) + return model + else: + code = response["Response"]["Error"]["Code"] + message = response["Response"]["Error"]["Message"] + reqid = response["Response"]["RequestId"] + raise TencentCloudSDKException(code, message, reqid) + except Exception as e: + if isinstance(e, TencentCloudSDKException): + raise + else: + raise TencentCloudSDKException(e.message, e.message) + + def CreateInvoice(self, request): """智慧零售-发票开具 @@ -1948,6 +2035,35 @@ def ExecuteMemberTransaction(self, request): raise TencentCloudSDKException(e.message, e.message) + def FreezeFlexBalance(self, request): + """灵云V2-冻结余额 + + :param request: Request instance for FreezeFlexBalance. + :type request: :class:`tencentcloud.cpdp.v20190820.models.FreezeFlexBalanceRequest` + :rtype: :class:`tencentcloud.cpdp.v20190820.models.FreezeFlexBalanceResponse` + + """ + try: + params = request._serialize() + headers = request.headers + body = self.call("FreezeFlexBalance", params, headers=headers) + response = json.loads(body) + if "Error" not in response["Response"]: + model = models.FreezeFlexBalanceResponse() + model._deserialize(response["Response"]) + return model + else: + code = response["Response"]["Error"]["Code"] + message = response["Response"]["Error"]["Message"] + reqid = response["Response"]["RequestId"] + raise TencentCloudSDKException(code, message, reqid) + except Exception as e: + if isinstance(e, TencentCloudSDKException): + raise + else: + raise TencentCloudSDKException(e.message, e.message) + + def GetBillDownloadUrl(self, request): """调用该接口返回对账单下载地址,对账单下载URL通过GET方式访问,返回zip包,解压后为csv格式文件。文件首行如下: 订单号,订单归属日期,机构编号,订单描述,交易类型,订单状态,支付场景,原始金额,折扣金额,实际交易金额,支付渠道优惠金额,抹零金额,币种,下单时间,付款成功时间,商户编号,门店编号,付款方式编号,付款方式名称,商户手续费T1,商户扣率,是否信用卡交易,原始订单号,用户账号,外部订单号,订单备注 @@ -2211,6 +2327,35 @@ def ModifyBindedAccount(self, request): raise TencentCloudSDKException(e.message, e.message) + def ModifyFlexPayeeAccountRightStatus(self, request): + """灵云V2-收款用户账户权益状态修改 + + :param request: Request instance for ModifyFlexPayeeAccountRightStatus. + :type request: :class:`tencentcloud.cpdp.v20190820.models.ModifyFlexPayeeAccountRightStatusRequest` + :rtype: :class:`tencentcloud.cpdp.v20190820.models.ModifyFlexPayeeAccountRightStatusResponse` + + """ + try: + params = request._serialize() + headers = request.headers + body = self.call("ModifyFlexPayeeAccountRightStatus", params, headers=headers) + response = json.loads(body) + if "Error" not in response["Response"]: + model = models.ModifyFlexPayeeAccountRightStatusResponse() + model._deserialize(response["Response"]) + return model + else: + code = response["Response"]["Error"]["Code"] + message = response["Response"]["Error"]["Message"] + reqid = response["Response"]["RequestId"] + raise TencentCloudSDKException(code, message, reqid) + except Exception as e: + if isinstance(e, TencentCloudSDKException): + raise + else: + raise TencentCloudSDKException(e.message, e.message) + + def ModifyMerchant(self, request): """云鉴-商户信息修改的接口 @@ -3052,6 +3197,267 @@ def QueryExchangeRate(self, request): raise TencentCloudSDKException(e.message, e.message) + def QueryFlexAmountBeforeTax(self, request): + """灵云V2-查询税前金额 + + :param request: Request instance for QueryFlexAmountBeforeTax. + :type request: :class:`tencentcloud.cpdp.v20190820.models.QueryFlexAmountBeforeTaxRequest` + :rtype: :class:`tencentcloud.cpdp.v20190820.models.QueryFlexAmountBeforeTaxResponse` + + """ + try: + params = request._serialize() + headers = request.headers + body = self.call("QueryFlexAmountBeforeTax", params, headers=headers) + response = json.loads(body) + if "Error" not in response["Response"]: + model = models.QueryFlexAmountBeforeTaxResponse() + model._deserialize(response["Response"]) + return model + else: + code = response["Response"]["Error"]["Code"] + message = response["Response"]["Error"]["Message"] + reqid = response["Response"]["RequestId"] + raise TencentCloudSDKException(code, message, reqid) + except Exception as e: + if isinstance(e, TencentCloudSDKException): + raise + else: + raise TencentCloudSDKException(e.message, e.message) + + + def QueryFlexFreezeOrderList(self, request): + """灵云V2-查询冻结订单列表 + + :param request: Request instance for QueryFlexFreezeOrderList. + :type request: :class:`tencentcloud.cpdp.v20190820.models.QueryFlexFreezeOrderListRequest` + :rtype: :class:`tencentcloud.cpdp.v20190820.models.QueryFlexFreezeOrderListResponse` + + """ + try: + params = request._serialize() + headers = request.headers + body = self.call("QueryFlexFreezeOrderList", params, headers=headers) + response = json.loads(body) + if "Error" not in response["Response"]: + model = models.QueryFlexFreezeOrderListResponse() + model._deserialize(response["Response"]) + return model + else: + code = response["Response"]["Error"]["Code"] + message = response["Response"]["Error"]["Message"] + reqid = response["Response"]["RequestId"] + raise TencentCloudSDKException(code, message, reqid) + except Exception as e: + if isinstance(e, TencentCloudSDKException): + raise + else: + raise TencentCloudSDKException(e.message, e.message) + + + def QueryFlexPayeeAccountBalance(self, request): + """灵云V2-收款用户账户余额查询 + + :param request: Request instance for QueryFlexPayeeAccountBalance. + :type request: :class:`tencentcloud.cpdp.v20190820.models.QueryFlexPayeeAccountBalanceRequest` + :rtype: :class:`tencentcloud.cpdp.v20190820.models.QueryFlexPayeeAccountBalanceResponse` + + """ + try: + params = request._serialize() + headers = request.headers + body = self.call("QueryFlexPayeeAccountBalance", params, headers=headers) + response = json.loads(body) + if "Error" not in response["Response"]: + model = models.QueryFlexPayeeAccountBalanceResponse() + model._deserialize(response["Response"]) + return model + else: + code = response["Response"]["Error"]["Code"] + message = response["Response"]["Error"]["Message"] + reqid = response["Response"]["RequestId"] + raise TencentCloudSDKException(code, message, reqid) + except Exception as e: + if isinstance(e, TencentCloudSDKException): + raise + else: + raise TencentCloudSDKException(e.message, e.message) + + + def QueryFlexPayeeAccountInfo(self, request): + """灵云V2-收款用户账户信息查询 + + :param request: Request instance for QueryFlexPayeeAccountInfo. + :type request: :class:`tencentcloud.cpdp.v20190820.models.QueryFlexPayeeAccountInfoRequest` + :rtype: :class:`tencentcloud.cpdp.v20190820.models.QueryFlexPayeeAccountInfoResponse` + + """ + try: + params = request._serialize() + headers = request.headers + body = self.call("QueryFlexPayeeAccountInfo", params, headers=headers) + response = json.loads(body) + if "Error" not in response["Response"]: + model = models.QueryFlexPayeeAccountInfoResponse() + model._deserialize(response["Response"]) + return model + else: + code = response["Response"]["Error"]["Code"] + message = response["Response"]["Error"]["Message"] + reqid = response["Response"]["RequestId"] + raise TencentCloudSDKException(code, message, reqid) + except Exception as e: + if isinstance(e, TencentCloudSDKException): + raise + else: + raise TencentCloudSDKException(e.message, e.message) + + + def QueryFlexPayeeAccountList(self, request): + """灵云V2-收款用户账户列表查询 + + :param request: Request instance for QueryFlexPayeeAccountList. + :type request: :class:`tencentcloud.cpdp.v20190820.models.QueryFlexPayeeAccountListRequest` + :rtype: :class:`tencentcloud.cpdp.v20190820.models.QueryFlexPayeeAccountListResponse` + + """ + try: + params = request._serialize() + headers = request.headers + body = self.call("QueryFlexPayeeAccountList", params, headers=headers) + response = json.loads(body) + if "Error" not in response["Response"]: + model = models.QueryFlexPayeeAccountListResponse() + model._deserialize(response["Response"]) + return model + else: + code = response["Response"]["Error"]["Code"] + message = response["Response"]["Error"]["Message"] + reqid = response["Response"]["RequestId"] + raise TencentCloudSDKException(code, message, reqid) + except Exception as e: + if isinstance(e, TencentCloudSDKException): + raise + else: + raise TencentCloudSDKException(e.message, e.message) + + + def QueryFlexPayeeInfo(self, request): + """灵云V2-收款用户信息查询 + + :param request: Request instance for QueryFlexPayeeInfo. + :type request: :class:`tencentcloud.cpdp.v20190820.models.QueryFlexPayeeInfoRequest` + :rtype: :class:`tencentcloud.cpdp.v20190820.models.QueryFlexPayeeInfoResponse` + + """ + try: + params = request._serialize() + headers = request.headers + body = self.call("QueryFlexPayeeInfo", params, headers=headers) + response = json.loads(body) + if "Error" not in response["Response"]: + model = models.QueryFlexPayeeInfoResponse() + model._deserialize(response["Response"]) + return model + else: + code = response["Response"]["Error"]["Code"] + message = response["Response"]["Error"]["Message"] + reqid = response["Response"]["RequestId"] + raise TencentCloudSDKException(code, message, reqid) + except Exception as e: + if isinstance(e, TencentCloudSDKException): + raise + else: + raise TencentCloudSDKException(e.message, e.message) + + + def QueryFlexPaymentOrderList(self, request): + """灵云V2-查询付款订单列表 + + :param request: Request instance for QueryFlexPaymentOrderList. + :type request: :class:`tencentcloud.cpdp.v20190820.models.QueryFlexPaymentOrderListRequest` + :rtype: :class:`tencentcloud.cpdp.v20190820.models.QueryFlexPaymentOrderListResponse` + + """ + try: + params = request._serialize() + headers = request.headers + body = self.call("QueryFlexPaymentOrderList", params, headers=headers) + response = json.loads(body) + if "Error" not in response["Response"]: + model = models.QueryFlexPaymentOrderListResponse() + model._deserialize(response["Response"]) + return model + else: + code = response["Response"]["Error"]["Code"] + message = response["Response"]["Error"]["Message"] + reqid = response["Response"]["RequestId"] + raise TencentCloudSDKException(code, message, reqid) + except Exception as e: + if isinstance(e, TencentCloudSDKException): + raise + else: + raise TencentCloudSDKException(e.message, e.message) + + + def QueryFlexPaymentOrderStatus(self, request): + """灵云V2-查询付款订单状态 + + :param request: Request instance for QueryFlexPaymentOrderStatus. + :type request: :class:`tencentcloud.cpdp.v20190820.models.QueryFlexPaymentOrderStatusRequest` + :rtype: :class:`tencentcloud.cpdp.v20190820.models.QueryFlexPaymentOrderStatusResponse` + + """ + try: + params = request._serialize() + headers = request.headers + body = self.call("QueryFlexPaymentOrderStatus", params, headers=headers) + response = json.loads(body) + if "Error" not in response["Response"]: + model = models.QueryFlexPaymentOrderStatusResponse() + model._deserialize(response["Response"]) + return model + else: + code = response["Response"]["Error"]["Code"] + message = response["Response"]["Error"]["Message"] + reqid = response["Response"]["RequestId"] + raise TencentCloudSDKException(code, message, reqid) + except Exception as e: + if isinstance(e, TencentCloudSDKException): + raise + else: + raise TencentCloudSDKException(e.message, e.message) + + + def QueryFlexSettlementOrderList(self, request): + """灵云V2-查询结算订单列表 + + :param request: Request instance for QueryFlexSettlementOrderList. + :type request: :class:`tencentcloud.cpdp.v20190820.models.QueryFlexSettlementOrderListRequest` + :rtype: :class:`tencentcloud.cpdp.v20190820.models.QueryFlexSettlementOrderListResponse` + + """ + try: + params = request._serialize() + headers = request.headers + body = self.call("QueryFlexSettlementOrderList", params, headers=headers) + response = json.loads(body) + if "Error" not in response["Response"]: + model = models.QueryFlexSettlementOrderListResponse() + model._deserialize(response["Response"]) + return model + else: + code = response["Response"]["Error"]["Code"] + message = response["Response"]["Error"]["Message"] + reqid = response["Response"]["RequestId"] + raise TencentCloudSDKException(code, message, reqid) + except Exception as e: + if isinstance(e, TencentCloudSDKException): + raise + else: + raise TencentCloudSDKException(e.message, e.message) + + def QueryFundsTransactionDetails(self, request): """聚鑫-查询会员资金交易信息列表 diff --git a/tencentcloud/cpdp/v20190820/errorcodes.py b/tencentcloud/cpdp/v20190820/errorcodes.py index e202c47a8..ef2fce903 100644 --- a/tencentcloud/cpdp/v20190820/errorcodes.py +++ b/tencentcloud/cpdp/v20190820/errorcodes.py @@ -293,6 +293,9 @@ # 超出商户单日转账额度。 FAILEDOPERATION_QUOTAEXCEED = 'FailedOperation.QuotaExceed' +# 不可重试退款。 +FAILEDOPERATION_REFUNDNOTRETRIEABLE = 'FailedOperation.RefundNotRetrieable' + # 退款处理中。 FAILEDOPERATION_REFUNDPROCESSING = 'FailedOperation.RefundProcessIng' diff --git a/tencentcloud/cpdp/v20190820/models.py b/tencentcloud/cpdp/v20190820/models.py index 03209fe8f..8d7d57a04 100644 --- a/tencentcloud/cpdp/v20190820/models.py +++ b/tencentcloud/cpdp/v20190820/models.py @@ -887,6 +887,31 @@ def _deserialize(self, params): +class AmountBeforeTaxResult(AbstractModel): + """税前金额结果 + + """ + + def __init__(self): + r""" + :param AmountBeforeTax: 税前金额 +注意:此字段可能返回 null,表示取不到有效值。 + :type AmountBeforeTax: str + """ + self.AmountBeforeTax = None + + + def _deserialize(self, params): + self.AmountBeforeTax = params.get("AmountBeforeTax") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + class AnchorContractInfo(AbstractModel): """主播签约信息 @@ -1119,6 +1144,232 @@ def _deserialize(self, params): +class ApplyFlexPaymentRequest(AbstractModel): + """ApplyFlexPayment请求参数结构体 + + """ + + def __init__(self): + r""" + :param PayeeId: 收款用户ID + :type PayeeId: str + :param IncomeType: 收入类型 +LABOR:劳务所得 +OCCASION:偶然所得 + :type IncomeType: str + :param AmountBeforeTax: 税前金额 + :type AmountBeforeTax: str + :param OutOrderId: 外部订单ID + :type OutOrderId: str + :param FundingAccountInfo: 资金账户信息 + :type FundingAccountInfo: :class:`tencentcloud.cpdp.v20190820.models.FlexFundingAccountInfo` + :param Remark: 提现备注 + :type Remark: str + """ + self.PayeeId = None + self.IncomeType = None + self.AmountBeforeTax = None + self.OutOrderId = None + self.FundingAccountInfo = None + self.Remark = None + + + def _deserialize(self, params): + self.PayeeId = params.get("PayeeId") + self.IncomeType = params.get("IncomeType") + self.AmountBeforeTax = params.get("AmountBeforeTax") + self.OutOrderId = params.get("OutOrderId") + if params.get("FundingAccountInfo") is not None: + self.FundingAccountInfo = FlexFundingAccountInfo() + self.FundingAccountInfo._deserialize(params.get("FundingAccountInfo")) + self.Remark = params.get("Remark") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class ApplyFlexPaymentResponse(AbstractModel): + """ApplyFlexPayment返回参数结构体 + + """ + + def __init__(self): + r""" + :param ErrCode: 错误码。SUCCESS为成功,其他为失败 + :type ErrCode: str + :param ErrMessage: 错误消息 + :type ErrMessage: str + :param Result: 返回结果 +注意:此字段可能返回 null,表示取不到有效值。 + :type Result: :class:`tencentcloud.cpdp.v20190820.models.ApplyFlexPaymentResult` + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.ErrCode = None + self.ErrMessage = None + self.Result = None + self.RequestId = None + + + def _deserialize(self, params): + self.ErrCode = params.get("ErrCode") + self.ErrMessage = params.get("ErrMessage") + if params.get("Result") is not None: + self.Result = ApplyFlexPaymentResult() + self.Result._deserialize(params.get("Result")) + self.RequestId = params.get("RequestId") + + +class ApplyFlexPaymentResult(AbstractModel): + """付款结果 + + """ + + def __init__(self): + r""" + :param OrderId: 订单ID + :type OrderId: str + :param AmountBeforeTax: 税前金额 + :type AmountBeforeTax: str + :param AmountAfterTax: 税后金额 + :type AmountAfterTax: str + :param Tax: 税金 + :type Tax: str + """ + self.OrderId = None + self.AmountBeforeTax = None + self.AmountAfterTax = None + self.Tax = None + + + def _deserialize(self, params): + self.OrderId = params.get("OrderId") + self.AmountBeforeTax = params.get("AmountBeforeTax") + self.AmountAfterTax = params.get("AmountAfterTax") + self.Tax = params.get("Tax") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class ApplyFlexSettlementRequest(AbstractModel): + """ApplyFlexSettlement请求参数结构体 + + """ + + def __init__(self): + r""" + :param PayeeId: 收款用户ID + :type PayeeId: str + :param IncomeType: 收入类型 +LABOR:劳务所得 +OCCASION:偶然所得 + :type IncomeType: str + :param AmountBeforeTax: 税前金额 + :type AmountBeforeTax: str + :param OutOrderId: 外部订单ID + :type OutOrderId: str + :param Remark: 备注 + :type Remark: str + """ + self.PayeeId = None + self.IncomeType = None + self.AmountBeforeTax = None + self.OutOrderId = None + self.Remark = None + + + def _deserialize(self, params): + self.PayeeId = params.get("PayeeId") + self.IncomeType = params.get("IncomeType") + self.AmountBeforeTax = params.get("AmountBeforeTax") + self.OutOrderId = params.get("OutOrderId") + self.Remark = params.get("Remark") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class ApplyFlexSettlementResponse(AbstractModel): + """ApplyFlexSettlement返回参数结构体 + + """ + + def __init__(self): + r""" + :param ErrCode: 错误码。SUCCESS为成功,其他为失败 + :type ErrCode: str + :param ErrMessage: 错误消息 + :type ErrMessage: str + :param Result: 返回结果 +注意:此字段可能返回 null,表示取不到有效值。 + :type Result: :class:`tencentcloud.cpdp.v20190820.models.ApplyFlexSettlementResult` + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.ErrCode = None + self.ErrMessage = None + self.Result = None + self.RequestId = None + + + def _deserialize(self, params): + self.ErrCode = params.get("ErrCode") + self.ErrMessage = params.get("ErrMessage") + if params.get("Result") is not None: + self.Result = ApplyFlexSettlementResult() + self.Result._deserialize(params.get("Result")) + self.RequestId = params.get("RequestId") + + +class ApplyFlexSettlementResult(AbstractModel): + """结算结果 + + """ + + def __init__(self): + r""" + :param OrderId: 订单ID + :type OrderId: str + :param AmountBeforeTax: 税前金额 + :type AmountBeforeTax: str + :param AmountAfterTax: 税后金额 + :type AmountAfterTax: str + :param Tax: 税金 + :type Tax: str + """ + self.OrderId = None + self.AmountBeforeTax = None + self.AmountAfterTax = None + self.Tax = None + + + def _deserialize(self, params): + self.OrderId = params.get("OrderId") + self.AmountBeforeTax = params.get("AmountBeforeTax") + self.AmountAfterTax = params.get("AmountAfterTax") + self.Tax = params.get("Tax") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + class ApplyOpenBankOrderDetailReceiptRequest(AbstractModel): """ApplyOpenBankOrderDetailReceipt请求参数结构体 @@ -5623,6 +5874,118 @@ def _deserialize(self, params): self.RequestId = params.get("RequestId") +class CreateFlexPayeeRequest(AbstractModel): + """CreateFlexPayee请求参数结构体 + + """ + + def __init__(self): + r""" + :param OutUserId: 用户外部业务ID + :type OutUserId: str + :param Name: 姓名 + :type Name: str + :param IdNo: 证件号 + :type IdNo: str + :param AccountName: 账户名称 + :type AccountName: str + :param ServiceProviderId: 服务商ID + :type ServiceProviderId: str + :param TaxInfo: 计税信息 + :type TaxInfo: :class:`tencentcloud.cpdp.v20190820.models.PayeeTaxInfo` + :param IdType: 证件类型 +0:身份证 +1:社会信用代码 + :type IdType: int + :param Remark: 备注 + :type Remark: str + """ + self.OutUserId = None + self.Name = None + self.IdNo = None + self.AccountName = None + self.ServiceProviderId = None + self.TaxInfo = None + self.IdType = None + self.Remark = None + + + def _deserialize(self, params): + self.OutUserId = params.get("OutUserId") + self.Name = params.get("Name") + self.IdNo = params.get("IdNo") + self.AccountName = params.get("AccountName") + self.ServiceProviderId = params.get("ServiceProviderId") + if params.get("TaxInfo") is not None: + self.TaxInfo = PayeeTaxInfo() + self.TaxInfo._deserialize(params.get("TaxInfo")) + self.IdType = params.get("IdType") + self.Remark = params.get("Remark") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class CreateFlexPayeeResponse(AbstractModel): + """CreateFlexPayee返回参数结构体 + + """ + + def __init__(self): + r""" + :param ErrCode: 错误码。SUCCESS为成功,其他为失败 + :type ErrCode: str + :param ErrMessage: 错误消息 + :type ErrMessage: str + :param Result: 返回结果 +注意:此字段可能返回 null,表示取不到有效值。 + :type Result: :class:`tencentcloud.cpdp.v20190820.models.CreateFlexPayeeResult` + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.ErrCode = None + self.ErrMessage = None + self.Result = None + self.RequestId = None + + + def _deserialize(self, params): + self.ErrCode = params.get("ErrCode") + self.ErrMessage = params.get("ErrMessage") + if params.get("Result") is not None: + self.Result = CreateFlexPayeeResult() + self.Result._deserialize(params.get("Result")) + self.RequestId = params.get("RequestId") + + +class CreateFlexPayeeResult(AbstractModel): + """账户开立结果 + + """ + + def __init__(self): + r""" + :param PayeeId: 收款用户ID + :type PayeeId: str + """ + self.PayeeId = None + + + def _deserialize(self, params): + self.PayeeId = params.get("PayeeId") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + class CreateInvoiceItem(AbstractModel): """发票开具明细 @@ -9970,6 +10333,247 @@ def _deserialize(self, params): +class FlexFundingAccountInfo(AbstractModel): + """灵云V2-银行信息 + + """ + + def __init__(self): + r""" + :param FundingAccountNo: 资金账户号 + :type FundingAccountNo: str + :param FundingAccountType: 资金账户类型 + :type FundingAccountType: str + :param FundingAccountBindSerialNo: 资金账户绑定序列号 + :type FundingAccountBindSerialNo: str + """ + self.FundingAccountNo = None + self.FundingAccountType = None + self.FundingAccountBindSerialNo = None + + + def _deserialize(self, params): + self.FundingAccountNo = params.get("FundingAccountNo") + self.FundingAccountType = params.get("FundingAccountType") + self.FundingAccountBindSerialNo = params.get("FundingAccountBindSerialNo") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class FreezeFlexBalanceRequest(AbstractModel): + """FreezeFlexBalance请求参数结构体 + + """ + + def __init__(self): + r""" + :param PayeeId: 收款用户ID + :type PayeeId: str + :param AmountBeforeTax: 税前金额 + :type AmountBeforeTax: str + :param IncomeType: 收入类型 +LABOR:劳务所得 +OCCASION:偶然所得 + :type IncomeType: str + :param OutOrderId: 外部订单ID + :type OutOrderId: str + :param OperationType: 操作类型 +FREEZE:冻结 +UNFREEZE:解冻 + :type OperationType: str + :param Remark: 冻结备注 + :type Remark: str + """ + self.PayeeId = None + self.AmountBeforeTax = None + self.IncomeType = None + self.OutOrderId = None + self.OperationType = None + self.Remark = None + + + def _deserialize(self, params): + self.PayeeId = params.get("PayeeId") + self.AmountBeforeTax = params.get("AmountBeforeTax") + self.IncomeType = params.get("IncomeType") + self.OutOrderId = params.get("OutOrderId") + self.OperationType = params.get("OperationType") + self.Remark = params.get("Remark") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class FreezeFlexBalanceResponse(AbstractModel): + """FreezeFlexBalance返回参数结构体 + + """ + + def __init__(self): + r""" + :param ErrCode: 错误码。SUCCESS为成功,其他为失败 + :type ErrCode: str + :param ErrMessage: 错误消息 + :type ErrMessage: str + :param Result: 返回结果 +注意:此字段可能返回 null,表示取不到有效值。 + :type Result: :class:`tencentcloud.cpdp.v20190820.models.FreezeFlexBalanceResult` + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.ErrCode = None + self.ErrMessage = None + self.Result = None + self.RequestId = None + + + def _deserialize(self, params): + self.ErrCode = params.get("ErrCode") + self.ErrMessage = params.get("ErrMessage") + if params.get("Result") is not None: + self.Result = FreezeFlexBalanceResult() + self.Result._deserialize(params.get("Result")) + self.RequestId = params.get("RequestId") + + +class FreezeFlexBalanceResult(AbstractModel): + """冻结余额结果 + + """ + + def __init__(self): + r""" + :param OrderId: 冻结订单ID + :type OrderId: str + """ + self.OrderId = None + + + def _deserialize(self, params): + self.OrderId = params.get("OrderId") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class FreezeOrderResult(AbstractModel): + """冻结单结果 + + """ + + def __init__(self): + r""" + :param AmountBeforeTax: 税前金额 + :type AmountBeforeTax: str + :param IncomeType: 收入类型 +LABOR:劳务所得 +OCCASION:偶然所得 + :type IncomeType: str + :param OutOrderId: 外部订单ID + :type OutOrderId: str + :param OrderId: 订单ID + :type OrderId: str + :param OperationType: 操作类型 +FREEZE:冻结 +UNFREEZE:解冻 + :type OperationType: str + :param InitiateTime: 发起时间 + :type InitiateTime: str + :param FinishTime: 完成时间 +注意:此字段可能返回 null,表示取不到有效值。 + :type FinishTime: str + :param Status: 状态 +ACCEPTED:已受理 +ACCOUNTED:已记账 +SUCCEED:已成功 +FAILED:已失败 + :type Status: str + :param StatusDesc: 状态描述 + :type StatusDesc: str + :param Remark: 冻结备注 +注意:此字段可能返回 null,表示取不到有效值。 + :type Remark: str + """ + self.AmountBeforeTax = None + self.IncomeType = None + self.OutOrderId = None + self.OrderId = None + self.OperationType = None + self.InitiateTime = None + self.FinishTime = None + self.Status = None + self.StatusDesc = None + self.Remark = None + + + def _deserialize(self, params): + self.AmountBeforeTax = params.get("AmountBeforeTax") + self.IncomeType = params.get("IncomeType") + self.OutOrderId = params.get("OutOrderId") + self.OrderId = params.get("OrderId") + self.OperationType = params.get("OperationType") + self.InitiateTime = params.get("InitiateTime") + self.FinishTime = params.get("FinishTime") + self.Status = params.get("Status") + self.StatusDesc = params.get("StatusDesc") + self.Remark = params.get("Remark") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class FreezeOrders(AbstractModel): + """冻结订单列表 + + """ + + def __init__(self): + r""" + :param List: 列表 +注意:此字段可能返回 null,表示取不到有效值。 + :type List: list of FreezeOrderResult + :param Count: 总数 +注意:此字段可能返回 null,表示取不到有效值。 + :type Count: int + """ + self.List = None + self.Count = None + + + def _deserialize(self, params): + if params.get("List") is not None: + self.List = [] + for item in params.get("List"): + obj = FreezeOrderResult() + obj._deserialize(item) + self.List.append(obj) + self.Count = params.get("Count") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + class FundsTransactionItem(AbstractModel): """会员资金交易明细信息 @@ -10981,6 +11585,72 @@ def _deserialize(self, params): self.RequestId = params.get("RequestId") +class ModifyFlexPayeeAccountRightStatusRequest(AbstractModel): + """ModifyFlexPayeeAccountRightStatus请求参数结构体 + + """ + + def __init__(self): + r""" + :param PayeeId: 收款用户ID + :type PayeeId: str + :param AccountRightType: 账户权益类型 +SETTLEMENT:结算权益 +PAYMENT:付款权益 + :type AccountRightType: str + :param AccountRightStatus: 账户权益状态 +ENABLE:启用 +DISABLE:停用 + :type AccountRightStatus: str + """ + self.PayeeId = None + self.AccountRightType = None + self.AccountRightStatus = None + + + def _deserialize(self, params): + self.PayeeId = params.get("PayeeId") + self.AccountRightType = params.get("AccountRightType") + self.AccountRightStatus = params.get("AccountRightStatus") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class ModifyFlexPayeeAccountRightStatusResponse(AbstractModel): + """ModifyFlexPayeeAccountRightStatus返回参数结构体 + + """ + + def __init__(self): + r""" + :param ErrCode: 错误码。SUCCESS为成功,其他为失败 + :type ErrCode: str + :param ErrMessage: 错误消息 + :type ErrMessage: str + :param Result: 返回结果。默认为空。 +注意:此字段可能返回 null,表示取不到有效值。 + :type Result: str + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.ErrCode = None + self.ErrMessage = None + self.Result = None + self.RequestId = None + + + def _deserialize(self, params): + self.ErrCode = params.get("ErrCode") + self.ErrMessage = params.get("ErrMessage") + self.Result = params.get("Result") + self.RequestId = params.get("RequestId") + + class ModifyMerchantRequest(AbstractModel): """ModifyMerchant请求参数结构体 @@ -12087,48 +12757,59 @@ def _deserialize(self, params): -class QueryAcctBindingRequest(AbstractModel): - """QueryAcctBinding请求参数结构体 +class PayeeAccountBalanceResult(AbstractModel): + """账户余额信息 """ def __init__(self): r""" - :param MidasAppId: 聚鑫分配的支付主MidasAppId - :type MidasAppId: str - :param SubAppId: 聚鑫计费SubAppId,代表子商户 - :type SubAppId: str - :param MidasSecretId: 由平台客服提供的计费密钥Id - :type MidasSecretId: str - :param MidasSignature: 计费签名 - :type MidasSignature: str - :param EncryptType: 敏感信息加密类型: -RSA: rsa非对称加密,使用RSA-PKCS1-v1_5 -AES: aes对称加密,使用AES256-CBC-PCKS7padding -缺省: RSA - :type EncryptType: str - :param MidasEnvironment: 环境名: -release: 现网环境 -sandbox: 沙箱环境 -development: 开发环境 -缺省: release - :type MidasEnvironment: str + :param AccountId: 账户ID +注意:此字段可能返回 null,表示取不到有效值。 + :type AccountId: str + :param IncomeType: 收入类型 +LABOR:劳务所得 +OCCASION:偶然所得 +注意:此字段可能返回 null,表示取不到有效值。 + :type IncomeType: int + :param Balance: 总余额 +注意:此字段可能返回 null,表示取不到有效值。 + :type Balance: str + :param SystemFreezeBalance: 系统冻结余额 +注意:此字段可能返回 null,表示取不到有效值。 + :type SystemFreezeBalance: str + :param ManualFreezeBalance: 人工冻结余额 +注意:此字段可能返回 null,表示取不到有效值。 + :type ManualFreezeBalance: str + :param PayableBalance: 可提现余额 +注意:此字段可能返回 null,表示取不到有效值。 + :type PayableBalance: str + :param PaidBalance: 已提现余额 +注意:此字段可能返回 null,表示取不到有效值。 + :type PaidBalance: str + :param InPayBalance: 提现中余额 +注意:此字段可能返回 null,表示取不到有效值。 + :type InPayBalance: str """ - self.MidasAppId = None - self.SubAppId = None - self.MidasSecretId = None - self.MidasSignature = None - self.EncryptType = None - self.MidasEnvironment = None + self.AccountId = None + self.IncomeType = None + self.Balance = None + self.SystemFreezeBalance = None + self.ManualFreezeBalance = None + self.PayableBalance = None + self.PaidBalance = None + self.InPayBalance = None def _deserialize(self, params): - self.MidasAppId = params.get("MidasAppId") - self.SubAppId = params.get("SubAppId") - self.MidasSecretId = params.get("MidasSecretId") - self.MidasSignature = params.get("MidasSignature") - self.EncryptType = params.get("EncryptType") - self.MidasEnvironment = params.get("MidasEnvironment") + self.AccountId = params.get("AccountId") + self.IncomeType = params.get("IncomeType") + self.Balance = params.get("Balance") + self.SystemFreezeBalance = params.get("SystemFreezeBalance") + self.ManualFreezeBalance = params.get("ManualFreezeBalance") + self.PayableBalance = params.get("PayableBalance") + self.PaidBalance = params.get("PaidBalance") + self.InPayBalance = params.get("InPayBalance") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -12138,86 +12819,86 @@ def _deserialize(self, params): -class QueryAcctBindingResponse(AbstractModel): - """QueryAcctBinding返回参数结构体 +class PayeeAccountInfoResult(AbstractModel): + """账户信息结果 """ def __init__(self): r""" - :param TotalCount: 总行数 - :type TotalCount: int - :param BankCardItems: 银行卡信息列表 - :type BankCardItems: list of BankCardItem - :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - :type RequestId: str + :param AccountId: 账户ID +注意:此字段可能返回 null,表示取不到有效值。 + :type AccountId: str + :param AccountName: 账户名称 +注意:此字段可能返回 null,表示取不到有效值。 + :type AccountName: str + :param Remark: 备注 +注意:此字段可能返回 null,表示取不到有效值。 + :type Remark: str + :param CreateTime: 创建时间 +注意:此字段可能返回 null,表示取不到有效值。 + :type CreateTime: str + :param UserInfo: 用户信息 +注意:此字段可能返回 null,表示取不到有效值。 + :type UserInfo: :class:`tencentcloud.cpdp.v20190820.models.PayeeAccountUserInfo` + :param PropertyInfo: 属性信息 +注意:此字段可能返回 null,表示取不到有效值。 + :type PropertyInfo: :class:`tencentcloud.cpdp.v20190820.models.PayeeAccountPropertyInfo` """ - self.TotalCount = None - self.BankCardItems = None - self.RequestId = None + self.AccountId = None + self.AccountName = None + self.Remark = None + self.CreateTime = None + self.UserInfo = None + self.PropertyInfo = None def _deserialize(self, params): - self.TotalCount = params.get("TotalCount") - if params.get("BankCardItems") is not None: - self.BankCardItems = [] - for item in params.get("BankCardItems"): - obj = BankCardItem() - obj._deserialize(item) - self.BankCardItems.append(obj) - self.RequestId = params.get("RequestId") + self.AccountId = params.get("AccountId") + self.AccountName = params.get("AccountName") + self.Remark = params.get("Remark") + self.CreateTime = params.get("CreateTime") + if params.get("UserInfo") is not None: + self.UserInfo = PayeeAccountUserInfo() + self.UserInfo._deserialize(params.get("UserInfo")) + if params.get("PropertyInfo") is not None: + self.PropertyInfo = PayeeAccountPropertyInfo() + self.PropertyInfo._deserialize(params.get("PropertyInfo")) + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + -class QueryAcctInfoListRequest(AbstractModel): - """QueryAcctInfoList请求参数结构体 +class PayeeAccountInfos(AbstractModel): + """账户信息列表 """ def __init__(self): r""" - :param MidasAppId: 聚鑫分配的支付主MidasAppId - :type MidasAppId: str - :param QueryAcctBeginTime: 查询开始时间(以开户时间为准) - :type QueryAcctBeginTime: str - :param QueryAcctEndTime: 查询结束时间(以开户时间为准) - :type QueryAcctEndTime: str - :param PageOffset: 分页号, 起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照开户时间的先后 - :type PageOffset: str - :param MidasSecretId: 由平台客服提供的计费密钥Id - :type MidasSecretId: str - :param MidasSignature: 计费签名 - :type MidasSignature: str - :param EncryptType: 敏感信息加密类型: -RSA: rsa非对称加密,使用RSA-PKCS1-v1_5 -AES: aes对称加密,使用AES256-CBC-PCKS7padding -缺省: RSA - :type EncryptType: str - :param MidasEnvironment: 环境名: -release: 现网环境 -sandbox: 沙箱环境 -development: 开发环境 -缺省: release - :type MidasEnvironment: str + :param List: 列表 +注意:此字段可能返回 null,表示取不到有效值。 + :type List: list of PayeeAccountInfoResult + :param Count: 总数 +注意:此字段可能返回 null,表示取不到有效值。 + :type Count: int """ - self.MidasAppId = None - self.QueryAcctBeginTime = None - self.QueryAcctEndTime = None - self.PageOffset = None - self.MidasSecretId = None - self.MidasSignature = None - self.EncryptType = None - self.MidasEnvironment = None + self.List = None + self.Count = None def _deserialize(self, params): - self.MidasAppId = params.get("MidasAppId") - self.QueryAcctBeginTime = params.get("QueryAcctBeginTime") - self.QueryAcctEndTime = params.get("QueryAcctEndTime") - self.PageOffset = params.get("PageOffset") - self.MidasSecretId = params.get("MidasSecretId") - self.MidasSignature = params.get("MidasSignature") - self.EncryptType = params.get("EncryptType") - self.MidasEnvironment = params.get("MidasEnvironment") + if params.get("List") is not None: + self.List = [] + for item in params.get("List"): + obj = PayeeAccountInfoResult() + obj._deserialize(item) + self.List.append(obj) + self.Count = params.get("Count") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -12227,82 +12908,80 @@ def _deserialize(self, params): -class QueryAcctInfoListResponse(AbstractModel): - """QueryAcctInfoList返回参数结构体 +class PayeeAccountPropertyInfo(AbstractModel): + """账户属性信息 """ def __init__(self): r""" - :param ResultCount: 本次交易返回查询结果记录数 - :type ResultCount: int - :param TotalCount: 符合业务查询条件的记录总数 - :type TotalCount: int - :param QueryAcctItems: 查询结果项 [object,object] - :type QueryAcctItems: list of QueryAcctItem - :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - :type RequestId: str + :param SettleRightStatus: 结算权益状态 +ENABLE:启用 +DISABLE:停用 +注意:此字段可能返回 null,表示取不到有效值。 + :type SettleRightStatus: str + :param PaymentRightStatus: 付款权益状态 +ENABLE:启用 +DISABLE:停用 +注意:此字段可能返回 null,表示取不到有效值。 + :type PaymentRightStatus: str """ - self.ResultCount = None - self.TotalCount = None - self.QueryAcctItems = None - self.RequestId = None + self.SettleRightStatus = None + self.PaymentRightStatus = None def _deserialize(self, params): - self.ResultCount = params.get("ResultCount") - self.TotalCount = params.get("TotalCount") - if params.get("QueryAcctItems") is not None: - self.QueryAcctItems = [] - for item in params.get("QueryAcctItems"): - obj = QueryAcctItem() - obj._deserialize(item) - self.QueryAcctItems.append(obj) - self.RequestId = params.get("RequestId") + self.SettleRightStatus = params.get("SettleRightStatus") + self.PaymentRightStatus = params.get("PaymentRightStatus") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + -class QueryAcctInfoRequest(AbstractModel): - """QueryAcctInfo请求参数结构体 +class PayeeAccountUserInfo(AbstractModel): + """账户用户信息 """ def __init__(self): r""" - :param MidasAppId: 聚鑫平台分配的支付MidasAppId - :type MidasAppId: str - :param SubMchId: 业务平台的子商户Id,唯一 - :type SubMchId: str - :param MidasSecretId: 由平台客服提供的计费密钥Id - :type MidasSecretId: str - :param MidasSignature: 计费签名 - :type MidasSignature: str - :param EncryptType: 敏感信息加密类型: -RSA: rsa非对称加密,使用RSA-PKCS1-v1_5 -AES: aes对称加密,使用AES256-CBC-PCKS7padding -缺省: RSA - :type EncryptType: str - :param MidasEnvironment: 环境名: -release: 现网环境 -sandbox: 沙箱环境 -development: 开发环境 -缺省: release - :type MidasEnvironment: str + :param OutUserId: 外部用户ID +注意:此字段可能返回 null,表示取不到有效值。 + :type OutUserId: str + :param UserType: 用户类型 +0:B端用户 +1:C端用户 +注意:此字段可能返回 null,表示取不到有效值。 + :type UserType: int + :param IdType: 证件类型 +0:身份证 +1:社会信用代码 +注意:此字段可能返回 null,表示取不到有效值。 + :type IdType: int + :param IdNo: 证件号 +注意:此字段可能返回 null,表示取不到有效值。 + :type IdNo: str + :param Name: 姓名 +注意:此字段可能返回 null,表示取不到有效值。 + :type Name: str """ - self.MidasAppId = None - self.SubMchId = None - self.MidasSecretId = None - self.MidasSignature = None - self.EncryptType = None - self.MidasEnvironment = None + self.OutUserId = None + self.UserType = None + self.IdType = None + self.IdNo = None + self.Name = None def _deserialize(self, params): - self.MidasAppId = params.get("MidasAppId") - self.SubMchId = params.get("SubMchId") - self.MidasSecretId = params.get("MidasSecretId") - self.MidasSignature = params.get("MidasSignature") - self.EncryptType = params.get("EncryptType") - self.MidasEnvironment = params.get("MidasEnvironment") + self.OutUserId = params.get("OutUserId") + self.UserType = params.get("UserType") + self.IdType = params.get("IdType") + self.IdNo = params.get("IdNo") + self.Name = params.get("Name") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -12312,142 +12991,49 @@ def _deserialize(self, params): -class QueryAcctInfoResponse(AbstractModel): - """QueryAcctInfo返回参数结构体 +class PayeeInfoResult(AbstractModel): + """收款用户信息结果 """ def __init__(self): r""" - :param SubAppId: 聚鑫计费SubAppId,代表子商户 - :type SubAppId: str - :param SubMchName: 子商户名称 - :type SubMchName: str - :param SubMchType: 子商户类型: -个人: personal -企业:enterprise -缺省: enterprise - :type SubMchType: str - :param ShortName: 不填则默认子商户名称 - :type ShortName: str - :param Address: 子商户地址 - :type Address: str - :param Contact: 子商户联系人子商户联系人 -<敏感信息> - :type Contact: str - :param Mobile: 联系人手机号 -<敏感信息> - :type Mobile: str - :param Email: 邮箱 -<敏感信息> - :type Email: str - :param SubMchId: 子商户id - :type SubMchId: str - :param SubAcctNo: 子账户 - :type SubAcctNo: str - :param SubMerchantMemberType: 子商户会员类型: -general:普通子账户 -merchant:商户子账户 -缺省: general + :param PayeeId: 收款用户ID + :type PayeeId: str + :param OutUserId: 用户外部业务ID + :type OutUserId: str + :param Name: 姓名 + :type Name: str + :param IdType: 证件类型 +0:身份证 +1:社会信用代码 + :type IdType: int + :param IdNo: 证件号 + :type IdNo: str + :param ServiceProviderId: 服务商ID 注意:此字段可能返回 null,表示取不到有效值。 - :type SubMerchantMemberType: str - :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - :type RequestId: str + :type ServiceProviderId: str + :param Remark: 备注 +注意:此字段可能返回 null,表示取不到有效值。 + :type Remark: str """ - self.SubAppId = None - self.SubMchName = None - self.SubMchType = None - self.ShortName = None - self.Address = None - self.Contact = None - self.Mobile = None - self.Email = None - self.SubMchId = None - self.SubAcctNo = None - self.SubMerchantMemberType = None - self.RequestId = None + self.PayeeId = None + self.OutUserId = None + self.Name = None + self.IdType = None + self.IdNo = None + self.ServiceProviderId = None + self.Remark = None def _deserialize(self, params): - self.SubAppId = params.get("SubAppId") - self.SubMchName = params.get("SubMchName") - self.SubMchType = params.get("SubMchType") - self.ShortName = params.get("ShortName") - self.Address = params.get("Address") - self.Contact = params.get("Contact") - self.Mobile = params.get("Mobile") - self.Email = params.get("Email") - self.SubMchId = params.get("SubMchId") - self.SubAcctNo = params.get("SubAcctNo") - self.SubMerchantMemberType = params.get("SubMerchantMemberType") - self.RequestId = params.get("RequestId") - - -class QueryAcctItem(AbstractModel): - """查询账户列表接口 - - """ - - def __init__(self): - r""" - :param SubMchType: 子商户类型: -个人: personal -企业:enterprise -缺省: enterprise - :type SubMchType: str - :param SubMchName: 子商户名称 - :type SubMchName: str - :param SubAcctNo: 子账号 - :type SubAcctNo: str - :param ShortName: 不填则默认子商户名称 - :type ShortName: str - :param SubMchId: 业务平台的子商户Id,唯一 - :type SubMchId: str - :param SubAppId: 聚鑫计费SubAppId,代表子商户 - :type SubAppId: str - :param Contact: 子商户联系人 -<敏感信息> - :type Contact: str - :param Address: 子商户地址 - :type Address: str - :param Mobile: 联系人手机号 -<敏感信息> - :type Mobile: str - :param Email: 邮箱 -<敏感信息> - :type Email: str - :param SubMerchantMemberType: 子商户会员类型: -general:普通子账户 -merchant:商户子账户 -缺省: general -注意:此字段可能返回 null,表示取不到有效值。 - :type SubMerchantMemberType: str - """ - self.SubMchType = None - self.SubMchName = None - self.SubAcctNo = None - self.ShortName = None - self.SubMchId = None - self.SubAppId = None - self.Contact = None - self.Address = None - self.Mobile = None - self.Email = None - self.SubMerchantMemberType = None - - - def _deserialize(self, params): - self.SubMchType = params.get("SubMchType") - self.SubMchName = params.get("SubMchName") - self.SubAcctNo = params.get("SubAcctNo") - self.ShortName = params.get("ShortName") - self.SubMchId = params.get("SubMchId") - self.SubAppId = params.get("SubAppId") - self.Contact = params.get("Contact") - self.Address = params.get("Address") - self.Mobile = params.get("Mobile") - self.Email = params.get("Email") - self.SubMerchantMemberType = params.get("SubMerchantMemberType") + self.PayeeId = params.get("PayeeId") + self.OutUserId = params.get("OutUserId") + self.Name = params.get("Name") + self.IdType = params.get("IdType") + self.IdNo = params.get("IdNo") + self.ServiceProviderId = params.get("ServiceProviderId") + self.Remark = params.get("Remark") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -12457,26 +13043,40 @@ def _deserialize(self, params): -class QueryAgentStatementsRequest(AbstractModel): - """QueryAgentStatements请求参数结构体 +class PayeeTaxInfo(AbstractModel): + """计税信息 """ def __init__(self): r""" - :param Date: 结算单日期,月结算单填每月1日 - :type Date: str - :param Type: 日结算单:daily -月结算单:monthly - :type Type: str + :param TaxTemplateInfoList: 计税模板列表 + :type TaxTemplateInfoList: list of PayeeTaxTemplateInfo + :param TaxpayerIdNo: 纳税人识别号 + :type TaxpayerIdNo: str + :param TaxEntityType: 纳税主体类型 +NATURAL:自然人 +NON_NATURAL:非自然人 + :type TaxEntityType: str + :param TaxServiceProviderId: 财税服务商ID + :type TaxServiceProviderId: str """ - self.Date = None - self.Type = None + self.TaxTemplateInfoList = None + self.TaxpayerIdNo = None + self.TaxEntityType = None + self.TaxServiceProviderId = None def _deserialize(self, params): - self.Date = params.get("Date") - self.Type = params.get("Type") + if params.get("TaxTemplateInfoList") is not None: + self.TaxTemplateInfoList = [] + for item in params.get("TaxTemplateInfoList"): + obj = PayeeTaxTemplateInfo() + obj._deserialize(item) + self.TaxTemplateInfoList.append(obj) + self.TaxpayerIdNo = params.get("TaxpayerIdNo") + self.TaxEntityType = params.get("TaxEntityType") + self.TaxServiceProviderId = params.get("TaxServiceProviderId") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -12486,47 +13086,27 @@ def _deserialize(self, params): -class QueryAgentStatementsResponse(AbstractModel): - """QueryAgentStatements返回参数结构体 - - """ - - def __init__(self): - r""" - :param FileUrl: 文件下载链接 -注意:此字段可能返回 null,表示取不到有效值。 - :type FileUrl: str - :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - :type RequestId: str - """ - self.FileUrl = None - self.RequestId = None - - - def _deserialize(self, params): - self.FileUrl = params.get("FileUrl") - self.RequestId = params.get("RequestId") - - -class QueryAgentTaxPaymentBatchRequest(AbstractModel): - """QueryAgentTaxPaymentBatch请求参数结构体 +class PayeeTaxTemplateInfo(AbstractModel): + """收款用户计税模板信息 """ def __init__(self): r""" - :param BatchNum: 批次号 - :type BatchNum: int - :param Profile: 接入环境。沙箱环境填sandbox - :type Profile: str + :param IncomeType: 收入类型 +LABOR: 劳务所得 +OCCASION: 偶然所得 + :type IncomeType: str + :param TaxTemplateId: 计税模板ID + :type TaxTemplateId: str """ - self.BatchNum = None - self.Profile = None + self.IncomeType = None + self.TaxTemplateId = None def _deserialize(self, params): - self.BatchNum = params.get("BatchNum") - self.Profile = params.get("Profile") + self.IncomeType = params.get("IncomeType") + self.TaxTemplateId = params.get("TaxTemplateId") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -12536,48 +13116,105 @@ def _deserialize(self, params): -class QueryAgentTaxPaymentBatchResponse(AbstractModel): - """QueryAgentTaxPaymentBatch返回参数结构体 +class PaymentOrderResult(AbstractModel): + """付款订单结果 """ def __init__(self): r""" - :param AgentTaxPaymentBatch: 代理商完税证明批次信息 - :type AgentTaxPaymentBatch: :class:`tencentcloud.cpdp.v20190820.models.AgentTaxPaymentBatch` - :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - :type RequestId: str + :param IncomeType: 收入类型 +LABOR:劳务所得 +OCCASION:偶然所得 + :type IncomeType: str + :param AmountBeforeTax: 税前金额 + :type AmountBeforeTax: str + :param AmountAfterTax: 税后金额 + :type AmountAfterTax: str + :param Tax: 税金 + :type Tax: str + :param OutOrderId: 外部订单ID + :type OutOrderId: str + :param OrderId: 订单ID + :type OrderId: str + :param InitiateTime: 发起时间 + :type InitiateTime: str + :param FinishTime: 完成时间 +注意:此字段可能返回 null,表示取不到有效值。 + :type FinishTime: str + :param Status: 状态 +ACCEPTED:已受理 +ACCOUNTED:已记账 +PAYING:付款中 +PAYED:完成付款渠道调用 +SUCCEED:已成功 +FAILED:已失败 + :type Status: str + :param StatusDesc: 状态描述 + :type StatusDesc: str + :param Remark: 提现备注 +注意:此字段可能返回 null,表示取不到有效值。 + :type Remark: str """ - self.AgentTaxPaymentBatch = None - self.RequestId = None + self.IncomeType = None + self.AmountBeforeTax = None + self.AmountAfterTax = None + self.Tax = None + self.OutOrderId = None + self.OrderId = None + self.InitiateTime = None + self.FinishTime = None + self.Status = None + self.StatusDesc = None + self.Remark = None def _deserialize(self, params): - if params.get("AgentTaxPaymentBatch") is not None: - self.AgentTaxPaymentBatch = AgentTaxPaymentBatch() - self.AgentTaxPaymentBatch._deserialize(params.get("AgentTaxPaymentBatch")) - self.RequestId = params.get("RequestId") + self.IncomeType = params.get("IncomeType") + self.AmountBeforeTax = params.get("AmountBeforeTax") + self.AmountAfterTax = params.get("AmountAfterTax") + self.Tax = params.get("Tax") + self.OutOrderId = params.get("OutOrderId") + self.OrderId = params.get("OrderId") + self.InitiateTime = params.get("InitiateTime") + self.FinishTime = params.get("FinishTime") + self.Status = params.get("Status") + self.StatusDesc = params.get("StatusDesc") + self.Remark = params.get("Remark") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + -class QueryAnchorContractInfoRequest(AbstractModel): - """QueryAnchorContractInfo请求参数结构体 +class PaymentOrderStatusResult(AbstractModel): + """付款订单状态结果 """ def __init__(self): r""" - :param BeginTime: 起始时间,格式为yyyy-MM-dd - :type BeginTime: str - :param EndTime: 起始时间,格式为yyyy-MM-dd - :type EndTime: str + :param Status: 状态 +ACCEPTED:已受理 +ACCOUNTED:已记账 +PAYING:付款中 +PAYED:完成付款渠道调用 +SUCCEED:已成功 +FAILED:已失败 + :type Status: str + :param StatusDesc: 状态描述 + :type StatusDesc: str """ - self.BeginTime = None - self.EndTime = None + self.Status = None + self.StatusDesc = None def _deserialize(self, params): - self.BeginTime = params.get("BeginTime") - self.EndTime = params.get("EndTime") + self.Status = params.get("Status") + self.StatusDesc = params.get("StatusDesc") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -12587,51 +13224,81 @@ def _deserialize(self, params): -class QueryAnchorContractInfoResponse(AbstractModel): - """QueryAnchorContractInfo返回参数结构体 +class PaymentOrders(AbstractModel): + """付款订单列表 """ def __init__(self): r""" - :param AnchorContractInfoList: 签约主播数据 - :type AnchorContractInfoList: list of AnchorContractInfo - :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - :type RequestId: str + :param List: 列表 + :type List: list of PaymentOrderResult + :param Count: 总数 + :type Count: int """ - self.AnchorContractInfoList = None - self.RequestId = None + self.List = None + self.Count = None def _deserialize(self, params): - if params.get("AnchorContractInfoList") is not None: - self.AnchorContractInfoList = [] - for item in params.get("AnchorContractInfoList"): - obj = AnchorContractInfo() + if params.get("List") is not None: + self.List = [] + for item in params.get("List"): + obj = PaymentOrderResult() obj._deserialize(item) - self.AnchorContractInfoList.append(obj) - self.RequestId = params.get("RequestId") + self.List.append(obj) + self.Count = params.get("Count") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + -class QueryApplicationMaterialRequest(AbstractModel): - """QueryApplicationMaterial请求参数结构体 +class QueryAcctBindingRequest(AbstractModel): + """QueryAcctBinding请求参数结构体 """ def __init__(self): r""" - :param DeclareId: 申报流水号 - :type DeclareId: str - :param Profile: 接入环境。沙箱环境填sandbox - :type Profile: str + :param MidasAppId: 聚鑫分配的支付主MidasAppId + :type MidasAppId: str + :param SubAppId: 聚鑫计费SubAppId,代表子商户 + :type SubAppId: str + :param MidasSecretId: 由平台客服提供的计费密钥Id + :type MidasSecretId: str + :param MidasSignature: 计费签名 + :type MidasSignature: str + :param EncryptType: 敏感信息加密类型: +RSA: rsa非对称加密,使用RSA-PKCS1-v1_5 +AES: aes对称加密,使用AES256-CBC-PCKS7padding +缺省: RSA + :type EncryptType: str + :param MidasEnvironment: 环境名: +release: 现网环境 +sandbox: 沙箱环境 +development: 开发环境 +缺省: release + :type MidasEnvironment: str """ - self.DeclareId = None - self.Profile = None + self.MidasAppId = None + self.SubAppId = None + self.MidasSecretId = None + self.MidasSignature = None + self.EncryptType = None + self.MidasEnvironment = None def _deserialize(self, params): - self.DeclareId = params.get("DeclareId") - self.Profile = params.get("Profile") + self.MidasAppId = params.get("MidasAppId") + self.SubAppId = params.get("SubAppId") + self.MidasSecretId = params.get("MidasSecretId") + self.MidasSignature = params.get("MidasSignature") + self.EncryptType = params.get("EncryptType") + self.MidasEnvironment = params.get("MidasEnvironment") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -12641,87 +13308,38 @@ def _deserialize(self, params): -class QueryApplicationMaterialResponse(AbstractModel): - """QueryApplicationMaterial返回参数结构体 +class QueryAcctBindingResponse(AbstractModel): + """QueryAcctBinding返回参数结构体 """ def __init__(self): r""" - :param Result: 成功申报材料查询结果 - :type Result: :class:`tencentcloud.cpdp.v20190820.models.QueryDeclareResult` + :param TotalCount: 总行数 + :type TotalCount: int + :param BankCardItems: 银行卡信息列表 + :type BankCardItems: list of BankCardItem :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ - self.Result = None + self.TotalCount = None + self.BankCardItems = None self.RequestId = None def _deserialize(self, params): - if params.get("Result") is not None: - self.Result = QueryDeclareResult() - self.Result._deserialize(params.get("Result")) - self.RequestId = params.get("RequestId") - - -class QueryAssignmentRequest(AbstractModel): - """QueryAssignment请求参数结构体 - - """ - - def __init__(self): - r""" - :param AnchorId: 主播ID - :type AnchorId: str - """ - self.AnchorId = None - - - def _deserialize(self, params): - self.AnchorId = params.get("AnchorId") - memeber_set = set(params.keys()) - for name, value in vars(self).items(): - if name in memeber_set: - memeber_set.remove(name) - if len(memeber_set) > 0: - warnings.warn("%s fileds are useless." % ",".join(memeber_set)) - - - -class QueryAssignmentResponse(AbstractModel): - """QueryAssignment返回参数结构体 - - """ - - def __init__(self): - r""" - :param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功。 - :type ErrCode: str - :param ErrMsg: 响应消息 - :type ErrMsg: str - :param Result: 返回响应 -注意:此字段可能返回 null,表示取不到有效值。 - :type Result: :class:`tencentcloud.cpdp.v20190820.models.AssignmentData` - :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - :type RequestId: str - """ - self.ErrCode = None - self.ErrMsg = None - self.Result = None - self.RequestId = None - - - def _deserialize(self, params): - self.ErrCode = params.get("ErrCode") - self.ErrMsg = params.get("ErrMsg") - if params.get("Result") is not None: - self.Result = AssignmentData() - self.Result._deserialize(params.get("Result")) + self.TotalCount = params.get("TotalCount") + if params.get("BankCardItems") is not None: + self.BankCardItems = [] + for item in params.get("BankCardItems"): + obj = BankCardItem() + obj._deserialize(item) + self.BankCardItems.append(obj) self.RequestId = params.get("RequestId") -class QueryBalanceRequest(AbstractModel): - """QueryBalance请求参数结构体 +class QueryAcctInfoListRequest(AbstractModel): + """QueryAcctInfoList请求参数结构体 """ @@ -12729,17 +13347,21 @@ def __init__(self): r""" :param MidasAppId: 聚鑫分配的支付主MidasAppId :type MidasAppId: str - :param SubAppId: 聚鑫计费SubAppId,代表子商户 - :type SubAppId: str - :param QueryFlag: 2:普通会员子账号 -3:功能子账号 - :type QueryFlag: str - :param PageOffset: 起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照建立时间的先后 + :param QueryAcctBeginTime: 查询开始时间(以开户时间为准) + :type QueryAcctBeginTime: str + :param QueryAcctEndTime: 查询结束时间(以开户时间为准) + :type QueryAcctEndTime: str + :param PageOffset: 分页号, 起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照开户时间的先后 :type PageOffset: str - :param MidasSecretId: 聚鑫分配的安全ID + :param MidasSecretId: 由平台客服提供的计费密钥Id :type MidasSecretId: str - :param MidasSignature: 按照聚鑫安全密钥计算的签名 + :param MidasSignature: 计费签名 :type MidasSignature: str + :param EncryptType: 敏感信息加密类型: +RSA: rsa非对称加密,使用RSA-PKCS1-v1_5 +AES: aes对称加密,使用AES256-CBC-PCKS7padding +缺省: RSA + :type EncryptType: str :param MidasEnvironment: 环境名: release: 现网环境 sandbox: 沙箱环境 @@ -12748,21 +13370,23 @@ def __init__(self): :type MidasEnvironment: str """ self.MidasAppId = None - self.SubAppId = None - self.QueryFlag = None + self.QueryAcctBeginTime = None + self.QueryAcctEndTime = None self.PageOffset = None self.MidasSecretId = None self.MidasSignature = None + self.EncryptType = None self.MidasEnvironment = None def _deserialize(self, params): self.MidasAppId = params.get("MidasAppId") - self.SubAppId = params.get("SubAppId") - self.QueryFlag = params.get("QueryFlag") + self.QueryAcctBeginTime = params.get("QueryAcctBeginTime") + self.QueryAcctEndTime = params.get("QueryAcctEndTime") self.PageOffset = params.get("PageOffset") self.MidasSecretId = params.get("MidasSecretId") self.MidasSignature = params.get("MidasSignature") + self.EncryptType = params.get("EncryptType") self.MidasEnvironment = params.get("MidasEnvironment") memeber_set = set(params.keys()) for name, value in vars(self).items(): @@ -12773,87 +13397,82 @@ def _deserialize(self, params): -class QueryBalanceResponse(AbstractModel): - """QueryBalance返回参数结构体 +class QueryAcctInfoListResponse(AbstractModel): + """QueryAcctInfoList返回参数结构体 """ def __init__(self): r""" :param ResultCount: 本次交易返回查询结果记录数 - :type ResultCount: str - :param StartRecordOffset: 起始记录号 - :type StartRecordOffset: str - :param EndFlag: 结束标志 - :type EndFlag: str + :type ResultCount: int :param TotalCount: 符合业务查询条件的记录总数 - :type TotalCount: str - :param QueryItems: 查询结果项 - :type QueryItems: list of QueryItem + :type TotalCount: int + :param QueryAcctItems: 查询结果项 [object,object] + :type QueryAcctItems: list of QueryAcctItem :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ self.ResultCount = None - self.StartRecordOffset = None - self.EndFlag = None self.TotalCount = None - self.QueryItems = None + self.QueryAcctItems = None self.RequestId = None def _deserialize(self, params): self.ResultCount = params.get("ResultCount") - self.StartRecordOffset = params.get("StartRecordOffset") - self.EndFlag = params.get("EndFlag") self.TotalCount = params.get("TotalCount") - if params.get("QueryItems") is not None: - self.QueryItems = [] - for item in params.get("QueryItems"): - obj = QueryItem() + if params.get("QueryAcctItems") is not None: + self.QueryAcctItems = [] + for item in params.get("QueryAcctItems"): + obj = QueryAcctItem() obj._deserialize(item) - self.QueryItems.append(obj) + self.QueryAcctItems.append(obj) self.RequestId = params.get("RequestId") -class QueryBankClearRequest(AbstractModel): - """QueryBankClear请求参数结构体 +class QueryAcctInfoRequest(AbstractModel): + """QueryAcctInfo请求参数结构体 """ def __init__(self): r""" - :param MrchCode: String(22),商户号(签约客户号) - :type MrchCode: str - :param FunctionFlag: STRING(2),功能标志(1: 全部; 2: 指定时间段) - :type FunctionFlag: str - :param PageNum: STRING (10),页码(起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照建立时间的先后) - :type PageNum: str - :param StartDate: STRING(8),开始日期(若是指定时间段查询,则必输,当查询全部时,不起作用。格式: 20190101) - :type StartDate: str - :param EndDate: STRING(8),终止日期(若是指定时间段查询,则必输,当查询全部时,不起作用。格式:20190101) - :type EndDate: str - :param ReservedMsg: STRING(1027),保留域 - :type ReservedMsg: str - :param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod" - :type Profile: str + :param MidasAppId: 聚鑫平台分配的支付MidasAppId + :type MidasAppId: str + :param SubMchId: 业务平台的子商户Id,唯一 + :type SubMchId: str + :param MidasSecretId: 由平台客服提供的计费密钥Id + :type MidasSecretId: str + :param MidasSignature: 计费签名 + :type MidasSignature: str + :param EncryptType: 敏感信息加密类型: +RSA: rsa非对称加密,使用RSA-PKCS1-v1_5 +AES: aes对称加密,使用AES256-CBC-PCKS7padding +缺省: RSA + :type EncryptType: str + :param MidasEnvironment: 环境名: +release: 现网环境 +sandbox: 沙箱环境 +development: 开发环境 +缺省: release + :type MidasEnvironment: str """ - self.MrchCode = None - self.FunctionFlag = None - self.PageNum = None - self.StartDate = None - self.EndDate = None - self.ReservedMsg = None - self.Profile = None + self.MidasAppId = None + self.SubMchId = None + self.MidasSecretId = None + self.MidasSignature = None + self.EncryptType = None + self.MidasEnvironment = None def _deserialize(self, params): - self.MrchCode = params.get("MrchCode") - self.FunctionFlag = params.get("FunctionFlag") - self.PageNum = params.get("PageNum") - self.StartDate = params.get("StartDate") - self.EndDate = params.get("EndDate") - self.ReservedMsg = params.get("ReservedMsg") - self.Profile = params.get("Profile") + self.MidasAppId = params.get("MidasAppId") + self.SubMchId = params.get("SubMchId") + self.MidasSecretId = params.get("MidasSecretId") + self.MidasSignature = params.get("MidasSignature") + self.EncryptType = params.get("EncryptType") + self.MidasEnvironment = params.get("MidasEnvironment") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -12863,117 +13482,142 @@ def _deserialize(self, params): -class QueryBankClearResponse(AbstractModel): - """QueryBankClear返回参数结构体 +class QueryAcctInfoResponse(AbstractModel): + """QueryAcctInfo返回参数结构体 """ def __init__(self): r""" - :param TxnReturnCode: String(20),返回码 - :type TxnReturnCode: str - :param TxnReturnMsg: String(100),返回信息 - :type TxnReturnMsg: str - :param CnsmrSeqNo: String(22),交易流水号 - :type CnsmrSeqNo: str - :param ResultNum: STRING (10),本次交易返回查询结果记录数 -注意:此字段可能返回 null,表示取不到有效值。 - :type ResultNum: str - :param StartRecordNo: STRING(30),起始记录号 -注意:此字段可能返回 null,表示取不到有效值。 - :type StartRecordNo: str - :param EndFlag: STRING(2),结束标志(0: 否; 1: 是) -注意:此字段可能返回 null,表示取不到有效值。 - :type EndFlag: str - :param TotalNum: STRING (10),符合业务查询条件的记录总数(重复次数, 一次最多返回20条记录) -注意:此字段可能返回 null,表示取不到有效值。 - :type TotalNum: str - :param TranItemArray: 交易信息数组 -注意:此字段可能返回 null,表示取不到有效值。 - :type TranItemArray: list of ClearItem - :param ReservedMsg: STRING(1027),保留域 + :param SubAppId: 聚鑫计费SubAppId,代表子商户 + :type SubAppId: str + :param SubMchName: 子商户名称 + :type SubMchName: str + :param SubMchType: 子商户类型: +个人: personal +企业:enterprise +缺省: enterprise + :type SubMchType: str + :param ShortName: 不填则默认子商户名称 + :type ShortName: str + :param Address: 子商户地址 + :type Address: str + :param Contact: 子商户联系人子商户联系人 +<敏感信息> + :type Contact: str + :param Mobile: 联系人手机号 +<敏感信息> + :type Mobile: str + :param Email: 邮箱 +<敏感信息> + :type Email: str + :param SubMchId: 子商户id + :type SubMchId: str + :param SubAcctNo: 子账户 + :type SubAcctNo: str + :param SubMerchantMemberType: 子商户会员类型: +general:普通子账户 +merchant:商户子账户 +缺省: general 注意:此字段可能返回 null,表示取不到有效值。 - :type ReservedMsg: str + :type SubMerchantMemberType: str :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ - self.TxnReturnCode = None - self.TxnReturnMsg = None - self.CnsmrSeqNo = None - self.ResultNum = None - self.StartRecordNo = None - self.EndFlag = None - self.TotalNum = None - self.TranItemArray = None - self.ReservedMsg = None + self.SubAppId = None + self.SubMchName = None + self.SubMchType = None + self.ShortName = None + self.Address = None + self.Contact = None + self.Mobile = None + self.Email = None + self.SubMchId = None + self.SubAcctNo = None + self.SubMerchantMemberType = None self.RequestId = None def _deserialize(self, params): - self.TxnReturnCode = params.get("TxnReturnCode") - self.TxnReturnMsg = params.get("TxnReturnMsg") - self.CnsmrSeqNo = params.get("CnsmrSeqNo") - self.ResultNum = params.get("ResultNum") - self.StartRecordNo = params.get("StartRecordNo") - self.EndFlag = params.get("EndFlag") - self.TotalNum = params.get("TotalNum") - if params.get("TranItemArray") is not None: - self.TranItemArray = [] - for item in params.get("TranItemArray"): - obj = ClearItem() - obj._deserialize(item) - self.TranItemArray.append(obj) - self.ReservedMsg = params.get("ReservedMsg") + self.SubAppId = params.get("SubAppId") + self.SubMchName = params.get("SubMchName") + self.SubMchType = params.get("SubMchType") + self.ShortName = params.get("ShortName") + self.Address = params.get("Address") + self.Contact = params.get("Contact") + self.Mobile = params.get("Mobile") + self.Email = params.get("Email") + self.SubMchId = params.get("SubMchId") + self.SubAcctNo = params.get("SubAcctNo") + self.SubMerchantMemberType = params.get("SubMerchantMemberType") self.RequestId = params.get("RequestId") -class QueryBankTransactionDetailsRequest(AbstractModel): - """QueryBankTransactionDetails请求参数结构体 +class QueryAcctItem(AbstractModel): + """查询账户列表接口 """ def __init__(self): r""" - :param MrchCode: String(22),商户号(签约客户号) - :type MrchCode: str - :param FunctionFlag: STRING(2),功能标志(1: 当日; 2: 历史) - :type FunctionFlag: str - :param SubAcctNo: STRING(50),见证子帐户的帐号 + :param SubMchType: 子商户类型: +个人: personal +企业:enterprise +缺省: enterprise + :type SubMchType: str + :param SubMchName: 子商户名称 + :type SubMchName: str + :param SubAcctNo: 子账号 :type SubAcctNo: str - :param QueryFlag: STRING(4),查询标志(1: 全部; 2: 转出; 3: 转入 ) - :type QueryFlag: str - :param PageNum: STRING(10),页码(起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照建立时间的先后) - :type PageNum: str - :param StartDate: STRING(8),开始日期(若是历史查询,则必输,当日查询时,不起作用。格式:20190101) - :type StartDate: str - :param EndDate: STRING(8),终止日期(若是历史查询,则必输,当日查询时,不起作用。格式:20190101) - :type EndDate: str - :param ReservedMsg: STRING(1027),保留域 - :type ReservedMsg: str - :param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod" - :type Profile: str + :param ShortName: 不填则默认子商户名称 + :type ShortName: str + :param SubMchId: 业务平台的子商户Id,唯一 + :type SubMchId: str + :param SubAppId: 聚鑫计费SubAppId,代表子商户 + :type SubAppId: str + :param Contact: 子商户联系人 +<敏感信息> + :type Contact: str + :param Address: 子商户地址 + :type Address: str + :param Mobile: 联系人手机号 +<敏感信息> + :type Mobile: str + :param Email: 邮箱 +<敏感信息> + :type Email: str + :param SubMerchantMemberType: 子商户会员类型: +general:普通子账户 +merchant:商户子账户 +缺省: general +注意:此字段可能返回 null,表示取不到有效值。 + :type SubMerchantMemberType: str """ - self.MrchCode = None - self.FunctionFlag = None + self.SubMchType = None + self.SubMchName = None self.SubAcctNo = None - self.QueryFlag = None - self.PageNum = None - self.StartDate = None - self.EndDate = None - self.ReservedMsg = None - self.Profile = None + self.ShortName = None + self.SubMchId = None + self.SubAppId = None + self.Contact = None + self.Address = None + self.Mobile = None + self.Email = None + self.SubMerchantMemberType = None def _deserialize(self, params): - self.MrchCode = params.get("MrchCode") - self.FunctionFlag = params.get("FunctionFlag") + self.SubMchType = params.get("SubMchType") + self.SubMchName = params.get("SubMchName") self.SubAcctNo = params.get("SubAcctNo") - self.QueryFlag = params.get("QueryFlag") - self.PageNum = params.get("PageNum") - self.StartDate = params.get("StartDate") - self.EndDate = params.get("EndDate") - self.ReservedMsg = params.get("ReservedMsg") - self.Profile = params.get("Profile") + self.ShortName = params.get("ShortName") + self.SubMchId = params.get("SubMchId") + self.SubAppId = params.get("SubAppId") + self.Contact = params.get("Contact") + self.Address = params.get("Address") + self.Mobile = params.get("Mobile") + self.Email = params.get("Email") + self.SubMerchantMemberType = params.get("SubMerchantMemberType") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -12983,116 +13627,75 @@ def _deserialize(self, params): -class QueryBankTransactionDetailsResponse(AbstractModel): - """QueryBankTransactionDetails返回参数结构体 +class QueryAgentStatementsRequest(AbstractModel): + """QueryAgentStatements请求参数结构体 """ def __init__(self): r""" - :param TxnReturnCode: String(20),返回码 - :type TxnReturnCode: str - :param TxnReturnMsg: String(100),返回信息 - :type TxnReturnMsg: str - :param CnsmrSeqNo: String(22),交易流水号 - :type CnsmrSeqNo: str - :param ResultNum: STRING(10),本次交易返回查询结果记录数 -注意:此字段可能返回 null,表示取不到有效值。 - :type ResultNum: str - :param StartRecordNo: STRING(30),起始记录号 -注意:此字段可能返回 null,表示取不到有效值。 - :type StartRecordNo: str - :param EndFlag: STRING(2),结束标志(0: 否; 1: 是) -注意:此字段可能返回 null,表示取不到有效值。 - :type EndFlag: str - :param TotalNum: STRING(10),符合业务查询条件的记录总数(重复次数,一次最多返回20条记录) -注意:此字段可能返回 null,表示取不到有效值。 - :type TotalNum: str - :param TranItemArray: 交易信息数组 -注意:此字段可能返回 null,表示取不到有效值。 - :type TranItemArray: list of TransactionItem - :param ReservedMsg: STRING(1027),保留域 + :param Date: 结算单日期,月结算单填每月1日 + :type Date: str + :param Type: 日结算单:daily +月结算单:monthly + :type Type: str + """ + self.Date = None + self.Type = None + + + def _deserialize(self, params): + self.Date = params.get("Date") + self.Type = params.get("Type") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryAgentStatementsResponse(AbstractModel): + """QueryAgentStatements返回参数结构体 + + """ + + def __init__(self): + r""" + :param FileUrl: 文件下载链接 注意:此字段可能返回 null,表示取不到有效值。 - :type ReservedMsg: str + :type FileUrl: str :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ - self.TxnReturnCode = None - self.TxnReturnMsg = None - self.CnsmrSeqNo = None - self.ResultNum = None - self.StartRecordNo = None - self.EndFlag = None - self.TotalNum = None - self.TranItemArray = None - self.ReservedMsg = None + self.FileUrl = None self.RequestId = None def _deserialize(self, params): - self.TxnReturnCode = params.get("TxnReturnCode") - self.TxnReturnMsg = params.get("TxnReturnMsg") - self.CnsmrSeqNo = params.get("CnsmrSeqNo") - self.ResultNum = params.get("ResultNum") - self.StartRecordNo = params.get("StartRecordNo") - self.EndFlag = params.get("EndFlag") - self.TotalNum = params.get("TotalNum") - if params.get("TranItemArray") is not None: - self.TranItemArray = [] - for item in params.get("TranItemArray"): - obj = TransactionItem() - obj._deserialize(item) - self.TranItemArray.append(obj) - self.ReservedMsg = params.get("ReservedMsg") + self.FileUrl = params.get("FileUrl") self.RequestId = params.get("RequestId") -class QueryBankWithdrawCashDetailsRequest(AbstractModel): - """QueryBankWithdrawCashDetails请求参数结构体 +class QueryAgentTaxPaymentBatchRequest(AbstractModel): + """QueryAgentTaxPaymentBatch请求参数结构体 """ def __init__(self): r""" - :param MrchCode: String(22),商户号(签约客户号) - :type MrchCode: str - :param FunctionFlag: STRING(2),功能标志(1: 当日; 2: 历史) - :type FunctionFlag: str - :param SubAcctNo: STRING(50),见证子帐户的帐号 - :type SubAcctNo: str - :param QueryFlag: STRING(4),查询标志(2: 提现; 3: 清分) - :type QueryFlag: str - :param PageNum: STRING(10),页码(起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照建立时间的先后) - :type PageNum: str - :param BeginDate: STRING(8),开始日期(若是历史查询,则必输,当日查询时,不起作用。格式:20190101) - :type BeginDate: str - :param EndDate: STRING(8),结束日期(若是历史查询,则必输,当日查询时,不起作用。格式:20190101) - :type EndDate: str - :param ReservedMsg: STRING(1027),保留域 - :type ReservedMsg: str - :param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod" + :param BatchNum: 批次号 + :type BatchNum: int + :param Profile: 接入环境。沙箱环境填sandbox :type Profile: str """ - self.MrchCode = None - self.FunctionFlag = None - self.SubAcctNo = None - self.QueryFlag = None - self.PageNum = None - self.BeginDate = None - self.EndDate = None - self.ReservedMsg = None + self.BatchNum = None self.Profile = None def _deserialize(self, params): - self.MrchCode = params.get("MrchCode") - self.FunctionFlag = params.get("FunctionFlag") - self.SubAcctNo = params.get("SubAcctNo") - self.QueryFlag = params.get("QueryFlag") - self.PageNum = params.get("PageNum") - self.BeginDate = params.get("BeginDate") - self.EndDate = params.get("EndDate") - self.ReservedMsg = params.get("ReservedMsg") + self.BatchNum = params.get("BatchNum") self.Profile = params.get("Profile") memeber_set = set(params.keys()) for name, value in vars(self).items(): @@ -13103,121 +13706,48 @@ def _deserialize(self, params): -class QueryBankWithdrawCashDetailsResponse(AbstractModel): - """QueryBankWithdrawCashDetails返回参数结构体 +class QueryAgentTaxPaymentBatchResponse(AbstractModel): + """QueryAgentTaxPaymentBatch返回参数结构体 """ def __init__(self): r""" - :param TxnReturnCode: String(20),返回码 - :type TxnReturnCode: str - :param TxnReturnMsg: String(100),返回信息 - :type TxnReturnMsg: str - :param CnsmrSeqNo: String(22),交易流水号 - :type CnsmrSeqNo: str - :param ResultNum: STRING(10),本次交易返回查询结果记录数 -注意:此字段可能返回 null,表示取不到有效值。 - :type ResultNum: str - :param StartRecordNo: STRING(30),起始记录号 -注意:此字段可能返回 null,表示取不到有效值。 - :type StartRecordNo: str - :param EndFlag: STRING(2),结束标志(0:否; 1:是) -注意:此字段可能返回 null,表示取不到有效值。 - :type EndFlag: str - :param TotalNum: STRING(10),符合业务查询条件的记录总数(重复次数,一次最多返回20条记录) -注意:此字段可能返回 null,表示取不到有效值。 - :type TotalNum: str - :param TranItemArray: 交易信息数组 -注意:此字段可能返回 null,表示取不到有效值。 - :type TranItemArray: list of WithdrawItem - :param ReservedMsg: STRING(1027),保留域 -注意:此字段可能返回 null,表示取不到有效值。 - :type ReservedMsg: str + :param AgentTaxPaymentBatch: 代理商完税证明批次信息 + :type AgentTaxPaymentBatch: :class:`tencentcloud.cpdp.v20190820.models.AgentTaxPaymentBatch` :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ - self.TxnReturnCode = None - self.TxnReturnMsg = None - self.CnsmrSeqNo = None - self.ResultNum = None - self.StartRecordNo = None - self.EndFlag = None - self.TotalNum = None - self.TranItemArray = None - self.ReservedMsg = None + self.AgentTaxPaymentBatch = None self.RequestId = None def _deserialize(self, params): - self.TxnReturnCode = params.get("TxnReturnCode") - self.TxnReturnMsg = params.get("TxnReturnMsg") - self.CnsmrSeqNo = params.get("CnsmrSeqNo") - self.ResultNum = params.get("ResultNum") - self.StartRecordNo = params.get("StartRecordNo") - self.EndFlag = params.get("EndFlag") - self.TotalNum = params.get("TotalNum") - if params.get("TranItemArray") is not None: - self.TranItemArray = [] - for item in params.get("TranItemArray"): - obj = WithdrawItem() - obj._deserialize(item) - self.TranItemArray.append(obj) - self.ReservedMsg = params.get("ReservedMsg") + if params.get("AgentTaxPaymentBatch") is not None: + self.AgentTaxPaymentBatch = AgentTaxPaymentBatch() + self.AgentTaxPaymentBatch._deserialize(params.get("AgentTaxPaymentBatch")) self.RequestId = params.get("RequestId") -class QueryBatchPaymentResultData(AbstractModel): - """QueryBatchPaymentResult接口返回响应 +class QueryAnchorContractInfoRequest(AbstractModel): + """QueryAnchorContractInfo请求参数结构体 """ def __init__(self): r""" - :param BatchId: 批次号 -注意:此字段可能返回 null,表示取不到有效值。 - :type BatchId: str - :param TotalAmount: 批次总额 -注意:此字段可能返回 null,表示取不到有效值。 - :type TotalAmount: int - :param TotalCount: 批次总量 -注意:此字段可能返回 null,表示取不到有效值。 - :type TotalCount: int - :param ReqReserved: 批次预留字段 -注意:此字段可能返回 null,表示取不到有效值。 - :type ReqReserved: str - :param Remark: 批次备注 -注意:此字段可能返回 null,表示取不到有效值。 - :type Remark: str - :param TransferType: 渠道类型 -注意:此字段可能返回 null,表示取不到有效值。 - :type TransferType: int - :param TransferInfoList: 转账明细 -注意:此字段可能返回 null,表示取不到有效值。 - :type TransferInfoList: list of QueryBatchPaymentResultDataInfo + :param BeginTime: 起始时间,格式为yyyy-MM-dd + :type BeginTime: str + :param EndTime: 起始时间,格式为yyyy-MM-dd + :type EndTime: str """ - self.BatchId = None - self.TotalAmount = None - self.TotalCount = None - self.ReqReserved = None - self.Remark = None - self.TransferType = None - self.TransferInfoList = None + self.BeginTime = None + self.EndTime = None def _deserialize(self, params): - self.BatchId = params.get("BatchId") - self.TotalAmount = params.get("TotalAmount") - self.TotalCount = params.get("TotalCount") - self.ReqReserved = params.get("ReqReserved") - self.Remark = params.get("Remark") - self.TransferType = params.get("TransferType") - if params.get("TransferInfoList") is not None: - self.TransferInfoList = [] - for item in params.get("TransferInfoList"): - obj = QueryBatchPaymentResultDataInfo() - obj._deserialize(item) - self.TransferInfoList.append(obj) + self.BeginTime = params.get("BeginTime") + self.EndTime = params.get("EndTime") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -13227,81 +13757,51 @@ def _deserialize(self, params): -class QueryBatchPaymentResultDataInfo(AbstractModel): - """QueryBatchPaymentResultData复杂类型中的TransferInfoList +class QueryAnchorContractInfoResponse(AbstractModel): + """QueryAnchorContractInfo返回参数结构体 """ def __init__(self): r""" - :param OrderId: 订单号 -注意:此字段可能返回 null,表示取不到有效值。 - :type OrderId: str - :param AgentId: 代理商ID -注意:此字段可能返回 null,表示取不到有效值。 - :type AgentId: str - :param AgentName: 代理商名称 -注意:此字段可能返回 null,表示取不到有效值。 - :type AgentName: str - :param Status: 交易状态。 -0 处理中 -1 预占成功 -2 交易成功 -3 交易失败 -4 未知渠道异常 -5 预占额度失败 -6 提交成功 -7 提交失败 -8 订单重复提交 -99 未知系统异常 -注意:此字段可能返回 null,表示取不到有效值。 - :type Status: int - :param StatusDesc: 状态描述 -注意:此字段可能返回 null,表示取不到有效值。 - :type StatusDesc: str - :param TransferAmount: 转账金额 -注意:此字段可能返回 null,表示取不到有效值。 - :type TransferAmount: int + :param AnchorContractInfoList: 签约主播数据 + :type AnchorContractInfoList: list of AnchorContractInfo + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str """ - self.OrderId = None - self.AgentId = None - self.AgentName = None - self.Status = None - self.StatusDesc = None - self.TransferAmount = None + self.AnchorContractInfoList = None + self.RequestId = None def _deserialize(self, params): - self.OrderId = params.get("OrderId") - self.AgentId = params.get("AgentId") - self.AgentName = params.get("AgentName") - self.Status = params.get("Status") - self.StatusDesc = params.get("StatusDesc") - self.TransferAmount = params.get("TransferAmount") - memeber_set = set(params.keys()) - for name, value in vars(self).items(): - if name in memeber_set: - memeber_set.remove(name) - if len(memeber_set) > 0: - warnings.warn("%s fileds are useless." % ",".join(memeber_set)) - + if params.get("AnchorContractInfoList") is not None: + self.AnchorContractInfoList = [] + for item in params.get("AnchorContractInfoList"): + obj = AnchorContractInfo() + obj._deserialize(item) + self.AnchorContractInfoList.append(obj) + self.RequestId = params.get("RequestId") -class QueryBatchPaymentResultRequest(AbstractModel): - """QueryBatchPaymentResult请求参数结构体 +class QueryApplicationMaterialRequest(AbstractModel): + """QueryApplicationMaterial请求参数结构体 """ def __init__(self): r""" - :param BatchId: 批次号 - :type BatchId: str + :param DeclareId: 申报流水号 + :type DeclareId: str + :param Profile: 接入环境。沙箱环境填sandbox + :type Profile: str """ - self.BatchId = None + self.DeclareId = None + self.Profile = None def _deserialize(self, params): - self.BatchId = params.get("BatchId") + self.DeclareId = params.get("DeclareId") + self.Profile = params.get("Profile") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -13311,58 +13811,44 @@ def _deserialize(self, params): -class QueryBatchPaymentResultResponse(AbstractModel): - """QueryBatchPaymentResult返回参数结构体 +class QueryApplicationMaterialResponse(AbstractModel): + """QueryApplicationMaterial返回参数结构体 """ def __init__(self): r""" - :param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功。 - :type ErrCode: str - :param ErrMessage: 响应消息。 - :type ErrMessage: str - :param Result: 返回响应 - :type Result: :class:`tencentcloud.cpdp.v20190820.models.QueryBatchPaymentResultData` + :param Result: 成功申报材料查询结果 + :type Result: :class:`tencentcloud.cpdp.v20190820.models.QueryDeclareResult` :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ - self.ErrCode = None - self.ErrMessage = None self.Result = None self.RequestId = None def _deserialize(self, params): - self.ErrCode = params.get("ErrCode") - self.ErrMessage = params.get("ErrMessage") if params.get("Result") is not None: - self.Result = QueryBatchPaymentResultData() + self.Result = QueryDeclareResult() self.Result._deserialize(params.get("Result")) self.RequestId = params.get("RequestId") -class QueryBillDownloadURLData(AbstractModel): - """智能代发-单笔代发转账对账单返回数据 +class QueryAssignmentRequest(AbstractModel): + """QueryAssignment请求参数结构体 """ def __init__(self): r""" - :param BillDownloadURL: 统一对账单下载链接 -注意:此字段可能返回 null,表示取不到有效值。 - :type BillDownloadURL: str - :param OriginalBillDownloadURL: 渠道原始对账单下载链接 -注意:此字段可能返回 null,表示取不到有效值。 - :type OriginalBillDownloadURL: str + :param AnchorId: 主播ID + :type AnchorId: str """ - self.BillDownloadURL = None - self.OriginalBillDownloadURL = None + self.AnchorId = None def _deserialize(self, params): - self.BillDownloadURL = params.get("BillDownloadURL") - self.OriginalBillDownloadURL = params.get("OriginalBillDownloadURL") + self.AnchorId = params.get("AnchorId") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -13372,96 +13858,82 @@ def _deserialize(self, params): -class QueryBillDownloadURLRequest(AbstractModel): - """QueryBillDownloadURL请求参数结构体 +class QueryAssignmentResponse(AbstractModel): + """QueryAssignment返回参数结构体 """ def __init__(self): r""" - :param MerchantId: 商户号 - :type MerchantId: str - :param TransferType: 代发类型: -1、 微信企业付款 -2、 支付宝转账 -3、 平安银企直联代发转账 - :type TransferType: int - :param BillDate: 账单日期,格式yyyy-MM-dd - :type BillDate: str + :param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功。 + :type ErrCode: str + :param ErrMsg: 响应消息 + :type ErrMsg: str + :param Result: 返回响应 +注意:此字段可能返回 null,表示取不到有效值。 + :type Result: :class:`tencentcloud.cpdp.v20190820.models.AssignmentData` + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str """ - self.MerchantId = None - self.TransferType = None - self.BillDate = None - - - def _deserialize(self, params): - self.MerchantId = params.get("MerchantId") - self.TransferType = params.get("TransferType") - self.BillDate = params.get("BillDate") - memeber_set = set(params.keys()) - for name, value in vars(self).items(): - if name in memeber_set: - memeber_set.remove(name) - if len(memeber_set) > 0: - warnings.warn("%s fileds are useless." % ",".join(memeber_set)) - - - -class QueryBillDownloadURLResponse(AbstractModel): - """QueryBillDownloadURL返回参数结构体 - - """ - - def __init__(self): - r""" - :param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功 - :type ErrCode: str - :param ErrMessage: 响应消息 - :type ErrMessage: str - :param Result: 返回结果 -注意:此字段可能返回 null,表示取不到有效值。 - :type Result: :class:`tencentcloud.cpdp.v20190820.models.QueryBillDownloadURLData` - :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - :type RequestId: str - """ - self.ErrCode = None - self.ErrMessage = None - self.Result = None - self.RequestId = None + self.ErrCode = None + self.ErrMsg = None + self.Result = None + self.RequestId = None def _deserialize(self, params): self.ErrCode = params.get("ErrCode") - self.ErrMessage = params.get("ErrMessage") + self.ErrMsg = params.get("ErrMsg") if params.get("Result") is not None: - self.Result = QueryBillDownloadURLData() + self.Result = AssignmentData() self.Result._deserialize(params.get("Result")) self.RequestId = params.get("RequestId") -class QueryCityCodeRequest(AbstractModel): - """QueryCityCode请求参数结构体 +class QueryBalanceRequest(AbstractModel): + """QueryBalance请求参数结构体 """ def __init__(self): r""" - :param OpenId: 收单系统分配的开放ID - :type OpenId: str - :param OpenKey: 收单系统分配的密钥 - :type OpenKey: str - :param Profile: 沙箱环境填sandbox,正式环境不填 - :type Profile: str + :param MidasAppId: 聚鑫分配的支付主MidasAppId + :type MidasAppId: str + :param SubAppId: 聚鑫计费SubAppId,代表子商户 + :type SubAppId: str + :param QueryFlag: 2:普通会员子账号 +3:功能子账号 + :type QueryFlag: str + :param PageOffset: 起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照建立时间的先后 + :type PageOffset: str + :param MidasSecretId: 聚鑫分配的安全ID + :type MidasSecretId: str + :param MidasSignature: 按照聚鑫安全密钥计算的签名 + :type MidasSignature: str + :param MidasEnvironment: 环境名: +release: 现网环境 +sandbox: 沙箱环境 +development: 开发环境 +缺省: release + :type MidasEnvironment: str """ - self.OpenId = None - self.OpenKey = None - self.Profile = None + self.MidasAppId = None + self.SubAppId = None + self.QueryFlag = None + self.PageOffset = None + self.MidasSecretId = None + self.MidasSignature = None + self.MidasEnvironment = None def _deserialize(self, params): - self.OpenId = params.get("OpenId") - self.OpenKey = params.get("OpenKey") - self.Profile = params.get("Profile") + self.MidasAppId = params.get("MidasAppId") + self.SubAppId = params.get("SubAppId") + self.QueryFlag = params.get("QueryFlag") + self.PageOffset = params.get("PageOffset") + self.MidasSecretId = params.get("MidasSecretId") + self.MidasSignature = params.get("MidasSignature") + self.MidasEnvironment = params.get("MidasEnvironment") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -13471,86 +13943,87 @@ def _deserialize(self, params): -class QueryCityCodeResponse(AbstractModel): - """QueryCityCode返回参数结构体 +class QueryBalanceResponse(AbstractModel): + """QueryBalance返回参数结构体 """ def __init__(self): r""" - :param ErrMessage: 业务系统返回消息 -注意:此字段可能返回 null,表示取不到有效值。 - :type ErrMessage: str - :param ErrCode: 业务系统返回码 - :type ErrCode: str - :param Result: 查询城市编码响应对象 -注意:此字段可能返回 null,表示取不到有效值。 - :type Result: list of CityCodeResult + :param ResultCount: 本次交易返回查询结果记录数 + :type ResultCount: str + :param StartRecordOffset: 起始记录号 + :type StartRecordOffset: str + :param EndFlag: 结束标志 + :type EndFlag: str + :param TotalCount: 符合业务查询条件的记录总数 + :type TotalCount: str + :param QueryItems: 查询结果项 + :type QueryItems: list of QueryItem :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ - self.ErrMessage = None - self.ErrCode = None - self.Result = None + self.ResultCount = None + self.StartRecordOffset = None + self.EndFlag = None + self.TotalCount = None + self.QueryItems = None self.RequestId = None def _deserialize(self, params): - self.ErrMessage = params.get("ErrMessage") - self.ErrCode = params.get("ErrCode") - if params.get("Result") is not None: - self.Result = [] - for item in params.get("Result"): - obj = CityCodeResult() + self.ResultCount = params.get("ResultCount") + self.StartRecordOffset = params.get("StartRecordOffset") + self.EndFlag = params.get("EndFlag") + self.TotalCount = params.get("TotalCount") + if params.get("QueryItems") is not None: + self.QueryItems = [] + for item in params.get("QueryItems"): + obj = QueryItem() obj._deserialize(item) - self.Result.append(obj) + self.QueryItems.append(obj) self.RequestId = params.get("RequestId") -class QueryCloudChannelDataRequest(AbstractModel): - """QueryCloudChannelData请求参数结构体 +class QueryBankClearRequest(AbstractModel): + """QueryBankClear请求参数结构体 """ def __init__(self): r""" - :param MidasAppId: 米大师分配的支付主MidasAppId - :type MidasAppId: str - :param OutOrderNo: 业务订单号,外部订单号 - :type OutOrderNo: str - :param ExternalChannelDataType: 数据类型 -PAYMENT:支付 - :type ExternalChannelDataType: str - :param MidasEnvironment: 环境类型 -__release__:生产环境 -__sandbox__:沙箱环境 -_不填默认为生产环境_ - :type MidasEnvironment: str - :param SubAppId: 子应用ID - :type SubAppId: str - :param ChannelOrderId: 渠道订单号 - :type ChannelOrderId: str - :param Channel: 渠道名称,指定渠道查询 -wechat:微信支付 - :type Channel: str + :param MrchCode: String(22),商户号(签约客户号) + :type MrchCode: str + :param FunctionFlag: STRING(2),功能标志(1: 全部; 2: 指定时间段) + :type FunctionFlag: str + :param PageNum: STRING (10),页码(起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照建立时间的先后) + :type PageNum: str + :param StartDate: STRING(8),开始日期(若是指定时间段查询,则必输,当查询全部时,不起作用。格式: 20190101) + :type StartDate: str + :param EndDate: STRING(8),终止日期(若是指定时间段查询,则必输,当查询全部时,不起作用。格式:20190101) + :type EndDate: str + :param ReservedMsg: STRING(1027),保留域 + :type ReservedMsg: str + :param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod" + :type Profile: str """ - self.MidasAppId = None - self.OutOrderNo = None - self.ExternalChannelDataType = None - self.MidasEnvironment = None - self.SubAppId = None - self.ChannelOrderId = None - self.Channel = None + self.MrchCode = None + self.FunctionFlag = None + self.PageNum = None + self.StartDate = None + self.EndDate = None + self.ReservedMsg = None + self.Profile = None def _deserialize(self, params): - self.MidasAppId = params.get("MidasAppId") - self.OutOrderNo = params.get("OutOrderNo") - self.ExternalChannelDataType = params.get("ExternalChannelDataType") - self.MidasEnvironment = params.get("MidasEnvironment") - self.SubAppId = params.get("SubAppId") - self.ChannelOrderId = params.get("ChannelOrderId") - self.Channel = params.get("Channel") + self.MrchCode = params.get("MrchCode") + self.FunctionFlag = params.get("FunctionFlag") + self.PageNum = params.get("PageNum") + self.StartDate = params.get("StartDate") + self.EndDate = params.get("EndDate") + self.ReservedMsg = params.get("ReservedMsg") + self.Profile = params.get("Profile") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -13560,98 +14033,117 @@ def _deserialize(self, params): -class QueryCloudChannelDataResponse(AbstractModel): - """QueryCloudChannelData返回参数结构体 +class QueryBankClearResponse(AbstractModel): + """QueryBankClear返回参数结构体 """ def __init__(self): r""" - :param OutOrderNo: 外部订单号 -注意:此字段可能返回 null,表示取不到有效值。 - :type OutOrderNo: str - :param ChannelOrderId: 渠道订单号 + :param TxnReturnCode: String(20),返回码 + :type TxnReturnCode: str + :param TxnReturnMsg: String(100),返回信息 + :type TxnReturnMsg: str + :param CnsmrSeqNo: String(22),交易流水号 + :type CnsmrSeqNo: str + :param ResultNum: STRING (10),本次交易返回查询结果记录数 注意:此字段可能返回 null,表示取不到有效值。 - :type ChannelOrderId: str - :param ExternalChannelDataType: 第三方渠道数据类型 + :type ResultNum: str + :param StartRecordNo: STRING(30),起始记录号 注意:此字段可能返回 null,表示取不到有效值。 - :type ExternalChannelDataType: str - :param Channel: 渠道名称 + :type StartRecordNo: str + :param EndFlag: STRING(2),结束标志(0: 否; 1: 是) 注意:此字段可能返回 null,表示取不到有效值。 - :type Channel: str - :param ExternalChannelDataList: 第三方渠道数据列表 + :type EndFlag: str + :param TotalNum: STRING (10),符合业务查询条件的记录总数(重复次数, 一次最多返回20条记录) 注意:此字段可能返回 null,表示取不到有效值。 - :type ExternalChannelDataList: list of CloudExternalChannelData - :param SubAppId: 子应用ID + :type TotalNum: str + :param TranItemArray: 交易信息数组 注意:此字段可能返回 null,表示取不到有效值。 - :type SubAppId: str - :param AppId: 米大师分配的支付主MidasAppId + :type TranItemArray: list of ClearItem + :param ReservedMsg: STRING(1027),保留域 注意:此字段可能返回 null,表示取不到有效值。 - :type AppId: str + :type ReservedMsg: str :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ - self.OutOrderNo = None - self.ChannelOrderId = None - self.ExternalChannelDataType = None - self.Channel = None - self.ExternalChannelDataList = None - self.SubAppId = None - self.AppId = None + self.TxnReturnCode = None + self.TxnReturnMsg = None + self.CnsmrSeqNo = None + self.ResultNum = None + self.StartRecordNo = None + self.EndFlag = None + self.TotalNum = None + self.TranItemArray = None + self.ReservedMsg = None self.RequestId = None def _deserialize(self, params): - self.OutOrderNo = params.get("OutOrderNo") - self.ChannelOrderId = params.get("ChannelOrderId") - self.ExternalChannelDataType = params.get("ExternalChannelDataType") - self.Channel = params.get("Channel") - if params.get("ExternalChannelDataList") is not None: - self.ExternalChannelDataList = [] - for item in params.get("ExternalChannelDataList"): - obj = CloudExternalChannelData() - obj._deserialize(item) - self.ExternalChannelDataList.append(obj) - self.SubAppId = params.get("SubAppId") - self.AppId = params.get("AppId") + self.TxnReturnCode = params.get("TxnReturnCode") + self.TxnReturnMsg = params.get("TxnReturnMsg") + self.CnsmrSeqNo = params.get("CnsmrSeqNo") + self.ResultNum = params.get("ResultNum") + self.StartRecordNo = params.get("StartRecordNo") + self.EndFlag = params.get("EndFlag") + self.TotalNum = params.get("TotalNum") + if params.get("TranItemArray") is not None: + self.TranItemArray = [] + for item in params.get("TranItemArray"): + obj = ClearItem() + obj._deserialize(item) + self.TranItemArray.append(obj) + self.ReservedMsg = params.get("ReservedMsg") self.RequestId = params.get("RequestId") -class QueryCloudOrderRequest(AbstractModel): - """QueryCloudOrder请求参数结构体 +class QueryBankTransactionDetailsRequest(AbstractModel): + """QueryBankTransactionDetails请求参数结构体 """ def __init__(self): r""" - :param MidasAppId: 米大师分配的支付主MidasAppId - :type MidasAppId: str - :param UserId: 用户Id,长度不小于5位,仅支持字母和数字的组合 - :type UserId: str - :param Type: 查询类型 -by_order:根据订单号查订单 - :type Type: str - :param MidasEnvironment: 环境类型 -__release__:生产环境 -__sandbox__:沙箱环境 -_不填默认为生产环境_ - :type MidasEnvironment: str - :param OutTradeNo: 开发者的主订单号 - :type OutTradeNo: str + :param MrchCode: String(22),商户号(签约客户号) + :type MrchCode: str + :param FunctionFlag: STRING(2),功能标志(1: 当日; 2: 历史) + :type FunctionFlag: str + :param SubAcctNo: STRING(50),见证子帐户的帐号 + :type SubAcctNo: str + :param QueryFlag: STRING(4),查询标志(1: 全部; 2: 转出; 3: 转入 ) + :type QueryFlag: str + :param PageNum: STRING(10),页码(起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照建立时间的先后) + :type PageNum: str + :param StartDate: STRING(8),开始日期(若是历史查询,则必输,当日查询时,不起作用。格式:20190101) + :type StartDate: str + :param EndDate: STRING(8),终止日期(若是历史查询,则必输,当日查询时,不起作用。格式:20190101) + :type EndDate: str + :param ReservedMsg: STRING(1027),保留域 + :type ReservedMsg: str + :param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod" + :type Profile: str """ - self.MidasAppId = None - self.UserId = None - self.Type = None - self.MidasEnvironment = None - self.OutTradeNo = None + self.MrchCode = None + self.FunctionFlag = None + self.SubAcctNo = None + self.QueryFlag = None + self.PageNum = None + self.StartDate = None + self.EndDate = None + self.ReservedMsg = None + self.Profile = None def _deserialize(self, params): - self.MidasAppId = params.get("MidasAppId") - self.UserId = params.get("UserId") - self.Type = params.get("Type") - self.MidasEnvironment = params.get("MidasEnvironment") - self.OutTradeNo = params.get("OutTradeNo") + self.MrchCode = params.get("MrchCode") + self.FunctionFlag = params.get("FunctionFlag") + self.SubAcctNo = params.get("SubAcctNo") + self.QueryFlag = params.get("QueryFlag") + self.PageNum = params.get("PageNum") + self.StartDate = params.get("StartDate") + self.EndDate = params.get("EndDate") + self.ReservedMsg = params.get("ReservedMsg") + self.Profile = params.get("Profile") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -13661,67 +14153,117 @@ def _deserialize(self, params): -class QueryCloudOrderResponse(AbstractModel): - """QueryCloudOrder返回参数结构体 +class QueryBankTransactionDetailsResponse(AbstractModel): + """QueryBankTransactionDetails返回参数结构体 """ def __init__(self): r""" - :param TotalNum: 订单数量 - :type TotalNum: int - :param OrderList: 订单列表 + :param TxnReturnCode: String(20),返回码 + :type TxnReturnCode: str + :param TxnReturnMsg: String(100),返回信息 + :type TxnReturnMsg: str + :param CnsmrSeqNo: String(22),交易流水号 + :type CnsmrSeqNo: str + :param ResultNum: STRING(10),本次交易返回查询结果记录数 注意:此字段可能返回 null,表示取不到有效值。 - :type OrderList: list of CloudOrderReturn + :type ResultNum: str + :param StartRecordNo: STRING(30),起始记录号 +注意:此字段可能返回 null,表示取不到有效值。 + :type StartRecordNo: str + :param EndFlag: STRING(2),结束标志(0: 否; 1: 是) +注意:此字段可能返回 null,表示取不到有效值。 + :type EndFlag: str + :param TotalNum: STRING(10),符合业务查询条件的记录总数(重复次数,一次最多返回20条记录) +注意:此字段可能返回 null,表示取不到有效值。 + :type TotalNum: str + :param TranItemArray: 交易信息数组 +注意:此字段可能返回 null,表示取不到有效值。 + :type TranItemArray: list of TransactionItem + :param ReservedMsg: STRING(1027),保留域 +注意:此字段可能返回 null,表示取不到有效值。 + :type ReservedMsg: str :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ + self.TxnReturnCode = None + self.TxnReturnMsg = None + self.CnsmrSeqNo = None + self.ResultNum = None + self.StartRecordNo = None + self.EndFlag = None self.TotalNum = None - self.OrderList = None + self.TranItemArray = None + self.ReservedMsg = None self.RequestId = None def _deserialize(self, params): + self.TxnReturnCode = params.get("TxnReturnCode") + self.TxnReturnMsg = params.get("TxnReturnMsg") + self.CnsmrSeqNo = params.get("CnsmrSeqNo") + self.ResultNum = params.get("ResultNum") + self.StartRecordNo = params.get("StartRecordNo") + self.EndFlag = params.get("EndFlag") self.TotalNum = params.get("TotalNum") - if params.get("OrderList") is not None: - self.OrderList = [] - for item in params.get("OrderList"): - obj = CloudOrderReturn() + if params.get("TranItemArray") is not None: + self.TranItemArray = [] + for item in params.get("TranItemArray"): + obj = TransactionItem() obj._deserialize(item) - self.OrderList.append(obj) + self.TranItemArray.append(obj) + self.ReservedMsg = params.get("ReservedMsg") self.RequestId = params.get("RequestId") -class QueryCloudRefundOrderRequest(AbstractModel): - """QueryCloudRefundOrder请求参数结构体 +class QueryBankWithdrawCashDetailsRequest(AbstractModel): + """QueryBankWithdrawCashDetails请求参数结构体 """ def __init__(self): r""" - :param MidasAppId: 米大师分配的支付主MidasAppId - :type MidasAppId: str - :param UserId: 用户Id,长度不小于5位,仅支持字母和数字的组合 - :type UserId: str - :param RefundId: 退款订单号,仅支持数字、字母、下划线(_)、横杠字符(-)、点(.)的组合 - :type RefundId: str - :param MidasEnvironment: 环境类型 -__release__:生产环境 -__sandbox__:沙箱环境 -_不填默认为生产环境_ - :type MidasEnvironment: str + :param MrchCode: String(22),商户号(签约客户号) + :type MrchCode: str + :param FunctionFlag: STRING(2),功能标志(1: 当日; 2: 历史) + :type FunctionFlag: str + :param SubAcctNo: STRING(50),见证子帐户的帐号 + :type SubAcctNo: str + :param QueryFlag: STRING(4),查询标志(2: 提现; 3: 清分) + :type QueryFlag: str + :param PageNum: STRING(10),页码(起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照建立时间的先后) + :type PageNum: str + :param BeginDate: STRING(8),开始日期(若是历史查询,则必输,当日查询时,不起作用。格式:20190101) + :type BeginDate: str + :param EndDate: STRING(8),结束日期(若是历史查询,则必输,当日查询时,不起作用。格式:20190101) + :type EndDate: str + :param ReservedMsg: STRING(1027),保留域 + :type ReservedMsg: str + :param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod" + :type Profile: str """ - self.MidasAppId = None - self.UserId = None - self.RefundId = None - self.MidasEnvironment = None + self.MrchCode = None + self.FunctionFlag = None + self.SubAcctNo = None + self.QueryFlag = None + self.PageNum = None + self.BeginDate = None + self.EndDate = None + self.ReservedMsg = None + self.Profile = None def _deserialize(self, params): - self.MidasAppId = params.get("MidasAppId") - self.UserId = params.get("UserId") - self.RefundId = params.get("RefundId") - self.MidasEnvironment = params.get("MidasEnvironment") + self.MrchCode = params.get("MrchCode") + self.FunctionFlag = params.get("FunctionFlag") + self.SubAcctNo = params.get("SubAcctNo") + self.QueryFlag = params.get("QueryFlag") + self.PageNum = params.get("PageNum") + self.BeginDate = params.get("BeginDate") + self.EndDate = params.get("EndDate") + self.ReservedMsg = params.get("ReservedMsg") + self.Profile = params.get("Profile") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -13731,51 +14273,679 @@ def _deserialize(self, params): -class QueryCloudRefundOrderResponse(AbstractModel): - """QueryCloudRefundOrder返回参数结构体 +class QueryBankWithdrawCashDetailsResponse(AbstractModel): + """QueryBankWithdrawCashDetails返回参数结构体 """ def __init__(self): r""" - :param OutTradeNo: 该笔退款订单对应的UnifiedOrder下单时传入的OutTradeNo - :type OutTradeNo: str - :param ChannelExternalOrderId: 该笔退款订单对应的支付成功后支付机构返回的支付订单号 - :type ChannelExternalOrderId: str - :param ChannelExternalRefundId: 该笔退款订单退款后支付机构返回的退款单号 - :type ChannelExternalRefundId: str - :param ChannelOrderId: 内部请求微信支付、银行等支付机构的订单号 - :type ChannelOrderId: str - :param RefundId: 请求退款时传的退款ID后查询退款时传的RefundId - :type RefundId: str - :param UsedRefundId: 被使用的RefundId,业务可忽略该字段 - :type UsedRefundId: str - :param TotalRefundAmt: 退款总金额 - :type TotalRefundAmt: int - :param CurrencyType: ISO货币代码 - :type CurrencyType: str - :param State: 退款状态码,退款提交成功后返回 -1:退款中 -2:退款成功 -3:退款失败 - :type State: str - :param SubRefundList: 子单退款信息列表 + :param TxnReturnCode: String(20),返回码 + :type TxnReturnCode: str + :param TxnReturnMsg: String(100),返回信息 + :type TxnReturnMsg: str + :param CnsmrSeqNo: String(22),交易流水号 + :type CnsmrSeqNo: str + :param ResultNum: STRING(10),本次交易返回查询结果记录数 注意:此字段可能返回 null,表示取不到有效值。 - :type SubRefundList: list of CloudSubRefundItem - :param Metadata: 透传字段,退款成功回调透传给应用,用于开发者透传自定义内容 - :type Metadata: str - :param AppId: 米大师分配的支付主MidasAppId + :type ResultNum: str + :param StartRecordNo: STRING(30),起始记录号 注意:此字段可能返回 null,表示取不到有效值。 - :type AppId: str - :param ChannelRefundId: 该笔退款订单退款后内部返回的退款单号 - :type ChannelRefundId: str + :type StartRecordNo: str + :param EndFlag: STRING(2),结束标志(0:否; 1:是) +注意:此字段可能返回 null,表示取不到有效值。 + :type EndFlag: str + :param TotalNum: STRING(10),符合业务查询条件的记录总数(重复次数,一次最多返回20条记录) +注意:此字段可能返回 null,表示取不到有效值。 + :type TotalNum: str + :param TranItemArray: 交易信息数组 +注意:此字段可能返回 null,表示取不到有效值。 + :type TranItemArray: list of WithdrawItem + :param ReservedMsg: STRING(1027),保留域 +注意:此字段可能返回 null,表示取不到有效值。 + :type ReservedMsg: str :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ - self.OutTradeNo = None - self.ChannelExternalOrderId = None - self.ChannelExternalRefundId = None - self.ChannelOrderId = None + self.TxnReturnCode = None + self.TxnReturnMsg = None + self.CnsmrSeqNo = None + self.ResultNum = None + self.StartRecordNo = None + self.EndFlag = None + self.TotalNum = None + self.TranItemArray = None + self.ReservedMsg = None + self.RequestId = None + + + def _deserialize(self, params): + self.TxnReturnCode = params.get("TxnReturnCode") + self.TxnReturnMsg = params.get("TxnReturnMsg") + self.CnsmrSeqNo = params.get("CnsmrSeqNo") + self.ResultNum = params.get("ResultNum") + self.StartRecordNo = params.get("StartRecordNo") + self.EndFlag = params.get("EndFlag") + self.TotalNum = params.get("TotalNum") + if params.get("TranItemArray") is not None: + self.TranItemArray = [] + for item in params.get("TranItemArray"): + obj = WithdrawItem() + obj._deserialize(item) + self.TranItemArray.append(obj) + self.ReservedMsg = params.get("ReservedMsg") + self.RequestId = params.get("RequestId") + + +class QueryBatchPaymentResultData(AbstractModel): + """QueryBatchPaymentResult接口返回响应 + + """ + + def __init__(self): + r""" + :param BatchId: 批次号 +注意:此字段可能返回 null,表示取不到有效值。 + :type BatchId: str + :param TotalAmount: 批次总额 +注意:此字段可能返回 null,表示取不到有效值。 + :type TotalAmount: int + :param TotalCount: 批次总量 +注意:此字段可能返回 null,表示取不到有效值。 + :type TotalCount: int + :param ReqReserved: 批次预留字段 +注意:此字段可能返回 null,表示取不到有效值。 + :type ReqReserved: str + :param Remark: 批次备注 +注意:此字段可能返回 null,表示取不到有效值。 + :type Remark: str + :param TransferType: 渠道类型 +注意:此字段可能返回 null,表示取不到有效值。 + :type TransferType: int + :param TransferInfoList: 转账明细 +注意:此字段可能返回 null,表示取不到有效值。 + :type TransferInfoList: list of QueryBatchPaymentResultDataInfo + """ + self.BatchId = None + self.TotalAmount = None + self.TotalCount = None + self.ReqReserved = None + self.Remark = None + self.TransferType = None + self.TransferInfoList = None + + + def _deserialize(self, params): + self.BatchId = params.get("BatchId") + self.TotalAmount = params.get("TotalAmount") + self.TotalCount = params.get("TotalCount") + self.ReqReserved = params.get("ReqReserved") + self.Remark = params.get("Remark") + self.TransferType = params.get("TransferType") + if params.get("TransferInfoList") is not None: + self.TransferInfoList = [] + for item in params.get("TransferInfoList"): + obj = QueryBatchPaymentResultDataInfo() + obj._deserialize(item) + self.TransferInfoList.append(obj) + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryBatchPaymentResultDataInfo(AbstractModel): + """QueryBatchPaymentResultData复杂类型中的TransferInfoList + + """ + + def __init__(self): + r""" + :param OrderId: 订单号 +注意:此字段可能返回 null,表示取不到有效值。 + :type OrderId: str + :param AgentId: 代理商ID +注意:此字段可能返回 null,表示取不到有效值。 + :type AgentId: str + :param AgentName: 代理商名称 +注意:此字段可能返回 null,表示取不到有效值。 + :type AgentName: str + :param Status: 交易状态。 +0 处理中 +1 预占成功 +2 交易成功 +3 交易失败 +4 未知渠道异常 +5 预占额度失败 +6 提交成功 +7 提交失败 +8 订单重复提交 +99 未知系统异常 +注意:此字段可能返回 null,表示取不到有效值。 + :type Status: int + :param StatusDesc: 状态描述 +注意:此字段可能返回 null,表示取不到有效值。 + :type StatusDesc: str + :param TransferAmount: 转账金额 +注意:此字段可能返回 null,表示取不到有效值。 + :type TransferAmount: int + """ + self.OrderId = None + self.AgentId = None + self.AgentName = None + self.Status = None + self.StatusDesc = None + self.TransferAmount = None + + + def _deserialize(self, params): + self.OrderId = params.get("OrderId") + self.AgentId = params.get("AgentId") + self.AgentName = params.get("AgentName") + self.Status = params.get("Status") + self.StatusDesc = params.get("StatusDesc") + self.TransferAmount = params.get("TransferAmount") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryBatchPaymentResultRequest(AbstractModel): + """QueryBatchPaymentResult请求参数结构体 + + """ + + def __init__(self): + r""" + :param BatchId: 批次号 + :type BatchId: str + """ + self.BatchId = None + + + def _deserialize(self, params): + self.BatchId = params.get("BatchId") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryBatchPaymentResultResponse(AbstractModel): + """QueryBatchPaymentResult返回参数结构体 + + """ + + def __init__(self): + r""" + :param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功。 + :type ErrCode: str + :param ErrMessage: 响应消息。 + :type ErrMessage: str + :param Result: 返回响应 + :type Result: :class:`tencentcloud.cpdp.v20190820.models.QueryBatchPaymentResultData` + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.ErrCode = None + self.ErrMessage = None + self.Result = None + self.RequestId = None + + + def _deserialize(self, params): + self.ErrCode = params.get("ErrCode") + self.ErrMessage = params.get("ErrMessage") + if params.get("Result") is not None: + self.Result = QueryBatchPaymentResultData() + self.Result._deserialize(params.get("Result")) + self.RequestId = params.get("RequestId") + + +class QueryBillDownloadURLData(AbstractModel): + """智能代发-单笔代发转账对账单返回数据 + + """ + + def __init__(self): + r""" + :param BillDownloadURL: 统一对账单下载链接 +注意:此字段可能返回 null,表示取不到有效值。 + :type BillDownloadURL: str + :param OriginalBillDownloadURL: 渠道原始对账单下载链接 +注意:此字段可能返回 null,表示取不到有效值。 + :type OriginalBillDownloadURL: str + """ + self.BillDownloadURL = None + self.OriginalBillDownloadURL = None + + + def _deserialize(self, params): + self.BillDownloadURL = params.get("BillDownloadURL") + self.OriginalBillDownloadURL = params.get("OriginalBillDownloadURL") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryBillDownloadURLRequest(AbstractModel): + """QueryBillDownloadURL请求参数结构体 + + """ + + def __init__(self): + r""" + :param MerchantId: 商户号 + :type MerchantId: str + :param TransferType: 代发类型: +1、 微信企业付款 +2、 支付宝转账 +3、 平安银企直联代发转账 + :type TransferType: int + :param BillDate: 账单日期,格式yyyy-MM-dd + :type BillDate: str + """ + self.MerchantId = None + self.TransferType = None + self.BillDate = None + + + def _deserialize(self, params): + self.MerchantId = params.get("MerchantId") + self.TransferType = params.get("TransferType") + self.BillDate = params.get("BillDate") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryBillDownloadURLResponse(AbstractModel): + """QueryBillDownloadURL返回参数结构体 + + """ + + def __init__(self): + r""" + :param ErrCode: 错误码。响应成功:"SUCCESS",其他为不成功 + :type ErrCode: str + :param ErrMessage: 响应消息 + :type ErrMessage: str + :param Result: 返回结果 +注意:此字段可能返回 null,表示取不到有效值。 + :type Result: :class:`tencentcloud.cpdp.v20190820.models.QueryBillDownloadURLData` + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.ErrCode = None + self.ErrMessage = None + self.Result = None + self.RequestId = None + + + def _deserialize(self, params): + self.ErrCode = params.get("ErrCode") + self.ErrMessage = params.get("ErrMessage") + if params.get("Result") is not None: + self.Result = QueryBillDownloadURLData() + self.Result._deserialize(params.get("Result")) + self.RequestId = params.get("RequestId") + + +class QueryCityCodeRequest(AbstractModel): + """QueryCityCode请求参数结构体 + + """ + + def __init__(self): + r""" + :param OpenId: 收单系统分配的开放ID + :type OpenId: str + :param OpenKey: 收单系统分配的密钥 + :type OpenKey: str + :param Profile: 沙箱环境填sandbox,正式环境不填 + :type Profile: str + """ + self.OpenId = None + self.OpenKey = None + self.Profile = None + + + def _deserialize(self, params): + self.OpenId = params.get("OpenId") + self.OpenKey = params.get("OpenKey") + self.Profile = params.get("Profile") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryCityCodeResponse(AbstractModel): + """QueryCityCode返回参数结构体 + + """ + + def __init__(self): + r""" + :param ErrMessage: 业务系统返回消息 +注意:此字段可能返回 null,表示取不到有效值。 + :type ErrMessage: str + :param ErrCode: 业务系统返回码 + :type ErrCode: str + :param Result: 查询城市编码响应对象 +注意:此字段可能返回 null,表示取不到有效值。 + :type Result: list of CityCodeResult + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.ErrMessage = None + self.ErrCode = None + self.Result = None + self.RequestId = None + + + def _deserialize(self, params): + self.ErrMessage = params.get("ErrMessage") + self.ErrCode = params.get("ErrCode") + if params.get("Result") is not None: + self.Result = [] + for item in params.get("Result"): + obj = CityCodeResult() + obj._deserialize(item) + self.Result.append(obj) + self.RequestId = params.get("RequestId") + + +class QueryCloudChannelDataRequest(AbstractModel): + """QueryCloudChannelData请求参数结构体 + + """ + + def __init__(self): + r""" + :param MidasAppId: 米大师分配的支付主MidasAppId + :type MidasAppId: str + :param OutOrderNo: 业务订单号,外部订单号 + :type OutOrderNo: str + :param ExternalChannelDataType: 数据类型 +PAYMENT:支付 + :type ExternalChannelDataType: str + :param MidasEnvironment: 环境类型 +__release__:生产环境 +__sandbox__:沙箱环境 +_不填默认为生产环境_ + :type MidasEnvironment: str + :param SubAppId: 子应用ID + :type SubAppId: str + :param ChannelOrderId: 渠道订单号 + :type ChannelOrderId: str + :param Channel: 渠道名称,指定渠道查询 +wechat:微信支付 + :type Channel: str + """ + self.MidasAppId = None + self.OutOrderNo = None + self.ExternalChannelDataType = None + self.MidasEnvironment = None + self.SubAppId = None + self.ChannelOrderId = None + self.Channel = None + + + def _deserialize(self, params): + self.MidasAppId = params.get("MidasAppId") + self.OutOrderNo = params.get("OutOrderNo") + self.ExternalChannelDataType = params.get("ExternalChannelDataType") + self.MidasEnvironment = params.get("MidasEnvironment") + self.SubAppId = params.get("SubAppId") + self.ChannelOrderId = params.get("ChannelOrderId") + self.Channel = params.get("Channel") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryCloudChannelDataResponse(AbstractModel): + """QueryCloudChannelData返回参数结构体 + + """ + + def __init__(self): + r""" + :param OutOrderNo: 外部订单号 +注意:此字段可能返回 null,表示取不到有效值。 + :type OutOrderNo: str + :param ChannelOrderId: 渠道订单号 +注意:此字段可能返回 null,表示取不到有效值。 + :type ChannelOrderId: str + :param ExternalChannelDataType: 第三方渠道数据类型 +注意:此字段可能返回 null,表示取不到有效值。 + :type ExternalChannelDataType: str + :param Channel: 渠道名称 +注意:此字段可能返回 null,表示取不到有效值。 + :type Channel: str + :param ExternalChannelDataList: 第三方渠道数据列表 +注意:此字段可能返回 null,表示取不到有效值。 + :type ExternalChannelDataList: list of CloudExternalChannelData + :param SubAppId: 子应用ID +注意:此字段可能返回 null,表示取不到有效值。 + :type SubAppId: str + :param AppId: 米大师分配的支付主MidasAppId +注意:此字段可能返回 null,表示取不到有效值。 + :type AppId: str + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.OutOrderNo = None + self.ChannelOrderId = None + self.ExternalChannelDataType = None + self.Channel = None + self.ExternalChannelDataList = None + self.SubAppId = None + self.AppId = None + self.RequestId = None + + + def _deserialize(self, params): + self.OutOrderNo = params.get("OutOrderNo") + self.ChannelOrderId = params.get("ChannelOrderId") + self.ExternalChannelDataType = params.get("ExternalChannelDataType") + self.Channel = params.get("Channel") + if params.get("ExternalChannelDataList") is not None: + self.ExternalChannelDataList = [] + for item in params.get("ExternalChannelDataList"): + obj = CloudExternalChannelData() + obj._deserialize(item) + self.ExternalChannelDataList.append(obj) + self.SubAppId = params.get("SubAppId") + self.AppId = params.get("AppId") + self.RequestId = params.get("RequestId") + + +class QueryCloudOrderRequest(AbstractModel): + """QueryCloudOrder请求参数结构体 + + """ + + def __init__(self): + r""" + :param MidasAppId: 米大师分配的支付主MidasAppId + :type MidasAppId: str + :param UserId: 用户Id,长度不小于5位,仅支持字母和数字的组合 + :type UserId: str + :param Type: 查询类型 +by_order:根据订单号查订单 + :type Type: str + :param MidasEnvironment: 环境类型 +__release__:生产环境 +__sandbox__:沙箱环境 +_不填默认为生产环境_ + :type MidasEnvironment: str + :param OutTradeNo: 开发者的主订单号 + :type OutTradeNo: str + """ + self.MidasAppId = None + self.UserId = None + self.Type = None + self.MidasEnvironment = None + self.OutTradeNo = None + + + def _deserialize(self, params): + self.MidasAppId = params.get("MidasAppId") + self.UserId = params.get("UserId") + self.Type = params.get("Type") + self.MidasEnvironment = params.get("MidasEnvironment") + self.OutTradeNo = params.get("OutTradeNo") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryCloudOrderResponse(AbstractModel): + """QueryCloudOrder返回参数结构体 + + """ + + def __init__(self): + r""" + :param TotalNum: 订单数量 + :type TotalNum: int + :param OrderList: 订单列表 +注意:此字段可能返回 null,表示取不到有效值。 + :type OrderList: list of CloudOrderReturn + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.TotalNum = None + self.OrderList = None + self.RequestId = None + + + def _deserialize(self, params): + self.TotalNum = params.get("TotalNum") + if params.get("OrderList") is not None: + self.OrderList = [] + for item in params.get("OrderList"): + obj = CloudOrderReturn() + obj._deserialize(item) + self.OrderList.append(obj) + self.RequestId = params.get("RequestId") + + +class QueryCloudRefundOrderRequest(AbstractModel): + """QueryCloudRefundOrder请求参数结构体 + + """ + + def __init__(self): + r""" + :param MidasAppId: 米大师分配的支付主MidasAppId + :type MidasAppId: str + :param UserId: 用户Id,长度不小于5位,仅支持字母和数字的组合 + :type UserId: str + :param RefundId: 退款订单号,仅支持数字、字母、下划线(_)、横杠字符(-)、点(.)的组合 + :type RefundId: str + :param MidasEnvironment: 环境类型 +__release__:生产环境 +__sandbox__:沙箱环境 +_不填默认为生产环境_ + :type MidasEnvironment: str + """ + self.MidasAppId = None + self.UserId = None + self.RefundId = None + self.MidasEnvironment = None + + + def _deserialize(self, params): + self.MidasAppId = params.get("MidasAppId") + self.UserId = params.get("UserId") + self.RefundId = params.get("RefundId") + self.MidasEnvironment = params.get("MidasEnvironment") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryCloudRefundOrderResponse(AbstractModel): + """QueryCloudRefundOrder返回参数结构体 + + """ + + def __init__(self): + r""" + :param OutTradeNo: 该笔退款订单对应的UnifiedOrder下单时传入的OutTradeNo + :type OutTradeNo: str + :param ChannelExternalOrderId: 该笔退款订单对应的支付成功后支付机构返回的支付订单号 + :type ChannelExternalOrderId: str + :param ChannelExternalRefundId: 该笔退款订单退款后支付机构返回的退款单号 + :type ChannelExternalRefundId: str + :param ChannelOrderId: 内部请求微信支付、银行等支付机构的订单号 + :type ChannelOrderId: str + :param RefundId: 请求退款时传的退款ID后查询退款时传的RefundId + :type RefundId: str + :param UsedRefundId: 被使用的RefundId,业务可忽略该字段 + :type UsedRefundId: str + :param TotalRefundAmt: 退款总金额 + :type TotalRefundAmt: int + :param CurrencyType: ISO货币代码 + :type CurrencyType: str + :param State: 退款状态码,退款提交成功后返回 +1:退款中 +2:退款成功 +3:退款失败 + :type State: str + :param SubRefundList: 子单退款信息列表 +注意:此字段可能返回 null,表示取不到有效值。 + :type SubRefundList: list of CloudSubRefundItem + :param Metadata: 透传字段,退款成功回调透传给应用,用于开发者透传自定义内容 + :type Metadata: str + :param AppId: 米大师分配的支付主MidasAppId +注意:此字段可能返回 null,表示取不到有效值。 + :type AppId: str + :param ChannelRefundId: 该笔退款订单退款后内部返回的退款单号 + :type ChannelRefundId: str + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.OutTradeNo = None + self.ChannelExternalOrderId = None + self.ChannelExternalRefundId = None + self.ChannelOrderId = None self.RefundId = None self.UsedRefundId = None self.TotalRefundAmt = None @@ -13789,29 +14959,592 @@ def __init__(self): def _deserialize(self, params): - self.OutTradeNo = params.get("OutTradeNo") - self.ChannelExternalOrderId = params.get("ChannelExternalOrderId") - self.ChannelExternalRefundId = params.get("ChannelExternalRefundId") - self.ChannelOrderId = params.get("ChannelOrderId") - self.RefundId = params.get("RefundId") - self.UsedRefundId = params.get("UsedRefundId") - self.TotalRefundAmt = params.get("TotalRefundAmt") - self.CurrencyType = params.get("CurrencyType") - self.State = params.get("State") - if params.get("SubRefundList") is not None: - self.SubRefundList = [] - for item in params.get("SubRefundList"): - obj = CloudSubRefundItem() + self.OutTradeNo = params.get("OutTradeNo") + self.ChannelExternalOrderId = params.get("ChannelExternalOrderId") + self.ChannelExternalRefundId = params.get("ChannelExternalRefundId") + self.ChannelOrderId = params.get("ChannelOrderId") + self.RefundId = params.get("RefundId") + self.UsedRefundId = params.get("UsedRefundId") + self.TotalRefundAmt = params.get("TotalRefundAmt") + self.CurrencyType = params.get("CurrencyType") + self.State = params.get("State") + if params.get("SubRefundList") is not None: + self.SubRefundList = [] + for item in params.get("SubRefundList"): + obj = CloudSubRefundItem() + obj._deserialize(item) + self.SubRefundList.append(obj) + self.Metadata = params.get("Metadata") + self.AppId = params.get("AppId") + self.ChannelRefundId = params.get("ChannelRefundId") + self.RequestId = params.get("RequestId") + + +class QueryCommonTransferRechargeRequest(AbstractModel): + """QueryCommonTransferRecharge请求参数结构体 + + """ + + def __init__(self): + r""" + :param MrchCode: String(22),商户号(签约客户号) + :type MrchCode: str + :param FunctionFlag: STRING(2),功能标志(1为查询当日数据,0查询历史数据) + :type FunctionFlag: str + :param StartDate: STRING(8),开始日期(格式:20190101) + :type StartDate: str + :param EndDate: STRING(8),终止日期(格式:20190101) + :type EndDate: str + :param PageNum: STRING(10),页码(起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照建立时间的先后) + :type PageNum: str + :param ReservedMsg: STRING(1027),保留域 + :type ReservedMsg: str + :param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod" + :type Profile: str + """ + self.MrchCode = None + self.FunctionFlag = None + self.StartDate = None + self.EndDate = None + self.PageNum = None + self.ReservedMsg = None + self.Profile = None + + + def _deserialize(self, params): + self.MrchCode = params.get("MrchCode") + self.FunctionFlag = params.get("FunctionFlag") + self.StartDate = params.get("StartDate") + self.EndDate = params.get("EndDate") + self.PageNum = params.get("PageNum") + self.ReservedMsg = params.get("ReservedMsg") + self.Profile = params.get("Profile") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryCommonTransferRechargeResponse(AbstractModel): + """QueryCommonTransferRecharge返回参数结构体 + + """ + + def __init__(self): + r""" + :param TxnReturnCode: String(20),返回码 + :type TxnReturnCode: str + :param TxnReturnMsg: String(100),返回信息 + :type TxnReturnMsg: str + :param CnsmrSeqNo: String(22),交易流水号 + :type CnsmrSeqNo: str + :param ResultNum: STRING(10),本次交易返回查询结果记录数 +注意:此字段可能返回 null,表示取不到有效值。 + :type ResultNum: str + :param StartRecordNo: STRING(30),起始记录号 +注意:此字段可能返回 null,表示取不到有效值。 + :type StartRecordNo: str + :param EndFlag: STRING(2),结束标志(0: 否; 1: 是) +注意:此字段可能返回 null,表示取不到有效值。 + :type EndFlag: str + :param TotalNum: STRING(10),符合业务查询条件的记录总数(重复次数,一次最多返回20条记录) +注意:此字段可能返回 null,表示取不到有效值。 + :type TotalNum: str + :param TranItemArray: 交易信息数组 +注意:此字段可能返回 null,表示取不到有效值。 + :type TranItemArray: list of TransferItem + :param ReservedMsg: STRING(1027),保留域 +注意:此字段可能返回 null,表示取不到有效值。 + :type ReservedMsg: str + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.TxnReturnCode = None + self.TxnReturnMsg = None + self.CnsmrSeqNo = None + self.ResultNum = None + self.StartRecordNo = None + self.EndFlag = None + self.TotalNum = None + self.TranItemArray = None + self.ReservedMsg = None + self.RequestId = None + + + def _deserialize(self, params): + self.TxnReturnCode = params.get("TxnReturnCode") + self.TxnReturnMsg = params.get("TxnReturnMsg") + self.CnsmrSeqNo = params.get("CnsmrSeqNo") + self.ResultNum = params.get("ResultNum") + self.StartRecordNo = params.get("StartRecordNo") + self.EndFlag = params.get("EndFlag") + self.TotalNum = params.get("TotalNum") + if params.get("TranItemArray") is not None: + self.TranItemArray = [] + for item in params.get("TranItemArray"): + obj = TransferItem() + obj._deserialize(item) + self.TranItemArray.append(obj) + self.ReservedMsg = params.get("ReservedMsg") + self.RequestId = params.get("RequestId") + + +class QueryContractPayFeeRequest(AbstractModel): + """QueryContractPayFee请求参数结构体 + + """ + + def __init__(self): + r""" + :param OpenId: 收单系统分配的开放ID + :type OpenId: str + :param OpenKey: 收单系统分配的密钥 + :type OpenKey: str + :param PaymentId: 支付方式编号 + :type PaymentId: str + :param Profile: 沙箱环境填sandbox,正式环境不填 + :type Profile: str + """ + self.OpenId = None + self.OpenKey = None + self.PaymentId = None + self.Profile = None + + + def _deserialize(self, params): + self.OpenId = params.get("OpenId") + self.OpenKey = params.get("OpenKey") + self.PaymentId = params.get("PaymentId") + self.Profile = params.get("Profile") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryContractPayFeeResponse(AbstractModel): + """QueryContractPayFee返回参数结构体 + + """ + + def __init__(self): + r""" + :param ErrMessage: 业务系统返回消息 +注意:此字段可能返回 null,表示取不到有效值。 + :type ErrMessage: str + :param ErrCode: 业务系统返回码,0表示成功,其他表示失败。 + :type ErrCode: str + :param Result: 查询支付方式费率及自定义表单项响应对象 +注意:此字段可能返回 null,表示取不到有效值。 + :type Result: :class:`tencentcloud.cpdp.v20190820.models.QueryContractPayFeeResult` + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.ErrMessage = None + self.ErrCode = None + self.Result = None + self.RequestId = None + + + def _deserialize(self, params): + self.ErrMessage = params.get("ErrMessage") + self.ErrCode = params.get("ErrCode") + if params.get("Result") is not None: + self.Result = QueryContractPayFeeResult() + self.Result._deserialize(params.get("Result")) + self.RequestId = params.get("RequestId") + + +class QueryContractPayFeeResult(AbstractModel): + """支付方式费率及自定义表单项 + + """ + + def __init__(self): + r""" + :param Pay: pay支付方式json数据 +注意:此字段可能返回 null,表示取不到有效值。 + :type Pay: :class:`tencentcloud.cpdp.v20190820.models.PayDataResult` + :param ExtraInput: 合同扩展自定义字段 + :type ExtraInput: list of str + :param PayFee: pay_fee支付方式行业分类费率json数据 +注意:此字段可能返回 null,表示取不到有效值。 + :type PayFee: list of PayFeeDataResult + """ + self.Pay = None + self.ExtraInput = None + self.PayFee = None + + + def _deserialize(self, params): + if params.get("Pay") is not None: + self.Pay = PayDataResult() + self.Pay._deserialize(params.get("Pay")) + self.ExtraInput = params.get("ExtraInput") + if params.get("PayFee") is not None: + self.PayFee = [] + for item in params.get("PayFee"): + obj = PayFeeDataResult() + obj._deserialize(item) + self.PayFee.append(obj) + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryContractPayWayListRequest(AbstractModel): + """QueryContractPayWayList请求参数结构体 + + """ + + def __init__(self): + r""" + :param OpenId: 收单系统分配的开放ID + :type OpenId: str + :param OpenKey: 收单系统分配的密钥 + :type OpenKey: str + :param Profile: 沙箱环境填sandbox,正式环境不填 + :type Profile: str + """ + self.OpenId = None + self.OpenKey = None + self.Profile = None + + + def _deserialize(self, params): + self.OpenId = params.get("OpenId") + self.OpenKey = params.get("OpenKey") + self.Profile = params.get("Profile") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryContractPayWayListResponse(AbstractModel): + """QueryContractPayWayList返回参数结构体 + + """ + + def __init__(self): + r""" + :param ErrMessage: 业务系统返回消息 +注意:此字段可能返回 null,表示取不到有效值。 + :type ErrMessage: str + :param ErrCode: 业务系统返回码 + :type ErrCode: str + :param Result: 查询合同支付方式响应对象 +注意:此字段可能返回 null,表示取不到有效值。 + :type Result: list of ContractPayListResult + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.ErrMessage = None + self.ErrCode = None + self.Result = None + self.RequestId = None + + + def _deserialize(self, params): + self.ErrMessage = params.get("ErrMessage") + self.ErrCode = params.get("ErrCode") + if params.get("Result") is not None: + self.Result = [] + for item in params.get("Result"): + obj = ContractPayListResult() + obj._deserialize(item) + self.Result.append(obj) + self.RequestId = params.get("RequestId") + + +class QueryContractRelateShopRequest(AbstractModel): + """QueryContractRelateShop请求参数结构体 + + """ + + def __init__(self): + r""" + :param OpenId: 收单系统分配的开放ID + :type OpenId: str + :param OpenKey: 收单系统分配的密钥 + :type OpenKey: str + :param ContractId: 合同主键 + :type ContractId: str + :param Profile: 沙箱环境填sandbox,正式环境不填 + :type Profile: str + """ + self.OpenId = None + self.OpenKey = None + self.ContractId = None + self.Profile = None + + + def _deserialize(self, params): + self.OpenId = params.get("OpenId") + self.OpenKey = params.get("OpenKey") + self.ContractId = params.get("ContractId") + self.Profile = params.get("Profile") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryContractRelateShopResponse(AbstractModel): + """QueryContractRelateShop返回参数结构体 + + """ + + def __init__(self): + r""" + :param ErrMessage: 业务系统返回消息 +注意:此字段可能返回 null,表示取不到有效值。 + :type ErrMessage: str + :param ErrCode: 业务系统返回码 + :type ErrCode: str + :param Result: 查询合同可关联门店响应对象 +注意:此字段可能返回 null,表示取不到有效值。 + :type Result: list of QueryContractRelateShopResult + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.ErrMessage = None + self.ErrCode = None + self.Result = None + self.RequestId = None + + + def _deserialize(self, params): + self.ErrMessage = params.get("ErrMessage") + self.ErrCode = params.get("ErrCode") + if params.get("Result") is not None: + self.Result = [] + for item in params.get("Result"): + obj = QueryContractRelateShopResult() obj._deserialize(item) - self.SubRefundList.append(obj) - self.Metadata = params.get("Metadata") - self.AppId = params.get("AppId") - self.ChannelRefundId = params.get("ChannelRefundId") + self.Result.append(obj) + self.RequestId = params.get("RequestId") + + +class QueryContractRelateShopResult(AbstractModel): + """合同可关联门店响应对象 + + """ + + def __init__(self): + r""" + :param Province: 省份 +注意:此字段可能返回 null,表示取不到有效值。 + :type Province: str + :param CityId: 城市编码 +注意:此字段可能返回 null,表示取不到有效值。 + :type CityId: str + :param ShopName: 门店简称 +注意:此字段可能返回 null,表示取不到有效值。 + :type ShopName: str + :param TerminalCount: 终端数量 +注意:此字段可能返回 null,表示取不到有效值。 + :type TerminalCount: str + :param City: 城市 +注意:此字段可能返回 null,表示取不到有效值。 + :type City: str + :param ShopStatus: 门店状态(0未审核,1已审核,2审核未通过,3待审核,4已删除,5初审通过) +注意:此字段可能返回 null,表示取不到有效值。 + :type ShopStatus: str + :param AliPayOnline: 若是支付宝合同,支付宝上线状态 +注意:此字段可能返回 null,表示取不到有效值。 + :type AliPayOnline: str + :param ShopNo: 门店编号 +注意:此字段可能返回 null,表示取不到有效值。 + :type ShopNo: str + :param Country: 县/区 +注意:此字段可能返回 null,表示取不到有效值。 + :type Country: str + :param AliPayStatus: 若是支付宝合同,支付宝审核状态 +注意:此字段可能返回 null,表示取不到有效值。 + :type AliPayStatus: str + :param IsChecked: 为空或者0表示未关联,大于0表示已关联 +注意:此字段可能返回 null,表示取不到有效值。 + :type IsChecked: str + :param Address: 详细地址 +注意:此字段可能返回 null,表示取不到有效值。 + :type Address: str + :param AliPayDesc: 若是支付宝合同,支付宝审核描述 +注意:此字段可能返回 null,表示取不到有效值。 + :type AliPayDesc: str + """ + self.Province = None + self.CityId = None + self.ShopName = None + self.TerminalCount = None + self.City = None + self.ShopStatus = None + self.AliPayOnline = None + self.ShopNo = None + self.Country = None + self.AliPayStatus = None + self.IsChecked = None + self.Address = None + self.AliPayDesc = None + + + def _deserialize(self, params): + self.Province = params.get("Province") + self.CityId = params.get("CityId") + self.ShopName = params.get("ShopName") + self.TerminalCount = params.get("TerminalCount") + self.City = params.get("City") + self.ShopStatus = params.get("ShopStatus") + self.AliPayOnline = params.get("AliPayOnline") + self.ShopNo = params.get("ShopNo") + self.Country = params.get("Country") + self.AliPayStatus = params.get("AliPayStatus") + self.IsChecked = params.get("IsChecked") + self.Address = params.get("Address") + self.AliPayDesc = params.get("AliPayDesc") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryContractRequest(AbstractModel): + """QueryContract请求参数结构体 + + """ + + def __init__(self): + r""" + :param MidasAppId: 聚鑫分配的支付主MidasAppId + :type MidasAppId: str + :param UserId: 用户ID,长度不小于5位,仅支持字母和数字的组合 + :type UserId: str + :param Channel: 指定渠道: wechat:微信支付 qqwallet:QQ钱包 + bank:网银支付 只有一个渠道时需要指定 + :type Channel: str + :param ContractQueryMode: 枚举值: +CONTRACT_QUERY_MODE_BY_OUT_CONTRACT_CODE:按 OutContractCode + ContractSceneId 查询 +CONTRACT_QUERY_MODE_BY_CHANNEL_CONTRACT_CODE:按ChannelContractCode查询 + :type ContractQueryMode: str + :param MidasSignature: 按照聚鑫安全密钥计算的签名 + :type MidasSignature: str + :param MidasSecretId: 聚鑫分配的安全ID + :type MidasSecretId: str + :param SubAppId: 聚鑫计费SubAppId,代表子商户 + :type SubAppId: str + :param OutContractCode: 业务签约合同协议号 当 ContractQueryMode=CONTRACT_QUERY_MODE_BY_OUT_CONTRACT_CODE 时 ,必填 + :type OutContractCode: str + :param ContractSceneId: 签约场景ID,当 ContractQueryMode=CONTRACT_QUERY_MODE_BY_OUT_CONTRACT_CODE 时 必填,在米大师侧托管后生成 + :type ContractSceneId: str + :param ChannelContractCode: 米大师生成的协议号 ,当 ContractQueryMode=CONTRACT_QUERY_MODE_BY_CHANNEL_CONTRACT_CODE 时必填 + :type ChannelContractCode: str + :param ExternalContractData: 第三方渠道合约数据,为json字符串,与特定渠道有关 + :type ExternalContractData: str + :param MidasEnvironment: 环境名: +release: 现网环境 +sandbox: 沙箱环境 +development: 开发环境 +缺省: release + :type MidasEnvironment: str + :param UserType: USER_ID: 用户ID +ANONYMOUS: 匿名类型 USER_ID +默认值为 USER_ID + :type UserType: str + :param MigrateMode: 签约代扣穿透查询存量数据迁移模式 + :type MigrateMode: str + :param ContractMethod: 签约方式 + :type ContractMethod: str + """ + self.MidasAppId = None + self.UserId = None + self.Channel = None + self.ContractQueryMode = None + self.MidasSignature = None + self.MidasSecretId = None + self.SubAppId = None + self.OutContractCode = None + self.ContractSceneId = None + self.ChannelContractCode = None + self.ExternalContractData = None + self.MidasEnvironment = None + self.UserType = None + self.MigrateMode = None + self.ContractMethod = None + + + def _deserialize(self, params): + self.MidasAppId = params.get("MidasAppId") + self.UserId = params.get("UserId") + self.Channel = params.get("Channel") + self.ContractQueryMode = params.get("ContractQueryMode") + self.MidasSignature = params.get("MidasSignature") + self.MidasSecretId = params.get("MidasSecretId") + self.SubAppId = params.get("SubAppId") + self.OutContractCode = params.get("OutContractCode") + self.ContractSceneId = params.get("ContractSceneId") + self.ChannelContractCode = params.get("ChannelContractCode") + self.ExternalContractData = params.get("ExternalContractData") + self.MidasEnvironment = params.get("MidasEnvironment") + self.UserType = params.get("UserType") + self.MigrateMode = params.get("MigrateMode") + self.ContractMethod = params.get("ContractMethod") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryContractResponse(AbstractModel): + """QueryContract返回参数结构体 + + """ + + def __init__(self): + r""" + :param ContractData: 签约数据 + :type ContractData: :class:`tencentcloud.cpdp.v20190820.models.ResponseQueryContract` + :param Msg: 请求处理信息 + :type Msg: str + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.ContractData = None + self.Msg = None + self.RequestId = None + + + def _deserialize(self, params): + if params.get("ContractData") is not None: + self.ContractData = ResponseQueryContract() + self.ContractData._deserialize(params.get("ContractData")) + self.Msg = params.get("Msg") self.RequestId = params.get("RequestId") -class QueryCommonTransferRechargeRequest(AbstractModel): - """QueryCommonTransferRecharge请求参数结构体 +class QueryCustAcctIdBalanceRequest(AbstractModel): + """QueryCustAcctIdBalance请求参数结构体 """ @@ -13819,34 +15552,30 @@ def __init__(self): r""" :param MrchCode: String(22),商户号(签约客户号) :type MrchCode: str - :param FunctionFlag: STRING(2),功能标志(1为查询当日数据,0查询历史数据) - :type FunctionFlag: str - :param StartDate: STRING(8),开始日期(格式:20190101) - :type StartDate: str - :param EndDate: STRING(8),终止日期(格式:20190101) - :type EndDate: str + :param QueryFlag: STRING(4),查询标志(2: 普通会员子账号; 3: 功能子账号) + :type QueryFlag: str :param PageNum: STRING(10),页码(起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照建立时间的先后) :type PageNum: str + :param SubAcctNo: STRING(50),见证子账户的账号(若SelectFlag为2时,子账号必输) + :type SubAcctNo: str :param ReservedMsg: STRING(1027),保留域 :type ReservedMsg: str :param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod" :type Profile: str """ self.MrchCode = None - self.FunctionFlag = None - self.StartDate = None - self.EndDate = None + self.QueryFlag = None self.PageNum = None + self.SubAcctNo = None self.ReservedMsg = None self.Profile = None def _deserialize(self, params): self.MrchCode = params.get("MrchCode") - self.FunctionFlag = params.get("FunctionFlag") - self.StartDate = params.get("StartDate") - self.EndDate = params.get("EndDate") + self.QueryFlag = params.get("QueryFlag") self.PageNum = params.get("PageNum") + self.SubAcctNo = params.get("SubAcctNo") self.ReservedMsg = params.get("ReservedMsg") self.Profile = params.get("Profile") memeber_set = set(params.keys()) @@ -13858,8 +15587,8 @@ def _deserialize(self, params): -class QueryCommonTransferRechargeResponse(AbstractModel): - """QueryCommonTransferRecharge返回参数结构体 +class QueryCustAcctIdBalanceResponse(AbstractModel): + """QueryCustAcctIdBalance返回参数结构体 """ @@ -13883,9 +15612,9 @@ def __init__(self): :param TotalNum: STRING(10),符合业务查询条件的记录总数(重复次数,一次最多返回20条记录) 注意:此字段可能返回 null,表示取不到有效值。 :type TotalNum: str - :param TranItemArray: 交易信息数组 + :param AcctArray: 账户信息数组 注意:此字段可能返回 null,表示取不到有效值。 - :type TranItemArray: list of TransferItem + :type AcctArray: list of Acct :param ReservedMsg: STRING(1027),保留域 注意:此字段可能返回 null,表示取不到有效值。 :type ReservedMsg: str @@ -13899,7 +15628,7 @@ def __init__(self): self.StartRecordNo = None self.EndFlag = None self.TotalNum = None - self.TranItemArray = None + self.AcctArray = None self.ReservedMsg = None self.RequestId = None @@ -13912,43 +15641,243 @@ def _deserialize(self, params): self.StartRecordNo = params.get("StartRecordNo") self.EndFlag = params.get("EndFlag") self.TotalNum = params.get("TotalNum") - if params.get("TranItemArray") is not None: - self.TranItemArray = [] - for item in params.get("TranItemArray"): - obj = TransferItem() + if params.get("AcctArray") is not None: + self.AcctArray = [] + for item in params.get("AcctArray"): + obj = Acct() obj._deserialize(item) - self.TranItemArray.append(obj) + self.AcctArray.append(obj) self.ReservedMsg = params.get("ReservedMsg") self.RequestId = params.get("RequestId") -class QueryContractPayFeeRequest(AbstractModel): - """QueryContractPayFee请求参数结构体 +class QueryDeclareData(AbstractModel): + """成功申报材料查询数据 """ def __init__(self): r""" - :param OpenId: 收单系统分配的开放ID - :type OpenId: str - :param OpenKey: 收单系统分配的密钥 - :type OpenKey: str - :param PaymentId: 支付方式编号 - :type PaymentId: str - :param Profile: 沙箱环境填sandbox,正式环境不填 - :type Profile: str + :param MerchantId: 商户号 + :type MerchantId: str + :param TransactionId: 对接方汇出指令编号 + :type TransactionId: str + :param DeclareId: 申报流水号 + :type DeclareId: str + :param OriginalDeclareId: 原申报流水号 +注意:此字段可能返回 null,表示取不到有效值。 + :type OriginalDeclareId: str + :param PayerId: 付款人ID + :type PayerId: str + :param SourceCurrency: 源币种 + :type SourceCurrency: str + :param SourceAmount: 源金额 +注意:此字段可能返回 null,表示取不到有效值。 + :type SourceAmount: str + :param TargetCurrency: 目的币种 + :type TargetCurrency: str + :param TargetAmount: 目的金额 +注意:此字段可能返回 null,表示取不到有效值。 + :type TargetAmount: str + :param TradeCode: 交易编码 + :type TradeCode: str + :param Status: 状态 +注意:此字段可能返回 null,表示取不到有效值。 + :type Status: str + """ + self.MerchantId = None + self.TransactionId = None + self.DeclareId = None + self.OriginalDeclareId = None + self.PayerId = None + self.SourceCurrency = None + self.SourceAmount = None + self.TargetCurrency = None + self.TargetAmount = None + self.TradeCode = None + self.Status = None + + + def _deserialize(self, params): + self.MerchantId = params.get("MerchantId") + self.TransactionId = params.get("TransactionId") + self.DeclareId = params.get("DeclareId") + self.OriginalDeclareId = params.get("OriginalDeclareId") + self.PayerId = params.get("PayerId") + self.SourceCurrency = params.get("SourceCurrency") + self.SourceAmount = params.get("SourceAmount") + self.TargetCurrency = params.get("TargetCurrency") + self.TargetAmount = params.get("TargetAmount") + self.TradeCode = params.get("TradeCode") + self.Status = params.get("Status") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryDeclareResult(AbstractModel): + """成功申报材料查询结果 + + """ + + def __init__(self): + r""" + :param Data: 成功申报材料查询数据 + :type Data: :class:`tencentcloud.cpdp.v20190820.models.QueryDeclareData` + :param Code: 错误码 + :type Code: str + """ + self.Data = None + self.Code = None + + + def _deserialize(self, params): + if params.get("Data") is not None: + self.Data = QueryDeclareData() + self.Data._deserialize(params.get("Data")) + self.Code = params.get("Code") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryDownloadBillURLRequest(AbstractModel): + """QueryDownloadBillURL请求参数结构体 + + """ + + def __init__(self): + r""" + :param MerchantAppId: 分配给商户的AppId。进件成功后返给商户方的AppId。 + :type MerchantAppId: str + :param ChannelCode: 渠道编号。固定值:ZSB2B + :type ChannelCode: str + :param BillDate: 对账单日期,格式yyyyMMdd + :type BillDate: str + """ + self.MerchantAppId = None + self.ChannelCode = None + self.BillDate = None + + + def _deserialize(self, params): + self.MerchantAppId = params.get("MerchantAppId") + self.ChannelCode = params.get("ChannelCode") + self.BillDate = params.get("BillDate") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryDownloadBillURLResponse(AbstractModel): + """QueryDownloadBillURL返回参数结构体 + + """ + + def __init__(self): + r""" + :param MerchantAppId: 分配给商户的AppId。进件成功后返给商户方的AppId。 + :type MerchantAppId: str + :param DownloadUrl: 对账单下载地址。 + :type DownloadUrl: str + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.MerchantAppId = None + self.DownloadUrl = None + self.RequestId = None + + + def _deserialize(self, params): + self.MerchantAppId = params.get("MerchantAppId") + self.DownloadUrl = params.get("DownloadUrl") + self.RequestId = params.get("RequestId") + + +class QueryExceedingInfoData(AbstractModel): + """超额信息数据 + + """ + + def __init__(self): + r""" + :param AgentId: 代理商ID。 + :type AgentId: str + :param AgentName: 代理商名称。 + :type AgentName: str + :param AnchorId: 主播ID。当入参Dimension为ANCHOR或ORDER时,该字段才会有值。 +注意:此字段可能返回 null,表示取不到有效值。 + :type AnchorId: str + :param AnchorName: 主播名称。当入参Dimension为ANCHOR或ORDER时,该字段才会有值。 +注意:此字段可能返回 null,表示取不到有效值。 + :type AnchorName: str + :param OrderId: 订单号。当入参Dimension为ORDER时,该字段才会有值。 +注意:此字段可能返回 null,表示取不到有效值。 + :type OrderId: str + :param ExceedingType: 超额类型。目前支持 AGENT_EXCEED_100 和 ANCHOR_EXCEED_100_12 两种类型。 + :type ExceedingType: str + """ + self.AgentId = None + self.AgentName = None + self.AnchorId = None + self.AnchorName = None + self.OrderId = None + self.ExceedingType = None + + + def _deserialize(self, params): + self.AgentId = params.get("AgentId") + self.AgentName = params.get("AgentName") + self.AnchorId = params.get("AnchorId") + self.AnchorName = params.get("AnchorName") + self.OrderId = params.get("OrderId") + self.ExceedingType = params.get("ExceedingType") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryExceedingInfoRequest(AbstractModel): + """QueryExceedingInfo请求参数结构体 + + """ + + def __init__(self): + r""" + :param TimeStr: 超额日期。格式为yyyy-MM-dd。 + :type TimeStr: str + :param Dimension: 维度。目前支持三个维度: AGENT, ANCHOR, ORDER。不填默认使用AGENT维度。 + :type Dimension: str + :param PageNumber: 分页信息。不填默认Index为1,Count为100。 + :type PageNumber: :class:`tencentcloud.cpdp.v20190820.models.Paging` """ - self.OpenId = None - self.OpenKey = None - self.PaymentId = None - self.Profile = None + self.TimeStr = None + self.Dimension = None + self.PageNumber = None def _deserialize(self, params): - self.OpenId = params.get("OpenId") - self.OpenKey = params.get("OpenKey") - self.PaymentId = params.get("PaymentId") - self.Profile = params.get("Profile") + self.TimeStr = params.get("TimeStr") + self.Dimension = params.get("Dimension") + if params.get("PageNumber") is not None: + self.PageNumber = Paging() + self.PageNumber._deserialize(params.get("PageNumber")) memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -13958,71 +15887,63 @@ def _deserialize(self, params): -class QueryContractPayFeeResponse(AbstractModel): - """QueryContractPayFee返回参数结构体 +class QueryExceedingInfoResponse(AbstractModel): + """QueryExceedingInfo返回参数结构体 """ def __init__(self): r""" - :param ErrMessage: 业务系统返回消息 -注意:此字段可能返回 null,表示取不到有效值。 - :type ErrMessage: str - :param ErrCode: 业务系统返回码,0表示成功,其他表示失败。 + :param ErrCode: 错误码。 :type ErrCode: str - :param Result: 查询支付方式费率及自定义表单项响应对象 + :param ErrMessage: 错误消息。 + :type ErrMessage: str + :param Result: 超额信息结果。 注意:此字段可能返回 null,表示取不到有效值。 - :type Result: :class:`tencentcloud.cpdp.v20190820.models.QueryContractPayFeeResult` + :type Result: :class:`tencentcloud.cpdp.v20190820.models.QueryExceedingInfoResult` :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ - self.ErrMessage = None self.ErrCode = None + self.ErrMessage = None self.Result = None self.RequestId = None def _deserialize(self, params): - self.ErrMessage = params.get("ErrMessage") self.ErrCode = params.get("ErrCode") + self.ErrMessage = params.get("ErrMessage") if params.get("Result") is not None: - self.Result = QueryContractPayFeeResult() + self.Result = QueryExceedingInfoResult() self.Result._deserialize(params.get("Result")) self.RequestId = params.get("RequestId") -class QueryContractPayFeeResult(AbstractModel): - """支付方式费率及自定义表单项 +class QueryExceedingInfoResult(AbstractModel): + """超额信息结果 """ def __init__(self): r""" - :param Pay: pay支付方式json数据 -注意:此字段可能返回 null,表示取不到有效值。 - :type Pay: :class:`tencentcloud.cpdp.v20190820.models.PayDataResult` - :param ExtraInput: 合同扩展自定义字段 - :type ExtraInput: list of str - :param PayFee: pay_fee支付方式行业分类费率json数据 + :param Count: 记录总数。 + :type Count: int + :param Data: 超额信息数据。 注意:此字段可能返回 null,表示取不到有效值。 - :type PayFee: list of PayFeeDataResult + :type Data: list of QueryExceedingInfoData """ - self.Pay = None - self.ExtraInput = None - self.PayFee = None + self.Count = None + self.Data = None def _deserialize(self, params): - if params.get("Pay") is not None: - self.Pay = PayDataResult() - self.Pay._deserialize(params.get("Pay")) - self.ExtraInput = params.get("ExtraInput") - if params.get("PayFee") is not None: - self.PayFee = [] - for item in params.get("PayFee"): - obj = PayFeeDataResult() + self.Count = params.get("Count") + if params.get("Data") is not None: + self.Data = [] + for item in params.get("Data"): + obj = QueryExceedingInfoData() obj._deserialize(item) - self.PayFee.append(obj) + self.Data.append(obj) memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -14032,28 +15953,28 @@ def _deserialize(self, params): -class QueryContractPayWayListRequest(AbstractModel): - """QueryContractPayWayList请求参数结构体 +class QueryExchangeRateRequest(AbstractModel): + """QueryExchangeRate请求参数结构体 """ def __init__(self): r""" - :param OpenId: 收单系统分配的开放ID - :type OpenId: str - :param OpenKey: 收单系统分配的密钥 - :type OpenKey: str - :param Profile: 沙箱环境填sandbox,正式环境不填 + :param SourceCurrency: 源币种 (默认CNY) + :type SourceCurrency: str + :param TargetCurrency: 目的币种 (见常见问题-汇出币种) + :type TargetCurrency: str + :param Profile: 接入环境。沙箱环境填sandbox :type Profile: str """ - self.OpenId = None - self.OpenKey = None + self.SourceCurrency = None + self.TargetCurrency = None self.Profile = None def _deserialize(self, params): - self.OpenId = params.get("OpenId") - self.OpenKey = params.get("OpenKey") + self.SourceCurrency = params.get("SourceCurrency") + self.TargetCurrency = params.get("TargetCurrency") self.Profile = params.get("Profile") memeber_set = set(params.keys()) for name, value in vars(self).items(): @@ -14064,69 +15985,60 @@ def _deserialize(self, params): -class QueryContractPayWayListResponse(AbstractModel): - """QueryContractPayWayList返回参数结构体 +class QueryExchangeRateResponse(AbstractModel): + """QueryExchangeRate返回参数结构体 """ def __init__(self): r""" - :param ErrMessage: 业务系统返回消息 -注意:此字段可能返回 null,表示取不到有效值。 - :type ErrMessage: str - :param ErrCode: 业务系统返回码 - :type ErrCode: str - :param Result: 查询合同支付方式响应对象 -注意:此字段可能返回 null,表示取不到有效值。 - :type Result: list of ContractPayListResult + :param Result: 查询汇率结果 + :type Result: :class:`tencentcloud.cpdp.v20190820.models.QueryExchangerateResult` :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ - self.ErrMessage = None - self.ErrCode = None self.Result = None self.RequestId = None def _deserialize(self, params): - self.ErrMessage = params.get("ErrMessage") - self.ErrCode = params.get("ErrCode") if params.get("Result") is not None: - self.Result = [] - for item in params.get("Result"): - obj = ContractPayListResult() - obj._deserialize(item) - self.Result.append(obj) + self.Result = QueryExchangerateResult() + self.Result._deserialize(params.get("Result")) self.RequestId = params.get("RequestId") -class QueryContractRelateShopRequest(AbstractModel): - """QueryContractRelateShop请求参数结构体 +class QueryExchangerateData(AbstractModel): + """查询汇率数据 """ def __init__(self): r""" - :param OpenId: 收单系统分配的开放ID - :type OpenId: str - :param OpenKey: 收单系统分配的密钥 - :type OpenKey: str - :param ContractId: 合同主键 - :type ContractId: str - :param Profile: 沙箱环境填sandbox,正式环境不填 - :type Profile: str + :param Rate: 汇率 + :type Rate: str + :param SourceCurrency: 源币种 + :type SourceCurrency: str + :param TargetCurrency: 目的币种 + :type TargetCurrency: str + :param RateTime: 汇率时间 + :type RateTime: str + :param BaseCurrency: 基准币种 + :type BaseCurrency: str """ - self.OpenId = None - self.OpenKey = None - self.ContractId = None - self.Profile = None + self.Rate = None + self.SourceCurrency = None + self.TargetCurrency = None + self.RateTime = None + self.BaseCurrency = None def _deserialize(self, params): - self.OpenId = params.get("OpenId") - self.OpenKey = params.get("OpenKey") - self.ContractId = params.get("ContractId") - self.Profile = params.get("Profile") + self.Rate = params.get("Rate") + self.SourceCurrency = params.get("SourceCurrency") + self.TargetCurrency = params.get("TargetCurrency") + self.RateTime = params.get("RateTime") + self.BaseCurrency = params.get("BaseCurrency") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -14136,118 +16048,64 @@ def _deserialize(self, params): -class QueryContractRelateShopResponse(AbstractModel): - """QueryContractRelateShop返回参数结构体 +class QueryExchangerateResult(AbstractModel): + """查询汇率结果 """ def __init__(self): r""" - :param ErrMessage: 业务系统返回消息 -注意:此字段可能返回 null,表示取不到有效值。 - :type ErrMessage: str - :param ErrCode: 业务系统返回码 - :type ErrCode: str - :param Result: 查询合同可关联门店响应对象 -注意:此字段可能返回 null,表示取不到有效值。 - :type Result: list of QueryContractRelateShopResult - :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - :type RequestId: str + :param Code: 错误码 + :type Code: str + :param Data: 查询汇率数据数组 + :type Data: list of QueryExchangerateData """ - self.ErrMessage = None - self.ErrCode = None - self.Result = None - self.RequestId = None + self.Code = None + self.Data = None def _deserialize(self, params): - self.ErrMessage = params.get("ErrMessage") - self.ErrCode = params.get("ErrCode") - if params.get("Result") is not None: - self.Result = [] - for item in params.get("Result"): - obj = QueryContractRelateShopResult() + self.Code = params.get("Code") + if params.get("Data") is not None: + self.Data = [] + for item in params.get("Data"): + obj = QueryExchangerateData() obj._deserialize(item) - self.Result.append(obj) - self.RequestId = params.get("RequestId") - - -class QueryContractRelateShopResult(AbstractModel): - """合同可关联门店响应对象 - - """ - - def __init__(self): - r""" - :param Province: 省份 -注意:此字段可能返回 null,表示取不到有效值。 - :type Province: str - :param CityId: 城市编码 -注意:此字段可能返回 null,表示取不到有效值。 - :type CityId: str - :param ShopName: 门店简称 -注意:此字段可能返回 null,表示取不到有效值。 - :type ShopName: str - :param TerminalCount: 终端数量 -注意:此字段可能返回 null,表示取不到有效值。 - :type TerminalCount: str - :param City: 城市 -注意:此字段可能返回 null,表示取不到有效值。 - :type City: str - :param ShopStatus: 门店状态(0未审核,1已审核,2审核未通过,3待审核,4已删除,5初审通过) -注意:此字段可能返回 null,表示取不到有效值。 - :type ShopStatus: str - :param AliPayOnline: 若是支付宝合同,支付宝上线状态 -注意:此字段可能返回 null,表示取不到有效值。 - :type AliPayOnline: str - :param ShopNo: 门店编号 -注意:此字段可能返回 null,表示取不到有效值。 - :type ShopNo: str - :param Country: 县/区 -注意:此字段可能返回 null,表示取不到有效值。 - :type Country: str - :param AliPayStatus: 若是支付宝合同,支付宝审核状态 -注意:此字段可能返回 null,表示取不到有效值。 - :type AliPayStatus: str - :param IsChecked: 为空或者0表示未关联,大于0表示已关联 -注意:此字段可能返回 null,表示取不到有效值。 - :type IsChecked: str - :param Address: 详细地址 + self.Data.append(obj) + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryExternalAccountBookResult(AbstractModel): + """查询第三方电子记账本余额返回值 + + """ + + def __init__(self): + r""" + :param ChannelAccountBookId: 渠道记账本ID + :type ChannelAccountBookId: str + :param AvailableBalance: 可用余额。 注意:此字段可能返回 null,表示取不到有效值。 - :type Address: str - :param AliPayDesc: 若是支付宝合同,支付宝审核描述 + :type AvailableBalance: str + :param CollectMoneyAccountInfo: 电子记账本对外收款的账户信息。为JSON格式字符串(成功状态下返回)。详情见附录-复杂类型。 注意:此字段可能返回 null,表示取不到有效值。 - :type AliPayDesc: str + :type CollectMoneyAccountInfo: str """ - self.Province = None - self.CityId = None - self.ShopName = None - self.TerminalCount = None - self.City = None - self.ShopStatus = None - self.AliPayOnline = None - self.ShopNo = None - self.Country = None - self.AliPayStatus = None - self.IsChecked = None - self.Address = None - self.AliPayDesc = None + self.ChannelAccountBookId = None + self.AvailableBalance = None + self.CollectMoneyAccountInfo = None def _deserialize(self, params): - self.Province = params.get("Province") - self.CityId = params.get("CityId") - self.ShopName = params.get("ShopName") - self.TerminalCount = params.get("TerminalCount") - self.City = params.get("City") - self.ShopStatus = params.get("ShopStatus") - self.AliPayOnline = params.get("AliPayOnline") - self.ShopNo = params.get("ShopNo") - self.Country = params.get("Country") - self.AliPayStatus = params.get("AliPayStatus") - self.IsChecked = params.get("IsChecked") - self.Address = params.get("Address") - self.AliPayDesc = params.get("AliPayDesc") + self.ChannelAccountBookId = params.get("ChannelAccountBookId") + self.AvailableBalance = params.get("AvailableBalance") + self.CollectMoneyAccountInfo = params.get("CollectMoneyAccountInfo") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -14257,86 +16115,31 @@ def _deserialize(self, params): -class QueryContractRequest(AbstractModel): - """QueryContract请求参数结构体 +class QueryFlexAmountBeforeTaxRequest(AbstractModel): + """QueryFlexAmountBeforeTax请求参数结构体 """ def __init__(self): r""" - :param MidasAppId: 聚鑫分配的支付主MidasAppId - :type MidasAppId: str - :param UserId: 用户ID,长度不小于5位,仅支持字母和数字的组合 - :type UserId: str - :param Channel: 指定渠道: wechat:微信支付 qqwallet:QQ钱包 - bank:网银支付 只有一个渠道时需要指定 - :type Channel: str - :param ContractQueryMode: 枚举值: -CONTRACT_QUERY_MODE_BY_OUT_CONTRACT_CODE:按 OutContractCode + ContractSceneId 查询 -CONTRACT_QUERY_MODE_BY_CHANNEL_CONTRACT_CODE:按ChannelContractCode查询 - :type ContractQueryMode: str - :param MidasSignature: 按照聚鑫安全密钥计算的签名 - :type MidasSignature: str - :param MidasSecretId: 聚鑫分配的安全ID - :type MidasSecretId: str - :param SubAppId: 聚鑫计费SubAppId,代表子商户 - :type SubAppId: str - :param OutContractCode: 业务签约合同协议号 当 ContractQueryMode=CONTRACT_QUERY_MODE_BY_OUT_CONTRACT_CODE 时 ,必填 - :type OutContractCode: str - :param ContractSceneId: 签约场景ID,当 ContractQueryMode=CONTRACT_QUERY_MODE_BY_OUT_CONTRACT_CODE 时 必填,在米大师侧托管后生成 - :type ContractSceneId: str - :param ChannelContractCode: 米大师生成的协议号 ,当 ContractQueryMode=CONTRACT_QUERY_MODE_BY_CHANNEL_CONTRACT_CODE 时必填 - :type ChannelContractCode: str - :param ExternalContractData: 第三方渠道合约数据,为json字符串,与特定渠道有关 - :type ExternalContractData: str - :param MidasEnvironment: 环境名: -release: 现网环境 -sandbox: 沙箱环境 -development: 开发环境 -缺省: release - :type MidasEnvironment: str - :param UserType: USER_ID: 用户ID -ANONYMOUS: 匿名类型 USER_ID -默认值为 USER_ID - :type UserType: str - :param MigrateMode: 签约代扣穿透查询存量数据迁移模式 - :type MigrateMode: str - :param ContractMethod: 签约方式 - :type ContractMethod: str + :param PayeeId: 收款用户ID + :type PayeeId: str + :param IncomeType: 收入类型 +LABOR:劳务所得 +OCCASION:偶然所得 + :type IncomeType: str + :param AmountAfterTax: 税后金额 + :type AmountAfterTax: str """ - self.MidasAppId = None - self.UserId = None - self.Channel = None - self.ContractQueryMode = None - self.MidasSignature = None - self.MidasSecretId = None - self.SubAppId = None - self.OutContractCode = None - self.ContractSceneId = None - self.ChannelContractCode = None - self.ExternalContractData = None - self.MidasEnvironment = None - self.UserType = None - self.MigrateMode = None - self.ContractMethod = None + self.PayeeId = None + self.IncomeType = None + self.AmountAfterTax = None def _deserialize(self, params): - self.MidasAppId = params.get("MidasAppId") - self.UserId = params.get("UserId") - self.Channel = params.get("Channel") - self.ContractQueryMode = params.get("ContractQueryMode") - self.MidasSignature = params.get("MidasSignature") - self.MidasSecretId = params.get("MidasSecretId") - self.SubAppId = params.get("SubAppId") - self.OutContractCode = params.get("OutContractCode") - self.ContractSceneId = params.get("ContractSceneId") - self.ChannelContractCode = params.get("ChannelContractCode") - self.ExternalContractData = params.get("ExternalContractData") - self.MidasEnvironment = params.get("MidasEnvironment") - self.UserType = params.get("UserType") - self.MigrateMode = params.get("MigrateMode") - self.ContractMethod = params.get("ContractMethod") + self.PayeeId = params.get("PayeeId") + self.IncomeType = params.get("IncomeType") + self.AmountAfterTax = params.get("AmountAfterTax") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -14346,68 +16149,73 @@ def _deserialize(self, params): -class QueryContractResponse(AbstractModel): - """QueryContract返回参数结构体 +class QueryFlexAmountBeforeTaxResponse(AbstractModel): + """QueryFlexAmountBeforeTax返回参数结构体 """ def __init__(self): r""" - :param ContractData: 签约数据 - :type ContractData: :class:`tencentcloud.cpdp.v20190820.models.ResponseQueryContract` - :param Msg: 请求处理信息 - :type Msg: str + :param ErrCode: 错误码。SUCCESS为成功,其他为失败 + :type ErrCode: str + :param ErrMessage: 错误消息 + :type ErrMessage: str + :param Result: 返回结果 +注意:此字段可能返回 null,表示取不到有效值。 + :type Result: :class:`tencentcloud.cpdp.v20190820.models.AmountBeforeTaxResult` :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ - self.ContractData = None - self.Msg = None + self.ErrCode = None + self.ErrMessage = None + self.Result = None self.RequestId = None def _deserialize(self, params): - if params.get("ContractData") is not None: - self.ContractData = ResponseQueryContract() - self.ContractData._deserialize(params.get("ContractData")) - self.Msg = params.get("Msg") + self.ErrCode = params.get("ErrCode") + self.ErrMessage = params.get("ErrMessage") + if params.get("Result") is not None: + self.Result = AmountBeforeTaxResult() + self.Result._deserialize(params.get("Result")) self.RequestId = params.get("RequestId") -class QueryCustAcctIdBalanceRequest(AbstractModel): - """QueryCustAcctIdBalance请求参数结构体 +class QueryFlexFreezeOrderListRequest(AbstractModel): + """QueryFlexFreezeOrderList请求参数结构体 """ def __init__(self): r""" - :param MrchCode: String(22),商户号(签约客户号) - :type MrchCode: str - :param QueryFlag: STRING(4),查询标志(2: 普通会员子账号; 3: 功能子账号) - :type QueryFlag: str - :param PageNum: STRING(10),页码(起始值为1,每次最多返回20条记录,第二页返回的记录数为第21至40条记录,第三页为41至60条记录,顺序均按照建立时间的先后) - :type PageNum: str - :param SubAcctNo: STRING(50),见证子账户的账号(若SelectFlag为2时,子账号必输) - :type SubAcctNo: str - :param ReservedMsg: STRING(1027),保留域 - :type ReservedMsg: str - :param Profile: STRING(12),接入环境,默认接入沙箱环境。接入正式环境填"prod" - :type Profile: str + :param PayeeId: 收款用户ID + :type PayeeId: str + :param OperationType: 操作类型 +FREEZE:冻结 +UNFREEZE:解冻 + :type OperationType: str + :param StartTime: 开始时间,格式"yyyy-MM-dd hh:mm:ss" + :type StartTime: str + :param EndTime: 结束时间,格式"yyyy-MM-dd hh:mm:ss" + :type EndTime: str + :param PageNumber: 分页 + :type PageNumber: :class:`tencentcloud.cpdp.v20190820.models.Paging` """ - self.MrchCode = None - self.QueryFlag = None - self.PageNum = None - self.SubAcctNo = None - self.ReservedMsg = None - self.Profile = None + self.PayeeId = None + self.OperationType = None + self.StartTime = None + self.EndTime = None + self.PageNumber = None def _deserialize(self, params): - self.MrchCode = params.get("MrchCode") - self.QueryFlag = params.get("QueryFlag") - self.PageNum = params.get("PageNum") - self.SubAcctNo = params.get("SubAcctNo") - self.ReservedMsg = params.get("ReservedMsg") - self.Profile = params.get("Profile") + self.PayeeId = params.get("PayeeId") + self.OperationType = params.get("OperationType") + self.StartTime = params.get("StartTime") + self.EndTime = params.get("EndTime") + if params.get("PageNumber") is not None: + self.PageNumber = Paging() + self.PageNumber._deserialize(params.get("PageNumber")) memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -14417,129 +16225,119 @@ def _deserialize(self, params): -class QueryCustAcctIdBalanceResponse(AbstractModel): - """QueryCustAcctIdBalance返回参数结构体 +class QueryFlexFreezeOrderListResponse(AbstractModel): + """QueryFlexFreezeOrderList返回参数结构体 """ def __init__(self): r""" - :param TxnReturnCode: String(20),返回码 - :type TxnReturnCode: str - :param TxnReturnMsg: String(100),返回信息 - :type TxnReturnMsg: str - :param CnsmrSeqNo: String(22),交易流水号 - :type CnsmrSeqNo: str - :param ResultNum: STRING(10),本次交易返回查询结果记录数 -注意:此字段可能返回 null,表示取不到有效值。 - :type ResultNum: str - :param StartRecordNo: STRING(30),起始记录号 -注意:此字段可能返回 null,表示取不到有效值。 - :type StartRecordNo: str - :param EndFlag: STRING(2),结束标志(0: 否; 1: 是) -注意:此字段可能返回 null,表示取不到有效值。 - :type EndFlag: str - :param TotalNum: STRING(10),符合业务查询条件的记录总数(重复次数,一次最多返回20条记录) -注意:此字段可能返回 null,表示取不到有效值。 - :type TotalNum: str - :param AcctArray: 账户信息数组 + :param ErrCode: 错误码。SUCCESS为成功,其他为失败 + :type ErrCode: str + :param ErrMessage: 错误消息 + :type ErrMessage: str + :param Result: 返回结果 注意:此字段可能返回 null,表示取不到有效值。 - :type AcctArray: list of Acct - :param ReservedMsg: STRING(1027),保留域 + :type Result: :class:`tencentcloud.cpdp.v20190820.models.FreezeOrders` + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.ErrCode = None + self.ErrMessage = None + self.Result = None + self.RequestId = None + + + def _deserialize(self, params): + self.ErrCode = params.get("ErrCode") + self.ErrMessage = params.get("ErrMessage") + if params.get("Result") is not None: + self.Result = FreezeOrders() + self.Result._deserialize(params.get("Result")) + self.RequestId = params.get("RequestId") + + +class QueryFlexPayeeAccountBalanceRequest(AbstractModel): + """QueryFlexPayeeAccountBalance请求参数结构体 + + """ + + def __init__(self): + r""" + :param PayeeId: 收款用户ID + :type PayeeId: str + :param IncomeType: 收入类型 +LABOR:劳务所得 +OCCASION:偶然所得 + :type IncomeType: str + """ + self.PayeeId = None + self.IncomeType = None + + + def _deserialize(self, params): + self.PayeeId = params.get("PayeeId") + self.IncomeType = params.get("IncomeType") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class QueryFlexPayeeAccountBalanceResponse(AbstractModel): + """QueryFlexPayeeAccountBalance返回参数结构体 + + """ + + def __init__(self): + r""" + :param ErrCode: 错误码。SUCCESS为成功,其他为失败 + :type ErrCode: str + :param ErrMessage: 错误消息 + :type ErrMessage: str + :param Result: 返回结果 注意:此字段可能返回 null,表示取不到有效值。 - :type ReservedMsg: str + :type Result: :class:`tencentcloud.cpdp.v20190820.models.PayeeAccountBalanceResult` :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ - self.TxnReturnCode = None - self.TxnReturnMsg = None - self.CnsmrSeqNo = None - self.ResultNum = None - self.StartRecordNo = None - self.EndFlag = None - self.TotalNum = None - self.AcctArray = None - self.ReservedMsg = None + self.ErrCode = None + self.ErrMessage = None + self.Result = None self.RequestId = None def _deserialize(self, params): - self.TxnReturnCode = params.get("TxnReturnCode") - self.TxnReturnMsg = params.get("TxnReturnMsg") - self.CnsmrSeqNo = params.get("CnsmrSeqNo") - self.ResultNum = params.get("ResultNum") - self.StartRecordNo = params.get("StartRecordNo") - self.EndFlag = params.get("EndFlag") - self.TotalNum = params.get("TotalNum") - if params.get("AcctArray") is not None: - self.AcctArray = [] - for item in params.get("AcctArray"): - obj = Acct() - obj._deserialize(item) - self.AcctArray.append(obj) - self.ReservedMsg = params.get("ReservedMsg") + self.ErrCode = params.get("ErrCode") + self.ErrMessage = params.get("ErrMessage") + if params.get("Result") is not None: + self.Result = PayeeAccountBalanceResult() + self.Result._deserialize(params.get("Result")) self.RequestId = params.get("RequestId") -class QueryDeclareData(AbstractModel): - """成功申报材料查询数据 +class QueryFlexPayeeAccountInfoRequest(AbstractModel): + """QueryFlexPayeeAccountInfo请求参数结构体 """ def __init__(self): r""" - :param MerchantId: 商户号 - :type MerchantId: str - :param TransactionId: 对接方汇出指令编号 - :type TransactionId: str - :param DeclareId: 申报流水号 - :type DeclareId: str - :param OriginalDeclareId: 原申报流水号 -注意:此字段可能返回 null,表示取不到有效值。 - :type OriginalDeclareId: str - :param PayerId: 付款人ID - :type PayerId: str - :param SourceCurrency: 源币种 - :type SourceCurrency: str - :param SourceAmount: 源金额 -注意:此字段可能返回 null,表示取不到有效值。 - :type SourceAmount: str - :param TargetCurrency: 目的币种 - :type TargetCurrency: str - :param TargetAmount: 目的金额 -注意:此字段可能返回 null,表示取不到有效值。 - :type TargetAmount: str - :param TradeCode: 交易编码 - :type TradeCode: str - :param Status: 状态 -注意:此字段可能返回 null,表示取不到有效值。 - :type Status: str + :param PayeeId: 收款用户ID + :type PayeeId: str + :param OutUserId: 外部用户ID + :type OutUserId: str """ - self.MerchantId = None - self.TransactionId = None - self.DeclareId = None - self.OriginalDeclareId = None - self.PayerId = None - self.SourceCurrency = None - self.SourceAmount = None - self.TargetCurrency = None - self.TargetAmount = None - self.TradeCode = None - self.Status = None + self.PayeeId = None + self.OutUserId = None def _deserialize(self, params): - self.MerchantId = params.get("MerchantId") - self.TransactionId = params.get("TransactionId") - self.DeclareId = params.get("DeclareId") - self.OriginalDeclareId = params.get("OriginalDeclareId") - self.PayerId = params.get("PayerId") - self.SourceCurrency = params.get("SourceCurrency") - self.SourceAmount = params.get("SourceAmount") - self.TargetCurrency = params.get("TargetCurrency") - self.TargetAmount = params.get("TargetAmount") - self.TradeCode = params.get("TradeCode") - self.Status = params.get("Status") + self.PayeeId = params.get("PayeeId") + self.OutUserId = params.get("OutUserId") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -14549,59 +16347,69 @@ def _deserialize(self, params): -class QueryDeclareResult(AbstractModel): - """成功申报材料查询结果 +class QueryFlexPayeeAccountInfoResponse(AbstractModel): + """QueryFlexPayeeAccountInfo返回参数结构体 """ def __init__(self): r""" - :param Data: 成功申报材料查询数据 - :type Data: :class:`tencentcloud.cpdp.v20190820.models.QueryDeclareData` - :param Code: 错误码 - :type Code: str + :param ErrCode: 错误码。SUCCESS为成功,其他为失败 + :type ErrCode: str + :param ErrMessage: 错误消息 + :type ErrMessage: str + :param Result: 返回结果 +注意:此字段可能返回 null,表示取不到有效值。 + :type Result: :class:`tencentcloud.cpdp.v20190820.models.PayeeAccountInfoResult` + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str """ - self.Data = None - self.Code = None + self.ErrCode = None + self.ErrMessage = None + self.Result = None + self.RequestId = None def _deserialize(self, params): - if params.get("Data") is not None: - self.Data = QueryDeclareData() - self.Data._deserialize(params.get("Data")) - self.Code = params.get("Code") - memeber_set = set(params.keys()) - for name, value in vars(self).items(): - if name in memeber_set: - memeber_set.remove(name) - if len(memeber_set) > 0: - warnings.warn("%s fileds are useless." % ",".join(memeber_set)) - + self.ErrCode = params.get("ErrCode") + self.ErrMessage = params.get("ErrMessage") + if params.get("Result") is not None: + self.Result = PayeeAccountInfoResult() + self.Result._deserialize(params.get("Result")) + self.RequestId = params.get("RequestId") -class QueryDownloadBillURLRequest(AbstractModel): - """QueryDownloadBillURL请求参数结构体 +class QueryFlexPayeeAccountListRequest(AbstractModel): + """QueryFlexPayeeAccountList请求参数结构体 """ def __init__(self): r""" - :param MerchantAppId: 分配给商户的AppId。进件成功后返给商户方的AppId。 - :type MerchantAppId: str - :param ChannelCode: 渠道编号。固定值:ZSB2B - :type ChannelCode: str - :param BillDate: 对账单日期,格式yyyyMMdd - :type BillDate: str + :param PropertyInfo: 账户属性信息 + :type PropertyInfo: :class:`tencentcloud.cpdp.v20190820.models.PayeeAccountPropertyInfo` + :param StartTime: 开始时间 + :type StartTime: str + :param EndTime: 结束时间 + :type EndTime: str + :param PageNumber: 分页 + :type PageNumber: :class:`tencentcloud.cpdp.v20190820.models.Paging` """ - self.MerchantAppId = None - self.ChannelCode = None - self.BillDate = None + self.PropertyInfo = None + self.StartTime = None + self.EndTime = None + self.PageNumber = None def _deserialize(self, params): - self.MerchantAppId = params.get("MerchantAppId") - self.ChannelCode = params.get("ChannelCode") - self.BillDate = params.get("BillDate") + if params.get("PropertyInfo") is not None: + self.PropertyInfo = PayeeAccountPropertyInfo() + self.PropertyInfo._deserialize(params.get("PropertyInfo")) + self.StartTime = params.get("StartTime") + self.EndTime = params.get("EndTime") + if params.get("PageNumber") is not None: + self.PageNumber = Paging() + self.PageNumber._deserialize(params.get("PageNumber")) memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -14611,69 +16419,57 @@ def _deserialize(self, params): -class QueryDownloadBillURLResponse(AbstractModel): - """QueryDownloadBillURL返回参数结构体 +class QueryFlexPayeeAccountListResponse(AbstractModel): + """QueryFlexPayeeAccountList返回参数结构体 """ def __init__(self): r""" - :param MerchantAppId: 分配给商户的AppId。进件成功后返给商户方的AppId。 - :type MerchantAppId: str - :param DownloadUrl: 对账单下载地址。 - :type DownloadUrl: str + :param ErrCode: 错误码。SUCCESS为成功,其他为失败 + :type ErrCode: str + :param ErrMessage: 错误消息 + :type ErrMessage: str + :param Result: 返回结果 +注意:此字段可能返回 null,表示取不到有效值。 + :type Result: :class:`tencentcloud.cpdp.v20190820.models.PayeeAccountInfos` :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ - self.MerchantAppId = None - self.DownloadUrl = None + self.ErrCode = None + self.ErrMessage = None + self.Result = None self.RequestId = None def _deserialize(self, params): - self.MerchantAppId = params.get("MerchantAppId") - self.DownloadUrl = params.get("DownloadUrl") + self.ErrCode = params.get("ErrCode") + self.ErrMessage = params.get("ErrMessage") + if params.get("Result") is not None: + self.Result = PayeeAccountInfos() + self.Result._deserialize(params.get("Result")) self.RequestId = params.get("RequestId") -class QueryExceedingInfoData(AbstractModel): - """超额信息数据 +class QueryFlexPayeeInfoRequest(AbstractModel): + """QueryFlexPayeeInfo请求参数结构体 """ def __init__(self): r""" - :param AgentId: 代理商ID。 - :type AgentId: str - :param AgentName: 代理商名称。 - :type AgentName: str - :param AnchorId: 主播ID。当入参Dimension为ANCHOR或ORDER时,该字段才会有值。 -注意:此字段可能返回 null,表示取不到有效值。 - :type AnchorId: str - :param AnchorName: 主播名称。当入参Dimension为ANCHOR或ORDER时,该字段才会有值。 -注意:此字段可能返回 null,表示取不到有效值。 - :type AnchorName: str - :param OrderId: 订单号。当入参Dimension为ORDER时,该字段才会有值。 -注意:此字段可能返回 null,表示取不到有效值。 - :type OrderId: str - :param ExceedingType: 超额类型。目前支持 AGENT_EXCEED_100 和 ANCHOR_EXCEED_100_12 两种类型。 - :type ExceedingType: str + :param PayeeId: 收款用户ID + :type PayeeId: str + :param OutUserId: 外部用户ID + :type OutUserId: str """ - self.AgentId = None - self.AgentName = None - self.AnchorId = None - self.AnchorName = None - self.OrderId = None - self.ExceedingType = None + self.PayeeId = None + self.OutUserId = None def _deserialize(self, params): - self.AgentId = params.get("AgentId") - self.AgentName = params.get("AgentName") - self.AnchorId = params.get("AnchorId") - self.AnchorName = params.get("AnchorName") - self.OrderId = params.get("OrderId") - self.ExceedingType = params.get("ExceedingType") + self.PayeeId = params.get("PayeeId") + self.OutUserId = params.get("OutUserId") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -14683,28 +16479,64 @@ def _deserialize(self, params): -class QueryExceedingInfoRequest(AbstractModel): - """QueryExceedingInfo请求参数结构体 +class QueryFlexPayeeInfoResponse(AbstractModel): + """QueryFlexPayeeInfo返回参数结构体 """ def __init__(self): r""" - :param TimeStr: 超额日期。格式为yyyy-MM-dd。 - :type TimeStr: str - :param Dimension: 维度。目前支持三个维度: AGENT, ANCHOR, ORDER。不填默认使用AGENT维度。 - :type Dimension: str - :param PageNumber: 分页信息。不填默认Index为1,Count为100。 + :param ErrCode: 错误码。SUCCESS为成功,其他为失败 + :type ErrCode: str + :param ErrMessage: 错误消息 + :type ErrMessage: str + :param Result: 返回结果 +注意:此字段可能返回 null,表示取不到有效值。 + :type Result: :class:`tencentcloud.cpdp.v20190820.models.PayeeInfoResult` + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.ErrCode = None + self.ErrMessage = None + self.Result = None + self.RequestId = None + + + def _deserialize(self, params): + self.ErrCode = params.get("ErrCode") + self.ErrMessage = params.get("ErrMessage") + if params.get("Result") is not None: + self.Result = PayeeInfoResult() + self.Result._deserialize(params.get("Result")) + self.RequestId = params.get("RequestId") + + +class QueryFlexPaymentOrderListRequest(AbstractModel): + """QueryFlexPaymentOrderList请求参数结构体 + + """ + + def __init__(self): + r""" + :param PayeeId: 收款用户ID + :type PayeeId: str + :param StartTime: 开始时间,格式"yyyy-MM-dd hh:mm:ss" + :type StartTime: str + :param EndTime: 结束时间,格式"yyyy-MM-dd hh:mm:ss" + :type EndTime: str + :param PageNumber: 分页 :type PageNumber: :class:`tencentcloud.cpdp.v20190820.models.Paging` """ - self.TimeStr = None - self.Dimension = None + self.PayeeId = None + self.StartTime = None + self.EndTime = None self.PageNumber = None def _deserialize(self, params): - self.TimeStr = params.get("TimeStr") - self.Dimension = params.get("Dimension") + self.PayeeId = params.get("PayeeId") + self.StartTime = params.get("StartTime") + self.EndTime = params.get("EndTime") if params.get("PageNumber") is not None: self.PageNumber = Paging() self.PageNumber._deserialize(params.get("PageNumber")) @@ -14717,20 +16549,20 @@ def _deserialize(self, params): -class QueryExceedingInfoResponse(AbstractModel): - """QueryExceedingInfo返回参数结构体 - +class QueryFlexPaymentOrderListResponse(AbstractModel): + """QueryFlexPaymentOrderList返回参数结构体 + """ def __init__(self): r""" - :param ErrCode: 错误码。 + :param ErrCode: 错误码。SUCCESS为成功,其他为失败 :type ErrCode: str - :param ErrMessage: 错误消息。 + :param ErrMessage: 错误消息 :type ErrMessage: str - :param Result: 超额信息结果。 + :param Result: 返回结果 注意:此字段可能返回 null,表示取不到有效值。 - :type Result: :class:`tencentcloud.cpdp.v20190820.models.QueryExceedingInfoResult` + :type Result: :class:`tencentcloud.cpdp.v20190820.models.PaymentOrders` :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ @@ -14744,68 +16576,30 @@ def _deserialize(self, params): self.ErrCode = params.get("ErrCode") self.ErrMessage = params.get("ErrMessage") if params.get("Result") is not None: - self.Result = QueryExceedingInfoResult() + self.Result = PaymentOrders() self.Result._deserialize(params.get("Result")) self.RequestId = params.get("RequestId") -class QueryExceedingInfoResult(AbstractModel): - """超额信息结果 - - """ - - def __init__(self): - r""" - :param Count: 记录总数。 - :type Count: int - :param Data: 超额信息数据。 -注意:此字段可能返回 null,表示取不到有效值。 - :type Data: list of QueryExceedingInfoData - """ - self.Count = None - self.Data = None - - - def _deserialize(self, params): - self.Count = params.get("Count") - if params.get("Data") is not None: - self.Data = [] - for item in params.get("Data"): - obj = QueryExceedingInfoData() - obj._deserialize(item) - self.Data.append(obj) - memeber_set = set(params.keys()) - for name, value in vars(self).items(): - if name in memeber_set: - memeber_set.remove(name) - if len(memeber_set) > 0: - warnings.warn("%s fileds are useless." % ",".join(memeber_set)) - - - -class QueryExchangeRateRequest(AbstractModel): - """QueryExchangeRate请求参数结构体 +class QueryFlexPaymentOrderStatusRequest(AbstractModel): + """QueryFlexPaymentOrderStatus请求参数结构体 """ def __init__(self): r""" - :param SourceCurrency: 源币种 (默认CNY) - :type SourceCurrency: str - :param TargetCurrency: 目的币种 (见常见问题-汇出币种) - :type TargetCurrency: str - :param Profile: 接入环境。沙箱环境填sandbox - :type Profile: str + :param OutOrderId: 外部订单ID + :type OutOrderId: str + :param OrderId: 订单ID + :type OrderId: str """ - self.SourceCurrency = None - self.TargetCurrency = None - self.Profile = None + self.OutOrderId = None + self.OrderId = None def _deserialize(self, params): - self.SourceCurrency = params.get("SourceCurrency") - self.TargetCurrency = params.get("TargetCurrency") - self.Profile = params.get("Profile") + self.OutOrderId = params.get("OutOrderId") + self.OrderId = params.get("OrderId") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -14815,93 +16609,67 @@ def _deserialize(self, params): -class QueryExchangeRateResponse(AbstractModel): - """QueryExchangeRate返回参数结构体 +class QueryFlexPaymentOrderStatusResponse(AbstractModel): + """QueryFlexPaymentOrderStatus返回参数结构体 """ def __init__(self): r""" - :param Result: 查询汇率结果 - :type Result: :class:`tencentcloud.cpdp.v20190820.models.QueryExchangerateResult` + :param ErrCode: 错误码。SUCCESS为成功,其他为失败 + :type ErrCode: str + :param ErrMessage: 错误消息 + :type ErrMessage: str + :param Result: 返回结果 +注意:此字段可能返回 null,表示取不到有效值。 + :type Result: :class:`tencentcloud.cpdp.v20190820.models.PaymentOrderStatusResult` :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ + self.ErrCode = None + self.ErrMessage = None self.Result = None self.RequestId = None def _deserialize(self, params): + self.ErrCode = params.get("ErrCode") + self.ErrMessage = params.get("ErrMessage") if params.get("Result") is not None: - self.Result = QueryExchangerateResult() + self.Result = PaymentOrderStatusResult() self.Result._deserialize(params.get("Result")) self.RequestId = params.get("RequestId") -class QueryExchangerateData(AbstractModel): - """查询汇率数据 - - """ - - def __init__(self): - r""" - :param Rate: 汇率 - :type Rate: str - :param SourceCurrency: 源币种 - :type SourceCurrency: str - :param TargetCurrency: 目的币种 - :type TargetCurrency: str - :param RateTime: 汇率时间 - :type RateTime: str - :param BaseCurrency: 基准币种 - :type BaseCurrency: str - """ - self.Rate = None - self.SourceCurrency = None - self.TargetCurrency = None - self.RateTime = None - self.BaseCurrency = None - - - def _deserialize(self, params): - self.Rate = params.get("Rate") - self.SourceCurrency = params.get("SourceCurrency") - self.TargetCurrency = params.get("TargetCurrency") - self.RateTime = params.get("RateTime") - self.BaseCurrency = params.get("BaseCurrency") - memeber_set = set(params.keys()) - for name, value in vars(self).items(): - if name in memeber_set: - memeber_set.remove(name) - if len(memeber_set) > 0: - warnings.warn("%s fileds are useless." % ",".join(memeber_set)) - - - -class QueryExchangerateResult(AbstractModel): - """查询汇率结果 +class QueryFlexSettlementOrderListRequest(AbstractModel): + """QueryFlexSettlementOrderList请求参数结构体 """ def __init__(self): r""" - :param Code: 错误码 - :type Code: str - :param Data: 查询汇率数据数组 - :type Data: list of QueryExchangerateData + :param PayeeId: 收款用户ID + :type PayeeId: str + :param StartTime: 开始时间,格式"yyyy-MM-dd hh:mm:ss" + :type StartTime: str + :param EndTime: 结束时间,格式"yyyy-MM-dd hh:mm:ss" + :type EndTime: str + :param PageNumber: 分页 + :type PageNumber: :class:`tencentcloud.cpdp.v20190820.models.Paging` """ - self.Code = None - self.Data = None + self.PayeeId = None + self.StartTime = None + self.EndTime = None + self.PageNumber = None def _deserialize(self, params): - self.Code = params.get("Code") - if params.get("Data") is not None: - self.Data = [] - for item in params.get("Data"): - obj = QueryExchangerateData() - obj._deserialize(item) - self.Data.append(obj) + self.PayeeId = params.get("PayeeId") + self.StartTime = params.get("StartTime") + self.EndTime = params.get("EndTime") + if params.get("PageNumber") is not None: + self.PageNumber = Paging() + self.PageNumber._deserialize(params.get("PageNumber")) memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: @@ -14911,38 +16679,36 @@ def _deserialize(self, params): -class QueryExternalAccountBookResult(AbstractModel): - """查询第三方电子记账本余额返回值 +class QueryFlexSettlementOrderListResponse(AbstractModel): + """QueryFlexSettlementOrderList返回参数结构体 """ def __init__(self): r""" - :param ChannelAccountBookId: 渠道记账本ID - :type ChannelAccountBookId: str - :param AvailableBalance: 可用余额。 -注意:此字段可能返回 null,表示取不到有效值。 - :type AvailableBalance: str - :param CollectMoneyAccountInfo: 电子记账本对外收款的账户信息。为JSON格式字符串(成功状态下返回)。详情见附录-复杂类型。 + :param ErrCode: 错误码。SUCCESS为成功,其他为失败 + :type ErrCode: str + :param ErrMessage: 错误消息 + :type ErrMessage: str + :param Result: 返回结果 注意:此字段可能返回 null,表示取不到有效值。 - :type CollectMoneyAccountInfo: str + :type Result: :class:`tencentcloud.cpdp.v20190820.models.SettlementOrders` + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str """ - self.ChannelAccountBookId = None - self.AvailableBalance = None - self.CollectMoneyAccountInfo = None + self.ErrCode = None + self.ErrMessage = None + self.Result = None + self.RequestId = None def _deserialize(self, params): - self.ChannelAccountBookId = params.get("ChannelAccountBookId") - self.AvailableBalance = params.get("AvailableBalance") - self.CollectMoneyAccountInfo = params.get("CollectMoneyAccountInfo") - memeber_set = set(params.keys()) - for name, value in vars(self).items(): - if name in memeber_set: - memeber_set.remove(name) - if len(memeber_set) > 0: - warnings.warn("%s fileds are useless." % ",".join(memeber_set)) - + self.ErrCode = params.get("ErrCode") + self.ErrMessage = params.get("ErrMessage") + if params.get("Result") is not None: + self.Result = SettlementOrders() + self.Result._deserialize(params.get("Result")) + self.RequestId = params.get("RequestId") class QueryFundsTransactionDetailsRequest(AbstractModel): @@ -22125,6 +23891,115 @@ def _deserialize(self, params): +class SettlementOrderResult(AbstractModel): + """结算订单结果 + + """ + + def __init__(self): + r""" + :param IncomeType: 收入类型 +LABOR:劳务所得 +OCCASION:偶然所得 + :type IncomeType: str + :param AmountBeforeTax: 税前金额 + :type AmountBeforeTax: str + :param AmountAfterTax: 税后金额 +注意:此字段可能返回 null,表示取不到有效值。 + :type AmountAfterTax: str + :param Tax: 税金 +注意:此字段可能返回 null,表示取不到有效值。 + :type Tax: str + :param OutOrderId: 外部订单ID + :type OutOrderId: str + :param OrderId: 订单ID + :type OrderId: str + :param InitiateTime: 发起时间 + :type InitiateTime: str + :param FinishTime: 完成时间 +注意:此字段可能返回 null,表示取不到有效值。 + :type FinishTime: str + :param Status: 状态 +ACCEPTED:已受理 +ACCOUNTED:已记账 +SUCCEED:已成功 +FAILED:已失败 + :type Status: str + :param StatusDesc: 状态描述 + :type StatusDesc: str + :param Remark: 备注 +注意:此字段可能返回 null,表示取不到有效值。 + :type Remark: str + """ + self.IncomeType = None + self.AmountBeforeTax = None + self.AmountAfterTax = None + self.Tax = None + self.OutOrderId = None + self.OrderId = None + self.InitiateTime = None + self.FinishTime = None + self.Status = None + self.StatusDesc = None + self.Remark = None + + + def _deserialize(self, params): + self.IncomeType = params.get("IncomeType") + self.AmountBeforeTax = params.get("AmountBeforeTax") + self.AmountAfterTax = params.get("AmountAfterTax") + self.Tax = params.get("Tax") + self.OutOrderId = params.get("OutOrderId") + self.OrderId = params.get("OrderId") + self.InitiateTime = params.get("InitiateTime") + self.FinishTime = params.get("FinishTime") + self.Status = params.get("Status") + self.StatusDesc = params.get("StatusDesc") + self.Remark = params.get("Remark") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class SettlementOrders(AbstractModel): + """结算订单列表 + + """ + + def __init__(self): + r""" + :param List: 列表 +注意:此字段可能返回 null,表示取不到有效值。 + :type List: list of SettlementOrderResult + :param Count: 总数 +注意:此字段可能返回 null,表示取不到有效值。 + :type Count: int + """ + self.List = None + self.Count = None + + + def _deserialize(self, params): + if params.get("List") is not None: + self.List = [] + for item in params.get("List"): + obj = SettlementOrderResult() + obj._deserialize(item) + self.List.append(obj) + self.Count = params.get("Count") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + class SupportBankInfo(AbstractModel): """支持的银行信息 diff --git a/tencentcloud/cvm/v20170312/errorcodes.py b/tencentcloud/cvm/v20170312/errorcodes.py index e5c4e2adc..9a1981c47 100644 --- a/tencentcloud/cvm/v20170312/errorcodes.py +++ b/tencentcloud/cvm/v20170312/errorcodes.py @@ -440,6 +440,9 @@ # 参数值必须为开启DHCP的VPC INVALIDPARAMETERVALUE_MUSTDHCPENABLEDVPC = 'InvalidParameterValue.MustDhcpEnabledVpc' +# 子网不属于该cdc集群。 +INVALIDPARAMETERVALUE_NOTCDCSUBNET = 'InvalidParameterValue.NotCdcSubnet' + # 不支持的操作。 INVALIDPARAMETERVALUE_NOTSUPPORTED = 'InvalidParameterValue.NotSupported' diff --git a/tencentcloud/dlc/v20210125/models.py b/tencentcloud/dlc/v20210125/models.py index f673062ab..634c880c9 100644 --- a/tencentcloud/dlc/v20210125/models.py +++ b/tencentcloud/dlc/v20210125/models.py @@ -1891,16 +1891,20 @@ class DescribeSparkAppTasksResponse(AbstractModel): def __init__(self): r""" - :param Tasks: 任务列表 + :param Tasks: 任务结果(该字段已废弃) 注意:此字段可能返回 null,表示取不到有效值。 :type Tasks: :class:`tencentcloud.dlc.v20210125.models.TaskResponseInfo` :param TotalCount: 任务总数 :type TotalCount: int + :param SparkAppTasks: 任务结果列表 +注意:此字段可能返回 null,表示取不到有效值。 + :type SparkAppTasks: list of TaskResponseInfo :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str """ self.Tasks = None self.TotalCount = None + self.SparkAppTasks = None self.RequestId = None @@ -1909,6 +1913,12 @@ def _deserialize(self, params): self.Tasks = TaskResponseInfo() self.Tasks._deserialize(params.get("Tasks")) self.TotalCount = params.get("TotalCount") + if params.get("SparkAppTasks") is not None: + self.SparkAppTasks = [] + for item in params.get("SparkAppTasks"): + obj = TaskResponseInfo() + obj._deserialize(item) + self.SparkAppTasks.append(obj) self.RequestId = params.get("RequestId") diff --git a/tencentcloud/ess/v20201111/models.py b/tencentcloud/ess/v20201111/models.py index 3cd0233ac..f784227bc 100644 --- a/tencentcloud/ess/v20201111/models.py +++ b/tencentcloud/ess/v20201111/models.py @@ -894,7 +894,7 @@ def __init__(self): :type Agent: :class:`tencentcloud.ess.v20201111.models.Agent` :param GenerateSource: 暂未开放 :type GenerateSource: int - :param ContentType: 查询内容:0-模版列表及详情(默认),1-仅模版列表 + :param ContentType: 查询内容:0-模板列表及详情(默认),1-仅模板列表 :type ContentType: int """ self.Operator = None diff --git a/tencentcloud/mongodb/v20190725/models.py b/tencentcloud/mongodb/v20190725/models.py index d09b0c470..14a3c9079 100644 --- a/tencentcloud/mongodb/v20190725/models.py +++ b/tencentcloud/mongodb/v20190725/models.py @@ -3360,10 +3360,13 @@ def __init__(self): :type Zone: str :param SpecItems: 售卖规格信息 :type SpecItems: list of SpecItem + :param SupportMultiAZ: 是否支持跨可用区部署 1-支持,0-不支持 + :type SupportMultiAZ: int """ self.Region = None self.Zone = None self.SpecItems = None + self.SupportMultiAZ = None def _deserialize(self, params): @@ -3375,6 +3378,7 @@ def _deserialize(self, params): obj = SpecItem() obj._deserialize(item) self.SpecItems.append(obj) + self.SupportMultiAZ = params.get("SupportMultiAZ") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: diff --git a/tencentcloud/soe/v20180724/models.py b/tencentcloud/soe/v20180724/models.py index 81e133304..ee51af0f4 100644 --- a/tencentcloud/soe/v20180724/models.py +++ b/tencentcloud/soe/v20180724/models.py @@ -295,7 +295,7 @@ def __init__(self): :param Words: 详细发音评估结果 注意:此字段可能返回 null,表示取不到有效值。 :type Words: list of WordRsp - :param SuggestedScore: 建议评分,取值范围[0,100],评分方式为建议评分 = 准确度(PronAccuracyfloat)× 完整度(PronCompletionfloat)×(2 - 完整度(PronCompletionfloat)),如若评分策略不符合请参考Words数组中的详细分数自定义评分逻辑。 + :param SuggestedScore: 建议评分,取值范围[0,100],评分方式为建议评分 = 准确度(PronAccuracy)× 完整度(PronCompletion)×(2 - 完整度(PronCompletion)),如若评分策略不符合请参考Words数组中的详细分数自定义评分逻辑。 :type SuggestedScore: float """ self.Keyword = None @@ -518,7 +518,7 @@ def __init__(self): :type SentenceInfoSet: list of SentenceInfo :param Status: 评估 session 状态,“Evaluating":评估中、"Failed":评估失败、"Finished":评估完成 :type Status: str - :param SuggestedScore: 建议评分,取值范围[0,100],评分方式为建议评分 = 准确度(PronAccuracyfloat)× 完整度(PronCompletionfloat)×(2 - 完整度(PronCompletionfloat)),如若评分策略不符合请参考Words数组中的详细分数自定义评分逻辑。 + :param SuggestedScore: 建议评分,取值范围[0,100],评分方式为建议评分 = 准确度(PronAccuracy)× 完整度(PronCompletion)×(2 - 完整度(PronCompletion)),如若评分策略不符合请参考Words数组中的详细分数自定义评分逻辑。 :type SuggestedScore: float :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 :type RequestId: str diff --git a/tencentcloud/sqlserver/v20180328/models.py b/tencentcloud/sqlserver/v20180328/models.py index 1ceaccc17..cb4b2aa2b 100644 --- a/tencentcloud/sqlserver/v20180328/models.py +++ b/tencentcloud/sqlserver/v20180328/models.py @@ -7192,14 +7192,22 @@ def __init__(self): :type InstanceId: str :param BackupNames: 待删除的备份名称,备份名称可通过DescribeBackups接口的FileName字段获得。单次请求批量删除备份数不能超过10个。 :type BackupNames: list of str + :param StartTime: 批量删除手动备份起始时间 + :type StartTime: str + :param EndTime: 批量删除手动备份截止时间 + :type EndTime: str """ self.InstanceId = None self.BackupNames = None + self.StartTime = None + self.EndTime = None def _deserialize(self, params): self.InstanceId = params.get("InstanceId") self.BackupNames = params.get("BackupNames") + self.StartTime = params.get("StartTime") + self.EndTime = params.get("EndTime") memeber_set = set(params.keys()) for name, value in vars(self).items(): if name in memeber_set: diff --git a/tencentcloud/tan/__init__.py b/tencentcloud/tan/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tencentcloud/tan/v20220420/__init__.py b/tencentcloud/tan/v20220420/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tencentcloud/tan/v20220420/errorcodes.py b/tencentcloud/tan/v20220420/errorcodes.py new file mode 100644 index 000000000..80b73bfe7 --- /dev/null +++ b/tencentcloud/tan/v20220420/errorcodes.py @@ -0,0 +1,81 @@ +# -*- coding: utf8 -*- +# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +# CAM签名/鉴权错误。 +AUTHFAILURE = 'AuthFailure' + +# DryRun 操作,代表请求将会是成功的,只是多传了 DryRun 参数。 +DRYRUNOPERATION = 'DryRunOperation' + +# 操作失败。 +FAILEDOPERATION = 'FailedOperation' + +# 内部错误。 +INTERNALERROR = 'InternalError' + +# 参数错误。 +INVALIDPARAMETER = 'InvalidParameter' + +# 分组名称已存在。 +INVALIDPARAMETER_GROUPNAMEEXISTED = 'InvalidParameter.GroupNameExisted' + +# 记录超出限制。 +INVALIDPARAMETER_RECORDEXCEEDSLIMIT = 'InvalidParameter.RecordExceedsLimit' + +# 记录参数验证不通过。 +INVALIDPARAMETER_RECORDPARAMETERCHECKFAIL = 'InvalidParameter.RecordParameterCheckFail' + +# 记录参数解析不通过。 +INVALIDPARAMETER_RECORDPARAMETERPARSEFAIL = 'InvalidParameter.RecordParameterParseFail' + +# 参数取值错误。 +INVALIDPARAMETERVALUE = 'InvalidParameterValue' + +# 超过配额限制。 +LIMITEXCEEDED = 'LimitExceeded' + +# 缺少参数错误。 +MISSINGPARAMETER = 'MissingParameter' + +# 操作被拒绝。 +OPERATIONDENIED = 'OperationDenied' + +# 请求的次数超过了频率限制。 +REQUESTLIMITEXCEEDED = 'RequestLimitExceeded' + +# 资源被占用。 +RESOURCEINUSE = 'ResourceInUse' + +# 资源不足。 +RESOURCEINSUFFICIENT = 'ResourceInsufficient' + +# 资源不存在。 +RESOURCENOTFOUND = 'ResourceNotFound' + +# 资源不可用。 +RESOURCEUNAVAILABLE = 'ResourceUnavailable' + +# 资源售罄。 +RESOURCESSOLDOUT = 'ResourcesSoldOut' + +# 未授权操作。 +UNAUTHORIZEDOPERATION = 'UnauthorizedOperation' + +# 未知参数错误。 +UNKNOWNPARAMETER = 'UnknownParameter' + +# 操作不支持。 +UNSUPPORTEDOPERATION = 'UnsupportedOperation' diff --git a/tencentcloud/tan/v20220420/models.py b/tencentcloud/tan/v20220420/models.py new file mode 100644 index 000000000..0c2f55253 --- /dev/null +++ b/tencentcloud/tan/v20220420/models.py @@ -0,0 +1,67 @@ +# -*- coding: utf8 -*- +# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import warnings + +from tencentcloud.common.abstract_model import AbstractModel + + +class CreateBlockNodeRecordsRequest(AbstractModel): + """CreateBlockNodeRecords请求参数结构体 + + """ + + def __init__(self): + r""" + :param GroupId: 盘查实例id + :type GroupId: str + :param NodeId: 节点id + :type NodeId: str + :param Records: 节点记录-json + :type Records: str + """ + self.GroupId = None + self.NodeId = None + self.Records = None + + + def _deserialize(self, params): + self.GroupId = params.get("GroupId") + self.NodeId = params.get("NodeId") + self.Records = params.get("Records") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class CreateBlockNodeRecordsResponse(AbstractModel): + """CreateBlockNodeRecords返回参数结构体 + + """ + + def __init__(self): + r""" + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.RequestId = None + + + def _deserialize(self, params): + self.RequestId = params.get("RequestId") \ No newline at end of file diff --git a/tencentcloud/tan/v20220420/tan_client.py b/tencentcloud/tan/v20220420/tan_client.py new file mode 100644 index 000000000..c5e33d1b1 --- /dev/null +++ b/tencentcloud/tan/v20220420/tan_client.py @@ -0,0 +1,55 @@ +# -*- coding: utf8 -*- +# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import json + +from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException +from tencentcloud.common.abstract_client import AbstractClient +from tencentcloud.tan.v20220420 import models + + +class TanClient(AbstractClient): + _apiVersion = '2022-04-20' + _endpoint = 'tan.tencentcloudapi.com' + _service = 'tan' + + + def CreateBlockNodeRecords(self, request): + """创建节点记录 + + :param request: Request instance for CreateBlockNodeRecords. + :type request: :class:`tencentcloud.tan.v20220420.models.CreateBlockNodeRecordsRequest` + :rtype: :class:`tencentcloud.tan.v20220420.models.CreateBlockNodeRecordsResponse` + + """ + try: + params = request._serialize() + headers = request.headers + body = self.call("CreateBlockNodeRecords", params, headers=headers) + response = json.loads(body) + if "Error" not in response["Response"]: + model = models.CreateBlockNodeRecordsResponse() + model._deserialize(response["Response"]) + return model + else: + code = response["Response"]["Error"]["Code"] + message = response["Response"]["Error"]["Message"] + reqid = response["Response"]["RequestId"] + raise TencentCloudSDKException(code, message, reqid) + except Exception as e: + if isinstance(e, TencentCloudSDKException): + raise + else: + raise TencentCloudSDKException(e.message, e.message) \ No newline at end of file diff --git a/tencentcloud/teo/v20220106/errorcodes.py b/tencentcloud/teo/v20220106/errorcodes.py index f9f8c6a3b..a1fcb767d 100644 --- a/tencentcloud/teo/v20220106/errorcodes.py +++ b/tencentcloud/teo/v20220106/errorcodes.py @@ -56,6 +56,9 @@ # 证书信息错误。 INVALIDPARAMETER_INVALIDCERTINFO = 'InvalidParameter.InvalidCertInfo' +# 无效的请求头header。 +INVALIDPARAMETER_INVALIDREQUESTHEADERNAME = 'InvalidParameter.InvalidRequestHeaderName' + # 参数错误。 INVALIDPARAMETER_PARAMETERERROR = 'InvalidParameter.ParameterError' diff --git a/tencentcloud/trtc/v20190722/models.py b/tencentcloud/trtc/v20190722/models.py index 4d76665c6..999052ba8 100644 --- a/tencentcloud/trtc/v20190722/models.py +++ b/tencentcloud/trtc/v20190722/models.py @@ -839,6 +839,72 @@ def _deserialize(self, params): self.RequestId = params.get("RequestId") +class DescribeExternalTrtcMeasureRequest(AbstractModel): + """DescribeExternalTrtcMeasure请求参数结构体 + + """ + + def __init__(self): + r""" + :param StartTime: 查询开始日期。 + :type StartTime: str + :param EndTime: 查询结束日期。 + :type EndTime: str + :param SdkAppId: 对应的应用。如果没有这个参数,表示获取用户名下全部实时音视频应用的汇总。 + :type SdkAppId: int + """ + self.StartTime = None + self.EndTime = None + self.SdkAppId = None + + + def _deserialize(self, params): + self.StartTime = params.get("StartTime") + self.EndTime = params.get("EndTime") + self.SdkAppId = params.get("SdkAppId") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class DescribeExternalTrtcMeasureResponse(AbstractModel): + """DescribeExternalTrtcMeasure返回参数结构体 + + """ + + def __init__(self): + r""" + :param SdkAppIdTrtrTimeUsages: 每个SdkAppId的时长使用信息 + :type SdkAppIdTrtrTimeUsages: list of SdkAppIdNewTrtcTimeUsage + :param AnchorUsageMode: 主播的用量统计方式。取值"InRoomTime":房间时长,"SubscribeTime":"订阅时长","Bandwidth":带宽 + :type AnchorUsageMode: str + :param AudienceUsageMode: 观众的用量统计方式。取值"InRoomTime":在房间时长,"SubscribeTime":"订阅时长","Bandwidth":带宽,"MergeWithAnchor":"不区分麦上麦下" + :type AudienceUsageMode: str + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.SdkAppIdTrtrTimeUsages = None + self.AnchorUsageMode = None + self.AudienceUsageMode = None + self.RequestId = None + + + def _deserialize(self, params): + if params.get("SdkAppIdTrtrTimeUsages") is not None: + self.SdkAppIdTrtrTimeUsages = [] + for item in params.get("SdkAppIdTrtrTimeUsages"): + obj = SdkAppIdNewTrtcTimeUsage() + obj._deserialize(item) + self.SdkAppIdTrtrTimeUsages.append(obj) + self.AnchorUsageMode = params.get("AnchorUsageMode") + self.AudienceUsageMode = params.get("AudienceUsageMode") + self.RequestId = params.get("RequestId") + + class DescribeHistoryScaleRequest(AbstractModel): """DescribeHistoryScale请求参数结构体 @@ -1550,6 +1616,56 @@ def _deserialize(self, params): +class MeasureTrtcMcuExternalRequest(AbstractModel): + """MeasureTrtcMcuExternal请求参数结构体 + + """ + + def __init__(self): + r""" + :param StartTime: 查询开始时间,格式为YYYY-MM-DD。 + :type StartTime: str + :param EndTime: 查询结束时间,格式为YYYY-MM-DD。 +单次查询统计区间最多不能超过2天。 + :type EndTime: str + :param SdkAppId: 应用ID,可不传。传应用ID时返回的是该应用的用量,不传时返回多个应用的合计值。 + :type SdkAppId: int + """ + self.StartTime = None + self.EndTime = None + self.SdkAppId = None + + + def _deserialize(self, params): + self.StartTime = params.get("StartTime") + self.EndTime = params.get("EndTime") + self.SdkAppId = params.get("SdkAppId") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + +class MeasureTrtcMcuExternalResponse(AbstractModel): + """MeasureTrtcMcuExternal返回参数结构体 + + """ + + def __init__(self): + r""" + :param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + :type RequestId: str + """ + self.RequestId = None + + + def _deserialize(self, params): + self.RequestId = params.get("RequestId") + + class MixLayout(AbstractModel): """用户自定义混流布局参数列表。 @@ -2372,6 +2488,48 @@ def _deserialize(self, params): +class SdkAppIdNewTrtcTimeUsage(AbstractModel): + """SdkAppId级别实时音视频的用量数据 + + """ + + def __init__(self): + r""" + :param SdkAppId: SdkAppId的值。 + :type SdkAppId: str + :param TrtcTimeUsages: 统计的时间点数据。 + :type TrtcTimeUsages: list of TrtcTimeNewUsage + :param AudienceTrtcTimeUsages: 统计的麦下用量的时间点数据。 + :type AudienceTrtcTimeUsages: list of TrtcTimeNewUsage + """ + self.SdkAppId = None + self.TrtcTimeUsages = None + self.AudienceTrtcTimeUsages = None + + + def _deserialize(self, params): + self.SdkAppId = params.get("SdkAppId") + if params.get("TrtcTimeUsages") is not None: + self.TrtcTimeUsages = [] + for item in params.get("TrtcTimeUsages"): + obj = TrtcTimeNewUsage() + obj._deserialize(item) + self.TrtcTimeUsages.append(obj) + if params.get("AudienceTrtcTimeUsages") is not None: + self.AudienceTrtcTimeUsages = [] + for item in params.get("AudienceTrtcTimeUsages"): + obj = TrtcTimeNewUsage() + obj._deserialize(item) + self.AudienceTrtcTimeUsages.append(obj) + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + class SdkAppIdRecordUsage(AbstractModel): """SdkAppId级别录制时长数据。 @@ -2904,6 +3062,66 @@ def _deserialize(self, params): +class TrtcTimeNewUsage(AbstractModel): + """实时音视频用量的某一时间段的统计信息. + + """ + + def __init__(self): + r""" + :param TimeKey: 时间点。 + :type TimeKey: str + :param VoiceUserNum: 通话人数。仅供参考。在线人数以仪表盘查询结果为准。 + :type VoiceUserNum: int + :param VideoTime: 音视频通话时长。单位:秒。 + :type VideoTime: int + :param Class1VideoTime: 标清视频通话时长。单位:秒。 + :type Class1VideoTime: int + :param Class2VideoTime: 高清视频通话时长。单位:秒。 + :type Class2VideoTime: int + :param Class3VideoTime: 超高清视频通话时长。单位:秒。 + :type Class3VideoTime: int + :param AudioTime: 音频通话时长。单位:秒。 + :type AudioTime: int + :param Bandwidth: 带宽。单位:Mbps。 + :type Bandwidth: float + :param Video2KTime: 2k视频通话时长。单位:秒。 + :type Video2KTime: int + :param Video4KTime: 4k视频通话时长。单位:秒。 + :type Video4KTime: int + """ + self.TimeKey = None + self.VoiceUserNum = None + self.VideoTime = None + self.Class1VideoTime = None + self.Class2VideoTime = None + self.Class3VideoTime = None + self.AudioTime = None + self.Bandwidth = None + self.Video2KTime = None + self.Video4KTime = None + + + def _deserialize(self, params): + self.TimeKey = params.get("TimeKey") + self.VoiceUserNum = params.get("VoiceUserNum") + self.VideoTime = params.get("VideoTime") + self.Class1VideoTime = params.get("Class1VideoTime") + self.Class2VideoTime = params.get("Class2VideoTime") + self.Class3VideoTime = params.get("Class3VideoTime") + self.AudioTime = params.get("AudioTime") + self.Bandwidth = params.get("Bandwidth") + self.Video2KTime = params.get("Video2KTime") + self.Video4KTime = params.get("Video4KTime") + memeber_set = set(params.keys()) + for name, value in vars(self).items(): + if name in memeber_set: + memeber_set.remove(name) + if len(memeber_set) > 0: + warnings.warn("%s fileds are useless." % ",".join(memeber_set)) + + + class UserInformation(AbstractModel): """用户信息,包括用户进房时间,退房时间等 diff --git a/tencentcloud/trtc/v20190722/trtc_client.py b/tencentcloud/trtc/v20190722/trtc_client.py index 1bb5e37d0..0cc98752a 100644 --- a/tencentcloud/trtc/v20190722/trtc_client.py +++ b/tencentcloud/trtc/v20190722/trtc_client.py @@ -299,6 +299,35 @@ def DescribeDetailEvent(self, request): raise TencentCloudSDKException(e.message, e.message) + def DescribeExternalTrtcMeasure(self, request): + """获取Trtc的用量统计数据。走计费渠道二期 只允许查两天的数据 + + :param request: Request instance for DescribeExternalTrtcMeasure. + :type request: :class:`tencentcloud.trtc.v20190722.models.DescribeExternalTrtcMeasureRequest` + :rtype: :class:`tencentcloud.trtc.v20190722.models.DescribeExternalTrtcMeasureResponse` + + """ + try: + params = request._serialize() + headers = request.headers + body = self.call("DescribeExternalTrtcMeasure", params, headers=headers) + response = json.loads(body) + if "Error" not in response["Response"]: + model = models.DescribeExternalTrtcMeasureResponse() + model._deserialize(response["Response"]) + return model + else: + code = response["Response"]["Error"]["Code"] + message = response["Response"]["Error"]["Message"] + reqid = response["Response"]["RequestId"] + raise TencentCloudSDKException(code, message, reqid) + except Exception as e: + if isinstance(e, TencentCloudSDKException): + raise + else: + raise TencentCloudSDKException(e.message, e.message) + + def DescribeHistoryScale(self, request): """可查询sdkqppid 每天的房间数和用户数,每分钟1次,可查询最近14天的数据。当天未结束,无法查到当天的房间数与用户数。 @@ -542,6 +571,39 @@ def DismissRoomByStrRoomId(self, request): raise TencentCloudSDKException(e.message, e.message) + def MeasureTrtcMcuExternal(self, request): + """查询旁路转码计费时长。 + - 查询时间小于等于1天时,返回每5分钟粒度的数据;查询时间大于1天时,返回按天汇总的数据。 + - 单次查询统计区间最多不能超过2天。 + - 若查询当天用量,由于统计延迟等原因,返回数据可能不够准确。 + - 日结后付费将于次日上午推送账单,建议次日上午9点以后再来查询前一天的用量。 + + :param request: Request instance for MeasureTrtcMcuExternal. + :type request: :class:`tencentcloud.trtc.v20190722.models.MeasureTrtcMcuExternalRequest` + :rtype: :class:`tencentcloud.trtc.v20190722.models.MeasureTrtcMcuExternalResponse` + + """ + try: + params = request._serialize() + headers = request.headers + body = self.call("MeasureTrtcMcuExternal", params, headers=headers) + response = json.loads(body) + if "Error" not in response["Response"]: + model = models.MeasureTrtcMcuExternalResponse() + model._deserialize(response["Response"]) + return model + else: + code = response["Response"]["Error"]["Code"] + message = response["Response"]["Error"]["Message"] + reqid = response["Response"]["RequestId"] + raise TencentCloudSDKException(code, message, reqid) + except Exception as e: + if isinstance(e, TencentCloudSDKException): + raise + else: + raise TencentCloudSDKException(e.message, e.message) + + def ModifyCloudRecording(self, request): """成功开启录制后,可以使用此接口来更新录制任务。仅在录制任务进行时有效,录制退出后更新将会返回错误。更新操作是全量覆盖,并不是增量更新的模式,也就是说每次更新都需要携带全量的信息。 diff --git a/tencentcloud/tts/v20190823/models.py b/tencentcloud/tts/v20190823/models.py index fe9e6b88e..e6e9ea6a0 100644 --- a/tencentcloud/tts/v20190823/models.py +++ b/tencentcloud/tts/v20190823/models.py @@ -35,7 +35,7 @@ def __init__(self): :type Speed: float :param ProjectId: 项目id,用户自定义,默认为0。 :type ProjectId: int - :param VoiceType: 标准音色
  • 10510000-智逍遥,旁对白阅读风格男声
  • 1001-智瑜,情感女声
  • 1002-智聆,通用女声
  • 1003-智美,客服女声
  • 1004-智云,通用男声
  • 1005-智莉,通用女声
  • 1007-智娜,客服女声
  • 1008-智琪,客服女声
  • 1009-智芸,知性女声
  • 1010-智华,通用男声
  • 1017-智蓉,情感女声
  • 1018-智靖,情感男声
  • 1050-WeJack,英文男声
  • 1051-WeRose,英文女声
  • 精品音色
    精品音色拟真度更高,价格不同于标准音色,查看[购买指南](https://cloud.tencent.com/product/tts/pricing)
  • 100510000-智逍遥,旁对白阅读风格男声(精品)
  • 101001-智瑜,情感女声(精品)
  • 101002-智聆,通用女声(精品)
  • 101003-智美,客服女声(精品)
  • 101004-智云,通用男声(精品)
  • 101005-智莉,通用女声(精品)
  • 101006-智言,助手女声
  • 101007-智娜,客服女声(精品)
  • 101008-智琪,客服女声(精品)
  • 101009-智芸,知性女声(精品)
  • 101010-智华,通用男声(精品)
  • 101011-智燕,新闻女声
  • 101012-智丹,新闻女声
  • 101013-智辉,新闻男声
  • 101014-智宁,新闻男声
  • 101015-智萌,男童声
  • 101016-智甜,女童声
  • 101017-智蓉,情感女声(精品)
  • 101018-智靖,情感男声(精品)
  • 101019-智彤,粤语女声
  • 101050-WeJack,英文男声(精品)
  • 101051-WeRose,英文女声(精品)
  • + :param VoiceType: 标准音色
  • 10510000-智逍遥,旁对白阅读风格男声
  • 1001-智瑜,情感女声
  • 1002-智聆,通用女声
  • 1003-智美,客服女声
  • 1004-智云,通用男声
  • 1005-智莉,通用女声
  • 1007-智娜,客服女声
  • 1008-智琪,客服女声
  • 1009-智芸,知性女声
  • 1010-智华,通用男声
  • 1017-智蓉,情感女声
  • 1018-智靖,情感男声
  • 1050-WeJack,英文男声
  • 1051-WeRose,英文女声
  • 精品音色
    精品音色拟真度更高,价格不同于标准音色,查看[购买指南](https://cloud.tencent.com/document/product/1073/34112)
  • 100510000-智逍遥,旁对白阅读风格男声(精品)
  • 101001-智瑜,情感女声(精品)
  • 101002-智聆,通用女声(精品)
  • 101003-智美,客服女声(精品)
  • 101004-智云,通用男声(精品)
  • 101005-智莉,通用女声(精品)
  • 101006-智言,助手女声
  • 101007-智娜,客服女声(精品)
  • 101008-智琪,客服女声(精品)
  • 101009-智芸,知性女声(精品)
  • 101010-智华,通用男声(精品)
  • 101011-智燕,新闻女声
  • 101012-智丹,新闻女声
  • 101013-智辉,新闻男声
  • 101014-智宁,新闻男声
  • 101015-智萌,男童声
  • 101016-智甜,女童声
  • 101017-智蓉,情感女声(精品)
  • 101018-智靖,情感男声(精品)
  • 101019-智彤,粤语女声
  • 101050-WeJack,英文男声(精品)
  • 101051-WeRose,英文女声(精品)
  • :type VoiceType: int :param PrimaryLanguage: 主语言类型:
  • 1-中文(默认)
  • 2-英文
  • :type PrimaryLanguage: int @@ -236,7 +236,7 @@ def __init__(self): :type ProjectId: int :param ModelType: 模型类型,1-默认模型。 :type ModelType: int - :param VoiceType: 标准音色
  • 10510000-智逍遥,阅读男声
  • 1001-智瑜,情感女声
  • 1002-智聆,通用女声
  • 1003-智美,客服女声
  • 1004-智云,通用男声
  • 1005-智莉,通用女声
  • 1007-智娜,客服女声
  • 1008-智琪,客服女声
  • 1009-智芸,知性女声
  • 1010-智华,通用男声
  • 1017-智蓉,情感女声
  • 1018-智靖,情感男声
  • 1050-WeJack,英文男声
  • 1051-WeRose,英文女声
  • 精品音色
    精品音色拟真度更高,价格不同于标准音色,查看[购买指南](https://cloud.tencent.com/product/tts/pricing)
  • 100510000-智逍遥,阅读男声
  • 101001-智瑜,情感女声
  • 101002-智聆,通用女声
  • 101003-智美,客服女声
  • 101004-智云,通用男声
  • 101005-智莉,通用女声
  • 101006-智言,助手女声
  • 101007-智娜,客服女声
  • 101008-智琪,客服女声
  • 101009-智芸,知性女声
  • 101010-智华,通用男声
  • 101011-智燕,新闻女声
  • 101012-智丹,新闻女声
  • 101013-智辉,新闻男声
  • 101014-智宁,新闻男声
  • 101015-智萌,男童声
  • 101016-智甜,女童声
  • 101017-智蓉,情感女声
  • 101018-智靖,情感男声
  • 101019-智彤,粤语女声
  • 101020-智刚,新闻男声
  • 101021-智瑞,新闻男声
  • 101022-智虹,新闻女声
  • 101023-智萱,聊天女声
  • 101024-智皓,聊天男声
  • 101025-智薇,聊天女声
  • 101026-智希,通用女声
  • 101027-智梅,通用女声
  • 101028-智洁,通用女声
  • 101029-智凯,通用男声
  • 101030-智柯,通用男声
  • 101031-智奎,通用男声
  • 101032-智芳,通用女声
  • 101033-智蓓,客服女声
  • 101034-智莲,通用女声
  • 101035-智依,通用女声
  • 101040-智川,四川女声
  • 101050-WeJack,英文男声
  • 101051-WeRose,英文女声
  • + :param VoiceType: 标准音色
  • 10510000-智逍遥,阅读男声
  • 1001-智瑜,情感女声
  • 1002-智聆,通用女声
  • 1003-智美,客服女声
  • 1004-智云,通用男声
  • 1005-智莉,通用女声
  • 1007-智娜,客服女声
  • 1008-智琪,客服女声
  • 1009-智芸,知性女声
  • 1010-智华,通用男声
  • 1017-智蓉,情感女声
  • 1018-智靖,情感男声
  • 1050-WeJack,英文男声
  • 1051-WeRose,英文女声
  • 精品音色
    精品音色拟真度更高,价格不同于标准音色,查看[购买指南](https://cloud.tencent.com/document/product/1073/34112)
  • 100510000-智逍遥,阅读男声
  • 101001-智瑜,情感女声
  • 101002-智聆,通用女声
  • 101003-智美,客服女声
  • 101004-智云,通用男声
  • 101005-智莉,通用女声
  • 101006-智言,助手女声
  • 101007-智娜,客服女声
  • 101008-智琪,客服女声
  • 101009-智芸,知性女声
  • 101010-智华,通用男声
  • 101011-智燕,新闻女声
  • 101012-智丹,新闻女声
  • 101013-智辉,新闻男声
  • 101014-智宁,新闻男声
  • 101015-智萌,男童声
  • 101016-智甜,女童声
  • 101017-智蓉,情感女声
  • 101018-智靖,情感男声
  • 101019-智彤,粤语女声
  • 101020-智刚,新闻男声
  • 101021-智瑞,新闻男声
  • 101022-智虹,新闻女声
  • 101023-智萱,聊天女声
  • 101024-智皓,聊天男声
  • 101025-智薇,聊天女声
  • 101026-智希,通用女声
  • 101027-智梅,通用女声
  • 101028-智洁,通用女声
  • 101029-智凯,通用男声
  • 101030-智柯,通用男声
  • 101031-智奎,通用男声
  • 101032-智芳,通用女声
  • 101033-智蓓,客服女声
  • 101034-智莲,通用女声
  • 101035-智依,通用女声
  • 101040-智川,四川女声
  • 101050-WeJack,英文男声
  • 101051-WeRose,英文女声
  • :type VoiceType: int :param PrimaryLanguage: 主语言类型:
  • 1-中文(默认)
  • 2-英文
  • :type PrimaryLanguage: int diff --git a/tencentcloud/tts/v20190823/tts_client.py b/tencentcloud/tts/v20190823/tts_client.py index 751ffb8b0..3c365d9b7 100644 --- a/tencentcloud/tts/v20190823/tts_client.py +++ b/tencentcloud/tts/v20190823/tts_client.py @@ -36,6 +36,16 @@ def CreateTtsTask(self, request):
  • 支持回调或轮询的方式获取结果,结果获取请参考 长文本语音合成结果查询。
  • 长文本语音合成任务完成后,合成音频结果在服务端可保存24小时
  • +

    + + 长文本合成支持 SSML,语法详见 [SSML 标记语言](https://cloud.tencent.com/document/product/1073/49575),使用时需满足如下使用规范: +
  • 使用 SSML 标签,需置于 speak 闭合标签内部;
  • +
  • 合成文本可包含多组 speak 闭合标签,且无数量限制;
  • +
  • 每个 speak 闭合标签内部,字符数不超过 150 字(标签字符本身不计算在内);
  • +
  • 每个 speak 闭合标签内部,使用 break 标签数目最大为 10 个。如需要使用更多,可拆解到多个 speak 标签中;
  • + +

    + :param request: Request instance for CreateTtsTask. :type request: :class:`tencentcloud.tts.v20190823.models.CreateTtsTaskRequest` :rtype: :class:`tencentcloud.tts.v20190823.models.CreateTtsTaskResponse` @@ -98,6 +108,7 @@ def TextToVoice(self, request): """腾讯云语音合成技术(TTS)可以将任意文本转化为语音,实现让机器和应用张口说话。 腾讯TTS技术可以应用到很多场景,比如,移动APP语音播报新闻;智能设备语音提醒;依靠网上现有节目或少量录音,快速合成明星语音,降低邀约成本;支持车载导航语音合成的个性化语音播报。 内测期间免费使用。 + 基础合成支持 SSML,语法详见 [SSML 标记语言](https://cloud.tencent.com/document/product/1073/49575)。 :param request: Request instance for TextToVoice. :type request: :class:`tencentcloud.tts.v20190823.models.TextToVoiceRequest` diff --git a/tests/unit/test_import.py b/tests/unit/test_import.py index 2550f145a..484640c20 100644 --- a/tests/unit/test_import.py +++ b/tests/unit/test_import.py @@ -864,6 +864,11 @@ def test_import_tag(): from tencentcloud.tag.v20180813 import models +def test_import_tan(): + from tencentcloud.tan.v20220420 import tan_client + from tencentcloud.tan.v20220420 import models + + def test_import_tat(): from tencentcloud.tat.v20201028 import tat_client from tencentcloud.tat.v20201028 import models