Skip to content

Latest commit

 

History

History
81 lines (76 loc) · 8.69 KB

licensekeywithactivations.md

File metadata and controls

81 lines (76 loc) · 8.69 KB

LicenseKeyWithActivations

Example Usage

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

let value: LicenseKeyWithActivations = {
  id: "<value>",
  createdAt: new Date("2024-03-04T01:52:57.363Z"),
  modifiedAt: new Date("2025-01-22T07:01:44.087Z"),
  organizationId: "<value>",
  customerId: "<value>",
  customer: {
    id: "992fae2a-2a17-4b7a-8d9e-e287cf90131b",
    createdAt: new Date("2024-06-14T19:53:44.205Z"),
    modifiedAt: new Date("2024-08-29T05:57:16.863Z"),
    metadata: {
      "key": false,
    },
    externalId: "usr_1337",
    email: "[email protected]",
    emailVerified: true,
    name: "John Doe",
    billingAddress: {
      country: "SE",
    },
    taxId: [
      "911144442",
      "us_ein",
    ],
    organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737",
    deletedAt: new Date("2023-11-05T19:10:02.195Z"),
    avatarUrl: "https://www.gravatar.com/avatar/xxx?d=blank",
  },
  benefitId: "<value>",
  key: "<key>",
  displayKey: "<value>",
  status: "disabled",
  limitActivations: 940432,
  usage: 952623,
  limitUsage: 216281,
  validations: 275407,
  lastValidatedAt: new Date("2024-01-22T05:58:10.014Z"),
  expiresAt: new Date("2024-04-23T21:45:56.168Z"),
  activations: [
    {
      id: "<value>",
      licenseKeyId: "<value>",
      label: "<value>",
      meta: {
        "key": 4996.64,
      },
      createdAt: new Date("2024-11-07T15:04:32.338Z"),
      modifiedAt: new Date("2023-10-07T12:51:41.540Z"),
    },
  ],
};

Fields

Field Type Required Description
id string ✔️ The ID of the object.
createdAt Date ✔️ Creation timestamp of the object.
modifiedAt Date ✔️ Last modification timestamp of the object.
organizationId string ✔️ N/A
customerId string ✔️ N/A
customer components.LicenseKeyCustomer ✔️ N/A
benefitId string ✔️ The benefit ID.
key string ✔️ N/A
displayKey string ✔️ N/A
status components.LicenseKeyStatus ✔️ N/A
limitActivations number ✔️ N/A
usage number ✔️ N/A
limitUsage number ✔️ N/A
validations number ✔️ N/A
lastValidatedAt Date ✔️ N/A
expiresAt Date ✔️ N/A
activations components.LicenseKeyActivationBase[] ✔️ N/A