微信支付新增删除分账方和分账回退接口
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user