From 5ff4fd4183d0bdae75be4dd82a10cf980396a017 Mon Sep 17 00:00:00 2001 From: Alan Date: Wed, 13 Mar 2024 19:54:54 -0400 Subject: [PATCH] Add missing field in customer attributes --- customer.go | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/customer.go b/customer.go index 80b6e62..bdf0c0b 100644 --- a/customer.go +++ b/customer.go @@ -4,22 +4,25 @@ import "time" // CustomerAttributes are the attributes of a lemonsqueezy customer type CustomerAttributes struct { - StoreID int `json:"store_id"` - Name string `json:"name"` - Email string `json:"email"` - Status string `json:"status"` - City *string `json:"city"` - Region *string `json:"region"` - Country string `json:"country"` - TotalRevenueCurrency int `json:"total_revenue_currency"` - Mrr int `json:"mrr"` - StatusFormatted string `json:"status_formatted"` - CountryFormatted string `json:"country_formatted"` - TotalRevenueCurrencyFormatted string `json:"total_revenue_currency_formatted"` - MrrFormatted string `json:"mrr_formatted"` - CreatedAt time.Time `json:"created_at"` - UpdatedAt time.Time `json:"updated_at"` - TestMode bool `json:"test_mode"` + StoreID int `json:"store_id"` + Name string `json:"name"` + Email string `json:"email"` + Status string `json:"status"` + City *string `json:"city"` + Region *string `json:"region"` + Country string `json:"country"` + TotalRevenueCurrency int `json:"total_revenue_currency"` + Mrr int `json:"mrr"` + StatusFormatted string `json:"status_formatted"` + CountryFormatted string `json:"country_formatted"` + TotalRevenueCurrencyFormatted string `json:"total_revenue_currency_formatted"` + MrrFormatted string `json:"mrr_formatted"` + Urls struct { + CustomerPortal string `json:"customer_portal"` + } `json:"urls"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` + TestMode bool `json:"test_mode"` } // ApiResponseRelationshipsCustomer relationships of a customer