mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 10:21:03 +01:00
update order struct
This commit is contained in:
parent
3adfc8c315
commit
4557d3e5a7
15
types.go
15
types.go
|
@ -94,6 +94,12 @@ type (
|
||||||
Value string `json:"value"`
|
Value string `json:"value"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GrossTotalAmount struct
|
||||||
|
GrossTotalAmount struct {
|
||||||
|
Value string `json:"value"`
|
||||||
|
Currency string `json:"currency"`
|
||||||
|
}
|
||||||
|
|
||||||
// ApplicationContext struct
|
// ApplicationContext struct
|
||||||
ApplicationContext struct {
|
ApplicationContext struct {
|
||||||
BrandName string `json:"brand_name"`
|
BrandName string `json:"brand_name"`
|
||||||
|
@ -326,13 +332,12 @@ type (
|
||||||
// Order struct
|
// Order struct
|
||||||
Order struct {
|
Order struct {
|
||||||
ID string `json:"id,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"`
|
CreateTime *time.Time `json:"create_time,omitempty"`
|
||||||
UpdateTime *time.Time `json:"update_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"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Payer struct
|
// Payer struct
|
||||||
|
|
Loading…
Reference in New Issue
Block a user