45 lines
1.2 KiB
Go
45 lines
1.2 KiB
Go
package lakala
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestCreateSeparate(t *testing.T) {
|
|
parameter := &CreateSeparateReq{
|
|
Version: "1.0",
|
|
OrderNo: "KFPT20230223181025407788734",
|
|
OrgCode: "1",
|
|
MerInnerNo: "4002021033012340711",
|
|
MerCupNo: "822*******",
|
|
ContactMobile: "111111",
|
|
SplitLowestRatio: 0,
|
|
SplitEntrustFileName: "授权委托书.pdf",
|
|
SplitEntrustFilePath: "G1/M00/00/16/CrFdEl0wGu6AHwGQAAAz1tt6luo194.jpg",
|
|
RetUrl: "http://run.mocky.io/v3/b02c9448-20a2-4ff6-a678-38ecab30161d",
|
|
SplitRuleSource: "",
|
|
SplitRange: "",
|
|
SepFundSource: "",
|
|
EleContractNo: "",
|
|
SplitLaunchMode: "",
|
|
SettleType: "",
|
|
Attachments: nil,
|
|
}
|
|
api.CreateSeparate(parameter)
|
|
}
|
|
|
|
func TestGetSeparate(t *testing.T) {
|
|
paramter := &SeparateQueryReq{
|
|
Version: "1.0",
|
|
OrderNo: "KFPT20230223181747812863750",
|
|
OrgCode: "1",
|
|
MerInnerNo: "822*********",
|
|
MerCupNo: "",
|
|
}
|
|
|
|
api.SeparateQuery(paramter)
|
|
}
|
|
|
|
func TestQuerySeparateRecipient(t *testing.T) {
|
|
api.QuerySeparateRecipient("NEWRETAILSPLIT26687958", "4002022021832894453")
|
|
}
|