UNPKG

mangopay4-nodejs-sdk

Version:

Mangopay Node.js SDK

33 lines (28 loc) • 666 B
const EntityBase = require('./EntityBase'); const Address = EntityBase.extend({ defaults: { AddressLine1: null, AddressLine2: null, City: null, Region: null, PostalCode: null, Country: null }, toString: function() { const address = _.compact([ this.AddressLine1, this.AddressLine2, this.City, this.Region, this.PostalCode, this.Country ]); return address.join(', '); }, getSubObjects: function() { return { 'OwnerAddress': Address }; } }); module.exports = Address;