Update payment source type for optional fields (#216)

* updated payment source fields

* revert

* update payment source type
This commit is contained in:
Cameron Jarnot 2021-07-27 14:59:36 -04:00 committed by GitHub
parent 297b4fa2c6
commit c2074af736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -801,8 +801,8 @@ type (
// PaymentSource structure
PaymentSource struct {
Card *PaymentSourceCard `json:"card"`
Token *PaymentSourceToken `json:"token"`
Card *PaymentSourceCard `json:"card,omitempty"`
Token *PaymentSourceToken `json:"token,omitempty"`
}
// PaymentSourceCard structure