From c2074af7362290417b33ed9e38be009ad319baf7 Mon Sep 17 00:00:00 2001 From: Cameron Jarnot <48696097+cameronjarnot1@users.noreply.github.com> Date: Tue, 27 Jul 2021 14:59:36 -0400 Subject: [PATCH] Update payment source type for optional fields (#216) * updated payment source fields * revert * update payment source type --- types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types.go b/types.go index 8f9f31a..cbfc229 100644 --- a/types.go +++ b/types.go @@ -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