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.

34 lines (33 loc) 1.18 kB
import { ImportMeta } from '../../../entities/index.js'; export class AddressNotification { 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 ?? 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; } }