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 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