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.

21 lines (20 loc) 1.03 kB
import { ImportMeta } from '../../../entities/index.js'; export class AddressNotification { constructor(address) { var _a; this.id = address.id; this.customerId = (_a = address.customer_id) !== null && _a !== void 0 ? _a : null; 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 ImportMeta(address.import_meta) : null; } }