From 289b2669efe4e72dcc71cb445464803506b79c01 Mon Sep 17 00:00:00 2001 From: John Landis Date: Wed, 16 Sep 2020 18:30:17 -0400 Subject: [PATCH] Order payer information (#169) * simplest change * re-using existing type Co-authored-by: John Landis --- types.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/types.go b/types.go index 11bdf095..655da70f 100644 --- a/types.go +++ b/types.go @@ -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