mirror of
https://github.com/plutov/paypal.git
synced 2025-02-02 15:10:36 +01:00
PayPal returns booleans in user info as strings. Notify json unmarshaler about that
This commit is contained in:
parent
6bc1110944
commit
ac5b4d7658
4
types.go
4
types.go
|
@ -483,14 +483,14 @@ type (
|
||||||
GivenName string `json:"given_name"`
|
GivenName string `json:"given_name"`
|
||||||
FamilyName string `json:"family_name"`
|
FamilyName string `json:"family_name"`
|
||||||
Email string `json:"email"`
|
Email string `json:"email"`
|
||||||
Verified bool `json:"verified,omitempty"`
|
Verified bool `json:"verified,omitempty,string"`
|
||||||
Gender string `json:"gender,omitempty"`
|
Gender string `json:"gender,omitempty"`
|
||||||
BirthDate string `json:"birthdate,omitempty"`
|
BirthDate string `json:"birthdate,omitempty"`
|
||||||
ZoneInfo string `json:"zoneinfo,omitempty"`
|
ZoneInfo string `json:"zoneinfo,omitempty"`
|
||||||
Locale string `json:"locale,omitempty"`
|
Locale string `json:"locale,omitempty"`
|
||||||
Phone string `json:"phone_number,omitempty"`
|
Phone string `json:"phone_number,omitempty"`
|
||||||
Address *Address `json:"address,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"`
|
AccountType string `json:"account_type,omitempty"`
|
||||||
AgeRange string `json:"age_range,omitempty"`
|
AgeRange string `json:"age_range,omitempty"`
|
||||||
PayerID string `json:"payer_id,omitempty"`
|
PayerID string `json:"payer_id,omitempty"`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user