<?php

namespace UpsFreeVendor\Ups\Entity;

class Guaranteed
{
    const G_YES = 'Y';
    const G_NO = 'N';
    public $Code;
    public $Description;
    /**
     * @param \stdClass|null $response
     */
    public function __construct(\stdClass $response = null)
    {
        $this->Code = self::G_NO;
        if (null !== $response) {
            if (isset($response->Code)) {
                $this->Code = $response->Code;
            }
            if (isset($response->Description)) {
                $this->Description = $response->Description;
            }
        }
    }
}
