PostalAddress.js
872 Bytes
/* global console */
define(
[
'ofbiz/model/Base',
'ofbiz/model/ContactMech',
],
function(
Base,
ContactMech
) {
'use strict';
console.log('ofbiz/model/PostalAddress: loaded');
return ContactMech.extend({
defaults: {
address1: null,
city: null,
postalCode: null,
},
validation: {
address1: [
Base.createRequiredValidator('ofbiz/model/PostalAddress.address1'),
],
city: [
Base.createRequiredValidator('ofbiz/model/PostalAddress.city'),
],
postalCode: [
Base.createRequiredValidator('ofbiz/model/PostalAddress.postalCode'),
],
}
});
}
);