tencentcloud-sdk-cpdp 1.0.294 → 1.0.297

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2718,6 +2718,53 @@ module TencentCloud
2718
2718
  end
2719
2719
  end
2720
2720
 
2721
+ # CloseCloudOrder请求参数结构体
2722
+ class CloseCloudOrderRequest < TencentCloud::Common::AbstractModel
2723
+ # @param MidasAppId: 米大师分配的支付主MidasAppId
2724
+ # @type MidasAppId: String
2725
+ # @param UserId: 用户Id,长度不小于5位,仅支持字母和数字的组合
2726
+ # @type UserId: String
2727
+ # @param OutTradeNo: 开发者订单号
2728
+ # @type OutTradeNo: String
2729
+ # @param MidasEnvironment: 环境类型
2730
+ # __release__:生产环境
2731
+ # __sandbox__:沙箱环境
2732
+ # _不填默认为生产环境_
2733
+ # @type MidasEnvironment: String
2734
+
2735
+ attr_accessor :MidasAppId, :UserId, :OutTradeNo, :MidasEnvironment
2736
+
2737
+ def initialize(midasappid=nil, userid=nil, outtradeno=nil, midasenvironment=nil)
2738
+ @MidasAppId = midasappid
2739
+ @UserId = userid
2740
+ @OutTradeNo = outtradeno
2741
+ @MidasEnvironment = midasenvironment
2742
+ end
2743
+
2744
+ def deserialize(params)
2745
+ @MidasAppId = params['MidasAppId']
2746
+ @UserId = params['UserId']
2747
+ @OutTradeNo = params['OutTradeNo']
2748
+ @MidasEnvironment = params['MidasEnvironment']
2749
+ end
2750
+ end
2751
+
2752
+ # CloseCloudOrder返回参数结构体
2753
+ class CloseCloudOrderResponse < TencentCloud::Common::AbstractModel
2754
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2755
+ # @type RequestId: String
2756
+
2757
+ attr_accessor :RequestId
2758
+
2759
+ def initialize(requestid=nil)
2760
+ @RequestId = requestid
2761
+ end
2762
+
2763
+ def deserialize(params)
2764
+ @RequestId = params['RequestId']
2765
+ end
2766
+ end
2767
+
2721
2768
  # CloseOpenBankPaymentOrder请求参数结构体
2722
2769
  class CloseOpenBankPaymentOrderRequest < TencentCloud::Common::AbstractModel
2723
2770
  # @param ChannelMerchantId: 渠道商户ID,云企付平台下发给外部接入平台。
@@ -2846,19 +2893,679 @@ module TencentCloud
2846
2893
  end
2847
2894
  end
2848
2895
 
2849
- # CloseOrder返回参数结构体
2850
- class CloseOrderResponse < TencentCloud::Common::AbstractModel
2851
- # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2852
- # @type RequestId: String
2896
+ # CloseOrder返回参数结构体
2897
+ class CloseOrderResponse < TencentCloud::Common::AbstractModel
2898
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2899
+ # @type RequestId: String
2900
+
2901
+ attr_accessor :RequestId
2902
+
2903
+ def initialize(requestid=nil)
2904
+ @RequestId = requestid
2905
+ end
2906
+
2907
+ def deserialize(params)
2908
+ @RequestId = params['RequestId']
2909
+ end
2910
+ end
2911
+
2912
+ # 附加项信息对象
2913
+ class CloudAttachmentInfo < TencentCloud::Common::AbstractModel
2914
+ # @param AttachmentAmount: 附加项金额。
2915
+ # 附加项的金额(必须是正数,单位:分),代表积分的数量、抵扣的金额、溢价的金额、补贴的金额
2916
+ # @type AttachmentAmount: Integer
2917
+ # @param AttachmentType: 附加项类型。
2918
+ # Add:加项;
2919
+ # Sub:减项;
2920
+ # Point:积分项;
2921
+ # Subsidy:补贴项。
2922
+ # @type AttachmentType: String
2923
+ # @param AttachmentName: 附加项名称。
2924
+ # 当银行作为收单机构可能会对该字段有要求,请向米大师确认。
2925
+ # @type AttachmentName: String
2926
+ # @param AttachmentCode: 附加项编号。
2927
+ # 当银行作为收单机构可能会对该字段有要求,请向米大师确认。
2928
+ # @type AttachmentCode: String
2929
+
2930
+ attr_accessor :AttachmentAmount, :AttachmentType, :AttachmentName, :AttachmentCode
2931
+
2932
+ def initialize(attachmentamount=nil, attachmenttype=nil, attachmentname=nil, attachmentcode=nil)
2933
+ @AttachmentAmount = attachmentamount
2934
+ @AttachmentType = attachmenttype
2935
+ @AttachmentName = attachmentname
2936
+ @AttachmentCode = attachmentcode
2937
+ end
2938
+
2939
+ def deserialize(params)
2940
+ @AttachmentAmount = params['AttachmentAmount']
2941
+ @AttachmentType = params['AttachmentType']
2942
+ @AttachmentName = params['AttachmentName']
2943
+ @AttachmentCode = params['AttachmentCode']
2944
+ end
2945
+ end
2946
+
2947
+ # 渠道方用户信息
2948
+ class CloudChannelExternalUserInfo < TencentCloud::Common::AbstractModel
2949
+ # @param ChannelExternalUserType: 渠道方用户类型,枚举值:
2950
+ # WX_OPENID 微信支付类型
2951
+ # ALIPAY_BUYERID 支付宝支付类型
2952
+ # @type ChannelExternalUserType: String
2953
+ # @param ChannelExternalUserId: 渠道方用户Id
2954
+ # @type ChannelExternalUserId: String
2955
+
2956
+ attr_accessor :ChannelExternalUserType, :ChannelExternalUserId
2957
+
2958
+ def initialize(channelexternalusertype=nil, channelexternaluserid=nil)
2959
+ @ChannelExternalUserType = channelexternalusertype
2960
+ @ChannelExternalUserId = channelexternaluserid
2961
+ end
2962
+
2963
+ def deserialize(params)
2964
+ @ChannelExternalUserType = params['ChannelExternalUserType']
2965
+ @ChannelExternalUserId = params['ChannelExternalUserId']
2966
+ end
2967
+ end
2968
+
2969
+ # 客户端信息
2970
+ class CloudClientInfo < TencentCloud::Common::AbstractModel
2971
+ # @param ClientType: 场景类型。
2972
+ # wechat_ecommerce渠道 - h5支付方式,此字段必填;
2973
+ # 枚举值:
2974
+ # CLIENT_TYPE_UNKNOWN 未知;
2975
+ # CLIENT_TYPE_IOS ios系统;
2976
+ # CLIENT_TYPE_ANDROID 安卓系统;
2977
+ # CLIENT_TYPE_WAP WAP场景;
2978
+ # CLIENT_TYPE_H5 H5场景;
2979
+ # @type ClientType: String
2980
+ # @param AppName: 应用名称。
2981
+ # @type AppName: String
2982
+ # @param AppUrl: 网站URL。
2983
+ # @type AppUrl: String
2984
+ # @param BundleId: IOS平台BundleID。
2985
+ # @type BundleId: String
2986
+ # @param PackageName: Android平台PackageName
2987
+ # @type PackageName: String
2988
+
2989
+ attr_accessor :ClientType, :AppName, :AppUrl, :BundleId, :PackageName
2990
+
2991
+ def initialize(clienttype=nil, appname=nil, appurl=nil, bundleid=nil, packagename=nil)
2992
+ @ClientType = clienttype
2993
+ @AppName = appname
2994
+ @AppUrl = appurl
2995
+ @BundleId = bundleid
2996
+ @PackageName = packagename
2997
+ end
2998
+
2999
+ def deserialize(params)
3000
+ @ClientType = params['ClientType']
3001
+ @AppName = params['AppName']
3002
+ @AppUrl = params['AppUrl']
3003
+ @BundleId = params['BundleId']
3004
+ @PackageName = params['PackageName']
3005
+ end
3006
+ end
3007
+
3008
+ # 第三方渠道数据信息
3009
+ class CloudExternalChannelData < TencentCloud::Common::AbstractModel
3010
+ # @param ExternalChannelDataName: 第三方渠道数据名。
3011
+ # PAYMENT_ORDER_EXTERNAL_REQUEST_DATA: 支付下单请求数据
3012
+ # PAYMENT_ORDER_EXTERNAL_RETURN_DATA: 支付下单返回数据
3013
+ # PAYMENT_ORDER_EXTERNAL_NOTIFY_DATA: 支付通知数据
3014
+ # 注意:此字段可能返回 null,表示取不到有效值。
3015
+ # @type ExternalChannelDataName: String
3016
+ # @param ExternalChannelDataValue: 第三方渠道数据值。
3017
+ # 当ExternalChannelDataType=PAYMENT时,反序列化格式请参考[ExternalChannelPaymentDataValue](https://midas-juxin-next.pages.woa.com/apidocs/external-channel-data/QueryExternalChannelData.html#ExternalChannelPaymentDataValue)
3018
+ # 注意:此字段可能返回 null,表示取不到有效值。
3019
+ # @type ExternalChannelDataValue: String
3020
+
3021
+ attr_accessor :ExternalChannelDataName, :ExternalChannelDataValue
3022
+
3023
+ def initialize(externalchanneldataname=nil, externalchanneldatavalue=nil)
3024
+ @ExternalChannelDataName = externalchanneldataname
3025
+ @ExternalChannelDataValue = externalchanneldatavalue
3026
+ end
3027
+
3028
+ def deserialize(params)
3029
+ @ExternalChannelDataName = params['ExternalChannelDataName']
3030
+ @ExternalChannelDataValue = params['ExternalChannelDataValue']
3031
+ end
3032
+ end
3033
+
3034
+ # 渠道扩展促销信息
3035
+ class CloudExternalPromptGroup < TencentCloud::Common::AbstractModel
3036
+ # @param ChannelName: 渠道名。
3037
+ # 为米大师定义的枚举值:
3038
+ # wechat 微信渠道
3039
+ # @type ChannelName: String
3040
+ # @param ExternalPromptInfoList: 渠道扩展促销信息列表,由各个渠道自行定义。
3041
+ # ChannelName为wechat时,组成为 <Wechat-ExternalPromptInfo>
3042
+ # @type ExternalPromptInfoList: Array
3043
+
3044
+ attr_accessor :ChannelName, :ExternalPromptInfoList
3045
+
3046
+ def initialize(channelname=nil, externalpromptinfolist=nil)
3047
+ @ChannelName = channelname
3048
+ @ExternalPromptInfoList = externalpromptinfolist
3049
+ end
3050
+
3051
+ def deserialize(params)
3052
+ @ChannelName = params['ChannelName']
3053
+ unless params['ExternalPromptInfoList'].nil?
3054
+ @ExternalPromptInfoList = []
3055
+ params['ExternalPromptInfoList'].each do |i|
3056
+ cloudexternalpromptinfo_tmp = CloudExternalPromptInfo.new
3057
+ cloudexternalpromptinfo_tmp.deserialize(i)
3058
+ @ExternalPromptInfoList << cloudexternalpromptinfo_tmp
3059
+ end
3060
+ end
3061
+ end
3062
+ end
3063
+
3064
+ # 渠道扩展促销信息
3065
+ class CloudExternalPromptInfo < TencentCloud::Common::AbstractModel
3066
+ # @param ExternalPromptType: 优惠商品信息类型。
3067
+ # @type ExternalPromptType: String
3068
+ # @param ExternalPromptValue: 优惠商品信息数据。
3069
+ # @type ExternalPromptValue: String
3070
+ # @param ExternalPromptName: 优惠商品名称。
3071
+ # @type ExternalPromptName: String
3072
+
3073
+ attr_accessor :ExternalPromptType, :ExternalPromptValue, :ExternalPromptName
3074
+
3075
+ def initialize(externalprompttype=nil, externalpromptvalue=nil, externalpromptname=nil)
3076
+ @ExternalPromptType = externalprompttype
3077
+ @ExternalPromptValue = externalpromptvalue
3078
+ @ExternalPromptName = externalpromptname
3079
+ end
3080
+
3081
+ def deserialize(params)
3082
+ @ExternalPromptType = params['ExternalPromptType']
3083
+ @ExternalPromptValue = params['ExternalPromptValue']
3084
+ @ExternalPromptName = params['ExternalPromptName']
3085
+ end
3086
+ end
3087
+
3088
+ # 全局支付时间信息
3089
+ class CloudGlobalPayTimeInfo < TencentCloud::Common::AbstractModel
3090
+ # @param StartTimestamp: 订单开始时间。
3091
+ # 不指定时默认为当前时间。
3092
+ # @type StartTimestamp: Integer
3093
+ # @param ExpireTimestamp: 订单结束时间。
3094
+ # 逾期将会拒绝下单。不指定时默认为当前时间的7天后结束。
3095
+ # @type ExpireTimestamp: Integer
3096
+ # @param TimeOffset: 时区。
3097
+ # 不指定时默认为28800,表示北京时间(东八区)。
3098
+ # @type TimeOffset: Integer
3099
+
3100
+ attr_accessor :StartTimestamp, :ExpireTimestamp, :TimeOffset
3101
+
3102
+ def initialize(starttimestamp=nil, expiretimestamp=nil, timeoffset=nil)
3103
+ @StartTimestamp = starttimestamp
3104
+ @ExpireTimestamp = expiretimestamp
3105
+ @TimeOffset = timeoffset
3106
+ end
3107
+
3108
+ def deserialize(params)
3109
+ @StartTimestamp = params['StartTimestamp']
3110
+ @ExpireTimestamp = params['ExpireTimestamp']
3111
+ @TimeOffset = params['TimeOffset']
3112
+ end
3113
+ end
3114
+
3115
+ # 返回订单信息
3116
+ class CloudOrderReturn < TencentCloud::Common::AbstractModel
3117
+ # @param AppId: 米大师分配的支付主MidasAppId
3118
+ # @type AppId: String
3119
+ # @param OutTradeNo: 开发者支付订单号
3120
+ # @type OutTradeNo: String
3121
+ # @param SubOrderList: 调用下单接口传进来的子单列表
3122
+ # 注意:此字段可能返回 null,表示取不到有效值。
3123
+ # @type SubOrderList: Array
3124
+ # @param TransactionId: 调用下单接口获取的米大师交易订单号
3125
+ # @type TransactionId: String
3126
+ # @param UserId: 用户Id
3127
+ # @type UserId: String
3128
+ # @param Channel: 支付渠道
3129
+ # wechat:微信支付
3130
+ # @type Channel: String
3131
+ # @param ProductId: 物品Id
3132
+ # @type ProductId: String
3133
+ # @param Metadata: 发货标识,由开发者在调用下单接口的时候传入
3134
+ # @type Metadata: String
3135
+ # @param CurrencyType: ISO货币代码
3136
+ # @type CurrencyType: String
3137
+ # @param Amt: 支付金额,单位:分
3138
+ # @type Amt: Integer
3139
+ # @param OrderState: 订单状态
3140
+ # 0:初始状态,获取米大师交易订单成功
3141
+ # 1:拉起米大师支付页面成功,用户未支付
3142
+ # 2:用户支付成功,正在发货
3143
+ # 3:用户支付成功,发货失败
3144
+ # 4:用户支付成功,发货成功
3145
+ # 5:关单中
3146
+ # 6:已关单
3147
+ # @type OrderState: String
3148
+ # @param OrderTime: 下单时间,unix时间戳
3149
+ # @type OrderTime: String
3150
+ # @param PayTime: 支付时间,unix时间戳
3151
+ # @type PayTime: String
3152
+ # @param CallBackTime: 支付回调时间,unix时间戳
3153
+ # @type CallBackTime: String
3154
+ # @param ChannelExternalOrderId: 支付机构订单号
3155
+ # @type ChannelExternalOrderId: String
3156
+ # @param ChannelOrderId: 米大师内部渠道订单号
3157
+ # @type ChannelOrderId: String
3158
+ # @param RefundFlag: 是否曾退款
3159
+ # @type RefundFlag: String
3160
+ # @param CashAmt: 用户支付金额
3161
+ # @type CashAmt: String
3162
+ # @param CouponAmt: 抵扣券金额
3163
+ # @type CouponAmt: String
3164
+ # @param ProductName: 商品名称
3165
+ # @type ProductName: String
3166
+ # @param SettleInfo: 结算信息
3167
+ # 注意:此字段可能返回 null,表示取不到有效值。
3168
+ # @type SettleInfo: :class:`Tencentcloud::Cpdp.v20190820.models.CloudSettleInfo`
3169
+ # @param AttachmentInfoList: 附加项信息列表
3170
+ # 注意:此字段可能返回 null,表示取不到有效值。
3171
+ # @type AttachmentInfoList: Array
3172
+ # @param ChannelExternalUserInfoList: 渠道方返回的用户信息列表
3173
+ # 注意:此字段可能返回 null,表示取不到有效值。
3174
+ # @type ChannelExternalUserInfoList: Array
3175
+ # @param ExternalReturnPromptGroupList: 渠道扩展促销列表
3176
+ # 注意:此字段可能返回 null,表示取不到有效值。
3177
+ # @type ExternalReturnPromptGroupList: Array
3178
+ # @param SceneInfo: 场景扩展信息
3179
+ # 注意:此字段可能返回 null,表示取不到有效值。
3180
+ # @type SceneInfo: String
3181
+
3182
+ attr_accessor :AppId, :OutTradeNo, :SubOrderList, :TransactionId, :UserId, :Channel, :ProductId, :Metadata, :CurrencyType, :Amt, :OrderState, :OrderTime, :PayTime, :CallBackTime, :ChannelExternalOrderId, :ChannelOrderId, :RefundFlag, :CashAmt, :CouponAmt, :ProductName, :SettleInfo, :AttachmentInfoList, :ChannelExternalUserInfoList, :ExternalReturnPromptGroupList, :SceneInfo
3183
+
3184
+ def initialize(appid=nil, outtradeno=nil, suborderlist=nil, transactionid=nil, userid=nil, channel=nil, productid=nil, metadata=nil, currencytype=nil, amt=nil, orderstate=nil, ordertime=nil, paytime=nil, callbacktime=nil, channelexternalorderid=nil, channelorderid=nil, refundflag=nil, cashamt=nil, couponamt=nil, productname=nil, settleinfo=nil, attachmentinfolist=nil, channelexternaluserinfolist=nil, externalreturnpromptgrouplist=nil, sceneinfo=nil)
3185
+ @AppId = appid
3186
+ @OutTradeNo = outtradeno
3187
+ @SubOrderList = suborderlist
3188
+ @TransactionId = transactionid
3189
+ @UserId = userid
3190
+ @Channel = channel
3191
+ @ProductId = productid
3192
+ @Metadata = metadata
3193
+ @CurrencyType = currencytype
3194
+ @Amt = amt
3195
+ @OrderState = orderstate
3196
+ @OrderTime = ordertime
3197
+ @PayTime = paytime
3198
+ @CallBackTime = callbacktime
3199
+ @ChannelExternalOrderId = channelexternalorderid
3200
+ @ChannelOrderId = channelorderid
3201
+ @RefundFlag = refundflag
3202
+ @CashAmt = cashamt
3203
+ @CouponAmt = couponamt
3204
+ @ProductName = productname
3205
+ @SettleInfo = settleinfo
3206
+ @AttachmentInfoList = attachmentinfolist
3207
+ @ChannelExternalUserInfoList = channelexternaluserinfolist
3208
+ @ExternalReturnPromptGroupList = externalreturnpromptgrouplist
3209
+ @SceneInfo = sceneinfo
3210
+ end
3211
+
3212
+ def deserialize(params)
3213
+ @AppId = params['AppId']
3214
+ @OutTradeNo = params['OutTradeNo']
3215
+ unless params['SubOrderList'].nil?
3216
+ @SubOrderList = []
3217
+ params['SubOrderList'].each do |i|
3218
+ cloudsuborderreturn_tmp = CloudSubOrderReturn.new
3219
+ cloudsuborderreturn_tmp.deserialize(i)
3220
+ @SubOrderList << cloudsuborderreturn_tmp
3221
+ end
3222
+ end
3223
+ @TransactionId = params['TransactionId']
3224
+ @UserId = params['UserId']
3225
+ @Channel = params['Channel']
3226
+ @ProductId = params['ProductId']
3227
+ @Metadata = params['Metadata']
3228
+ @CurrencyType = params['CurrencyType']
3229
+ @Amt = params['Amt']
3230
+ @OrderState = params['OrderState']
3231
+ @OrderTime = params['OrderTime']
3232
+ @PayTime = params['PayTime']
3233
+ @CallBackTime = params['CallBackTime']
3234
+ @ChannelExternalOrderId = params['ChannelExternalOrderId']
3235
+ @ChannelOrderId = params['ChannelOrderId']
3236
+ @RefundFlag = params['RefundFlag']
3237
+ @CashAmt = params['CashAmt']
3238
+ @CouponAmt = params['CouponAmt']
3239
+ @ProductName = params['ProductName']
3240
+ unless params['SettleInfo'].nil?
3241
+ @SettleInfo = CloudSettleInfo.new
3242
+ @SettleInfo.deserialize(params['SettleInfo'])
3243
+ end
3244
+ unless params['AttachmentInfoList'].nil?
3245
+ @AttachmentInfoList = []
3246
+ params['AttachmentInfoList'].each do |i|
3247
+ cloudattachmentinfo_tmp = CloudAttachmentInfo.new
3248
+ cloudattachmentinfo_tmp.deserialize(i)
3249
+ @AttachmentInfoList << cloudattachmentinfo_tmp
3250
+ end
3251
+ end
3252
+ unless params['ChannelExternalUserInfoList'].nil?
3253
+ @ChannelExternalUserInfoList = []
3254
+ params['ChannelExternalUserInfoList'].each do |i|
3255
+ cloudchannelexternaluserinfo_tmp = CloudChannelExternalUserInfo.new
3256
+ cloudchannelexternaluserinfo_tmp.deserialize(i)
3257
+ @ChannelExternalUserInfoList << cloudchannelexternaluserinfo_tmp
3258
+ end
3259
+ end
3260
+ unless params['ExternalReturnPromptGroupList'].nil?
3261
+ @ExternalReturnPromptGroupList = []
3262
+ params['ExternalReturnPromptGroupList'].each do |i|
3263
+ cloudexternalpromptgroup_tmp = CloudExternalPromptGroup.new
3264
+ cloudexternalpromptgroup_tmp.deserialize(i)
3265
+ @ExternalReturnPromptGroupList << cloudexternalpromptgroup_tmp
3266
+ end
3267
+ end
3268
+ @SceneInfo = params['SceneInfo']
3269
+ end
3270
+ end
3271
+
3272
+ # 结算信息对象
3273
+ class CloudSettleInfo < TencentCloud::Common::AbstractModel
3274
+ # @param NeedToBeConfirmed: 是否需要支付确认。
3275
+ # 0: 不需要支付确认
3276
+ # 1: 需要支付确认
3277
+ # 传1时,需要在支付完成后成功调用了《支付确认》接口,该笔订单才会被清分出去
3278
+ # @type NeedToBeConfirmed: Integer
3279
+ # @param ProfitSharing: 是否指定分账。
3280
+ # 0: 不指定分账
3281
+ # 1: 指定分账
3282
+ # @type ProfitSharing: Integer
3283
+
3284
+ attr_accessor :NeedToBeConfirmed, :ProfitSharing
3285
+
3286
+ def initialize(needtobeconfirmed=nil, profitsharing=nil)
3287
+ @NeedToBeConfirmed = needtobeconfirmed
3288
+ @ProfitSharing = profitsharing
3289
+ end
3290
+
3291
+ def deserialize(params)
3292
+ @NeedToBeConfirmed = params['NeedToBeConfirmed']
3293
+ @ProfitSharing = params['ProfitSharing']
3294
+ end
3295
+ end
3296
+
3297
+ # 门店信息
3298
+ class CloudStoreInfo < TencentCloud::Common::AbstractModel
3299
+ # @param StoreId: 门店ID。
3300
+ # @type StoreId: String
3301
+ # @param StoreName: 门店名称。
3302
+ # @type StoreName: String
3303
+ # @param StoreAddress: 门店地址。
3304
+ # @type StoreAddress: String
3305
+ # @param StoreAreaCode: 门店地区代码。
3306
+ # @type StoreAreaCode: String
3307
+ # @param StoreDeviceId: 设备ID。
3308
+ # wechat_ecommerce渠道 - h5支付方式,此字段必填。
3309
+ # @type StoreDeviceId: String
3310
+
3311
+ attr_accessor :StoreId, :StoreName, :StoreAddress, :StoreAreaCode, :StoreDeviceId
3312
+
3313
+ def initialize(storeid=nil, storename=nil, storeaddress=nil, storeareacode=nil, storedeviceid=nil)
3314
+ @StoreId = storeid
3315
+ @StoreName = storename
3316
+ @StoreAddress = storeaddress
3317
+ @StoreAreaCode = storeareacode
3318
+ @StoreDeviceId = storedeviceid
3319
+ end
3320
+
3321
+ def deserialize(params)
3322
+ @StoreId = params['StoreId']
3323
+ @StoreName = params['StoreName']
3324
+ @StoreAddress = params['StoreAddress']
3325
+ @StoreAreaCode = params['StoreAreaCode']
3326
+ @StoreDeviceId = params['StoreDeviceId']
3327
+ end
3328
+ end
3329
+
3330
+ # 子订单对象
3331
+ class CloudSubOrder < TencentCloud::Common::AbstractModel
3332
+ # @param SubOutTradeNo: 子订单号。
3333
+ # 长度32个字符供参考,部分渠道存在长度更短的情况接入时请联系开发咨询。
3334
+ # @type SubOutTradeNo: String
3335
+ # @param SubAppId: 支付子商户ID。
3336
+ # 米大师计费SubAppId,代表子商户。
3337
+ # @type SubAppId: String
3338
+ # @param ProductName: 商品名称。
3339
+ # 业务自定义的子订单商品名称,无需URL编码,长度限制以具体所接入渠道为准。
3340
+ # @type ProductName: String
3341
+ # @param ProductDetail: 商品详情。
3342
+ # 业务自定义的子订单商品详情,无需URL编码,长度限制以具体所接入渠道为准。
3343
+ # @type ProductDetail: String
3344
+ # @param PlatformIncome: 平台应收。
3345
+ # 子订单平台应收金额,单位:分,需要注意的是Amt = PlatformIncome+SubMchIncome。
3346
+ # @type PlatformIncome: Integer
3347
+ # @param SubMchIncome: 商户应收。
3348
+ # 子订单结算应收金额,单位:分,需要注意的是Amt = PlatformIncome+SubMchIncome。
3349
+ # @type SubMchIncome: Integer
3350
+ # @param Metadata: 透传字段。
3351
+ # 发货标识,由开发者在调用米大师下单接口的 时候下发。
3352
+ # @type Metadata: String
3353
+ # @param Amt: 支付金额。
3354
+ # 子订单支付金额,需要注意的是Amt = PlatformIncome+SubMchIncome。
3355
+ # @type Amt: Integer
3356
+ # @param OriginalAmt: 原始金额。
3357
+ # 子订单原始金额,OriginalAmt>=Amt。
3358
+ # @type OriginalAmt: Integer
3359
+ # @param WxSubMchId: 微信子商户号。
3360
+ # @type WxSubMchId: String
3361
+ # @param SettleInfo: 结算信息。
3362
+ # 例如是否需要分账、是否需要支付确认等。
3363
+ # @type SettleInfo: :class:`Tencentcloud::Cpdp.v20190820.models.CloudSettleInfo`
3364
+ # @param AttachmentInfoList: 附加项信息列表。
3365
+ # 例如溢价信息、抵扣信息、积分信息、补贴信息
3366
+ # 通过该字段可以实现渠道方的优惠抵扣补贴等营销功能。
3367
+ # @type AttachmentInfoList: Array
3368
+
3369
+ attr_accessor :SubOutTradeNo, :SubAppId, :ProductName, :ProductDetail, :PlatformIncome, :SubMchIncome, :Metadata, :Amt, :OriginalAmt, :WxSubMchId, :SettleInfo, :AttachmentInfoList
3370
+
3371
+ def initialize(subouttradeno=nil, subappid=nil, productname=nil, productdetail=nil, platformincome=nil, submchincome=nil, metadata=nil, amt=nil, originalamt=nil, wxsubmchid=nil, settleinfo=nil, attachmentinfolist=nil)
3372
+ @SubOutTradeNo = subouttradeno
3373
+ @SubAppId = subappid
3374
+ @ProductName = productname
3375
+ @ProductDetail = productdetail
3376
+ @PlatformIncome = platformincome
3377
+ @SubMchIncome = submchincome
3378
+ @Metadata = metadata
3379
+ @Amt = amt
3380
+ @OriginalAmt = originalamt
3381
+ @WxSubMchId = wxsubmchid
3382
+ @SettleInfo = settleinfo
3383
+ @AttachmentInfoList = attachmentinfolist
3384
+ end
3385
+
3386
+ def deserialize(params)
3387
+ @SubOutTradeNo = params['SubOutTradeNo']
3388
+ @SubAppId = params['SubAppId']
3389
+ @ProductName = params['ProductName']
3390
+ @ProductDetail = params['ProductDetail']
3391
+ @PlatformIncome = params['PlatformIncome']
3392
+ @SubMchIncome = params['SubMchIncome']
3393
+ @Metadata = params['Metadata']
3394
+ @Amt = params['Amt']
3395
+ @OriginalAmt = params['OriginalAmt']
3396
+ @WxSubMchId = params['WxSubMchId']
3397
+ unless params['SettleInfo'].nil?
3398
+ @SettleInfo = CloudSettleInfo.new
3399
+ @SettleInfo.deserialize(params['SettleInfo'])
3400
+ end
3401
+ unless params['AttachmentInfoList'].nil?
3402
+ @AttachmentInfoList = []
3403
+ params['AttachmentInfoList'].each do |i|
3404
+ cloudattachmentinfo_tmp = CloudAttachmentInfo.new
3405
+ cloudattachmentinfo_tmp.deserialize(i)
3406
+ @AttachmentInfoList << cloudattachmentinfo_tmp
3407
+ end
3408
+ end
3409
+ end
3410
+ end
3411
+
3412
+ # 退款子单
3413
+ class CloudSubOrderRefund < TencentCloud::Common::AbstractModel
3414
+ # @param RefundAmt: 子订单退款金额
3415
+ # @type RefundAmt: Integer
3416
+ # @param PlatformRefundAmt: 平台应退金额
3417
+ # @type PlatformRefundAmt: Integer
3418
+ # @param SubMchRefundAmt: 商家应退金额
3419
+ # @type SubMchRefundAmt: Integer
3420
+ # @param SubOutTradeNo: 子订单号
3421
+ # @type SubOutTradeNo: String
3422
+ # @param SubRefundId: 子退款单号,调用方需要保证全局唯一性
3423
+ # @type SubRefundId: String
3424
+
3425
+ attr_accessor :RefundAmt, :PlatformRefundAmt, :SubMchRefundAmt, :SubOutTradeNo, :SubRefundId
3426
+
3427
+ def initialize(refundamt=nil, platformrefundamt=nil, submchrefundamt=nil, subouttradeno=nil, subrefundid=nil)
3428
+ @RefundAmt = refundamt
3429
+ @PlatformRefundAmt = platformrefundamt
3430
+ @SubMchRefundAmt = submchrefundamt
3431
+ @SubOutTradeNo = subouttradeno
3432
+ @SubRefundId = subrefundid
3433
+ end
3434
+
3435
+ def deserialize(params)
3436
+ @RefundAmt = params['RefundAmt']
3437
+ @PlatformRefundAmt = params['PlatformRefundAmt']
3438
+ @SubMchRefundAmt = params['SubMchRefundAmt']
3439
+ @SubOutTradeNo = params['SubOutTradeNo']
3440
+ @SubRefundId = params['SubRefundId']
3441
+ end
3442
+ end
3443
+
3444
+ # 子订单详情
3445
+ class CloudSubOrderReturn < TencentCloud::Common::AbstractModel
3446
+ # @param SubOutTradeNo: 子订单号
3447
+ # @type SubOutTradeNo: String
3448
+ # @param SubAppId: 米大师计费SubAppId,代表子商户
3449
+ # @type SubAppId: String
3450
+ # @param ProductName: 子订单商品名称
3451
+ # @type ProductName: String
3452
+ # @param ProductDetail: 子订单商品详情
3453
+ # @type ProductDetail: String
3454
+ # @param PlatformIncome: 子订单平台应收金额,单位:分
3455
+ # @type PlatformIncome: Integer
3456
+ # @param SubMchIncome: 子订单结算应收金额,单位:分
3457
+ # @type SubMchIncome: Integer
3458
+ # @param Amt: 子订单支付金额
3459
+ # @type Amt: Integer
3460
+ # @param OriginalAmt: 子订单原始金额
3461
+ # @type OriginalAmt: Integer
3462
+ # @param SettleCheck: 核销状态,1表示核销,0表示未核销
3463
+ # @type SettleCheck: Integer
3464
+ # @param SettleInfo: 结算信息
3465
+ # 注意:此字段可能返回 null,表示取不到有效值。
3466
+ # @type SettleInfo: :class:`Tencentcloud::Cpdp.v20190820.models.CloudSettleInfo`
3467
+ # @param Metadata: 透传字段,由开发者在调用米大师下单接口的时候下发
3468
+ # @type Metadata: String
3469
+ # @param AttachmentInfoList: 附加项信息
3470
+ # 注意:此字段可能返回 null,表示取不到有效值。
3471
+ # @type AttachmentInfoList: :class:`Tencentcloud::Cpdp.v20190820.models.CloudAttachmentInfo`
3472
+ # @param ChannelExternalSubOrderId: 渠道方应答的订单号,透传处理
3473
+ # @type ChannelExternalSubOrderId: String
3474
+ # @param WxSubMchId: 微信子商户号
3475
+ # @type WxSubMchId: String
3476
+
3477
+ attr_accessor :SubOutTradeNo, :SubAppId, :ProductName, :ProductDetail, :PlatformIncome, :SubMchIncome, :Amt, :OriginalAmt, :SettleCheck, :SettleInfo, :Metadata, :AttachmentInfoList, :ChannelExternalSubOrderId, :WxSubMchId
3478
+
3479
+ def initialize(subouttradeno=nil, subappid=nil, productname=nil, productdetail=nil, platformincome=nil, submchincome=nil, amt=nil, originalamt=nil, settlecheck=nil, settleinfo=nil, metadata=nil, attachmentinfolist=nil, channelexternalsuborderid=nil, wxsubmchid=nil)
3480
+ @SubOutTradeNo = subouttradeno
3481
+ @SubAppId = subappid
3482
+ @ProductName = productname
3483
+ @ProductDetail = productdetail
3484
+ @PlatformIncome = platformincome
3485
+ @SubMchIncome = submchincome
3486
+ @Amt = amt
3487
+ @OriginalAmt = originalamt
3488
+ @SettleCheck = settlecheck
3489
+ @SettleInfo = settleinfo
3490
+ @Metadata = metadata
3491
+ @AttachmentInfoList = attachmentinfolist
3492
+ @ChannelExternalSubOrderId = channelexternalsuborderid
3493
+ @WxSubMchId = wxsubmchid
3494
+ end
3495
+
3496
+ def deserialize(params)
3497
+ @SubOutTradeNo = params['SubOutTradeNo']
3498
+ @SubAppId = params['SubAppId']
3499
+ @ProductName = params['ProductName']
3500
+ @ProductDetail = params['ProductDetail']
3501
+ @PlatformIncome = params['PlatformIncome']
3502
+ @SubMchIncome = params['SubMchIncome']
3503
+ @Amt = params['Amt']
3504
+ @OriginalAmt = params['OriginalAmt']
3505
+ @SettleCheck = params['SettleCheck']
3506
+ unless params['SettleInfo'].nil?
3507
+ @SettleInfo = CloudSettleInfo.new
3508
+ @SettleInfo.deserialize(params['SettleInfo'])
3509
+ end
3510
+ @Metadata = params['Metadata']
3511
+ unless params['AttachmentInfoList'].nil?
3512
+ @AttachmentInfoList = CloudAttachmentInfo.new
3513
+ @AttachmentInfoList.deserialize(params['AttachmentInfoList'])
3514
+ end
3515
+ @ChannelExternalSubOrderId = params['ChannelExternalSubOrderId']
3516
+ @WxSubMchId = params['WxSubMchId']
3517
+ end
3518
+ end
3519
+
3520
+ # 子单退款信息
3521
+ class CloudSubRefundItem < TencentCloud::Common::AbstractModel
3522
+ # @param ChannelExternalRefundId: 渠道方应答的退款ID,透传处理
3523
+ # 注意:此字段可能返回 null,表示取不到有效值。
3524
+ # @type ChannelExternalRefundId: String
3525
+ # @param ChannelExternalOrderId: 渠道方应答的订单号,透传处理
3526
+ # 注意:此字段可能返回 null,表示取不到有效值。
3527
+ # @type ChannelExternalOrderId: String
3528
+ # @param RefundAmt: 子单退款金额
3529
+ # 注意:此字段可能返回 null,表示取不到有效值。
3530
+ # @type RefundAmt: Integer
3531
+ # @param SubOutTradeNo: 子单订单号
3532
+ # 注意:此字段可能返回 null,表示取不到有效值。
3533
+ # @type SubOutTradeNo: String
3534
+ # @param SubRefundId: 子单退款id
3535
+ # 注意:此字段可能返回 null,表示取不到有效值。
3536
+ # @type SubRefundId: String
3537
+ # @param SubAppId: 子应用ID
3538
+ # 注意:此字段可能返回 null,表示取不到有效值。
3539
+ # @type SubAppId: String
3540
+ # @param ChannelSubOrderId: 渠道子单支付订单号
3541
+ # 注意:此字段可能返回 null,表示取不到有效值。
3542
+ # @type ChannelSubOrderId: String
3543
+ # @param ChannelSubRefundId: 渠道子退款订单号
3544
+ # 注意:此字段可能返回 null,表示取不到有效值。
3545
+ # @type ChannelSubRefundId: String
2853
3546
 
2854
- attr_accessor :RequestId
3547
+ attr_accessor :ChannelExternalRefundId, :ChannelExternalOrderId, :RefundAmt, :SubOutTradeNo, :SubRefundId, :SubAppId, :ChannelSubOrderId, :ChannelSubRefundId
2855
3548
 
2856
- def initialize(requestid=nil)
2857
- @RequestId = requestid
3549
+ def initialize(channelexternalrefundid=nil, channelexternalorderid=nil, refundamt=nil, subouttradeno=nil, subrefundid=nil, subappid=nil, channelsuborderid=nil, channelsubrefundid=nil)
3550
+ @ChannelExternalRefundId = channelexternalrefundid
3551
+ @ChannelExternalOrderId = channelexternalorderid
3552
+ @RefundAmt = refundamt
3553
+ @SubOutTradeNo = subouttradeno
3554
+ @SubRefundId = subrefundid
3555
+ @SubAppId = subappid
3556
+ @ChannelSubOrderId = channelsuborderid
3557
+ @ChannelSubRefundId = channelsubrefundid
2858
3558
  end
2859
3559
 
2860
3560
  def deserialize(params)
2861
- @RequestId = params['RequestId']
3561
+ @ChannelExternalRefundId = params['ChannelExternalRefundId']
3562
+ @ChannelExternalOrderId = params['ChannelExternalOrderId']
3563
+ @RefundAmt = params['RefundAmt']
3564
+ @SubOutTradeNo = params['SubOutTradeNo']
3565
+ @SubRefundId = params['SubRefundId']
3566
+ @SubAppId = params['SubAppId']
3567
+ @ChannelSubOrderId = params['ChannelSubOrderId']
3568
+ @ChannelSubRefundId = params['ChannelSubRefundId']
2862
3569
  end
2863
3570
  end
2864
3571
 
@@ -3852,6 +4559,84 @@ module TencentCloud
3852
4559
  end
3853
4560
  end
3854
4561
 
4562
+ # CreateCloudSubMerchant请求参数结构体
4563
+ class CreateCloudSubMerchantRequest < TencentCloud::Common::AbstractModel
4564
+ # @param MidasAppId: 米大师分配的支付主MidasAppId,根应用Id。
4565
+ # @type MidasAppId: String
4566
+ # @param ParentAppId: 父应用Id。
4567
+ # @type ParentAppId: String
4568
+ # @param SubMchName: 子商户名。
4569
+ # @type SubMchName: String
4570
+ # @param SubMchDescription: 子商户描述。
4571
+ # @type SubMchDescription: String
4572
+ # @param MidasEnvironment: 环境类型
4573
+ # __release__:生产环境
4574
+ # __sandbox__:沙箱环境
4575
+ # _不填默认为生产环境_
4576
+ # @type MidasEnvironment: String
4577
+ # @param SubAppId: 子应用Id,为空则自动创建子应用id。
4578
+ # @type SubAppId: String
4579
+ # @param SubMchShortName: 子商户名缩写。
4580
+ # @type SubMchShortName: String
4581
+ # @param OutSubMerchantId: 业务平台自定义的子商户Id,唯一。
4582
+ # @type OutSubMerchantId: String
4583
+
4584
+ attr_accessor :MidasAppId, :ParentAppId, :SubMchName, :SubMchDescription, :MidasEnvironment, :SubAppId, :SubMchShortName, :OutSubMerchantId
4585
+
4586
+ def initialize(midasappid=nil, parentappid=nil, submchname=nil, submchdescription=nil, midasenvironment=nil, subappid=nil, submchshortname=nil, outsubmerchantid=nil)
4587
+ @MidasAppId = midasappid
4588
+ @ParentAppId = parentappid
4589
+ @SubMchName = submchname
4590
+ @SubMchDescription = submchdescription
4591
+ @MidasEnvironment = midasenvironment
4592
+ @SubAppId = subappid
4593
+ @SubMchShortName = submchshortname
4594
+ @OutSubMerchantId = outsubmerchantid
4595
+ end
4596
+
4597
+ def deserialize(params)
4598
+ @MidasAppId = params['MidasAppId']
4599
+ @ParentAppId = params['ParentAppId']
4600
+ @SubMchName = params['SubMchName']
4601
+ @SubMchDescription = params['SubMchDescription']
4602
+ @MidasEnvironment = params['MidasEnvironment']
4603
+ @SubAppId = params['SubAppId']
4604
+ @SubMchShortName = params['SubMchShortName']
4605
+ @OutSubMerchantId = params['OutSubMerchantId']
4606
+ end
4607
+ end
4608
+
4609
+ # CreateCloudSubMerchant返回参数结构体
4610
+ class CreateCloudSubMerchantResponse < TencentCloud::Common::AbstractModel
4611
+ # @param SubAppId: 子应用Id。
4612
+ # 注意:此字段可能返回 null,表示取不到有效值。
4613
+ # @type SubAppId: String
4614
+ # @param ChannelSubMerchantId: 渠道子商户Id。
4615
+ # 注意:此字段可能返回 null,表示取不到有效值。
4616
+ # @type ChannelSubMerchantId: String
4617
+ # @param Level: 层级,从0开始。
4618
+ # 注意:此字段可能返回 null,表示取不到有效值。
4619
+ # @type Level: Integer
4620
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4621
+ # @type RequestId: String
4622
+
4623
+ attr_accessor :SubAppId, :ChannelSubMerchantId, :Level, :RequestId
4624
+
4625
+ def initialize(subappid=nil, channelsubmerchantid=nil, level=nil, requestid=nil)
4626
+ @SubAppId = subappid
4627
+ @ChannelSubMerchantId = channelsubmerchantid
4628
+ @Level = level
4629
+ @RequestId = requestid
4630
+ end
4631
+
4632
+ def deserialize(params)
4633
+ @SubAppId = params['SubAppId']
4634
+ @ChannelSubMerchantId = params['ChannelSubMerchantId']
4635
+ @Level = params['Level']
4636
+ @RequestId = params['RequestId']
4637
+ end
4638
+ end
4639
+
3855
4640
  # CreateCustAcctId请求参数结构体
3856
4641
  class CreateCustAcctIdRequest < TencentCloud::Common::AbstractModel
3857
4642
  # @param FunctionFlag: STRING(2),功能标志(1: 开户; 3: 销户)
@@ -10113,52 +10898,334 @@ module TencentCloud
10113
10898
 
10114
10899
  attr_accessor :OpenId, :OpenKey, :Profile
10115
10900
 
10116
- def initialize(openid=nil, openkey=nil, profile=nil)
10117
- @OpenId = openid
10118
- @OpenKey = openkey
10119
- @Profile = profile
10901
+ def initialize(openid=nil, openkey=nil, profile=nil)
10902
+ @OpenId = openid
10903
+ @OpenKey = openkey
10904
+ @Profile = profile
10905
+ end
10906
+
10907
+ def deserialize(params)
10908
+ @OpenId = params['OpenId']
10909
+ @OpenKey = params['OpenKey']
10910
+ @Profile = params['Profile']
10911
+ end
10912
+ end
10913
+
10914
+ # QueryCityCode返回参数结构体
10915
+ class QueryCityCodeResponse < TencentCloud::Common::AbstractModel
10916
+ # @param ErrMessage: 业务系统返回消息
10917
+ # 注意:此字段可能返回 null,表示取不到有效值。
10918
+ # @type ErrMessage: String
10919
+ # @param ErrCode: 业务系统返回码
10920
+ # @type ErrCode: String
10921
+ # @param Result: 查询城市编码响应对象
10922
+ # 注意:此字段可能返回 null,表示取不到有效值。
10923
+ # @type Result: Array
10924
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
10925
+ # @type RequestId: String
10926
+
10927
+ attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
10928
+
10929
+ def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
10930
+ @ErrMessage = errmessage
10931
+ @ErrCode = errcode
10932
+ @Result = result
10933
+ @RequestId = requestid
10934
+ end
10935
+
10936
+ def deserialize(params)
10937
+ @ErrMessage = params['ErrMessage']
10938
+ @ErrCode = params['ErrCode']
10939
+ unless params['Result'].nil?
10940
+ @Result = []
10941
+ params['Result'].each do |i|
10942
+ citycoderesult_tmp = CityCodeResult.new
10943
+ citycoderesult_tmp.deserialize(i)
10944
+ @Result << citycoderesult_tmp
10945
+ end
10946
+ end
10947
+ @RequestId = params['RequestId']
10948
+ end
10949
+ end
10950
+
10951
+ # QueryCloudChannelData请求参数结构体
10952
+ class QueryCloudChannelDataRequest < TencentCloud::Common::AbstractModel
10953
+ # @param MidasAppId: 米大师分配的支付主MidasAppId
10954
+ # @type MidasAppId: String
10955
+ # @param OutOrderNo: 业务订单号,外部订单号
10956
+ # @type OutOrderNo: String
10957
+ # @param ExternalChannelDataType: 数据类型
10958
+ # PAYMENT:支付
10959
+ # @type ExternalChannelDataType: String
10960
+ # @param MidasEnvironment: 环境类型
10961
+ # __release__:生产环境
10962
+ # __sandbox__:沙箱环境
10963
+ # _不填默认为生产环境_
10964
+ # @type MidasEnvironment: String
10965
+ # @param SubAppId: 子应用ID
10966
+ # @type SubAppId: String
10967
+ # @param ChannelOrderId: 渠道订单号
10968
+ # @type ChannelOrderId: String
10969
+ # @param Channel: 渠道名称,指定渠道查询
10970
+ # wechat:微信支付
10971
+ # @type Channel: String
10972
+
10973
+ attr_accessor :MidasAppId, :OutOrderNo, :ExternalChannelDataType, :MidasEnvironment, :SubAppId, :ChannelOrderId, :Channel
10974
+
10975
+ def initialize(midasappid=nil, outorderno=nil, externalchanneldatatype=nil, midasenvironment=nil, subappid=nil, channelorderid=nil, channel=nil)
10976
+ @MidasAppId = midasappid
10977
+ @OutOrderNo = outorderno
10978
+ @ExternalChannelDataType = externalchanneldatatype
10979
+ @MidasEnvironment = midasenvironment
10980
+ @SubAppId = subappid
10981
+ @ChannelOrderId = channelorderid
10982
+ @Channel = channel
10983
+ end
10984
+
10985
+ def deserialize(params)
10986
+ @MidasAppId = params['MidasAppId']
10987
+ @OutOrderNo = params['OutOrderNo']
10988
+ @ExternalChannelDataType = params['ExternalChannelDataType']
10989
+ @MidasEnvironment = params['MidasEnvironment']
10990
+ @SubAppId = params['SubAppId']
10991
+ @ChannelOrderId = params['ChannelOrderId']
10992
+ @Channel = params['Channel']
10993
+ end
10994
+ end
10995
+
10996
+ # QueryCloudChannelData返回参数结构体
10997
+ class QueryCloudChannelDataResponse < TencentCloud::Common::AbstractModel
10998
+ # @param OutOrderNo: 外部订单号
10999
+ # 注意:此字段可能返回 null,表示取不到有效值。
11000
+ # @type OutOrderNo: String
11001
+ # @param ChannelOrderId: 渠道订单号
11002
+ # 注意:此字段可能返回 null,表示取不到有效值。
11003
+ # @type ChannelOrderId: String
11004
+ # @param ExternalChannelDataType: 第三方渠道数据类型
11005
+ # 注意:此字段可能返回 null,表示取不到有效值。
11006
+ # @type ExternalChannelDataType: String
11007
+ # @param Channel: 渠道名称
11008
+ # 注意:此字段可能返回 null,表示取不到有效值。
11009
+ # @type Channel: String
11010
+ # @param ExternalChannelDataList: 第三方渠道数据列表
11011
+ # 注意:此字段可能返回 null,表示取不到有效值。
11012
+ # @type ExternalChannelDataList: Array
11013
+ # @param SubAppId: 子应用ID
11014
+ # 注意:此字段可能返回 null,表示取不到有效值。
11015
+ # @type SubAppId: String
11016
+ # @param AppId: 米大师分配的支付主MidasAppId
11017
+ # 注意:此字段可能返回 null,表示取不到有效值。
11018
+ # @type AppId: String
11019
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
11020
+ # @type RequestId: String
11021
+
11022
+ attr_accessor :OutOrderNo, :ChannelOrderId, :ExternalChannelDataType, :Channel, :ExternalChannelDataList, :SubAppId, :AppId, :RequestId
11023
+
11024
+ def initialize(outorderno=nil, channelorderid=nil, externalchanneldatatype=nil, channel=nil, externalchanneldatalist=nil, subappid=nil, appid=nil, requestid=nil)
11025
+ @OutOrderNo = outorderno
11026
+ @ChannelOrderId = channelorderid
11027
+ @ExternalChannelDataType = externalchanneldatatype
11028
+ @Channel = channel
11029
+ @ExternalChannelDataList = externalchanneldatalist
11030
+ @SubAppId = subappid
11031
+ @AppId = appid
11032
+ @RequestId = requestid
11033
+ end
11034
+
11035
+ def deserialize(params)
11036
+ @OutOrderNo = params['OutOrderNo']
11037
+ @ChannelOrderId = params['ChannelOrderId']
11038
+ @ExternalChannelDataType = params['ExternalChannelDataType']
11039
+ @Channel = params['Channel']
11040
+ unless params['ExternalChannelDataList'].nil?
11041
+ @ExternalChannelDataList = []
11042
+ params['ExternalChannelDataList'].each do |i|
11043
+ cloudexternalchanneldata_tmp = CloudExternalChannelData.new
11044
+ cloudexternalchanneldata_tmp.deserialize(i)
11045
+ @ExternalChannelDataList << cloudexternalchanneldata_tmp
11046
+ end
11047
+ end
11048
+ @SubAppId = params['SubAppId']
11049
+ @AppId = params['AppId']
11050
+ @RequestId = params['RequestId']
11051
+ end
11052
+ end
11053
+
11054
+ # QueryCloudOrder请求参数结构体
11055
+ class QueryCloudOrderRequest < TencentCloud::Common::AbstractModel
11056
+ # @param MidasAppId: 米大师分配的支付主MidasAppId
11057
+ # @type MidasAppId: String
11058
+ # @param UserId: 用户Id,长度不小于5位,仅支持字母和数字的组合
11059
+ # @type UserId: String
11060
+ # @param Type: 查询类型
11061
+ # by_order:根据订单号查订单
11062
+ # @type Type: String
11063
+ # @param MidasEnvironment: 环境类型
11064
+ # __release__:生产环境
11065
+ # __sandbox__:沙箱环境
11066
+ # _不填默认为生产环境_
11067
+ # @type MidasEnvironment: String
11068
+ # @param OutTradeNo: 开发者的主订单号
11069
+ # @type OutTradeNo: String
11070
+
11071
+ attr_accessor :MidasAppId, :UserId, :Type, :MidasEnvironment, :OutTradeNo
11072
+
11073
+ def initialize(midasappid=nil, userid=nil, type=nil, midasenvironment=nil, outtradeno=nil)
11074
+ @MidasAppId = midasappid
11075
+ @UserId = userid
11076
+ @Type = type
11077
+ @MidasEnvironment = midasenvironment
11078
+ @OutTradeNo = outtradeno
11079
+ end
11080
+
11081
+ def deserialize(params)
11082
+ @MidasAppId = params['MidasAppId']
11083
+ @UserId = params['UserId']
11084
+ @Type = params['Type']
11085
+ @MidasEnvironment = params['MidasEnvironment']
11086
+ @OutTradeNo = params['OutTradeNo']
11087
+ end
11088
+ end
11089
+
11090
+ # QueryCloudOrder返回参数结构体
11091
+ class QueryCloudOrderResponse < TencentCloud::Common::AbstractModel
11092
+ # @param TotalNum: 订单数量
11093
+ # @type TotalNum: Integer
11094
+ # @param OrderList: 订单列表
11095
+ # 注意:此字段可能返回 null,表示取不到有效值。
11096
+ # @type OrderList: Array
11097
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
11098
+ # @type RequestId: String
11099
+
11100
+ attr_accessor :TotalNum, :OrderList, :RequestId
11101
+
11102
+ def initialize(totalnum=nil, orderlist=nil, requestid=nil)
11103
+ @TotalNum = totalnum
11104
+ @OrderList = orderlist
11105
+ @RequestId = requestid
11106
+ end
11107
+
11108
+ def deserialize(params)
11109
+ @TotalNum = params['TotalNum']
11110
+ unless params['OrderList'].nil?
11111
+ @OrderList = []
11112
+ params['OrderList'].each do |i|
11113
+ cloudorderreturn_tmp = CloudOrderReturn.new
11114
+ cloudorderreturn_tmp.deserialize(i)
11115
+ @OrderList << cloudorderreturn_tmp
11116
+ end
11117
+ end
11118
+ @RequestId = params['RequestId']
11119
+ end
11120
+ end
11121
+
11122
+ # QueryCloudRefundOrder请求参数结构体
11123
+ class QueryCloudRefundOrderRequest < TencentCloud::Common::AbstractModel
11124
+ # @param MidasAppId: 米大师分配的支付主MidasAppId
11125
+ # @type MidasAppId: String
11126
+ # @param UserId: 用户Id,长度不小于5位,仅支持字母和数字的组合
11127
+ # @type UserId: String
11128
+ # @param RefundId: 退款订单号,仅支持数字、字母、下划线(_)、横杠字符(-)、点(.)的组合
11129
+ # @type RefundId: String
11130
+ # @param MidasEnvironment: 环境类型
11131
+ # __release__:生产环境
11132
+ # __sandbox__:沙箱环境
11133
+ # _不填默认为生产环境_
11134
+ # @type MidasEnvironment: String
11135
+
11136
+ attr_accessor :MidasAppId, :UserId, :RefundId, :MidasEnvironment
11137
+
11138
+ def initialize(midasappid=nil, userid=nil, refundid=nil, midasenvironment=nil)
11139
+ @MidasAppId = midasappid
11140
+ @UserId = userid
11141
+ @RefundId = refundid
11142
+ @MidasEnvironment = midasenvironment
10120
11143
  end
10121
11144
 
10122
11145
  def deserialize(params)
10123
- @OpenId = params['OpenId']
10124
- @OpenKey = params['OpenKey']
10125
- @Profile = params['Profile']
11146
+ @MidasAppId = params['MidasAppId']
11147
+ @UserId = params['UserId']
11148
+ @RefundId = params['RefundId']
11149
+ @MidasEnvironment = params['MidasEnvironment']
10126
11150
  end
10127
11151
  end
10128
11152
 
10129
- # QueryCityCode返回参数结构体
10130
- class QueryCityCodeResponse < TencentCloud::Common::AbstractModel
10131
- # @param ErrMessage: 业务系统返回消息
11153
+ # QueryCloudRefundOrder返回参数结构体
11154
+ class QueryCloudRefundOrderResponse < TencentCloud::Common::AbstractModel
11155
+ # @param OutTradeNo: 该笔退款订单对应的UnifiedOrder下单时传入的OutTradeNo
11156
+ # @type OutTradeNo: String
11157
+ # @param ChannelExternalOrderId: 该笔退款订单对应的支付成功后支付机构返回的支付订单号
11158
+ # @type ChannelExternalOrderId: String
11159
+ # @param ChannelExternalRefundId: 该笔退款订单退款后支付机构返回的退款单号
11160
+ # @type ChannelExternalRefundId: String
11161
+ # @param ChannelOrderId: 内部请求微信支付、银行等支付机构的订单号
11162
+ # @type ChannelOrderId: String
11163
+ # @param RefundId: 请求退款时传的退款ID后查询退款时传的RefundId
11164
+ # @type RefundId: String
11165
+ # @param UsedRefundId: 被使用的RefundId,业务可忽略该字段
11166
+ # @type UsedRefundId: String
11167
+ # @param TotalRefundAmt: 退款总金额
11168
+ # @type TotalRefundAmt: Integer
11169
+ # @param CurrencyType: ISO货币代码
11170
+ # @type CurrencyType: String
11171
+ # @param State: 退款状态码,退款提交成功后返回
11172
+ # 1:退款中
11173
+ # 2:退款成功
11174
+ # 3:退款失败
11175
+ # @type State: String
11176
+ # @param SubRefundList: 子单退款信息列表
10132
11177
  # 注意:此字段可能返回 null,表示取不到有效值。
10133
- # @type ErrMessage: String
10134
- # @param ErrCode: 业务系统返回码
10135
- # @type ErrCode: String
10136
- # @param Result: 查询城市编码响应对象
11178
+ # @type SubRefundList: Array
11179
+ # @param Metadata: 透传字段,退款成功回调透传给应用,用于开发者透传自定义内容
11180
+ # @type Metadata: String
11181
+ # @param AppId: 米大师分配的支付主MidasAppId
10137
11182
  # 注意:此字段可能返回 null,表示取不到有效值。
10138
- # @type Result: Array
11183
+ # @type AppId: String
11184
+ # @param ChannelRefundId: 该笔退款订单退款后内部返回的退款单号
11185
+ # @type ChannelRefundId: String
10139
11186
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
10140
11187
  # @type RequestId: String
10141
11188
 
10142
- attr_accessor :ErrMessage, :ErrCode, :Result, :RequestId
11189
+ attr_accessor :OutTradeNo, :ChannelExternalOrderId, :ChannelExternalRefundId, :ChannelOrderId, :RefundId, :UsedRefundId, :TotalRefundAmt, :CurrencyType, :State, :SubRefundList, :Metadata, :AppId, :ChannelRefundId, :RequestId
10143
11190
 
10144
- def initialize(errmessage=nil, errcode=nil, result=nil, requestid=nil)
10145
- @ErrMessage = errmessage
10146
- @ErrCode = errcode
10147
- @Result = result
11191
+ def initialize(outtradeno=nil, channelexternalorderid=nil, channelexternalrefundid=nil, channelorderid=nil, refundid=nil, usedrefundid=nil, totalrefundamt=nil, currencytype=nil, state=nil, subrefundlist=nil, metadata=nil, appid=nil, channelrefundid=nil, requestid=nil)
11192
+ @OutTradeNo = outtradeno
11193
+ @ChannelExternalOrderId = channelexternalorderid
11194
+ @ChannelExternalRefundId = channelexternalrefundid
11195
+ @ChannelOrderId = channelorderid
11196
+ @RefundId = refundid
11197
+ @UsedRefundId = usedrefundid
11198
+ @TotalRefundAmt = totalrefundamt
11199
+ @CurrencyType = currencytype
11200
+ @State = state
11201
+ @SubRefundList = subrefundlist
11202
+ @Metadata = metadata
11203
+ @AppId = appid
11204
+ @ChannelRefundId = channelrefundid
10148
11205
  @RequestId = requestid
10149
11206
  end
10150
11207
 
10151
11208
  def deserialize(params)
10152
- @ErrMessage = params['ErrMessage']
10153
- @ErrCode = params['ErrCode']
10154
- unless params['Result'].nil?
10155
- @Result = []
10156
- params['Result'].each do |i|
10157
- citycoderesult_tmp = CityCodeResult.new
10158
- citycoderesult_tmp.deserialize(i)
10159
- @Result << citycoderesult_tmp
11209
+ @OutTradeNo = params['OutTradeNo']
11210
+ @ChannelExternalOrderId = params['ChannelExternalOrderId']
11211
+ @ChannelExternalRefundId = params['ChannelExternalRefundId']
11212
+ @ChannelOrderId = params['ChannelOrderId']
11213
+ @RefundId = params['RefundId']
11214
+ @UsedRefundId = params['UsedRefundId']
11215
+ @TotalRefundAmt = params['TotalRefundAmt']
11216
+ @CurrencyType = params['CurrencyType']
11217
+ @State = params['State']
11218
+ unless params['SubRefundList'].nil?
11219
+ @SubRefundList = []
11220
+ params['SubRefundList'].each do |i|
11221
+ cloudsubrefunditem_tmp = CloudSubRefundItem.new
11222
+ cloudsubrefunditem_tmp.deserialize(i)
11223
+ @SubRefundList << cloudsubrefunditem_tmp
10160
11224
  end
10161
11225
  end
11226
+ @Metadata = params['Metadata']
11227
+ @AppId = params['AppId']
11228
+ @ChannelRefundId = params['ChannelRefundId']
10162
11229
  @RequestId = params['RequestId']
10163
11230
  end
10164
11231
  end
@@ -15918,6 +16985,99 @@ module TencentCloud
15918
16985
  end
15919
16986
  end
15920
16987
 
16988
+ # RefundCloudOrder请求参数结构体
16989
+ class RefundCloudOrderRequest < TencentCloud::Common::AbstractModel
16990
+ # @param MidasAppId: 米大师分配的支付主MidasAppId
16991
+ # @type MidasAppId: String
16992
+ # @param UserId: 用户Id,长度不小于5位,仅支持字母和数字的组合
16993
+ # @type UserId: String
16994
+ # @param RefundId: 退款订单号,仅支持数字、字母、下划线(_)、横杠字符(-)、点(.)的组合
16995
+ # @type RefundId: String
16996
+ # @param TotalRefundAmt: 退款金额,单位:分
16997
+ # 当该字段为空或者为0时,系统会默认使用订单当实付金额做为退款金额
16998
+ # @type TotalRefundAmt: Integer
16999
+ # @param OutTradeNo: 商品订单,仅支持数字、字母、下划线(_)、横杠字符(-)、点(.)的组合
17000
+ # @type OutTradeNo: String
17001
+ # @param MidasEnvironment: 环境类型
17002
+ # __release__:生产环境
17003
+ # __sandbox__:沙箱环境
17004
+ # _不填默认为生产环境_
17005
+ # @type MidasEnvironment: String
17006
+ # @param PlatformRefundAmt: 平台应收金额,单位:分
17007
+ # @type PlatformRefundAmt: Integer
17008
+ # @param MchRefundAmt: 结算应收金额,单位:分
17009
+ # @type MchRefundAmt: Integer
17010
+ # @param SubOrderRefundList: 支持多个子订单批量退款单个子订单退款支持传SubOutTradeNo
17011
+ # 也支持传SubOrderRefundList,都传的时候以SubOrderRefundList为准。
17012
+ # 如果传了子单退款细节,外部不需要再传退款金额,平台应退,商户应退金额
17013
+ # @type SubOrderRefundList: Array
17014
+ # @param ChannelOrderId: 渠道订单号,当出现重复支付时,可以将重复支付订单的渠道订单号传入,以进行退款(注意:目前该重复支付订单的渠道订单号仅能通过米大师内部获取),更多重复支付订单退款说明,请参考[重复支付订单退款说明](https://dev.tke.midas.qq.com/juxin-doc-next/apidocs/receive-order/Refund.html#%E9%87%8D%E5%A4%8D%E6%94%AF%E4%BB%98%E8%AE%A2%E5%8D%95%E9%80%80%E6%AC%BE%E8%AF%B4%E6%98%8E)
17015
+ # @type ChannelOrderId: String
17016
+ # @param RefundNotifyUrl: 通知地址
17017
+ # @type RefundNotifyUrl: String
17018
+ # @param Metadata: 透传字段,退款成功回调透传给应用,用于开发者透传自定义内容
17019
+ # @type Metadata: String
17020
+ # @param ExternalRefundPromptGroupList: 渠道扩展退款促销列表,可将各个渠道的退款促销信息放于该列表
17021
+ # @type ExternalRefundPromptGroupList: String
17022
+
17023
+ attr_accessor :MidasAppId, :UserId, :RefundId, :TotalRefundAmt, :OutTradeNo, :MidasEnvironment, :PlatformRefundAmt, :MchRefundAmt, :SubOrderRefundList, :ChannelOrderId, :RefundNotifyUrl, :Metadata, :ExternalRefundPromptGroupList
17024
+
17025
+ def initialize(midasappid=nil, userid=nil, refundid=nil, totalrefundamt=nil, outtradeno=nil, midasenvironment=nil, platformrefundamt=nil, mchrefundamt=nil, suborderrefundlist=nil, channelorderid=nil, refundnotifyurl=nil, metadata=nil, externalrefundpromptgrouplist=nil)
17026
+ @MidasAppId = midasappid
17027
+ @UserId = userid
17028
+ @RefundId = refundid
17029
+ @TotalRefundAmt = totalrefundamt
17030
+ @OutTradeNo = outtradeno
17031
+ @MidasEnvironment = midasenvironment
17032
+ @PlatformRefundAmt = platformrefundamt
17033
+ @MchRefundAmt = mchrefundamt
17034
+ @SubOrderRefundList = suborderrefundlist
17035
+ @ChannelOrderId = channelorderid
17036
+ @RefundNotifyUrl = refundnotifyurl
17037
+ @Metadata = metadata
17038
+ @ExternalRefundPromptGroupList = externalrefundpromptgrouplist
17039
+ end
17040
+
17041
+ def deserialize(params)
17042
+ @MidasAppId = params['MidasAppId']
17043
+ @UserId = params['UserId']
17044
+ @RefundId = params['RefundId']
17045
+ @TotalRefundAmt = params['TotalRefundAmt']
17046
+ @OutTradeNo = params['OutTradeNo']
17047
+ @MidasEnvironment = params['MidasEnvironment']
17048
+ @PlatformRefundAmt = params['PlatformRefundAmt']
17049
+ @MchRefundAmt = params['MchRefundAmt']
17050
+ unless params['SubOrderRefundList'].nil?
17051
+ @SubOrderRefundList = []
17052
+ params['SubOrderRefundList'].each do |i|
17053
+ cloudsuborderrefund_tmp = CloudSubOrderRefund.new
17054
+ cloudsuborderrefund_tmp.deserialize(i)
17055
+ @SubOrderRefundList << cloudsuborderrefund_tmp
17056
+ end
17057
+ end
17058
+ @ChannelOrderId = params['ChannelOrderId']
17059
+ @RefundNotifyUrl = params['RefundNotifyUrl']
17060
+ @Metadata = params['Metadata']
17061
+ @ExternalRefundPromptGroupList = params['ExternalRefundPromptGroupList']
17062
+ end
17063
+ end
17064
+
17065
+ # RefundCloudOrder返回参数结构体
17066
+ class RefundCloudOrderResponse < TencentCloud::Common::AbstractModel
17067
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
17068
+ # @type RequestId: String
17069
+
17070
+ attr_accessor :RequestId
17071
+
17072
+ def initialize(requestid=nil)
17073
+ @RequestId = requestid
17074
+ end
17075
+
17076
+ def deserialize(params)
17077
+ @RequestId = params['RequestId']
17078
+ end
17079
+ end
17080
+
15921
17081
  # RefundMemberTransaction请求参数结构体
15922
17082
  class RefundMemberTransactionRequest < TencentCloud::Common::AbstractModel
15923
17083
  # @param OutSubAccountName: 转出见证子账户的户名
@@ -18163,6 +19323,311 @@ module TencentCloud
18163
19323
  end
18164
19324
  end
18165
19325
 
19326
+ # UnifiedCloudOrder请求参数结构体
19327
+ class UnifiedCloudOrderRequest < TencentCloud::Common::AbstractModel
19328
+ # @param MidasAppId: 米大师分配的支付主MidasAppId
19329
+ # @type MidasAppId: String
19330
+ # @param UserId: 用户Id。
19331
+ # 长度不小于5位,仅支持字母和数字的组合,长度限制以具体接入渠道为准
19332
+ # @type UserId: String
19333
+ # @param OutTradeNo: 开发者主订单号。
19334
+ # 支付订单号,仅支持数字、字母、下划线(_)、横杠字符(-)、点(.)的组合,长度供参考,部分渠道存在长度更短的情况接入时请联系开发咨询
19335
+ # @type OutTradeNo: String
19336
+ # @param CurrencyType: 货币类型。
19337
+ # ISO货币代码,CNY
19338
+ # @type CurrencyType: String
19339
+ # @param ProductId: 商品Id。
19340
+ # 业务自定义的商品id,仅支持数字、字母、下划线(_)、横杠字符(-)、点(.)的组合。
19341
+ # @type ProductId: String
19342
+ # @param ProductName: 商品名称。
19343
+ # 业务自定义的商品名称,无需URL编码,长度限制以具体所接入渠道为准。
19344
+ # @type ProductName: String
19345
+ # @param ProductDetail: 商品详情。
19346
+ # 业务自定义的商品详情,无需URL编码,长度限制以具体所接入渠道为准。
19347
+ # @type ProductDetail: String
19348
+ # @param OriginalAmt: 原始金额。
19349
+ # 单位:分,需要注意的是,OriginalAmt>=TotalAmt
19350
+ # @type OriginalAmt: Integer
19351
+ # @param TotalAmt: 支付金额。
19352
+ # 单位:分,需要注意的是,TotalAmt=TotalPlatformIncome+TotalMchIncome。
19353
+ # @type TotalAmt: Integer
19354
+ # @param MidasEnvironment: 环境类型
19355
+ # __release__:生产环境
19356
+ # __sandbox__:沙箱环境
19357
+ # _不填默认为生产环境_
19358
+ # @type MidasEnvironment: String
19359
+ # @param SubAppId: 支付SubAppId。
19360
+ # 米大师计费SubAppId,代表子商户。指定使用该商户的商户号下单时必传。
19361
+ # @type SubAppId: String
19362
+ # @param RealChannel: 顶层支付渠道。
19363
+ # 银行收单:
19364
+ # openbank_ccb: 建设银行
19365
+ # openbank_icbc: 工商银行
19366
+ # openbank_cmb: 招商银行
19367
+ # openbank_ping: 平安银行
19368
+ # openbank_icbc_jft:工商银行聚付通
19369
+ # 非银行收单,可以为空
19370
+ # @type RealChannel: String
19371
+ # @param Channel: 支付渠道。
19372
+ # wechat:微信支付
19373
+ # wechat_ecommerce: 微信电商收付通
19374
+ # open_alipay: 支付宝
19375
+ # open_quickpass: 银联云闪付
19376
+ # icbc_epay: 工银e支付
19377
+ # foreign_cardpay: 外卡支付
19378
+ # icbc_jft_wechat: 工行聚付通-微信
19379
+ # icbc_jft_alipay: 工行聚付通-支付宝
19380
+ # icbc_jft_epay: 工行聚付通-e支付
19381
+ # 指定渠道下单时必传
19382
+ # @type Channel: String
19383
+ # @param Metadata: 透传字段。
19384
+ # 支付成功回调透传给应用,用于开发者透传自定义内容。
19385
+ # @type Metadata: String
19386
+ # @param Quantity: 数量。
19387
+ # 购买数量,不传默认为1。
19388
+ # @type Quantity: Integer
19389
+ # @param CallbackUrl: Web端回调地址。
19390
+ # Web端网页回调地址,仅当Web端SDK使用页面跳转方式时有效。
19391
+ # @type CallbackUrl: String
19392
+ # @param CancelUrl: 支付取消地址。
19393
+ # @type CancelUrl: String
19394
+ # @param WxAppId: 微信AppId。
19395
+ # wechat渠道或wchat_ecommerce渠道可以指定下单时的wxappid。
19396
+ # @type WxAppId: String
19397
+ # @param WxSubAppId: 微信SubAppId。
19398
+ # wechat渠道可以指定下单时的sub_appid。
19399
+ # @type WxSubAppId: String
19400
+ # @param WxOpenId: 微信公众号/小程序OpenId。
19401
+ # 微信公众号/小程序支付时为必选,需要传微信下的openid。
19402
+ # @type WxOpenId: String
19403
+ # @param WxSubOpenId: 微信公众号/小程序SubOpenId。
19404
+ # 在服务商模式下,微信公众号/小程序支付时wx_sub_openid和wx_openid二选一。
19405
+ # @type WxSubOpenId: String
19406
+ # @param TotalPlatformIncome: 平台应收金额。
19407
+ # 单位:分,需要注意的是,TotalAmt=TotalPlatformIncome+TotalMchIncome
19408
+ # @type TotalPlatformIncome: Integer
19409
+ # @param TotalMchIncome: 结算应收金额。
19410
+ # 单位:分,需要注意的是,TotalAmt=TotalPlatformIncome+TotalMchIncome
19411
+ # @type TotalMchIncome: Integer
19412
+ # @param SubOrderList: 子订单列表。
19413
+ # 格式:子订单号、子应用Id、金额。压缩后最长不可超过32K字节(去除空格,换行,制表符等无意义字符)。
19414
+ # @type SubOrderList: Array
19415
+ # @param SettleInfo: 结算信息。
19416
+ # 例如是否需要分账、是否需要支付确认等,
19417
+ # 注意:如果子单列表中传入了SettleInfo,在主单中不可再传入SettleInfo字段。
19418
+ # @type SettleInfo: :class:`Tencentcloud::Cpdp.v20190820.models.CloudSettleInfo`
19419
+ # @param AttachmentInfoList: 附加项信息列表。
19420
+ # 例如溢价信息、抵扣信息、积分信息、补贴信息
19421
+ # 通过该字段可以实现渠道方的优惠抵扣补贴等营销功能
19422
+ # 注意:当传SubOrderList时,请在子单信息中传附加项信息,不要在主单中传该字段。
19423
+ # @type AttachmentInfoList: Array
19424
+ # @param PaymentNotifyUrl: 支付通知地址。
19425
+ # 调用方可通过该字段传入自定义支付通知地址。
19426
+ # @type PaymentNotifyUrl: String
19427
+ # @param PayScene: 支付场景。
19428
+ # 需要结合 RealChannel和Channel字段使用可选值:
19429
+ # wechat-app 微信APP支付方式
19430
+ # wechat-mini 微信小程序支付,示例:当 RealChannel=wechat Channel=wechat PayScene=wechat-mini时,内部会直接以小程序方式调用微信统一下单接口。
19431
+ # @type PayScene: String
19432
+ # @param LocaleCode: 语言代码。
19433
+ # (BCP-47格式),取值请参考https://mpay.pages.woa.com/zh/api/objectdefinitions/objects/#mpayapisordersapplicationcontextapplicationcontext
19434
+ # @type LocaleCode: String
19435
+ # @param RegionCode: 地区代码。
19436
+ # 取值请参考https://mpay.pages.woa.com/zh/api/objectdefinitions/objects/#mpayapisordersapplicationcontextapplicationcontext
19437
+ # @type RegionCode: String
19438
+ # @param UserClientIp: 用户IP。
19439
+ # 请求用户的IP地址,特定的渠道或特定的支付方式,此字段为必填
19440
+ # wechat_ecommerce渠道 - h5支付方式,此字段必填。
19441
+ # @type UserClientIp: String
19442
+ # @param ChannelOrderIdMode: 渠道订单号生成模式。
19443
+ # 枚举值。决定请求渠道方时的订单号的生成模式,详情请联系米大师沟通。不指定时默认为由米大师自行生成。
19444
+ # @type ChannelOrderIdMode: String
19445
+ # @param GlobalPayTimeInfo: 全局支付时间信息。
19446
+ # @type GlobalPayTimeInfo: :class:`Tencentcloud::Cpdp.v20190820.models.CloudGlobalPayTimeInfo`
19447
+ # @param ChannelAppIdPolicy: 渠道应用Id取用方式。
19448
+ # USE_APPID 使用渠道应用Id;
19449
+ # USE_SUB_APPID 使用子渠道应用Id;
19450
+ # USE_APPID_AND_SUB_APPID 既使用渠道应用Id也使用子渠道应用ID。
19451
+ # @type ChannelAppIdPolicy: String
19452
+ # @param StoreInfo: 门店信息。
19453
+ # 特定的渠道或特定的支付方式,此字段为必填
19454
+ # wechat_ecommerce渠道 - h5支付方式,此字段必填
19455
+ # @type StoreInfo: :class:`Tencentcloud::Cpdp.v20190820.models.CloudStoreInfo`
19456
+ # @param ClientInfo: 客户端信息。
19457
+ # 特定的渠道或特定的支付方式,此字段为必填
19458
+ # wechat_ecommerce渠道 - h5支付方式,此字段必填
19459
+ # @type ClientInfo: :class:`Tencentcloud::Cpdp.v20190820.models.CloudClientInfo`
19460
+ # @param ExternalPromptGroupList: 渠道扩展促销列表。
19461
+ # 可将各个渠道的促销信息放于该列表。
19462
+ # @type ExternalPromptGroupList: Array
19463
+ # @param OrderReceiveMode: 收单模式。
19464
+ # ORDER_RECEIVE_MODE_COMMON - 普通支付
19465
+ # ORDER_RECEIVE_MODE_COMBINE - 合单支付
19466
+ # ORDER_RECEIVE_MODE_V_COMBINE - 虚拟合单支付
19467
+ # 若不传入该字段,则会根据是否传入子单来判断是 普通支付 还是 合单支付
19468
+ # @type OrderReceiveMode: String
19469
+
19470
+ attr_accessor :MidasAppId, :UserId, :OutTradeNo, :CurrencyType, :ProductId, :ProductName, :ProductDetail, :OriginalAmt, :TotalAmt, :MidasEnvironment, :SubAppId, :RealChannel, :Channel, :Metadata, :Quantity, :CallbackUrl, :CancelUrl, :WxAppId, :WxSubAppId, :WxOpenId, :WxSubOpenId, :TotalPlatformIncome, :TotalMchIncome, :SubOrderList, :SettleInfo, :AttachmentInfoList, :PaymentNotifyUrl, :PayScene, :LocaleCode, :RegionCode, :UserClientIp, :ChannelOrderIdMode, :GlobalPayTimeInfo, :ChannelAppIdPolicy, :StoreInfo, :ClientInfo, :ExternalPromptGroupList, :OrderReceiveMode
19471
+
19472
+ def initialize(midasappid=nil, userid=nil, outtradeno=nil, currencytype=nil, productid=nil, productname=nil, productdetail=nil, originalamt=nil, totalamt=nil, midasenvironment=nil, subappid=nil, realchannel=nil, channel=nil, metadata=nil, quantity=nil, callbackurl=nil, cancelurl=nil, wxappid=nil, wxsubappid=nil, wxopenid=nil, wxsubopenid=nil, totalplatformincome=nil, totalmchincome=nil, suborderlist=nil, settleinfo=nil, attachmentinfolist=nil, paymentnotifyurl=nil, payscene=nil, localecode=nil, regioncode=nil, userclientip=nil, channelorderidmode=nil, globalpaytimeinfo=nil, channelappidpolicy=nil, storeinfo=nil, clientinfo=nil, externalpromptgrouplist=nil, orderreceivemode=nil)
19473
+ @MidasAppId = midasappid
19474
+ @UserId = userid
19475
+ @OutTradeNo = outtradeno
19476
+ @CurrencyType = currencytype
19477
+ @ProductId = productid
19478
+ @ProductName = productname
19479
+ @ProductDetail = productdetail
19480
+ @OriginalAmt = originalamt
19481
+ @TotalAmt = totalamt
19482
+ @MidasEnvironment = midasenvironment
19483
+ @SubAppId = subappid
19484
+ @RealChannel = realchannel
19485
+ @Channel = channel
19486
+ @Metadata = metadata
19487
+ @Quantity = quantity
19488
+ @CallbackUrl = callbackurl
19489
+ @CancelUrl = cancelurl
19490
+ @WxAppId = wxappid
19491
+ @WxSubAppId = wxsubappid
19492
+ @WxOpenId = wxopenid
19493
+ @WxSubOpenId = wxsubopenid
19494
+ @TotalPlatformIncome = totalplatformincome
19495
+ @TotalMchIncome = totalmchincome
19496
+ @SubOrderList = suborderlist
19497
+ @SettleInfo = settleinfo
19498
+ @AttachmentInfoList = attachmentinfolist
19499
+ @PaymentNotifyUrl = paymentnotifyurl
19500
+ @PayScene = payscene
19501
+ @LocaleCode = localecode
19502
+ @RegionCode = regioncode
19503
+ @UserClientIp = userclientip
19504
+ @ChannelOrderIdMode = channelorderidmode
19505
+ @GlobalPayTimeInfo = globalpaytimeinfo
19506
+ @ChannelAppIdPolicy = channelappidpolicy
19507
+ @StoreInfo = storeinfo
19508
+ @ClientInfo = clientinfo
19509
+ @ExternalPromptGroupList = externalpromptgrouplist
19510
+ @OrderReceiveMode = orderreceivemode
19511
+ end
19512
+
19513
+ def deserialize(params)
19514
+ @MidasAppId = params['MidasAppId']
19515
+ @UserId = params['UserId']
19516
+ @OutTradeNo = params['OutTradeNo']
19517
+ @CurrencyType = params['CurrencyType']
19518
+ @ProductId = params['ProductId']
19519
+ @ProductName = params['ProductName']
19520
+ @ProductDetail = params['ProductDetail']
19521
+ @OriginalAmt = params['OriginalAmt']
19522
+ @TotalAmt = params['TotalAmt']
19523
+ @MidasEnvironment = params['MidasEnvironment']
19524
+ @SubAppId = params['SubAppId']
19525
+ @RealChannel = params['RealChannel']
19526
+ @Channel = params['Channel']
19527
+ @Metadata = params['Metadata']
19528
+ @Quantity = params['Quantity']
19529
+ @CallbackUrl = params['CallbackUrl']
19530
+ @CancelUrl = params['CancelUrl']
19531
+ @WxAppId = params['WxAppId']
19532
+ @WxSubAppId = params['WxSubAppId']
19533
+ @WxOpenId = params['WxOpenId']
19534
+ @WxSubOpenId = params['WxSubOpenId']
19535
+ @TotalPlatformIncome = params['TotalPlatformIncome']
19536
+ @TotalMchIncome = params['TotalMchIncome']
19537
+ unless params['SubOrderList'].nil?
19538
+ @SubOrderList = []
19539
+ params['SubOrderList'].each do |i|
19540
+ cloudsuborder_tmp = CloudSubOrder.new
19541
+ cloudsuborder_tmp.deserialize(i)
19542
+ @SubOrderList << cloudsuborder_tmp
19543
+ end
19544
+ end
19545
+ unless params['SettleInfo'].nil?
19546
+ @SettleInfo = CloudSettleInfo.new
19547
+ @SettleInfo.deserialize(params['SettleInfo'])
19548
+ end
19549
+ unless params['AttachmentInfoList'].nil?
19550
+ @AttachmentInfoList = []
19551
+ params['AttachmentInfoList'].each do |i|
19552
+ cloudattachmentinfo_tmp = CloudAttachmentInfo.new
19553
+ cloudattachmentinfo_tmp.deserialize(i)
19554
+ @AttachmentInfoList << cloudattachmentinfo_tmp
19555
+ end
19556
+ end
19557
+ @PaymentNotifyUrl = params['PaymentNotifyUrl']
19558
+ @PayScene = params['PayScene']
19559
+ @LocaleCode = params['LocaleCode']
19560
+ @RegionCode = params['RegionCode']
19561
+ @UserClientIp = params['UserClientIp']
19562
+ @ChannelOrderIdMode = params['ChannelOrderIdMode']
19563
+ unless params['GlobalPayTimeInfo'].nil?
19564
+ @GlobalPayTimeInfo = CloudGlobalPayTimeInfo.new
19565
+ @GlobalPayTimeInfo.deserialize(params['GlobalPayTimeInfo'])
19566
+ end
19567
+ @ChannelAppIdPolicy = params['ChannelAppIdPolicy']
19568
+ unless params['StoreInfo'].nil?
19569
+ @StoreInfo = CloudStoreInfo.new
19570
+ @StoreInfo.deserialize(params['StoreInfo'])
19571
+ end
19572
+ unless params['ClientInfo'].nil?
19573
+ @ClientInfo = CloudClientInfo.new
19574
+ @ClientInfo.deserialize(params['ClientInfo'])
19575
+ end
19576
+ unless params['ExternalPromptGroupList'].nil?
19577
+ @ExternalPromptGroupList = []
19578
+ params['ExternalPromptGroupList'].each do |i|
19579
+ cloudexternalpromptgroup_tmp = CloudExternalPromptGroup.new
19580
+ cloudexternalpromptgroup_tmp.deserialize(i)
19581
+ @ExternalPromptGroupList << cloudexternalpromptgroup_tmp
19582
+ end
19583
+ end
19584
+ @OrderReceiveMode = params['OrderReceiveMode']
19585
+ end
19586
+ end
19587
+
19588
+ # UnifiedCloudOrder返回参数结构体
19589
+ class UnifiedCloudOrderResponse < TencentCloud::Common::AbstractModel
19590
+ # @param TransactionId: 米大师的交易订单号。
19591
+ # 注意:此字段可能返回 null,表示取不到有效值。
19592
+ # @type TransactionId: String
19593
+ # @param OutTradeNo: 开发者的支付订单号。
19594
+ # 注意:此字段可能返回 null,表示取不到有效值。
19595
+ # @type OutTradeNo: String
19596
+ # @param PayInfo: SDK的支付参数。
19597
+ # 支付参数透传给米大师SDK(原文透传给SDK即可,不需要解码)
19598
+ # 注意:此字段可能返回 null,表示取不到有效值。
19599
+ # @type PayInfo: String
19600
+ # @param TotalAmt: 支付金额,单位:分。
19601
+ # 注意:此字段可能返回 null,表示取不到有效值。
19602
+ # @type TotalAmt: Integer
19603
+ # @param ChannelInfo: 渠道信息,用于拉起渠道支付。j
19604
+ # son字符串,注意此字段仅会在传入正确的PayScene入参时才会有效。
19605
+ # 注意:此字段可能返回 null,表示取不到有效值。
19606
+ # @type ChannelInfo: String
19607
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
19608
+ # @type RequestId: String
19609
+
19610
+ attr_accessor :TransactionId, :OutTradeNo, :PayInfo, :TotalAmt, :ChannelInfo, :RequestId
19611
+
19612
+ def initialize(transactionid=nil, outtradeno=nil, payinfo=nil, totalamt=nil, channelinfo=nil, requestid=nil)
19613
+ @TransactionId = transactionid
19614
+ @OutTradeNo = outtradeno
19615
+ @PayInfo = payinfo
19616
+ @TotalAmt = totalamt
19617
+ @ChannelInfo = channelinfo
19618
+ @RequestId = requestid
19619
+ end
19620
+
19621
+ def deserialize(params)
19622
+ @TransactionId = params['TransactionId']
19623
+ @OutTradeNo = params['OutTradeNo']
19624
+ @PayInfo = params['PayInfo']
19625
+ @TotalAmt = params['TotalAmt']
19626
+ @ChannelInfo = params['ChannelInfo']
19627
+ @RequestId = params['RequestId']
19628
+ end
19629
+ end
19630
+
18166
19631
  # 子订单列表
18167
19632
  class UnifiedOrderInSubOrderList < TencentCloud::Common::AbstractModel
18168
19633
  # @param SubMchIncome: 子订单结算应收金额,单位: 分