Skip to content

Latest commit

 

History

History
65 lines (60 loc) · 4.99 KB

licensekeyactivationread.md

File metadata and controls

65 lines (60 loc) · 4.99 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("2023-03-28T22:29:03.085Z"),
  modifiedAt: new Date("2024-11-11T21:41:22.916Z"),
  licenseKey: {
    id: "<value>",
    organizationId: "<value>",
    customerId: "<value>",
    customer: {
      id: "992fae2a-2a17-4b7a-8d9e-e287cf90131b",
      createdAt: new Date("2025-04-10T22:51:31.196Z"),
      modifiedAt: new Date("2025-04-30T22:32:57.891Z"),
      metadata: {
        "key": false,
      },
      externalId: "usr_1337",
      email: "[email protected]",
      emailVerified: true,
      name: "John Doe",
      billingAddress: {
        country: "FR",
      },
      taxId: [
        "FR61954506077",
        "eu_vat",
      ],
      organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737",
      deletedAt: new Date("2023-07-05T04:04:30.477Z"),
      avatarUrl: "https://www.gravatar.com/avatar/xxx?d=blank",
    },
    benefitId: "<value>",
    key: "<key>",
    displayKey: "<value>",
    status: "granted",
    limitActivations: 130388,
    usage: 828619,
    limitUsage: 516286,
    validations: 736079,
    lastValidatedAt: new Date("2023-10-18T03:09:23.414Z"),
    expiresAt: new Date("2025-03-29T11:53:32.986Z"),
  },
};

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