From 8192718364d70aade5a421e3487352e4057aeb4a Mon Sep 17 00:00:00 2001 From: Marcelo Monaco <marcelo.monaco@gmail.com> Date: Thu, 25 May 2017 18:16:33 -0300 Subject: [PATCH 1/2] The payer_id property is being deprecated in favor of the external_customer_id property. --- types.go | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/types.go b/types.go index 57cf090..99f01ee 100644 --- a/types.go +++ b/types.go @@ -117,18 +117,19 @@ type ( // CreditCard struct CreditCard struct { - ID string `json:"id,omitempty"` - PayerID string `json:"payer_id,omitempty"` - Number string `json:"number"` - Type string `json:"type"` - ExpireMonth string `json:"expire_month"` - ExpireYear string `json:"expire_year"` - CVV2 string `json:"cvv2,omitempty"` - FirstName string `json:"first_name,omitempty"` - LastName string `json:"last_name,omitempty"` - BillingAddress *Address `json:"billing_address,omitempty"` - State string `json:"state,omitempty"` - ValidUntil string `json:"valid_until,omitempty"` + ID string `json:"id,omitempty"` + PayerID string `json:"payer_id,omitempty"` + ExternalCustomerId string `json:"external_customer_id,omitempty"` + Number string `json:"number"` + Type string `json:"type"` + ExpireMonth string `json:"expire_month"` + ExpireYear string `json:"expire_year"` + CVV2 string `json:"cvv2,omitempty"` + FirstName string `json:"first_name,omitempty"` + LastName string `json:"last_name,omitempty"` + BillingAddress *Address `json:"billing_address,omitempty"` + State string `json:"state,omitempty"` + ValidUntil string `json:"valid_until,omitempty"` } // CreditCards GET /v1/vault/credit-cards From dde90cce4c333ae255ac6e2399dfe4ca7b51730f Mon Sep 17 00:00:00 2001 From: Marcelo Monaco <marcelo.monaco@gmail.com> Date: Thu, 25 May 2017 18:27:19 -0300 Subject: [PATCH 2/2] The payer_id property is being deprecated in favor of the external_customer_id property. --- types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types.go b/types.go index 99f01ee..2f7cddc 100644 --- a/types.go +++ b/types.go @@ -119,7 +119,7 @@ type ( CreditCard struct { ID string `json:"id,omitempty"` PayerID string `json:"payer_id,omitempty"` - ExternalCustomerId string `json:"external_customer_id,omitempty"` + ExternalCustomerID string `json:"external_customer_id,omitempty"` Number string `json:"number"` Type string `json:"type"` ExpireMonth string `json:"expire_month"`