Skip to content

Commit

Permalink
Merge pull request #23 from a-spn/add-missing-customer-attribute
Browse files Browse the repository at this point in the history
Add missing field in customer attributes
  • Loading branch information
AchoArnold authored Mar 14, 2024
2 parents 9a405ae + 5ff4fd4 commit 81f23ab
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions customer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81f23ab

Please sign in to comment.