From f840b7aac72040c6ba1665617ddda19e971f4eb8 Mon Sep 17 00:00:00 2001 From: euphoria-laxis Date: Tue, 22 Oct 2024 14:24:37 +0200 Subject: [PATCH] Add omitempty to JSON tags to CardBillingAddress AddressLine2 and AdminArea2 --- types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types.go b/types.go index edeb0c5..aa3d12e 100644 --- a/types.go +++ b/types.go @@ -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"`