Compare commits

..

No commits in common. "4b4814249164f07dab5255551a2d4dbfedcbc59d" and "570cf7b8f18da79ee364f528dbe272ed349c71aa" have entirely different histories.

2 changed files with 2 additions and 3 deletions

View File

@ -14,7 +14,6 @@ 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 {

View File

@ -25,7 +25,7 @@ const (
baseURLAuthProd = ""
pathAuth = "/realms/wms/protocol/openid-connect/token"
pathUpdateORLogisticInfo = "/wms-core/api/v1/obms/outbound-request/outbound-request-partner/%d/bill"
pathUpdateORLogisticInfo = "/wms-core/api/v1/obms/outbound-request/outbound-request-partner/%s/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() + fmt.Sprintf(pathUpdateORLogisticInfo, p.OrID)
apiURL := c.getBaseURL() + pathUpdateORLogisticInfo
token, err := c.getToken()
if err != nil {
return err