test(tenpayv3): 适配新的模型测试

This commit is contained in:
Fu Diwei
2021-05-28 19:08:30 +08:00
parent 782d46cad9
commit e931d90365
19 changed files with 20 additions and 15 deletions

View File

@@ -0,0 +1,13 @@
{
"mchid": "1234567890",
"merchant_name": "万象天地",
"shop_name": "重庆烤鱼(万象天地店)",
"shop_number": "50001",
"openid": "swe23be954ffots3jrvjweslfmde",
"appid": "wx2c23be954ff1624f",
"refund_time": "2018-05-23T12:13:50+08:00",
"pay_amount": 100,
"refund_amount": 100,
"transaction_id": "42000001217201407033233368018",
"refund_id": "1217752501201407033233368999"
}

View File

@@ -0,0 +1,11 @@
{
"mchid": "1230000109",
"merchant_name": "腾讯广场",
"shop_name": "微信支付",
"shop_number": "123456",
"appid": "wxd678efh567hg6787",
"openid": "oUpF8uMuAJ2pxb1Q9zNjWUHsd",
"amount": 200,
"time_end": "2020-05-20T13:29:35+08:00",
"transaction_id": "1234567890"
}

View File

@@ -0,0 +1,29 @@
{
"combine_appid": "wxd678efh567hg6787",
"combine_out_trade_no": "20150806125346",
"combine_mchid": "1900000109",
"scene_info": {
"device_id": "POS1:1"
},
"sub_orders": [
{
"mchid": "1900000109",
"trade_type": "JSAPI",
"trade_state": "SUCCESS",
"bank_type": "CMC",
"attach": "深圳分店",
"amount": {
"total_amount": 10,
"currency": "CNY",
"payer_amount": 10,
"payer_currency": "CNY"
},
"success_time": "2015-05-20T13:29:35.120+08:00",
"transaction_id": "1009660380201506130728806387",
"out_trade_no": "20150806125346"
}
],
"combine_payer_info": {
"openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o"
}
}

View File

@@ -0,0 +1,135 @@
{
"card_id": "233bcbf407e87789b8e471f251774f95",
"card_template_id": "87789b2f25177433bcbf407e8e471f95",
"openid": "oUpF8uMuAJ2pxb1Q9zNjWeS6o",
"out_card_code": "6e8369071cd942c0476613f9d1ce9ca3",
"appid": "wxd678efh567hg6787",
"mchid": "1230000109",
"time_range": {
"begin_time": "2020-05-20T13:29:35.120+08:00",
"end_time": "2020-05-21T13:29:35.120+08:00"
},
"state": "ONGOING",
"create_time": "2020-05-20T13:29:35.120+08:00",
"objectives": [
{
"unit": "次",
"name": "一周购买三次商品",
"count": 1,
"description": "特价商品",
"objective_completion_records": [
{
"completion_time": "2015-05-20T13:29:35.120+08:00",
"objective_completion_serial_no": "578354545",
"description": "购买商品/取消购买商品",
"completion_count": 1,
"remark": "特价商品",
"completion_type": "INCREASE",
"objective_id": "123456"
},
{
"completion_time": "2015-05-20T13:29:35.120+08:00",
"objective_completion_serial_no": "578354545",
"description": "购买商品/取消购买商品",
"completion_count": 1,
"remark": "特价商品",
"completion_type": "INCREASE",
"objective_id": "123456"
}
],
"objective_id": "123456"
},
{
"unit": "次",
"name": "一周购买三次商品",
"count": 1,
"description": "特价商品",
"objective_completion_records": [
{
"completion_time": "2015-05-20T13:29:35.120+08:00",
"objective_completion_serial_no": "578354545",
"description": "购买商品/取消购买商品",
"completion_count": 1,
"remark": "特价商品",
"completion_type": "INCREASE",
"objective_id": "123456"
},
{
"completion_time": "2015-05-20T13:29:35.120+08:00",
"objective_completion_serial_no": "578354545",
"description": "购买商品/取消购买商品",
"completion_count": 1,
"remark": "特价商品",
"completion_type": "INCREASE",
"objective_id": "123456"
}
],
"objective_id": "123456"
}
],
"rewards": [
{
"unit": "个",
"amount": 100,
"count_type": "COUNT_LIMIT",
"name": "八折优惠",
"count": 1,
"description": "特价商品优惠",
"reward_id": "123456",
"reward_usage_records": [
{
"usage_count": 100,
"amount": 1,
"usage_type": "INCREASE",
"usage_time": "2015-05-20T13:29:35.120+08:00",
"reward_usage_serial_no": "578354",
"description": "购买商品",
"reward_id": "123456",
"remark": "特价商品"
},
{
"usage_count": 100,
"amount": 1,
"usage_type": "INCREASE",
"usage_time": "2015-05-20T13:29:35.120+08:00",
"reward_usage_serial_no": "578354",
"description": "购买商品",
"reward_id": "123456",
"remark": "特价商品"
}
]
},
{
"unit": "个",
"amount": 100,
"count_type": "COUNT_LIMIT",
"name": "八折优惠",
"count": 1,
"description": "特价商品优惠",
"reward_id": "123456",
"reward_usage_records": [
{
"usage_count": 100,
"amount": 1,
"usage_type": "INCREASE",
"usage_time": "2015-05-20T13:29:35.120+08:00",
"reward_usage_serial_no": "578354",
"description": "购买商品",
"reward_id": "123456",
"remark": "特价商品"
},
{
"usage_count": 100,
"amount": 1,
"usage_type": "INCREASE",
"usage_time": "2015-05-20T13:29:35.120+08:00",
"reward_usage_serial_no": "578354",
"description": "购买商品",
"reward_id": "123456",
"remark": "特价商品"
}
]
}
],
"sharer_openid": "oUpF8uMuAJ2pxb1Q9zNjWUHsd"
}

View File

@@ -0,0 +1,14 @@
{
"event_type": "EVENT_TYPE_BUSICOUPON_SEND",
"coupon_code": "1227944959000000911017",
"stock_id": "1286950000000039",
"send_time": "2019-12-17T10:35:53+08:00",
"openid": "odXnH1CJjeQoWTld48db-pnxs-Wg",
"unionid": "oOuyajgxj0oVwjocSoQm6mp7PGKw",
"send_channel": "BUSICOUPON_SEND_CHANNEL_PAYGIFT",
"send_merchant": "98568888",
"attach_info": {
"transaction_id": "4200000462220200226114599",
"act_code": "540358695"
}
}

View File

@@ -0,0 +1,38 @@
{
"stock_creator_mchid": "9800064",
"stock_id": "9865888",
"coupon_id": "98674556",
"singleitem_discount_off": {
"single_price_max": 100
},
"discount_to": {
"cut_to_price": 100,
"max_price": 10
},
"coupon_name": "微信支付代金券",
"status": "EXPIRED",
"description": "微信支付营销",
"create_time": "2015-05-20T13:29:35.120+08:00",
"coupon_type": "CUT_TO",
"no_cash": true,
"available_begin_time": "2015-05-20T13:29:35.120+08:00",
"available_end_time": "2015-05-20T13:29:35.120+08:00",
"singleitem": true,
"normal_coupon_information": {
"coupon_amount": 100,
"transaction_minimum": 100
},
"consume_information": {
"consume_time": "2015-05-20T13:29:35.120+08:00",
"consume_mchid": "9856081",
"transaction_id": "2345234523",
"goods_detail": [
{
"goods_id": "a_goods1",
"quantity": 7,
"price": 1,
"discount_amount": 4
}
]
}
}

View File

@@ -0,0 +1,4 @@
{
"complaint_id": "200201820200101080076610000",
"action_type": "CREATE_COMPLAINT"
}

View File

@@ -0,0 +1,17 @@
{
"sp_mchid": "1900000100",
"sub_mchid": "1900000109",
"transaction_id": "1008450740201411110005820873",
"out_trade_no": "20150806125346",
"refund_id": "50200207182018070300011301001",
"out_refund_no": "7752501201407033233368018",
"refund_status": "SUCCESS",
"success_time": "2018-06-08T10:34:56+08:00",
"user_received_account": "招商银行信用卡0403",
"amount": {
"total": 999,
"refund": 999,
"payer_total": 999,
"payer_refund": 999
}
}

View File

@@ -0,0 +1,83 @@
{
"sp_appid": "wx8888888888888888",
"sp_mchid": "1230000109",
"sub_appid": "wxd678efh567hg6999",
"sub_mchid": "1900000109",
"out_trade_no": "1217752501201407033233368018",
"trade_state_desc": "支付成功",
"trade_type": "MICROPAY",
"attach": "自定义数据",
"transaction_id": "1217752501201407033233368018",
"trade_state": "SUCCESS",
"bank_type": "CMC",
"success_time": "2018-06-08T10:34:56+08:00",
"amount": {
"payer_total": 100,
"total": 100,
"currency": "CNY",
"payer_currency": "CNY"
},
"promotion_detail": [
{
"amount": 100,
"wechatpay_contribute": 0,
"coupon_id": "109519",
"scope": "GLOBAL",
"merchant_contribute": 0,
"name": "单品惠-6",
"other_contribute": 0,
"currency": "CNY",
"stock_id": "931386",
"goods_detail": [
{
"goods_remark": "商品备注信息",
"quantity": 1,
"discount_amount": 1,
"goods_id": "M1006",
"unit_price": 100
},
{
"goods_remark": "商品备注信息",
"quantity": 1,
"discount_amount": 1,
"goods_id": "M1006",
"unit_price": 100
}
]
},
{
"amount": 100,
"wechatpay_contribute": 0,
"coupon_id": "109519",
"scope": "GLOBAL",
"merchant_contribute": 0,
"name": "单品惠-6",
"other_contribute": 0,
"currency": "CNY",
"stock_id": "931386",
"goods_detail": [
{
"goods_remark": "商品备注信息",
"quantity": 1,
"discount_amount": 1,
"goods_id": "M1006",
"unit_price": 100
},
{
"goods_remark": "商品备注信息",
"quantity": 1,
"discount_amount": 1,
"goods_id": "M1006",
"unit_price": 100
}
]
}
],
"payer": {
"sp_openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o",
"sub_openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o"
},
"scene_info": {
"device_id": "013467007045764"
}
}

View File

@@ -0,0 +1,11 @@
{
"appid": "wxd678efh567hg6787",
"mch_id": "1230000109",
"sub_appid": "wxd678efh567hg6786",
"sub_mch_id": "1230000109",
"service_id": "500001",
"sub_openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o",
"user_service_status": "USER_CLOSE_SERVICE",
"openorclose_time": "20180225112233",
"authorization_code": "4534323JKHDFE1243252"
}

View File

@@ -0,0 +1,59 @@
{
"service_id": "500001",
"appid": "wxd678efh567hg6787",
"mchid": "1230000109",
"sub_appid": "wxd678efh567hg6999",
"sub_mchid": "1900000109",
"out_order_no": "1234323JKHDFE1243252",
"sub_openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o",
"state": "DONE",
"service_introduction": "嗨客餐厅用餐",
"total_amount": "40000",
"post_payments": [
{
"name": "服务费",
"amount": 40000,
"description": "每分钟1元"
}
],
"post_discounts": [
{
"name": "满20减1元",
"amount": 1,
"description": "不与其他优惠叠加"
}
],
"risk_fund": {
"name": "预估订单费用",
"amount": 10000,
"description": "就餐的预估费用"
},
"time_range": {
"start_time": "20091225091010",
"start_time_remark": "xxx",
"end_time": "20091225091210",
"end_time_remark": "xxx"
},
"location": {
"start_location": "嗨客时尚主题展餐厅",
"end_location": "嗨客时尚主题展餐厅"
},
"attach": "attach",
"order_id": "165461131",
"need_collection": true,
"collection": {
"state": "",
"total_amount": 40000,
"paying_amount": 40000,
"paid_amount": 0,
"details": [
{
"seq": 1,
"amount": 10000,
"paid_type": "MCH",
"paid_time": "20091225091210",
"transaction_id": "15646546545165651651"
}
]
}
}

View File

@@ -0,0 +1,9 @@
{
"appid": "wxd678efh567hg6787",
"mchid": "1230000109",
"out_request_no": "1234323JKHDFE1243252",
"service_id": "500001",
"openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o",
"user_service_status": "USER_OPEN_SERVICE",
"openorclose_time": "20180225112233"
}

View File

@@ -0,0 +1,40 @@
{
"appid": "wxd678efh567hg6787",
"mchid": "1230000109",
"out_order_no": "1234323JKHDFE1243252",
"service_id": "500001",
"openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o",
"state": "DOING",
"state_description": "USER_CONFIRM",
"total_amount": "40000",
"service_introduction": "嗨客餐厅用餐",
"post_payments": [
{
"name": "服务费",
"amount": 40000,
"description": "每分钟1元"
}
],
"post_discounts": [
{
"name": "满20减1元",
"amount": 1,
"description": "不与其他优惠叠加"
}
],
"risk_fund": {
"name": "ESTIMATE_ORDER_COST",
"amount": 10000,
"description": "就餐的预估费用"
},
"time_range": {
"start_time": "20091225091010",
"end_time": "20091225091210"
},
"location": {
"start_location": "嗨客时尚主题展餐厅",
"end_location": "嗨客时尚主题展餐厅"
},
"attach": "attach",
"order_id": "165461131"
}

View File

@@ -0,0 +1,80 @@
{
"transaction_id": "1217752501201407033233368018",
"amount": {
"payer_total": 100,
"total": 100,
"currency": "CNY",
"payer_currency": "CNY"
},
"mchid": "1230000109",
"trade_state": "SUCCESS",
"bank_type": "CMC",
"promotion_detail": [
{
"amount": 100,
"wechatpay_contribute": 0,
"coupon_id": "109519",
"scope": "GLOBAL",
"merchant_contribute": 0,
"name": "单品惠-6",
"other_contribute": 0,
"currency": "CNY",
"stock_id": "931386",
"goods_detail": [
{
"goods_remark": "商品备注信息",
"quantity": 1,
"discount_amount": 1,
"goods_id": "M1006",
"unit_price": 100
},
{
"goods_remark": "商品备注信息",
"quantity": 1,
"discount_amount": 1,
"goods_id": "M1006",
"unit_price": 100
}
]
},
{
"amount": 100,
"wechatpay_contribute": 0,
"coupon_id": "109519",
"scope": "GLOBAL",
"merchant_contribute": 0,
"name": "单品惠-6",
"other_contribute": 0,
"currency": "CNY",
"stock_id": "931386",
"goods_detail": [
{
"goods_remark": "商品备注信息",
"quantity": 1,
"discount_amount": 1,
"goods_id": "M1006",
"unit_price": 100
},
{
"goods_remark": "商品备注信息",
"quantity": 1,
"discount_amount": 1,
"goods_id": "M1006",
"unit_price": 100
}
]
}
],
"success_time": "2018-06-08T10:34:56+08:00",
"payer": {
"openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o"
},
"out_trade_no": "1217752501201407033233368018",
"appid": "wxd678efh567hg6787",
"trade_state_desc": "支付成功",
"trade_type": "MICROPAY",
"attach": "自定义数据",
"scene_info": {
"device_id": "013467007045764"
}
}

View File

@@ -0,0 +1,16 @@
{
"mchid": "1900000100",
"transaction_id": "1008450740201411110005820873",
"out_trade_no": "20150806125346",
"refund_id": "50200207182018070300011301001",
"out_refund_no": "7752501201407033233368018",
"refund_status": "SUCCESS",
"success_time": "2018-06-08T10:34:56+08:00",
"user_received_account": "招商银行信用卡0403",
"amount": {
"total": 999,
"refund": 999,
"payer_total": 999,
"payer_refund": 999
}
}