From 8c5eb07be83098d94f916453d1c46b27eb355ebd Mon Sep 17 00:00:00 2001 From: Sam Choukri Date: Tue, 7 Nov 2017 17:56:24 -0800 Subject: [PATCH] fixed json unmarshaling of ErrorResponse in PaymentItem --- types.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/types.go b/types.go index df7733e..314e09d 100644 --- a/types.go +++ b/types.go @@ -381,15 +381,15 @@ type ( // PayoutItemResponse struct PayoutItemResponse struct { - PayoutItemID string `json:"payout_item_id"` - TransactionID string `json:"transaction_id"` - TransactionStatus string `json:"transaction_status"` - PayoutBatchID string `json:"payout_batch_id,omitempty"` - PayoutItemFee *AmountPayout `json:"payout_item_fee,omitempty"` - PayoutItem *PayoutItem `json:"payout_item"` - TimeProcessed *time.Time `json:"time_processed,omitempty"` - Links []Link `json:"links"` - Error *ErrorResponse `json:"errors,omitempty"` + PayoutItemID string `json:"payout_item_id"` + TransactionID string `json:"transaction_id"` + TransactionStatus string `json:"transaction_status"` + PayoutBatchID string `json:"payout_batch_id,omitempty"` + PayoutItemFee *AmountPayout `json:"payout_item_fee,omitempty"` + PayoutItem *PayoutItem `json:"payout_item"` + TimeProcessed *time.Time `json:"time_processed,omitempty"` + Links []Link `json:"links"` + Error ErrorResponse `json:"errors,omitempty"` } // PayoutResponse struct