Skip to content

Files

71 lines (66 loc) · 5.12 KB

licensekeyactivationread.md

File metadata and controls

71 lines (66 loc) · 5.12 KB

LicenseKeyActivationRead

Example Usage

import { LicenseKeyActivationRead } from "@polar-sh/sdk/models/components/licensekeyactivationread.js";

let value: LicenseKeyActivationRead = {
  id: "<value>",
  licenseKeyId: "<value>",
  label: "<value>",
  meta: {},
  createdAt: new Date("2024-12-10T04:09:29.451Z"),
  modifiedAt: new Date("2024-05-14T09:10:02.869Z"),
  licenseKey: {
    id: "<value>",
    organizationId: "<value>",
    userId: "<value>",
    customerId: "<value>",
    user: {
      id: "<value>",
      email: "[email protected]",
      publicName: "<value>",
    },
    customer: {
      id: "992fae2a-2a17-4b7a-8d9e-e287cf90131b",
      createdAt: new Date("2023-12-28T14:16:16.603Z"),
      modifiedAt: new Date("2025-10-04T14:30:45.103Z"),
      metadata: {
        "key": "<value>",
      },
      externalId: "usr_1337",
      email: "[email protected]",
      emailVerified: true,
      name: "John Doe",
      billingAddress: {
        country: "SE",
      },
      taxId: [
        "FR61954506077",
        "eu_vat",
      ],
      organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737",
      deletedAt: new Date("2023-03-23T05:06:34.442Z"),
      avatarUrl: "https://www.gravatar.com/avatar/xxx?d=blank",
    },
    benefitId: "<value>",
    key: "<key>",
    displayKey: "<value>",
    status: "disabled",
    limitActivations: 674679,
    usage: 304021,
    limitUsage: 712770,
    validations: 902925,
    lastValidatedAt: new Date("2025-05-31T02:52:11.535Z"),
    expiresAt: new Date("2024-07-21T13:19:29.931Z"),
  },
};

Fields

Field Type Required Description
id string ✔️ N/A
licenseKeyId string ✔️ N/A
label string ✔️ N/A
meta components.LicenseKeyActivationReadMeta ✔️ N/A
createdAt Date ✔️ N/A
modifiedAt Date ✔️ N/A
licenseKey components.LicenseKeyRead ✔️ N/A