use existing Currency struct for transaction_fee

This commit is contained in:
Robert Schmalholz 2018-01-22 16:32:18 +01:00
parent 96b47cc1ed
commit 535dec8992

View File

@ -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"`