@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
16 lines (15 loc) • 630 B
JavaScript
export class ApiKeyNotification {
constructor(apiKey) {
var _a, _b, _c;
this.id = apiKey.id;
this.name = apiKey.name;
this.description = (_a = apiKey.description) !== null && _a !== void 0 ? _a : null;
this.key = apiKey.key;
this.status = apiKey.status;
this.permissions = apiKey.permissions;
this.expiresAt = (_b = apiKey.expires_at) !== null && _b !== void 0 ? _b : null;
this.lastUsedAt = (_c = apiKey.last_used_at) !== null && _c !== void 0 ? _c : null;
this.createdAt = apiKey.created_at;
this.updatedAt = apiKey.updated_at;
}
}