Skip to content

Latest commit

 

History

History
57 lines (52 loc) · 2.42 KB

listresourcebenefitgrant.md

File metadata and controls

57 lines (52 loc) · 2.42 KB

ListResourceBenefitGrant

Example Usage

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

let value: ListResourceBenefitGrant = {
  items: [
    {
      createdAt: new Date("2023-10-27T03:42:35.418Z"),
      modifiedAt: new Date("2024-07-19T12:22:35.582Z"),
      id: "<value>",
      isGranted: false,
      isRevoked: false,
      subscriptionId: "<value>",
      orderId: "<value>",
      customerId: "<value>",
      benefitId: "<value>",
      customer: {
        id: "992fae2a-2a17-4b7a-8d9e-e287cf90131b",
        createdAt: new Date("2025-02-28T13:56:52.936Z"),
        modifiedAt: new Date("2024-07-11T09:41:53.882Z"),
        metadata: {
          "key": 810560,
        },
        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("2024-02-25T19:31:31.778Z"),
        avatarUrl: "https://www.gravatar.com/avatar/xxx?d=blank",
      },
      properties: {},
    },
  ],
  pagination: {
    totalCount: 871642,
    maxPage: 957341,
  },
};

Fields

Field Type Required Description
items components.BenefitGrant[] ✔️ N/A
pagination components.Pagination ✔️ N/A