mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 02:11:02 +01:00
update order struct
This commit is contained in:
parent
3adfc8c315
commit
4557d3e5a7
21
types.go
21
types.go
|
@ -94,6 +94,12 @@ type (
|
|||
Value string `json:"value"`
|
||||
}
|
||||
|
||||
// GrossTotalAmount struct
|
||||
GrossTotalAmount struct {
|
||||
Value string `json:"value"`
|
||||
Currency string `json:"currency"`
|
||||
}
|
||||
|
||||
// ApplicationContext struct
|
||||
ApplicationContext struct {
|
||||
BrandName string `json:"brand_name"`
|
||||
|
@ -325,14 +331,13 @@ type (
|
|||
|
||||
// Order struct
|
||||
Order struct {
|
||||
ID string `json:"id,omitempty"`
|
||||
CreateTime *time.Time `json:"create_time,omitempty"`
|
||||
UpdateTime *time.Time `json:"update_time,omitempty"`
|
||||
State string `json:"state,omitempty"`
|
||||
Amount *Amount `json:"amount,omitempty"`
|
||||
PendingReason string `json:"pending_reason,omitempty"`
|
||||
ParentPayment string `json:"parent_payment,omitempty"`
|
||||
Links []Link `json:"links,omitempty"`
|
||||
ID string `json:"id,omitempty"`
|
||||
Status string `json:"status,omitempty"`
|
||||
Intent string `json:"intent,omitempty"`
|
||||
GrossTotalAmount *GrossTotalAmount `json:"gross_total_amount,omitempty"`
|
||||
Links []Link `json:"links,omitempty"`
|
||||
CreateTime *time.Time `json:"create_time,omitempty"`
|
||||
UpdateTime *time.Time `json:"update_time,omitempty"`
|
||||
}
|
||||
|
||||
// Payer struct
|
||||
|
|
Loading…
Reference in New Issue
Block a user