# This file was generated by liblab | https://liblab.com/

from .utils.json_map import JsonMap
from .base import BaseModel


@JsonMap({"date_": "Date", "time": "Time"})
class EstimatedArrivalPickup(BaseModel):
    """The date and pick up time container.

    :param date_: The date UPS picks up the package from the origin. Format: YYYYMMDD. In the event the Pickup date differs from the Ship On Date, provided in the request, a warning message will be returned.
    :type date_: str
    :param time: The time UPS will pick up the shipment. Military Time Format HHMMSS or HHMM, defaults to None
    :type time: str, optional
    """

    def __init__(self, date_: str, time: str = None):
        self.date_ = date_
        if time is not None:
            self.time = time
