Skip to content

Commit

Permalink
Order payer information (#169)
Browse files Browse the repository at this point in the history
* simplest change

* re-using existing type

Co-authored-by: John Landis <[email protected]>
  • Loading branch information
jalandis and jalandis authored Sep 16, 2020
1 parent 761c20a commit 289b266
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -580,13 +580,14 @@ type (

// Order struct
Order struct {
ID string `json:"id,omitempty"`
Status string `json:"status,omitempty"`
Intent string `json:"intent,omitempty"`
PurchaseUnits []PurchaseUnit `json:"purchase_units,omitempty"`
Links []Link `json:"links,omitempty"`
CreateTime *time.Time `json:"create_time,omitempty"`
UpdateTime *time.Time `json:"update_time,omitempty"`
ID string `json:"id,omitempty"`
Status string `json:"status,omitempty"`
Intent string `json:"intent,omitempty"`
Payer *PayerWithNameAndPhone `json:"payer,omitempty"`
PurchaseUnits []PurchaseUnit `json:"purchase_units,omitempty"`
Links []Link `json:"links,omitempty"`
CreateTime *time.Time `json:"create_time,omitempty"`
UpdateTime *time.Time `json:"update_time,omitempty"`
}

// CaptureAmount struct
Expand Down

0 comments on commit 289b266

Please sign in to comment.