mirror of
https://github.com/plutov/paypal.git
synced 2025-02-02 15:10:36 +01:00
use existing Currency struct for transaction_fee
This commit is contained in:
parent
96b47cc1ed
commit
535dec8992
36
types.go
36
types.go
|
@ -443,21 +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"`
|
||||||
TransactionFee *TransactionFee `json:"transaction_fee,omitempty"`
|
TransactionFee *Currency `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"`
|
||||||
ParentPayment string `json:"parent_payment,omitempty"`
|
ParentPayment string `json:"parent_payment,omitempty"`
|
||||||
UpdateTime *time.Time `json:"update_time,omitempty"`
|
UpdateTime *time.Time `json:"update_time,omitempty"`
|
||||||
PaymentMode string `json:"payment_mode,omitempty"`
|
PaymentMode string `json:"payment_mode,omitempty"`
|
||||||
PendingReason string `json:"pending_reason,omitempty"`
|
PendingReason string `json:"pending_reason,omitempty"`
|
||||||
ReasonCode string `json:"reason_code,omitempty"`
|
ReasonCode string `json:"reason_code,omitempty"`
|
||||||
ClearingTime string `json:"clearing_time,omitempty"`
|
ClearingTime string `json:"clearing_time,omitempty"`
|
||||||
ProtectionEligibility string `json:"protection_eligibility,omitempty"`
|
ProtectionEligibility string `json:"protection_eligibility,omitempty"`
|
||||||
ProtectionEligibilityType string `json:"protection_eligibility_type,omitempty"`
|
ProtectionEligibilityType string `json:"protection_eligibility_type,omitempty"`
|
||||||
Links []Link `json:"links,omitempty"`
|
Links []Link `json:"links,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// SenderBatchHeader struct
|
// SenderBatchHeader struct
|
||||||
|
@ -500,12 +500,6 @@ 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