mirror of
https://github.com/plutov/paypal.git
synced 2025-02-02 15:10:36 +01:00
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"`
|
ID string `json:"id"`
|
||||||
Links []PaymentLink `json:"links"`
|
Links []PaymentLink `json:"links"`
|
||||||
State string `json:"state"`
|
State string `json:"state"`
|
||||||
|
Transactions []Transaction `json:"transactions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// FundingInstrument https://developer.paypal.com/webapps/developer/docs/api/#fundinginstrument-object
|
// FundingInstrument https://developer.paypal.com/webapps/developer/docs/api/#fundinginstrument-object
|
||||||
|
@ -280,6 +281,15 @@ type (
|
||||||
UpdateTime *time.Time `json:"update_time,omitempty"`
|
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 https://developer.paypal.com/webapps/developer/docs/api/#sale-object
|
||||||
Sale struct {
|
Sale struct {
|
||||||
ID string `json:"id,omitempty"`
|
ID string `json:"id,omitempty"`
|
||||||
|
@ -332,6 +342,7 @@ type (
|
||||||
InvoiceNumber string `json:"invoice_number,omitempty"`
|
InvoiceNumber string `json:"invoice_number,omitempty"`
|
||||||
Custom string `json:"custom,omitempty"`
|
Custom string `json:"custom,omitempty"`
|
||||||
SoftDescriptor string `json:"soft_descriptor,omitempty"`
|
SoftDescriptor string `json:"soft_descriptor,omitempty"`
|
||||||
|
RelatedResources []Related `json:"related_resources,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// UserInfo https://developer.paypal.com/webapps/developer/docs/api/#userinfo-object
|
// UserInfo https://developer.paypal.com/webapps/developer/docs/api/#userinfo-object
|
||||||
|
|
Loading…
Reference in New Issue
Block a user