Skip to content

Commit

Permalink
fix(events): mark properties as object rather than string (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
vhashimotoo authored Dec 4, 2023
1 parent 4cbaa4c commit dca40a0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions event.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ type EventResult struct {
}

type Event struct {
LagoID uuid.UUID `json:"lago_id"`
TransactionID string `json:"transaction_id"`
LagoCustomerID *uuid.UUID `json:"lago_customer_id,omitempty"`
ExternalCustomerID string `json:"external_customer_id,omitempty"`
Code string `json:"code,omitempty"`
Timestamp time.Time `json:"timestamp"`
Properties map[string]string `json:"properties,omitempty"`
LagoSubscriptionID *uuid.UUID `json:"lago_subscription_id,omitempty"`
ExternalSubscriptionID string `json:"external_subscription_id,omitempty"`
CreatedAt time.Time `json:"created_at"`
LagoID uuid.UUID `json:"lago_id"`
TransactionID string `json:"transaction_id"`
LagoCustomerID *uuid.UUID `json:"lago_customer_id,omitempty"`
ExternalCustomerID string `json:"external_customer_id,omitempty"`
Code string `json:"code,omitempty"`
Timestamp time.Time `json:"timestamp"`
Properties map[string]interface{} `json:"properties,omitempty"`
LagoSubscriptionID *uuid.UUID `json:"lago_subscription_id,omitempty"`
ExternalSubscriptionID string `json:"external_subscription_id,omitempty"`
CreatedAt time.Time `json:"created_at"`
}

func (c *Client) Event() *EventRequest {
Expand Down

0 comments on commit dca40a0

Please sign in to comment.