微信支付新增删除分账方和分账回退接口

This commit is contained in:
苏尹岚
2020-02-05 10:15:18 +08:00
parent 002c2f6ed2
commit cf114f7226
2 changed files with 70 additions and 4 deletions

View File

@@ -133,7 +133,7 @@ func TestTransfers(t *testing.T) {
}
func TestAddProfitSharingReceiver(t *testing.T) {
result, err := api.AddProfitSharingReceiver(&AddProfitSharingReceiver{
result, err := api.AddProfitSharingReceiver(&ProfitSharingReceiver{
Receiver: `{
"type": "PERSONAL_WECHATID",
"account":"wxid_r93tvy06srbp22",
@@ -146,3 +146,16 @@ func TestAddProfitSharingReceiver(t *testing.T) {
}
t.Log(utils.Format4Output(result, false))
}
func TestDeleteProfitSharingReceiver(t *testing.T) {
result, err := api.DeleteProfitSharingReceiver(&ProfitSharingReceiver{
Receiver: `{
"type": "PERSONAL_WECHATID",
"account":"wxid_r93tvy06srbp22"
}`,
})
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}