From 96b47cc1ed8eb08c7e315db1d36f60aec98d413b Mon Sep 17 00:00:00 2001 From: Robert Schmalholz Date: Mon, 22 Jan 2018 14:05:43 +0100 Subject: [PATCH] added json field `transaction_fee` to Sale struct --- types.go | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/types.go b/types.go index a33e096..9f71f2f 100644 --- a/types.go +++ b/types.go @@ -443,20 +443,21 @@ type ( // Sale struct Sale struct { - ID string `json:"id,omitempty"` - Amount *Amount `json:"amount,omitempty"` - Description string `json:"description,omitempty"` - CreateTime *time.Time `json:"create_time,omitempty"` - State string `json:"state,omitempty"` - ParentPayment string `json:"parent_payment,omitempty"` - UpdateTime *time.Time `json:"update_time,omitempty"` - PaymentMode string `json:"payment_mode,omitempty"` - PendingReason string `json:"pending_reason,omitempty"` - ReasonCode string `json:"reason_code,omitempty"` - ClearingTime string `json:"clearing_time,omitempty"` - ProtectionEligibility string `json:"protection_eligibility,omitempty"` - ProtectionEligibilityType string `json:"protection_eligibility_type,omitempty"` - Links []Link `json:"links,omitempty"` + ID string `json:"id,omitempty"` + Amount *Amount `json:"amount,omitempty"` + TransactionFee *TransactionFee `json:"transaction_fee,omitempty"` + Description string `json:"description,omitempty"` + CreateTime *time.Time `json:"create_time,omitempty"` + State string `json:"state,omitempty"` + ParentPayment string `json:"parent_payment,omitempty"` + UpdateTime *time.Time `json:"update_time,omitempty"` + PaymentMode string `json:"payment_mode,omitempty"` + PendingReason string `json:"pending_reason,omitempty"` + ReasonCode string `json:"reason_code,omitempty"` + ClearingTime string `json:"clearing_time,omitempty"` + ProtectionEligibility string `json:"protection_eligibility,omitempty"` + ProtectionEligibilityType string `json:"protection_eligibility_type,omitempty"` + Links []Link `json:"links,omitempty"` } // SenderBatchHeader struct @@ -499,6 +500,12 @@ 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"`