fixed json unmarshaling of ErrorResponse in PaymentItem

This commit is contained in:
Sam Choukri 2017-11-07 17:56:24 -08:00
parent f1166b8b90
commit 8c5eb07be8

View File

@ -389,7 +389,7 @@ type (
PayoutItem *PayoutItem `json:"payout_item"` PayoutItem *PayoutItem `json:"payout_item"`
TimeProcessed *time.Time `json:"time_processed,omitempty"` TimeProcessed *time.Time `json:"time_processed,omitempty"`
Links []Link `json:"links"` Links []Link `json:"links"`
Error *ErrorResponse `json:"errors,omitempty"` Error ErrorResponse `json:"errors,omitempty"`
} }
// PayoutResponse struct // PayoutResponse struct