forked from go-packages/paypal
use existing Currency struct for transaction_fee
This commit is contained in:
parent
96b47cc1ed
commit
535dec8992
8
types.go
8
types.go
|
@ -445,7 +445,7 @@ type (
|
|||
Sale struct {
|
||||
ID string `json:"id,omitempty"`
|
||||
Amount *Amount `json:"amount,omitempty"`
|
||||
TransactionFee *TransactionFee `json:"transaction_fee,omitempty"`
|
||||
TransactionFee *Currency `json:"transaction_fee,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
CreateTime *time.Time `json:"create_time,omitempty"`
|
||||
State string `json:"state,omitempty"`
|
||||
|
@ -500,12 +500,6 @@ type (
|
|||
RelatedResources []Related `json:"related_resources,omitempty"`
|
||||
}
|
||||
|
||||
// TransactionFee struct
|
||||
TransactionFee struct {
|
||||
Value string `json:"value"`
|
||||
Currency string `json:"currency"`
|
||||
}
|
||||
|
||||
// UserInfo struct
|
||||
UserInfo struct {
|
||||
ID string `json:"user_id"`
|
||||
|
|
Loading…
Reference in New Issue
Block a user