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