From 6217511bbda3713612ee23f22a3e7c888bf9a029 Mon Sep 17 00:00:00 2001 From: euphoria-laxis Date: Tue, 22 Oct 2024 14:23:53 +0200 Subject: [PATCH] Add omitempty to JSON tags to PaymentSourceCard type --- types.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/types.go b/types.go index af048e7..edeb0c5 100644 --- a/types.go +++ b/types.go @@ -1057,14 +1057,14 @@ type ( // PaymentSourceCard structure PaymentSourceCard struct { - ID string `json:"id"` - Name string `json:"name"` - Number string `json:"number"` - Expiry string `json:"expiry"` - SecurityCode string `json:"security_code"` - LastDigits string `json:"last_digits"` - CardType string `json:"card_type"` - BillingAddress *CardBillingAddress `json:"billing_address"` + ID string `json:"id,omitempty"` + Name string `json:"name,omitempty"` + Number string `json:"number,omitempty"` + Expiry string `json:"expiry,omitempty"` + SecurityCode string `json:"security_code,omitempty"` + LastDigits string `json:"last_digits,omitempty"` + CardType string `json:"card_type,omitempty"` + BillingAddress *CardBillingAddress `json:"billing_address,omitempty"` } // PaymentSourcePaypal structure