feat(tenpayv3): 随官方更新代金券相关接口模型

This commit is contained in:
Fu Diwei
2024-08-12 13:22:10 +08:00
parent b953a43bd7
commit 445fc25bfd
10 changed files with 214 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
{
{
"stock_id": "9836588",
"stock_creator_mchid": "123456",
"stock_name": "微信支付批次",
@@ -9,17 +9,44 @@
"max_coupons": 100,
"max_amount": 5000,
"max_amount_by_day": 400,
"fixed_normal_coupon": {
"coupon_amount": 100,
"transaction_minimum": 100
},
"max_coupons_per_user": 3,
"trade_type": ["OTHER", "APPPAY"]
"coupon_type": "NORMAL",
"goods_tag": [
"123456"
],
"trade_type": [
"MICROAPP"
],
"combine_use": true
},
"available_begin_time": "2015-05-20T13:29:35.120+08:00",
"available_end_time": "2015-05-20T13:29:35.120+08:00",
"distributed_coupons": 100,
"no_cash": true,
"start_time": "2015-05-20T13:29:35.120+08:00",
"stop_time": "2015-05-20T13:29:35.120+08:00",
"cut_to_message": {
"single_price_max": 100,
"cut_to_price": 5000
"cut_to_price": 80
},
"singleitem": true,
"stock_type": "NORMAL"
"stock_type": "NORMAL",
"card_id": "pX2-vjoeC94Nn-r2g5GjDwkfFH7E",
"business_type": "MULTIUSE",
"available_region_list": [
{
"type": "PROVINCE",
"province": "广东省",
"city": "深圳市",
"district": "南山区",
"country": "中国大陆"
}
],
"available_industry_list": [
"餐饮"
]
}

View File

@@ -1,4 +1,4 @@
{
{
"total_count": 10,
"data": [
{
@@ -17,14 +17,27 @@
"transaction_minimum": 100
},
"max_coupons_per_user": 3,
"trade_type": ["OTHER", "APPPAY"]
"trade_type": [ "OTHER", "APPPAY" ]
},
"available_begin_time": "2015-05-20T13:29:35.120+08:00",
"available_end_time": "2015-05-20T13:29:35.120+08:00",
"distributed_coupons": 100,
"no_cash": true,
"singleitem": true,
"stock_type": "NORMAL"
"stock_type": "NORMAL",
"business_type": "MULTIUSE",
"available_region_list": [
{
"type": "PROVINCE",
"province": "广东省",
"city": "深圳市",
"district": "南山区",
"country": "中国大陆"
}
],
"available_industry_list": [
"餐饮"
]
}
],
"limit": 8,

View File

@@ -1,22 +1,25 @@
{
{
"stock_creator_mchid": "9800064",
"stock_id": "9865888",
"coupon_id": "98674556",
"cut_to_message": {
"single_price_max": 100,
"cut_to_price": 100
"cut_to_price": 80
},
"coupon_name": "微信支付代金券",
"status": "EXPIRED",
"description": "微信支付营销",
"create_time": "2015-05-20T13:29:35.120+08:00",
"coupon_type": "CUT_TO",
"no_cash": true,
"no_cash": false,
"available_begin_time": "2015-05-20T13:29:35.120+08:00",
"available_end_time": "2015-05-20T13:29:35.120+08:00",
"singleitem": true,
"singleitem": false,
"normal_coupon_information": {
"coupon_amount": 100,
"transaction_minimum": 100
}
},
"out_request_no": "example_out_request_no",
"available_balance": 10000,
"business_type": "MULTIUSE"
}

View File

@@ -1,4 +1,4 @@
{
{
"data": [
{
"stock_creator_mchid": "9800064",
@@ -33,7 +33,10 @@
"discount_amount": 4
}
]
}
},
"out_request_no": "example_out_request_no",
"available_balance": 10000,
"business_type": "MULTIUSE"
}
],
"total_count": 100,