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

@ -443,20 +443,21 @@ type (
// Sale struct // Sale struct
Sale struct { Sale struct {
ID string `json:"id,omitempty"` ID string `json:"id,omitempty"`
Amount *Amount `json:"amount,omitempty"` Amount *Amount `json:"amount,omitempty"`
Description string `json:"description,omitempty"` TransactionFee *TransactionFee `json:"transaction_fee,omitempty"`
CreateTime *time.Time `json:"create_time,omitempty"` Description string `json:"description,omitempty"`
State string `json:"state,omitempty"` CreateTime *time.Time `json:"create_time,omitempty"`
ParentPayment string `json:"parent_payment,omitempty"` State string `json:"state,omitempty"`
UpdateTime *time.Time `json:"update_time,omitempty"` ParentPayment string `json:"parent_payment,omitempty"`
PaymentMode string `json:"payment_mode,omitempty"` UpdateTime *time.Time `json:"update_time,omitempty"`
PendingReason string `json:"pending_reason,omitempty"` PaymentMode string `json:"payment_mode,omitempty"`
ReasonCode string `json:"reason_code,omitempty"` PendingReason string `json:"pending_reason,omitempty"`
ClearingTime string `json:"clearing_time,omitempty"` ReasonCode string `json:"reason_code,omitempty"`
ProtectionEligibility string `json:"protection_eligibility,omitempty"` ClearingTime string `json:"clearing_time,omitempty"`
ProtectionEligibilityType string `json:"protection_eligibility_type,omitempty"` ProtectionEligibility string `json:"protection_eligibility,omitempty"`
Links []Link `json:"links,omitempty"` ProtectionEligibilityType string `json:"protection_eligibility_type,omitempty"`
Links []Link `json:"links,omitempty"`
} }
// SenderBatchHeader struct // SenderBatchHeader struct
@ -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"`