Merge pull request #28 from seriallink/master

Added the external_customer_id property
This commit is contained in:
Aliaksandr Pliutau 2017-07-06 15:14:40 +07:00 committed by GitHub
commit f9536247c0

View File

@ -117,18 +117,19 @@ type (
// CreditCard struct // CreditCard struct
CreditCard struct { CreditCard struct {
ID string `json:"id,omitempty"` ID string `json:"id,omitempty"`
PayerID string `json:"payer_id,omitempty"` PayerID string `json:"payer_id,omitempty"`
Number string `json:"number"` ExternalCustomerID string `json:"external_customer_id,omitempty"`
Type string `json:"type"` Number string `json:"number"`
ExpireMonth string `json:"expire_month"` Type string `json:"type"`
ExpireYear string `json:"expire_year"` ExpireMonth string `json:"expire_month"`
CVV2 string `json:"cvv2,omitempty"` ExpireYear string `json:"expire_year"`
FirstName string `json:"first_name,omitempty"` CVV2 string `json:"cvv2,omitempty"`
LastName string `json:"last_name,omitempty"` FirstName string `json:"first_name,omitempty"`
BillingAddress *Address `json:"billing_address,omitempty"` LastName string `json:"last_name,omitempty"`
State string `json:"state,omitempty"` BillingAddress *Address `json:"billing_address,omitempty"`
ValidUntil string `json:"valid_until,omitempty"` State string `json:"state,omitempty"`
ValidUntil string `json:"valid_until,omitempty"`
} }
// CreditCards GET /v1/vault/credit-cards // CreditCards GET /v1/vault/credit-cards