forked from smartwalle/alipay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_test.go
36 lines (31 loc) · 812 Bytes
/
user_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
package alipay_test
import (
"testing"
alipay "github.com/smartwalle/alipay/v3"
)
func TestClient_AgreementQuery(t *testing.T) {
t.Log("========== AgreementQuery ==========")
param := alipay.AgreementQuery{}
t.Log(param)
rsp, err := client.AgreementQuery(param)
t.Log(rsp, err)
}
func TestClient_AgreementPageSign(t *testing.T) {
t.Log("========== AgreementPageSign ==========")
param := alipay.AgreementPageSign{
ProductCode: "train",
ExternalAgreementNo: "sign1000",
}
t.Log(param)
rsp, err := client.AgreementPageSign(param)
t.Log(rsp, err)
}
func TestClient_AgreementUnsign(t *testing.T) {
t.Log("========== AgreementUnsign ==========")
param := alipay.AgreementUnsign{
AgreementNo: "sign1000",
}
t.Log(param)
rsp, err := client.AgreementUnsign(param)
t.Log(rsp, err)
}