Add omitempty to JSON tags to CardBillingAddress AddressLine2 and AdminArea2
All checks were successful
Lint and Test / lint (push) Successful in 10m22s
Lint and Test / test (push) Successful in 10m6s

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

View File

@ -1086,8 +1086,8 @@ type (
// CardBillingAddress structure
CardBillingAddress struct {
AddressLine1 string `json:"address_line_1"`
AddressLine2 string `json:"address_line_2"`
AdminArea2 string `json:"admin_area_2"`
AddressLine2 string `json:"address_line_2,omitempty"`
AdminArea2 string `json:"admin_area_2,omitempty"`
AdminArea1 string `json:"admin_area_1"`
PostalCode string `json:"postal_code"`
CountryCode string `json:"country_code"`