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

@ -381,15 +381,15 @@ type (
// PayoutItemResponse struct // PayoutItemResponse struct
PayoutItemResponse struct { PayoutItemResponse struct {
PayoutItemID string `json:"payout_item_id"` PayoutItemID string `json:"payout_item_id"`
TransactionID string `json:"transaction_id"` TransactionID string `json:"transaction_id"`
TransactionStatus string `json:"transaction_status"` TransactionStatus string `json:"transaction_status"`
PayoutBatchID string `json:"payout_batch_id,omitempty"` PayoutBatchID string `json:"payout_batch_id,omitempty"`
PayoutItemFee *AmountPayout `json:"payout_item_fee,omitempty"` PayoutItemFee *AmountPayout `json:"payout_item_fee,omitempty"`
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