1 Star 0 Fork 0

taadis / aikucun-sdk-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
invoice_upload_test.go 601 Bytes
一键复制 编辑 原始数据 按行查看 历史
taadis 提交于 2020-09-13 23:06 . implement Stringer interface
package aikucun
import (
"testing"
)
//
func TestInvoiceUploadResponseString(t *testing.T) {
resp := &InvoiceUploadResponse{}
s := resp.String()
t.Log(s)
}
// TestInvoiceUpload
func TestInvoiceUpload(t *testing.T) {
parseArgs(t)
client := NewClient(
WithUrl(UrlTest),
WithAppId(*appId),
WithAppSecret(*appSecret),
WithErp(*erp),
WithErpVersion(*erpVersion),
)
req := NewInvoiceUploadRequest()
resp, err := client.InvoiceUpload(req)
if err != nil {
t.Fatal(".InvoiceUpload error:", err.Error())
}
if resp.Code != 0 {
t.Fatal(".InvoiceUpload resp fail:", resp.Message)
}
}
Go
1
https://gitee.com/taadis/aikucun-sdk-go.git
git@gitee.com:taadis/aikucun-sdk-go.git
taadis
aikucun-sdk-go
aikucun-sdk-go
master

搜索帮助