UNPKG

@paddle/paddle-node-sdk

Version:

A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.

31 lines (30 loc) 851 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ApiKeyNotification = void 0; class ApiKeyNotification { id; name; description; key; status; permissions; expiresAt; rotatable; lastUsedAt; createdAt; updatedAt; constructor(apiKey) { this.id = apiKey.id; this.name = apiKey.name; this.description = apiKey.description ?? null; this.key = apiKey.key; this.status = apiKey.status; this.permissions = apiKey.permissions; this.expiresAt = apiKey.expires_at ?? null; this.rotatable = apiKey.rotatable ?? null; this.lastUsedAt = apiKey.last_used_at ?? null; this.createdAt = apiKey.created_at; this.updatedAt = apiKey.updated_at; } } exports.ApiKeyNotification = ApiKeyNotification;