1234567891011121314151617181920212223 |
- package fapiao
-
- func Red(seller_taxpayer_num string, callback_url string, order_sn string) (routerAddress string, postData map[string]interface{}) {
-
- routerAddress = "/tax-api/invoice/red/quick/v1"
-
- invoices := make([]map[string]interface{}, 1)
-
- invoice := make(map[string]interface{})
- invoice["seller_taxpayer_num"] = seller_taxpayer_num
- invoice["callback_url"] = callback_url
- invoice["order_sn"] = order_sn
- invoice["apply_reason"] = "2"
-
- invoices[0] = invoice
-
- postData = map[string]interface{}{
- "invoices": invoices,
- }
-
- return routerAddress, postData
- }
|