forked from go-packages/paypal
Update structs to include more member structs.
This commit is contained in:
parent
6b094a602b
commit
975b15beb3
11
types.go
11
types.go
|
@ -139,6 +139,7 @@ type (
|
|||
ID string `json:"id"`
|
||||
Links []PaymentLink `json:"links"`
|
||||
State string `json:"state"`
|
||||
Transactions []Transaction `json:"transactions,omitempty"`
|
||||
}
|
||||
|
||||
// FundingInstrument https://developer.paypal.com/webapps/developer/docs/api/#fundinginstrument-object
|
||||
|
@ -280,6 +281,15 @@ type (
|
|||
UpdateTime *time.Time `json:"update_time,omitempty"`
|
||||
}
|
||||
|
||||
// Related https://developer.paypal.com/docs/api/payments/#definition-related
|
||||
Related struct {
|
||||
Sale *Sale `json:"sale,omitempty"`
|
||||
Authorization *Authorization `json:"authorization,omitempty"`
|
||||
Order *Order `json:"order,omitempty"`
|
||||
Capture *Capture `json:"capture,omitempty"`
|
||||
Refund *Refund `json:"refund,omitempty"`
|
||||
}
|
||||
|
||||
// Sale https://developer.paypal.com/webapps/developer/docs/api/#sale-object
|
||||
Sale struct {
|
||||
ID string `json:"id,omitempty"`
|
||||
|
@ -332,6 +342,7 @@ type (
|
|||
InvoiceNumber string `json:"invoice_number,omitempty"`
|
||||
Custom string `json:"custom,omitempty"`
|
||||
SoftDescriptor string `json:"soft_descriptor,omitempty"`
|
||||
RelatedResources []Related `json:"related_resources,omitempty"`
|
||||
}
|
||||
|
||||
// UserInfo https://developer.paypal.com/webapps/developer/docs/api/#userinfo-object
|
||||
|
|
Loading…
Reference in New Issue
Block a user