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

This commit is contained in:
Fu Diwei
2021-05-28 19:27:38 +08:00
parent dc78ea6577
commit 27cd4178e7
988 changed files with 11052 additions and 206 deletions

View File

@@ -0,0 +1,10 @@
{
"invoiceinfo": {
"wxopenid": "os92LxEDbiOw7kWZanRN_Bb3Q45I",
"fpqqlsh": "test20160511000400",
"nsrsbh": "110109500321654",
"nsrmc": "百旺电子测试1",
"yfpdm": "050003521100",
"yfphm": "30329969"
}
}

View File

@@ -0,0 +1,4 @@
{
"errcode": 0,
"errmsg": "sucesss"
}

View File

@@ -0,0 +1,4 @@
{
"s_pappid": "{s_pappid}",
"order_id": "{order_id}"
}

View File

@@ -0,0 +1,33 @@
{
"errcode": 0,
"errmsg": "ok",
"invoice_status": "auth success",
"auth_time": 1480342498,
"user_auth_info": {
"user_field": {
"title": "Dhxhhx ",
"phone": "5554545",
"email": "dhxhxhhx@qq.cind",
"custom_field": [
{
"key": "field1",
"value": "管理理论"
}
]
},
"biz_field": {
"title": "王xx",
"tax_no": "6464646766",
"addr": "后过敏",
"phone": "1557548768",
"bank_type": "仔仔细细",
"bank_no": "545454646",
"custom_field": [
{
"key": "field2",
"value": "哈哈哈啊"
}
]
}
}
}

View File

@@ -0,0 +1,10 @@
{
"s_pappid": "wxabcd",
"order_id": "1234",
"money": 11,
"timestamp": 1474875876,
"source": "web",
"redirect_url": "https://mp.weixin.qq.com",
"ticket": "tttt",
"type": 1
}

View File

@@ -0,0 +1,6 @@
{
"errcode": 0,
"errmsg": "ok",
"auth_url": "auth_url",
"appid": "appid"
}

View File

@@ -0,0 +1,29 @@
{
"order_id": "111163",
"card_ext": {
"nonce_str": "j!Re1WxaHv",
"user_card": {
"invoice_user_data": {
"info": [
{
"price": 10000,
"num": 3,
"name": "牙膏",
"unit": "个"
}
],
"billing_no": "4545145712",
"billing_code": "4541212454512",
"billing_time": "1468306058",
"tax": 123,
"s_pdf_media_id": "s_pdf_media_id_abc123",
"fee": 123,
"title": "灌哥发票",
"fee_without_tax": 2345,
"buyer_number": "123456789012345678"
}
}
},
"card_id": "pjZ8Yt9WoOePThU0NfUKz5-tBEWU",
"appid": "wxc0b84a53ed8e8d29"
}

View File

@@ -0,0 +1,6 @@
{
"errcode": 0,
"errmsg": "ok",
"code": "682xxxx661927",
"openid": "ojZ8Ytz4lESxxxx_R1TvB2Kds"
}

View File

@@ -0,0 +1,41 @@
{
"invoiceinfo": {
"wxopenid": "os92LxEDbiOw7kWZanRN_Bb3Q45I",
"ddh": "30000",
"fpqqlsh": "test20160511000461",
"nsrsbh": "110109500321654",
"nsrmc": "百旺电子测试1",
"nsrdz": "深圳市",
"nsrdh": "0755228899988",
"nsrbank": "中国银行广州支行",
"nsrbankid": "12345678",
"ghfnsrsbh": "110109500321654",
"ghfmc": "周一",
"ghfdz": "广州市",
"ghfdh": "13717771888",
"ghfbank": "工商银行",
"ghfbankid": "12345678",
"kpr": "小明",
"skr": "李四",
"fhr": "小王",
"jshj": "159.0",
"hjje": "135.9",
"hjse": "23.1",
"bz": "备注",
"hylx": "0",
"invoicedetail_list": [
{
"fphxz": "0",
"spbm": "1090418010000000000",
"xmmc": "洗衣机",
"dw": "台",
"ggxh": "60L",
"xmsl": "1",
"xmdj": "135.9",
"xmje": "135.9",
"sl": "0.17",
"se": "23.1"
}
]
}
}

View File

@@ -0,0 +1,4 @@
{
"errcode": 0,
"errmsg": "sucesss"
}

View File

@@ -0,0 +1,4 @@
{
"fpqqlsh": "test20160511000440",
"nsrsbh": "110109500321654"
}

View File

@@ -0,0 +1,12 @@
{
"errcode": 0,
"errmsg": "发票数据获取成功",
"invoicedetail": {
"fpqqlsh": "14574d75004451097845",
"fpdm": "088978450417",
"fphm": "21590001",
"jym": "59004166725791147047",
"kprq": "20171204172159",
"pdfurl": "http://weixin.com"
}
}

View File

@@ -0,0 +1,6 @@
{
"s_pappid": "d3JCEfhGLW+q0iGP+o9",
"order_id": "111229",
"reason": "1234",
"url": "http://xxx.com"
}

View File

@@ -0,0 +1,4 @@
{
"errcode": 0,
"errmsg": "ok"
}

View File

@@ -0,0 +1,27 @@
{
"auth_field": {
"user_field": {
"show_title": 1,
"show_phone": 1,
"show_email": 1,
"custom_field": [
{
"key": "field1"
}
]
},
"biz_field": {
"show_title": 1,
"show_tax_no": 1,
"show_addr": 1,
"show_phone": 1,
"show_bank_type": 1,
"show_bank_no": 1,
"custom_field": [
{
"key": "field2"
}
]
}
}
}

View File

@@ -0,0 +1,4 @@
{
"errcode": 0,
"errmsg": "ok"
}

View File

@@ -0,0 +1,6 @@
{
"contact": {
"phone": "88888888",
"time_out": 12345
}
}

View File

@@ -0,0 +1,4 @@
{
"errcode": 0,
"errmsg": "ok"
}

View File

@@ -0,0 +1,6 @@
{
"paymch_info": {
"mchid": "1234",
"s_pappid": "wxabcd"
}
}

View File

@@ -0,0 +1,4 @@
{
"errcode": 0,
"errmsg": "ok"
}

View File

@@ -0,0 +1,5 @@
{
"errcode": 0,
"errmsg": "ok",
"invoice_url": "https://mp.weixin.qq.com/bizmall/authinvoice?action=list&s_pappid=d3xxxxxxxxxxxxxGLSS0wrL14No8c1"
}

View File

@@ -0,0 +1,16 @@
{
"invoice_info": {
"base_info": {
"logo_url": "http://mmbiz.qpic.cn/mmbiz/iaL1LJM1mF9aRKPZJkmG8xXhiaHqkKSVMMWeN3hLut7X7hicFNjakmxibMLGWpXrEXB33367o7zHN0CwngnQY7zb7g/0",
"title": "xx公司",
"custom_url_name": "xyz",
"custom_url": "xyz",
"custom_url_sub_title": "xyz",
"promotion_url_name": "puname",
"promotion_url": "purl",
"promotion_url_sub_title": "ptitle"
},
"type": " 广东省增值税普通发票 ",
"payee": " 测试 - 收款方 "
}
}

View File

@@ -0,0 +1,5 @@
{
"errcode": 0,
"errmsg": "ok",
"card_id": "pjZ8Yt9WoOePThU0NfUKz5-tBEWU"
}

View File

@@ -0,0 +1,4 @@
{
"action": "get_url",
"s_media_id": "75195574948725301"
}

View File

@@ -0,0 +1,6 @@
{
"errcode": 0,
"errmsg": "ok",
"pdf_url": "https://mp.weixin.qq.com/intp/invoice/getpdf?action=media_pdf&media_key=dFRnTkV6WCswNjB1V1czZ0tVU3MhaX4yb2pxeEVSY0teSCtuflY6UXAifD5rL09kTjFpOFVWKyJGNCgxTCtkJER6VjFlRCtVU2JKcS5FZw",
"pdf_url_expire_time": 7200
}

View File

@@ -0,0 +1,5 @@
{
"errcode": 0,
"errmsg": "ok",
"s_media_id": "3015806758683707"
}

View File

@@ -0,0 +1,5 @@
{
"card_id": "pjZ8Yt7Um2jYxzneP8GomnxoVFWo",
"code": "186921658591",
"reimburse_status": "INVOICE_REIMBURSE_INIT"
}

View File

@@ -0,0 +1,5 @@
{
"url": "https://mp.weixin.qq.com/intp/invoice/usertitle?action=select_title&select_title_key=iY1bpfvAuwKgkfQECzlhog#wechat_redirect",
"errcode": 0,
"errmsg": "ok"
}

View File

@@ -0,0 +1,8 @@
{
"tax_no": "1486715052",
"addr": "abc",
"title": "用户抬头",
"bank_type": "bank_type",
"phone": "12345",
"bank_no": "bank_no"
}

View File

@@ -0,0 +1,5 @@
{
"url": "https://mp.weixin.qq.com/intp/invoice/usertitle?action=list_auth&biz_title_key=hMjjwk#wechat_redirect",
"errcode": 0,
"errmsg": "ok"
}

View File

@@ -0,0 +1,3 @@
{
"scan_text": "https//mp.weixingg.com/intp/invoice/usertitlewxa?action=list_auth&invoice_key=abcd"
}

View File

@@ -0,0 +1,11 @@
{
"errcode": 0,
"errmsg": "ok",
"title": "单位抬头测试",
"tax_no": "aaaaaaaaaa123456",
"addr": "1496647324",
"bank_type": "bank_type",
"phone": "12345",
"title_type": 0,
"bank_no": "1235456465341234"
}

View File

@@ -0,0 +1,12 @@
{
"item_list": [
{
"card_id": "pjZ8Yt7KKEXWMpETmwG2ZZxX2m6E",
"encrypt_code": "O/mPnGTpBu22a1szmK2 "
},
{
"card_id": "pjZ8YtxSguaLUaaDqzeAf385soJM",
"encrypt_code": "O/mPnGTpBu22a1szmK2ogz "
}
]
}

View File

@@ -0,0 +1,64 @@
{
"errcode": 0,
"errmsg": "ok",
"item_list": [
{
"user_info": {
"fee": 123,
"title": "灌哥发票",
"billing_time": 1504085973,
"billing_no": "1504085973",
"billing_code": "aabbccdd",
"info": [
{
"name": "牙膏",
"num": 3,
"unit": "个",
"price": 10000
}
],
"fee_without_tax": 2345,
"tax": 123,
"pdf_url": "http://pdfurl",
"reimburse_status": "INVOICE_REIMBURSE_INIT",
"order_id": "1504085935",
"check_code": "check_code",
"buyer_number": "buyer_number"
},
"card_id": "pjZ8Yt7KKEXWMpETmwG2ZZxX2m6E",
"openid": "oZI8Fj8L63WugQsljlzzfCcw3AkQ",
"type": "广东省增值税普通发票",
"payee": "测试-收款方",
"detail": "detail"
},
{
"user_info": {
"fee": 123,
"title": "灌哥发票",
"billing_time": 1504083578,
"billing_no": "1504083578",
"billing_code": "aabbccdd",
"info": [
{
"name": "牙膏",
"num": 3,
"unit": "个",
"price": 10000
}
],
"fee_without_tax": 2345,
"tax": 123,
"pdf_url": " http://pdfurl",
"reimburse_status": "INVOICE_REIMBURSE_INIT",
"order_id": "1504083522",
"check_code": "check_code",
"buyer_number": "buyer_number"
},
"card_id": "pjZ8YtxSguaLUaaDqzeAf385soJM",
"openid": "oZI8Fj8L63WugQsljlzzfCcw3AkQ",
"type": "广东省增值税普通发票",
"payee": "测试-收款方",
"detail": "detail"
}
]
}

View File

@@ -0,0 +1,4 @@
{
"card_id": "pjZ8Yt5crPbAouhFqFf6JFgZv4Lc",
"encrypt_code": "fbdt/fWy1VitQwhbKtSjNeR3BJyfpeJXfZjjGsdCXiM="
}

View File

@@ -0,0 +1,31 @@
{
"errcode": 0,
"errmsg": "ok",
"card_id": "pjZ8Yt5crPbAouhFqFf6JFgZv4Lc",
"begin_time": 1476068114,
"end_time": 1476168114,
"user_card_status": "EXPIRE",
"openid": "obLatjnG4vRXJvSO8p914rSK8-Vo",
"type": "广东省增值税普通发票",
"payee": "测试-收款方",
"detail": "测试-detail",
"user_info": {
"fee": 1100,
"title": "XX公司",
"billing_time": 1468322401,
"billing_no": "hello",
"billing_code": "world",
"info": [
{
"name": "绿巨人",
"num": 10,
"unit": "吨",
"price": 4
}
],
"fee_without_tax": 2345,
"tax": 123,
"pdf_url": "pdf_url",
"reimburse_status": "INVOICE_REIMBURSE_INIT"
}
}

View File

@@ -0,0 +1,5 @@
{
"card_id": "pjZ8Yt5crPbAouhFqFf6JFgZv4Lc",
"encrypt_code": "fbdt/fWy1VitQwhbKtSjNeR3BJyfpeJXfZjjGsdCXiM=",
"reimburse_status": "INVOICE_REIMBURSE_INIT"
}

View File

@@ -0,0 +1,14 @@
{
"openid": "{openid}",
"reimburse_status": "{reimburse_status}",
"invoice_list": [
{
"card_id": "cardid_1",
"encrypt_code": "encrypt_code_1"
},
{
"card_id": "cardid_2",
"encrypt_code": "encrypt_code_2"
}
]
}

View File

@@ -0,0 +1,29 @@
{
"errcode": 0,
"errmsg": "ok",
"auth_field": {
"user_field": {
"show_title": 1,
"show_phone": 1,
"show_email": 1,
"custom_field": [
{
"key": "field1"
}
]
},
"biz_field": {
"show_title": 1,
"show_tax_no": 1,
"show_addr": 1,
"show_phone": 1,
"show_bank_type": 1,
"show_bank_no": 1,
"custom_field": [
{
"key": "field2"
}
]
}
}
}

View File

@@ -0,0 +1,8 @@
{
"contact": {
"phone": "88888888",
"time_out": 12345
},
"errcode": 0,
"errmsg": "ok"
}

View File

@@ -0,0 +1,8 @@
{
"errcode": 0,
"errmsg": "ok",
"paymch_info": {
"mchid": "1234",
"s_pappid": "wxabcd"
}
}