From ac5b4d76583e5d957c0d9c096a9d3f1c0d759131 Mon Sep 17 00:00:00 2001 From: Nicholas Asimov Date: Sat, 21 Oct 2017 16:14:27 +0300 Subject: [PATCH] PayPal returns booleans in user info as strings. Notify json unmarshaler about that --- types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types.go b/types.go index e49dcb5..c28f662 100644 --- a/types.go +++ b/types.go @@ -483,14 +483,14 @@ type ( GivenName string `json:"given_name"` FamilyName string `json:"family_name"` Email string `json:"email"` - Verified bool `json:"verified,omitempty"` + Verified bool `json:"verified,omitempty,string"` Gender string `json:"gender,omitempty"` BirthDate string `json:"birthdate,omitempty"` ZoneInfo string `json:"zoneinfo,omitempty"` Locale string `json:"locale,omitempty"` Phone string `json:"phone_number,omitempty"` Address *Address `json:"address,omitempty"` - VerifiedAccount bool `json:"verified_account,omitempty"` + VerifiedAccount bool `json:"verified_account,omitempty,string"` AccountType string `json:"account_type,omitempty"` AgeRange string `json:"age_range,omitempty"` PayerID string `json:"payer_id,omitempty"`