From e28174e6cba696a062f3cfbe4396b9a29b2edfe4 Mon Sep 17 00:00:00 2001 From: Tucker Lemm Date: Tue, 14 Apr 2026 23:02:49 -0700 Subject: [PATCH] feat(phase2): add @attr declarations for vendor freight, place operational, and service-area scoping fields --- addon/models/place.js | 7 +++++++ addon/models/service-area.js | 4 ++++ addon/models/vendor.js | 11 +++++++++++ 3 files changed, 22 insertions(+) diff --git a/addon/models/place.js b/addon/models/place.js index c148807..d404a0d 100644 --- a/addon/models/place.js +++ b/addon/models/place.js @@ -46,6 +46,13 @@ export default class PlaceModel extends Model { location; @attr('raw') meta; + /** @operational (Phase 2) */ + @attr('string') location_type; + @attr('boolean') appointment_required; + @attr('string') contact_name; + @attr('string') contact_phone; + @attr('string') contact_email; + /** @dates */ @attr('date') deleted_at; @attr('date') created_at; diff --git a/addon/models/service-area.js b/addon/models/service-area.js index d17e7cf..d2a8b93 100644 --- a/addon/models/service-area.js +++ b/addon/models/service-area.js @@ -22,6 +22,10 @@ export default class ServiceAreaModel extends Model { @attr('multi-polygon') border; @attr('point') center; + /** @scoping (Phase 2) */ + @attr('raw') states_list; + @attr('raw') zip_ranges; + /** @dates */ @attr('date') deleted_at; @attr('date') created_at; diff --git a/addon/models/vendor.js b/addon/models/vendor.js index 4694d7e..1485ab3 100644 --- a/addon/models/vendor.js +++ b/addon/models/vendor.js @@ -41,6 +41,17 @@ export default class VendorModel extends Model { @attr('raw') meta; @attr('raw') callbacks; + /** @freight (Phase 2) */ + @attr('string') scac_code; + @attr('string') mc_number; + @attr('string') dot_number; + @attr('date') insurance_expiry; + @attr('number') insurance_amount; + @attr('number') payment_terms_days; + @attr('string') default_payment_method; + @attr('string') carrier_type; + @attr('boolean') is_preferred; + /** @dates */ @attr('date') deleted_at; @attr('date') created_at;