mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 10:21:03 +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
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user