@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
18 lines (17 loc) • 843 B
JavaScript
import { ImportMetaNotification } from '../shared/index.js';
export class ProductNotification {
constructor(product) {
var _a, _b;
this.id = product.id;
this.name = product.name;
this.type = (_a = product.type) !== null && _a !== void 0 ? _a : null;
this.description = product.description ? product.description : null;
this.taxCategory = product.tax_category;
this.imageUrl = product.image_url ? product.image_url : null;
this.customData = product.custom_data ? product.custom_data : null;
this.status = product.status;
this.createdAt = product.created_at;
this.updatedAt = (_b = product.updated_at) !== null && _b !== void 0 ? _b : null;
this.importMeta = product.import_meta ? new ImportMetaNotification(product.import_meta) : null;
}
}