-
Notifications
You must be signed in to change notification settings - Fork 3
/
ecommerce_test.go
63 lines (60 loc) · 1.52 KB
/
ecommerce_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
61
62
63
package weixin_shop_pay
import (
"testing"
)
func TestEcommerce_Apply(t *testing.T) {
//ecommerce := Ecommerce{config: &config{
// SpAppID: "",
//}}
//resp, err := ecommerce.Apply(&EcommerceApply{
// OutRequestNo: "",
// OrganizationType: "",
// BusinessLicenseInfo: nil,
// OrganizationCertInfo: nil,
// IDDocType: "",
// IDCardInfo: nil,
// IDDocInfo: nil,
// NeedAccountInfo: false,
// AccountInfo: nil,
// ContactInfo: nil,
// SalesSceneInfo: nil,
// MerchantShortname: "",
// Qualifications: "",
// BusinessAdditionPics: "",
// BusinessAdditionDesc: "",
//})
//if err != nil {
// t.Error(err)
//}
//log.Println(resp)
}
func TestEcommerce_ApplyQuery(t *testing.T) {
// ecommerce := Ecommerce{config: &config{
// SpAppID: "",
// }}
// resp, err := ecommerce.ApplyQuery(&EcommerceApplyQuery{ApplymentID: "123"})
// if err != nil {
// t.Error(err)
// }
// log.Println(resp)
//}
//
//func TestModifySettlement(t *testing.T) {
// ecommerce := Ecommerce{config: &config{
// SpAppID: "",
// }}
// err := ecommerce.ModifySettlement(&EcommerceModifySettlement{
// SubMchid: "",
// AccountType: "ACCOUNT_TYPE_PRIVATE",
// AccountBank: "工商银行",
// BankAddressCode: "440307",
// BankName: "中国工商银行股份有限公司深圳坂田支行",
// BankBranchID: "440307",
// AccountNumber: ""})
//
// log.Println(err)
// if err != nil {
// t.Error(err)
// }
// log.Println(err)
}