From 05014f150156f6f0d831504e2eaf386021fd2ef7 Mon Sep 17 00:00:00 2001 From: Nils Olofsson Date: Tue, 7 Feb 2023 14:21:12 +0100 Subject: [PATCH] also clear address from account --- accounts.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/accounts.go b/accounts.go index 8011f67..e024775 100644 --- a/accounts.go +++ b/accounts.go @@ -107,7 +107,19 @@ type clearAccount struct { FirstName string `xml:"first_name"` LastName string `xml:"last_name"` VATNumber string `xml:"vat_number"` - Address *Address `xml:"address"` + Address struct { + XMLName xml.Name `xml:"address"` + FirstName string `xml:"first_name"` + LastName string `xml:"last_name"` + Company string `xml:"company"` + Address string `xml:"address1"` + Address2 string `xml:"address2"` + City string `xml:"city"` + State string `xml:"state"` + Zip string `xml:"zip"` + Country string `xml:"country"` + Phone string `xml:"phone"` + } `xml:"address"` } // AccountBalance is used for getting the account balance.