Compare commits
2 Commits
570cf7b8f1
...
4b48142491
Author | SHA1 | Date |
---|---|---|
Sinh | 4b48142491 | |
Sinh | 00ec7e1f2f |
|
@ -14,6 +14,7 @@ type AuthRes struct {
|
|||
type UpdateLogisticInfoPayload struct {
|
||||
PrintLabelLink string `json:"print_label_link"`
|
||||
TrackingCode string `json:"tracking_code"`
|
||||
OrID int `json:"or_id,omitempty"`
|
||||
}
|
||||
|
||||
type CancelORPayload struct {
|
||||
|
|
|
@ -25,7 +25,7 @@ const (
|
|||
baseURLAuthProd = ""
|
||||
|
||||
pathAuth = "/realms/wms/protocol/openid-connect/token"
|
||||
pathUpdateORLogisticInfo = "/wms-core/api/v1/obms/outbound-request/outbound-request-partner/%s/bill"
|
||||
pathUpdateORLogisticInfo = "/wms-core/api/v1/obms/outbound-request/outbound-request-partner/%d/bill"
|
||||
pathCreateOR = "/wms-core/api/v1/obms/outbound-request/outbound-request-partner/hab"
|
||||
pathCancelOR = "/wms-core/api/v1/obms/outbound-request/cancel"
|
||||
|
||||
|
@ -98,7 +98,7 @@ func (c *Client) CreateOR(p ORPayload) (*ORResult, error) {
|
|||
}
|
||||
|
||||
func (c *Client) UpdateORLogisticInfo(p UpdateLogisticInfoPayload) error {
|
||||
apiURL := c.getBaseURL() + pathUpdateORLogisticInfo
|
||||
apiURL := c.getBaseURL() + fmt.Sprintf(pathUpdateORLogisticInfo, p.OrID)
|
||||
token, err := c.getToken()
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue