<?php

namespace Hilco\Models;


class NewShippingAddress {
    public $addr_no;
    public $cust_name;
    public $attn_of_name;
    public $addr_1;
    public $addr_2;
    public $addr_3;
    public $addr_4;
    public $addr_5;
    public $city;
    public $state;
    public $country;
    public $postal_cd;

    public function __construct(Order $order) {
        $this->addr_no = $order->soldToCustomer->cust_no . ' NEWADDRESS';
        $this->cust_name = $order->soldToCustomer->cust_name;
        $this->addr_1 = $order->shipping_line1;
        $this->addr_2 = $order->shipping_line2;
        $this->addr_3 = $order->shipping_line3;
        $this->addr_4 = '';
        $this->addr_5 = '';
        $this->city = $order->shipping_city;
        $this->state = $order->shipping_state;
        $this->country = $order->shipping_country;
        $this->postal_cd = $order->shipping_zip;
        $this->attn_of_name = '';
    }

}