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.

30 lines (29 loc) 905 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Customer = void 0; const index_js_1 = require("../index.js"); class Customer { id; name; email; marketingConsent; status; customData; locale; createdAt; updatedAt; importMeta; constructor(customer) { this.id = customer.id; this.name = customer.name ? customer.name : null; this.email = customer.email; this.marketingConsent = customer.marketing_consent; this.status = customer.status; this.customData = customer.custom_data ? customer.custom_data : null; this.locale = customer.locale; this.createdAt = customer.created_at; this.updatedAt = customer.updated_at; this.importMeta = customer.import_meta ? new index_js_1.ImportMeta(customer.import_meta) : null; } } exports.Customer = Customer;