This commit is contained in:
邹宗楠
2025-09-17 15:58:38 +08:00
parent c303ba3a11
commit 3a5063f8f9
3 changed files with 19 additions and 6 deletions

View File

@@ -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",
})
}