mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 02:11:02 +01:00
fixed json unmarshaling of ErrorResponse in PaymentItem
This commit is contained in:
parent
f1166b8b90
commit
8c5eb07be8
18
types.go
18
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user