Skip to content

Commit

Permalink
Merge pull request #41 from cryptlex/muneeb/add-user-metadata
Browse files Browse the repository at this point in the history
feat: add metadata to user licenses function
  • Loading branch information
ahmad-kemsan authored Sep 19, 2024
2 parents aca5718 + bf747ca commit e82d244
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions lextypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ type ReleaseFile struct {
UpdatedAt string `json:"updatedAt"`
}

type Metadata struct {
Key string `json:"key"`
Value string `json:"value"`
}

type Release struct {
TotalFiles int `json:"totalFiles"`
IsPrivate bool `json:"isPrivate"`
Expand Down Expand Up @@ -42,14 +47,17 @@ type OrganizationAddress struct {

type UserLicense struct {
// The allowed activations of the license. A value of -1 indicates unlimited number of activations.
AllowedActivations int64 `json:"allowedActivations"`

AllowedActivations int64 `json:"allowedActivations"`
// The allowed activations of the license. A value of -1 indicates unlimited number of deactivations.
AllowedDeactivations int64 `json:"allowedDeactivations"`

AllowedDeactivations int64 `json:"allowedDeactivations"`
// The license key.
Key string `json:"key"`

Key string `json:"key"`
// The license type (node-locked or hosted-floating).
Type string `json:"type"`
Type string `json:"type"`

// The license metadata.
Metadata []Metadata `json:"metadata"`
}

0 comments on commit e82d244

Please sign in to comment.