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.

20 lines (19 loc) 942 B
import { ImportMeta } from '../index.js'; export class Address { 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 ImportMeta(address.import_meta) : null; } }