1
This commit is contained in:
@@ -40,9 +40,22 @@ func TestSendMsg(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestInvoice(t *testing.T) {
|
||||
api.QueryInvoiceSetting([]string{"1306214718"})
|
||||
_, err := api.QueryInvoiceSetting([]string{"1298742562"})
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
func TestQueryUnansweredInvoice(t *testing.T) {
|
||||
api.QueryUnansweredInvoice("1306214718")
|
||||
}
|
||||
|
||||
func TestBathUpdateInvoiceSetting(t *testing.T) {
|
||||
api.BathUpdateInvoiceSetting("1298742562", &StoreInvoiceSetting{
|
||||
InvoiceMaterial: "ELECTRONIC",
|
||||
InvoiceClass: "VAT_COMMON",
|
||||
InvoiceContact: struct {
|
||||
Person string `json:"person"`
|
||||
Phone string `json:"phone"`
|
||||
}{Person: "老板", Phone: "15020067079"},
|
||||
InvoiceMode: "SYS_MANUAL",
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user