added json field transaction_fee to Sale struct

This commit is contained in:
Robert Schmalholz 2018-01-22 14:05:43 +01:00
parent 7c225b0dd2
commit 96b47cc1ed

View File

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