-
Notifications
You must be signed in to change notification settings - Fork 428
/
Copy pathsecurity_risk_complaint_test.go
60 lines (53 loc) · 1.63 KB
/
security_risk_complaint_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package alipay_test
import (
"context"
"github.com/smartwalle/alipay/v3"
"testing"
)
func TestClient_SecurityRiskComplaintInfoBatchQuery(t *testing.T) {
t.Log("========== SecurityRiskComplaintInfoBatchQuery ==========")
payload := alipay.SecurityRiskComplaintInfoBatchQueryReq{}
payload.CurrentPageNum = 1
payload.PageSize = 20
payload.GmtComplaintStart = "2024-09-05 00:00:00"
payload.GmtComplaintEnd = "2024-09-06 00:00:00"
t.Log(payload)
result, err := client.SecurityRiskComplaintInfoBatchQuery(context.Background(), payload)
if err != nil {
t.Fatal(err)
}
if result.IsFailure() {
t.Fatal(result.Msg, result.SubMsg)
}
t.Logf("%v", result)
}
func TestClient_SecurityRiskComplaintInfoQuery(t *testing.T) {
t.Log("========== TestClient_SecurityRiskComplaintInfoQuery ==========")
payload := alipay.SecurityRiskComplaintInfoQueryReq{}
payload.ComplainId = 158237746
t.Log(payload)
result, err := client.SecurityRiskComplaintInfoQuery(context.Background(), payload)
if err != nil {
t.Fatal(err)
}
if result.IsFailure() {
t.Fatal(result.Msg, result.SubMsg)
}
t.Logf("%v", result)
}
func TestClient_SecurityRiskComplaintProcessFinish(t *testing.T) {
t.Log("========== TestClient_SecurityRiskComplaintProcessFinish ==========")
payload := alipay.SecurityRiskComplaintProcessFinishReq{}
payload.IdList = []int64{158237746}
payload.ProcessCode = "REFUND"
payload.Remark = "公司内部测试用户"
t.Log(payload)
result, err := client.SecurityRiskComplaintProcessFinish(context.Background(), payload)
if err != nil {
t.Fatal(err)
}
if result.IsFailure() {
t.Fatal(result.Msg, result.SubMsg)
}
t.Logf("%v", result)
}