feat(work): 新增小程序接入对外收款相关接口

This commit is contained in:
Fu Diwei
2023-10-10 15:15:14 +08:00
parent 4163232f0f
commit bbf970d3ed
37 changed files with 1360 additions and 40 deletions

View File

@@ -0,0 +1,6 @@
{
"download_url": "xxx",
"hash_type": "xxx",
"hash_value": "xxx",
"auth": "xxx"
}

View File

@@ -0,0 +1,4 @@
{
"mchid": "xxx",
"out_trade_no": "xxx"
}

View File

@@ -0,0 +1,40 @@
{
"appid": "xx",
"mchid": "xx",
"out_trade_no": "xxxx",
"description": "xxxxx",
"scenekey": "xxxx",
"amount": {
"total": 100,
"currency": "CNY"
},
"payer": {
"openid": "xxx"
},
"time_expire": "2015-05-20T13:29:35+08:00",
"attach": "xxxxx",
"goods_tag": "xxxxxxx",
"scene_info": {
"payer_client_ip": "127.0.0.1",
"device_id": "xxxxxxx",
"store_info": {
"id": "xxxx",
"name": "xxxx",
"area_code": "xxxx",
"address": "xxxxx"
}
},
"detail": {
"cost_price": 123,
"invoice_id": "asdfasdfasdf",
"goods_detail": [
{
"merchant_goods_id": "xxxx",
"wechatpay_goods_id": "xxxx",
"goods_name": "iPhoneX 256G",
"quantity": 1,
"unit_price": 828800
}
]
}
}

View File

@@ -0,0 +1,5 @@
{
"prepay_id": "xxxxxx",
"errcode": 0,
"errmsg": "ok"
}

View File

@@ -0,0 +1,4 @@
{
"mchid": "xxx",
"out_trade_no": "xxx"
}

View File

@@ -0,0 +1,10 @@
{
"mchid": "xxx",
"out_trade_no": "xxxx",
"trade_state": "xxx",
"trade_state_desc": "xxx",
"payer": {
"openid": "xxxxxx"
},
"transaction_id": "xxxxxxxx"
}

View File

@@ -0,0 +1,7 @@
{
"appid": "wx1cce664e7cdcf31a",
"prepay_id": "wx111925097328382762a266f5cefb640000",
"sign_type": "RSA",
"nonce": "fqDdjLywAmNDZleCWfPsfhlInxnwnOLK",
"timestamp": 1675219608
}

View File

@@ -0,0 +1,5 @@
{
"pay_sign": "mHIpSqqf1EnBHAOZ5EE3CJRmgHeRcEsfHg0zhOWs+recA6LrHiHZwWT1M6/+ZvzztOkwjnnx8We4n/xX0mNWM5A6eUQYXE9CEgQKVKPIHVXmsheJqPUIiOXXoRaFY7byLzjkQXcGrNG9iDXdhzwCFeQSNXs072uN+2QRoA+mk0pBiY/uPdFXPBPx8nd5FJshrsnzEGmS+nLbyOfJjTH7SkJPCHuxaDPsf24LD5HRT8bjxMzt/92PZY07NQIQhgcCSqpm758xvEnw43iMNsR2ieUNjwkWyQo+SHvDxr2jn/zmT6JmWhtF+ull+jdptfoRPm/oZsPoqGZfHpc2VSrzMA==",
"errcode": 0,
"errmsg": "ok"
}

View File

@@ -0,0 +1,4 @@
{
"mchid": "xxx",
"out_refund_no": "xxx"
}

View File

@@ -0,0 +1,17 @@
{
"out_refund_no": "1217752501201407033233368018",
"out_trade_no": "1217752501201407033233368018",
"channel": "ORIGINAL",
"user_received_account": "招商银行信用卡0403",
"success_time": "2018-06-08T10:34:56+08:00",
"create_time": "2018-06-08T10:34:56+08:00",
"status": "SUCCESS",
"amount": {
"refund": 888,
"payer_refund": 888,
"discount_refund": 888,
"currency": "CNY"
},
"errcode": 0,
"errmsg": "ok"
}

View File

@@ -0,0 +1,13 @@
{
"mchid": "1900000109",
"appid": "wx8888888888888888",
"out_trade_no": "1217752501201407033233368018",
"out_refund_no": "1217752501201407033233368018",
"reason": "商品已售完",
"funds_account": "AVAILABLE",
"amount": {
"refund": 888,
"total": 888,
"currency": "CNY"
}
}

View File

@@ -0,0 +1,9 @@
{
"out_refund_no": "1217752501201407033233368018",
"amount": {
"refund": 888,
"currency": "CNY"
},
"errcode": 0,
"errmsg": "ok"
}