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.

38 lines (37 loc) 1.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Address = void 0; const index_js_1 = require("../index.js"); class Address { id; customerId; description; firstLine; secondLine; city; postalCode; region; countryCode; customData; status; createdAt; updatedAt; importMeta; constructor(address) { this.id = address.id; this.customerId = address.customer_id; this.description = address.description ? address.description : null; this.firstLine = address.first_line ? address.first_line : null; this.secondLine = address.second_line ? address.second_line : null; this.city = address.city ? address.city : null; this.postalCode = address.postal_code ? address.postal_code : null; this.region = address.region ? address.region : null; this.countryCode = address.country_code; this.customData = address.custom_data ? address.custom_data : null; this.status = address.status; this.createdAt = address.created_at; this.updatedAt = address.updated_at; this.importMeta = address.import_meta ? new index_js_1.ImportMeta(address.import_meta) : null; } } exports.Address = Address;