Skip to content

Commit 81f23ab

Browse files
authored
Merge pull request #23 from a-spn/add-missing-customer-attribute
Add missing field in customer attributes
2 parents 9a405ae + 5ff4fd4 commit 81f23ab

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

customer.go

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,25 @@ import "time"
44

55
// CustomerAttributes are the attributes of a lemonsqueezy customer
66
type CustomerAttributes struct {
7-
StoreID int `json:"store_id"`
8-
Name string `json:"name"`
9-
Email string `json:"email"`
10-
Status string `json:"status"`
11-
City *string `json:"city"`
12-
Region *string `json:"region"`
13-
Country string `json:"country"`
14-
TotalRevenueCurrency int `json:"total_revenue_currency"`
15-
Mrr int `json:"mrr"`
16-
StatusFormatted string `json:"status_formatted"`
17-
CountryFormatted string `json:"country_formatted"`
18-
TotalRevenueCurrencyFormatted string `json:"total_revenue_currency_formatted"`
19-
MrrFormatted string `json:"mrr_formatted"`
20-
CreatedAt time.Time `json:"created_at"`
21-
UpdatedAt time.Time `json:"updated_at"`
22-
TestMode bool `json:"test_mode"`
7+
StoreID int `json:"store_id"`
8+
Name string `json:"name"`
9+
Email string `json:"email"`
10+
Status string `json:"status"`
11+
City *string `json:"city"`
12+
Region *string `json:"region"`
13+
Country string `json:"country"`
14+
TotalRevenueCurrency int `json:"total_revenue_currency"`
15+
Mrr int `json:"mrr"`
16+
StatusFormatted string `json:"status_formatted"`
17+
CountryFormatted string `json:"country_formatted"`
18+
TotalRevenueCurrencyFormatted string `json:"total_revenue_currency_formatted"`
19+
MrrFormatted string `json:"mrr_formatted"`
20+
Urls struct {
21+
CustomerPortal string `json:"customer_portal"`
22+
} `json:"urls"`
23+
CreatedAt time.Time `json:"created_at"`
24+
UpdatedAt time.Time `json:"updated_at"`
25+
TestMode bool `json:"test_mode"`
2326
}
2427

2528
// ApiResponseRelationshipsCustomer relationships of a customer

0 commit comments

Comments
 (0)