Add omitempty to JSON tags to PaymentSourceCard type

This commit is contained in:
Euphoria Laxis 2024-10-22 14:23:53 +02:00
parent 27ffa97190
commit 6217511bbd
No known key found for this signature in database
GPG Key ID: 15B1B592A070B107

View File

@ -1057,14 +1057,14 @@ type (
// PaymentSourceCard structure // PaymentSourceCard structure
PaymentSourceCard struct { PaymentSourceCard struct {
ID string `json:"id"` ID string `json:"id,omitempty"`
Name string `json:"name"` Name string `json:"name,omitempty"`
Number string `json:"number"` Number string `json:"number,omitempty"`
Expiry string `json:"expiry"` Expiry string `json:"expiry,omitempty"`
SecurityCode string `json:"security_code"` SecurityCode string `json:"security_code,omitempty"`
LastDigits string `json:"last_digits"` LastDigits string `json:"last_digits,omitempty"`
CardType string `json:"card_type"` CardType string `json:"card_type,omitempty"`
BillingAddress *CardBillingAddress `json:"billing_address"` BillingAddress *CardBillingAddress `json:"billing_address,omitempty"`
} }
// PaymentSourcePaypal structure // PaymentSourcePaypal structure