def __init__(self, re_service_code, item, crate, description, *args, **kwargs): # noqa: E501 """MTOServiceItemDomesticCratingAllOf - a model defined in OpenAPI Args: re_service_code (str): A unique code for the service item. Indicates if the service is for crating (DCRT) or uncrating (DUCRT). item ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The dimensions of the item being crated. crate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The dimensions for the crate the item will be shipped in. description (str): A description of the item being crated. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) reason (str, none_type): The contractor's explanation for why an item needed to be crated or uncrated. Used by the TOO while deciding to approve or reject the service item. . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) self.re_service_code = re_service_code self.item = item self.crate = crate self.description = description for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) if var_name in self.read_only_vars: raise ApiAttributeError( f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " f"class with read only attributes.")
def __init__(self, *args, **kwargs): # noqa: E501 """ExcessWeightRecord - a model defined in OpenAPI Keyword Args: filename (str): content_type (str): bytes (int): move_id (str): The UUID of the move this excess weight record belongs to. _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) id (str): [optional] # noqa: E501 url (str): [optional] # noqa: E501 status (str): [optional] # noqa: E501 created_at (datetime): [optional] # noqa: E501 updated_at (datetime): [optional] # noqa: E501 move_excess_weight_qualified_at (datetime, none_type): The date and time when the sum of all the move's shipments met the excess weight qualification threshold. The system monitors these weights and will update this field automatically. . [optional] # noqa: E501 move_excess_weight_acknowledged_at (datetime, none_type): The date and time when the TOO acknowledged the excess weight alert, either by dismissing the risk or updating the max billable weight. This will occur after the excess weight record has been uploaded. . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) constant_args = { '_check_type': _check_type, '_path_to_item': _path_to_item, '_spec_property_naming': _spec_property_naming, '_configuration': _configuration, '_visited_composed_classes': self._visited_composed_classes, } composed_info = validate_get_composed_info(constant_args, kwargs, self) self._composed_instances = composed_info[0] self._var_name_to_model_instances = composed_info[1] self._additional_properties_model_instances = composed_info[2] discarded_args = composed_info[3] for var_name, var_value in kwargs.items(): if var_name in discarded_args and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self._additional_properties_model_instances: # discard variable. continue setattr(self, var_name, var_value) if var_name in self.read_only_vars: raise ApiAttributeError( f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " f"class with read only attributes.")
def __init__(self, *args, **kwargs): # noqa: E501 """UpdateMTOShipment - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) scheduled_pickup_date (date, none_type): The date the Prime contractor scheduled to pick up this shipment after consultation with the customer.. [optional] # noqa: E501 actual_pickup_date (date, none_type): The date when the Prime contractor actually picked up the shipment. Updated after-the-fact.. [optional] # noqa: E501 first_available_delivery_date (date, none_type): The date the Prime provides to the customer as the first possible delivery date so that they can plan their travel accordingly. . [optional] # noqa: E501 prime_estimated_weight (int): The estimated weight of this shipment, determined by the movers during the pre-move survey. This value **can only be updated once.** If there was an issue with estimating the weight and a mistake was made, the Prime contracter will need to contact the TOO to change it. . [optional] # noqa: E501 prime_actual_weight (int): The actual weight of the shipment, provided after the Prime packs, picks up, and weighs a customer's shipment.. [optional] # noqa: E501 nts_recorded_weight (int, none_type): The previously recorded weight for the NTS Shipment. Used for NTS Release to know what the previous primeActualWeight or billable weight was.. [optional] # noqa: E501 pickup_address ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The address where the movers should pick up this shipment, entered by the customer during onboarding when they enter shipment details. . [optional] # noqa: E501 destination_address ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Where the movers should deliver this shipment. Often provided by the customer when they enter shipment details during onboarding, if they know their new address already. May be blank when entered by the customer, required when entered by the Prime. May not represent the true final destination due to the shipment being diverted or placed in SIT. . [optional] # noqa: E501 destination_type (DestinationType): [optional] # noqa: E501 secondary_pickup_address ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): A second pickup address for this shipment, if the customer entered one. An optional field.. [optional] # noqa: E501 secondary_delivery_address ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): A second delivery address for this shipment, if the customer entered one. An optional field.. [optional] # noqa: E501 storage_facility ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 shipment_type (MTOShipmentType): [optional] # noqa: E501 diversion (bool): This value indicates whether or not this shipment is part of a diversion. If yes, the shipment can be either the starting or ending segment of the diversion. . [optional] # noqa: E501 point_of_contact (str): Email or ID of the person who will be contacted in the event of questions or concerns about this update. May be the person performing the update, or someone else working with the Prime contractor. . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__,), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) if var_name in self.read_only_vars: raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " f"class with read only attributes.")
def __init__(self, *args, **kwargs): # noqa: E501 """MTOServiceItemOriginSIT - a model defined in OpenAPI Keyword Args: re_service_code (str): Service code allowed for this model type. reason (str): Explanation of why Prime is picking up SIT item. sit_postal_code (str): sit_entry_date (date): Entry date for the SIT move_task_order_id (str): The ID of the move for this service item. model_type (MTOServiceItemModelType): _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) sit_departure_date (date, none_type): Departure date for SIT. This is the end date of the SIT at either origin or destination. This is optional as it can be updated using the UpdateMTOServiceItemSIT modelType at a later date.. [optional] # noqa: E501 sit_hhg_actual_origin (Address): [optional] # noqa: E501 id (str): The ID of the service item.. [optional] # noqa: E501 mto_shipment_id (str): The ID of the shipment this service is for, if any. Optional.. [optional] # noqa: E501 re_service_name (str): The full descriptive name of the service.. [optional] # noqa: E501 status (MTOServiceItemStatus): [optional] # noqa: E501 rejection_reason (str, none_type): The reason why this service item was rejected by the TOO.. [optional] # noqa: E501 e_tag (str): A hash unique to this service item that should be used as the \"If-Match\" header for any updates.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__,), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) constant_args = { '_check_type': _check_type, '_path_to_item': _path_to_item, '_spec_property_naming': _spec_property_naming, '_configuration': _configuration, '_visited_composed_classes': self._visited_composed_classes, } composed_info = validate_get_composed_info( constant_args, kwargs, self) self._composed_instances = composed_info[0] self._var_name_to_model_instances = composed_info[1] self._additional_properties_model_instances = composed_info[2] discarded_args = composed_info[3] for var_name, var_value in kwargs.items(): if var_name in discarded_args and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self._additional_properties_model_instances: # discard variable. continue setattr(self, var_name, var_value) if var_name in self.read_only_vars: raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " f"class with read only attributes.")
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """UpdateMTOServiceItemSIT - a model defined in OpenAPI Keyword Args: model_type (UpdateMTOServiceItemModelType): _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) re_service_code (str): Service code allowed for this model type.. [optional] # noqa: E501 sit_departure_date (date): Departure date for SIT. This is the end date of the SIT at either origin or destination.. [optional] # noqa: E501 sit_destination_final_address (Address): [optional] # noqa: E501 id (str): ID of the service item. Must match path.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) self = super(OpenApiModel, cls).__new__(cls) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) constant_args = { '_check_type': _check_type, '_path_to_item': _path_to_item, '_spec_property_naming': _spec_property_naming, '_configuration': _configuration, '_visited_composed_classes': self._visited_composed_classes, } composed_info = validate_get_composed_info(constant_args, kwargs, self) self._composed_instances = composed_info[0] self._var_name_to_model_instances = composed_info[1] self._additional_properties_model_instances = composed_info[2] discarded_args = composed_info[3] for var_name, var_value in kwargs.items(): if var_name in discarded_args and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self._additional_properties_model_instances: # discard variable. continue setattr(self, var_name, var_value) return self
def __init__(self, move_task_order_id, requested_pickup_date, pickup_address, destination_address, shipment_type, *args, **kwargs): # noqa: E501 """CreateMTOShipment - a model defined in OpenAPI Args: move_task_order_id (str): The ID of the move this new shipment is for. requested_pickup_date (date): The customer's preferred pickup date. Other dates, such as required delivery date and (outside MilMove) the pack date, are derived from this date. pickup_address ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The address where the movers should pick up this shipment. destination_address ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Where the movers should deliver this shipment. shipment_type (MTOShipmentType): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) prime_estimated_weight (int): The estimated weight of this shipment, determined by the movers during the pre-move survey. This value **can only be updated once.** If there was an issue with estimating the weight and a mistake was made, the Prime contracter will need to contact the TOO to change it. . [optional] # noqa: E501 customer_remarks (str, none_type): The customer can use the customer remarks field to inform the services counselor and the movers about any special circumstances for this shipment. Typical examples: * bulky or fragile items, * weapons, * access info for their address. Customer enters this information during onboarding. Optional field. . [optional] # noqa: E501 agents (MTOAgents): [optional] # noqa: E501 mto_service_items ([MTOServiceItem]): A list of service items connected to this shipment.. [optional] # noqa: E501 diversion (bool): This value indicates whether or not this shipment is part of a diversion. If yes, the shipment can be either the starting or ending segment of the diversion. . [optional] # noqa: E501 point_of_contact (str): Email or ID of the person who will be contacted in the event of questions or concerns about this update. May be the person performing the update, or someone else working with the Prime contractor. . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) self.move_task_order_id = move_task_order_id self.requested_pickup_date = requested_pickup_date self.pickup_address = pickup_address self.destination_address = destination_address self.shipment_type = shipment_type for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) if var_name in self.read_only_vars: raise ApiAttributeError( f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " f"class with read only attributes.")
def _from_openapi_data(cls, *args, **kwargs): """MTOServiceItemModelType - a model defined in OpenAPI Note that value can be passed either in args or in kwargs, but not in both. Args: args[0] (str): Describes all model sub-types for a MTOServiceItem model. Using this list, choose the correct modelType in the dropdown, corresponding to the service item type. * DOFSIT, DOASIT - MTOServiceItemOriginSIT * DDFSIT, DDASIT - MTOServiceItemDestSIT * DOSHUT, DDSHUT - MTOServiceItemShuttle * DCRT, DUCRT - MTOServiceItemDomesticCrating The documentation will then update with the supported fields. ., must be one of ["MTOServiceItemBasic", "MTOServiceItemOriginSIT", "MTOServiceItemDestSIT", "MTOServiceItemShuttle", "MTOServiceItemDomesticCrating", ] # noqa: E501 Keyword Args: value (str): Describes all model sub-types for a MTOServiceItem model. Using this list, choose the correct modelType in the dropdown, corresponding to the service item type. * DOFSIT, DOASIT - MTOServiceItemOriginSIT * DDFSIT, DDASIT - MTOServiceItemDestSIT * DOSHUT, DDSHUT - MTOServiceItemShuttle * DCRT, DUCRT - MTOServiceItemDomesticCrating The documentation will then update with the supported fields. ., must be one of ["MTOServiceItemBasic", "MTOServiceItemOriginSIT", "MTOServiceItemDestSIT", "MTOServiceItemShuttle", "MTOServiceItemDomesticCrating", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) """ # required up here when default value is not given _path_to_item = kwargs.pop('_path_to_item', ()) self = super(OpenApiModel, cls).__new__(cls) if 'value' in kwargs: value = kwargs.pop('value') elif args: args = list(args) value = args.pop(0) else: raise ApiTypeError( "value is required, but not passed in args or kwargs and doesn't have default", path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) self.value = value if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( kwargs, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) return self
def _from_openapi_data(cls, *args, **kwargs): """ReServiceCode - a model defined in OpenAPI Note that value can be passed either in args or in kwargs, but not in both. Args: args[0] (str): This is the full list of service items that can be found on a shipment. Not all service items may be requested by the Prime, but may be returned in a response. Documentation of all the service items will be provided. ., must be one of ["CS", "DBHF", "DBTF", "DCRT", "DDASIT", "DDDSIT", "DDFSIT", "DDP", "DDSHUT", "DLH", "DMHF", "DNPK", "DOASIT", "DOFSIT", "DOP", "DOPSIT", "DOSHUT", "DPK", "DSH", "DUCRT", "DUPK", "FSC", "IBHF", "IBTF", "ICOLH", "ICOUB", "ICRT", "ICRTSA", "IDASIT", "IDDSIT", "IDFSIT", "IDSHUT", "IHPK", "IHUPK", "INPK", "IOASIT", "IOCLH", "IOCUB", "IOFSIT", "IOOLH", "IOOUB", "IOPSIT", "IOSHUT", "IUBPK", "IUBUPK", "IUCRT", "MS", "NSTH", "NSTUB", ] # noqa: E501 Keyword Args: value (str): This is the full list of service items that can be found on a shipment. Not all service items may be requested by the Prime, but may be returned in a response. Documentation of all the service items will be provided. ., must be one of ["CS", "DBHF", "DBTF", "DCRT", "DDASIT", "DDDSIT", "DDFSIT", "DDP", "DDSHUT", "DLH", "DMHF", "DNPK", "DOASIT", "DOFSIT", "DOP", "DOPSIT", "DOSHUT", "DPK", "DSH", "DUCRT", "DUPK", "FSC", "IBHF", "IBTF", "ICOLH", "ICOUB", "ICRT", "ICRTSA", "IDASIT", "IDDSIT", "IDFSIT", "IDSHUT", "IHPK", "IHUPK", "INPK", "IOASIT", "IOCLH", "IOCUB", "IOFSIT", "IOOLH", "IOOUB", "IOPSIT", "IOSHUT", "IUBPK", "IUBUPK", "IUCRT", "MS", "NSTH", "NSTUB", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) """ # required up here when default value is not given _path_to_item = kwargs.pop('_path_to_item', ()) self = super(OpenApiModel, cls).__new__(cls) if 'value' in kwargs: value = kwargs.pop('value') elif args: args = list(args) value = args.pop(0) else: raise ApiTypeError( "value is required, but not passed in args or kwargs and doesn't have default", path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) self.value = value if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( kwargs, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) return self
def _from_openapi_data(cls, *args, **kwargs): """MTOShipmentType - a model defined in OpenAPI Note that value can be passed either in args or in kwargs, but not in both. Args: args[0] (str): The type of shipment. * `HHG` = Household goods move * `NTS` = Non-temporary storage * `UB` = Unaccompanied baggage ., must be one of ["HHG", "HHG_LONGHAUL_DOMESTIC", "HHG_SHORTHAUL_DOMESTIC", "HHG_INTO_NTS_DOMESTIC", "HHG_OUTOF_NTS_DOMESTIC", "INTERNATIONAL_HHG", "INTERNATIONAL_UB", "MOTORHOME", "BOAT_HAUL_AWAY", "BOAT_TOW_AWAY", "PPM", ] # noqa: E501 Keyword Args: value (str): The type of shipment. * `HHG` = Household goods move * `NTS` = Non-temporary storage * `UB` = Unaccompanied baggage ., must be one of ["HHG", "HHG_LONGHAUL_DOMESTIC", "HHG_SHORTHAUL_DOMESTIC", "HHG_INTO_NTS_DOMESTIC", "HHG_OUTOF_NTS_DOMESTIC", "INTERNATIONAL_HHG", "INTERNATIONAL_UB", "MOTORHOME", "BOAT_HAUL_AWAY", "BOAT_TOW_AWAY", "PPM", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) """ # required up here when default value is not given _path_to_item = kwargs.pop('_path_to_item', ()) self = super(OpenApiModel, cls).__new__(cls) if 'value' in kwargs: value = kwargs.pop('value') elif args: args = list(args) value = args.pop(0) else: raise ApiTypeError( "value is required, but not passed in args or kwargs and doesn't have default", path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) self.value = value if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( kwargs, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) return self
def _from_openapi_data(cls, payment_requests, mto_service_items, mto_shipments, *args, **kwargs): # noqa: E501 """MoveTaskOrder - a model defined in OpenAPI Args: payment_requests (PaymentRequests): mto_service_items ([MTOServiceItem]): mto_shipments (MTOShipments): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) id (str): [optional] # noqa: E501 move_code (str): [optional] # noqa: E501 created_at (datetime): [optional] # noqa: E501 order_id (str): [optional] # noqa: E501 order (Order): [optional] # noqa: E501 reference_id (str): [optional] # noqa: E501 available_to_prime_at (datetime, none_type): [optional] # noqa: E501 updated_at (datetime): [optional] # noqa: E501 prime_counseling_completed_at (datetime, none_type): [optional] # noqa: E501 ppm_type (str): [optional] # noqa: E501 ppm_estimated_weight (int): [optional] # noqa: E501 excess_weight_qualified_at (datetime, none_type): [optional] # noqa: E501 excess_weight_acknowledged_at (datetime, none_type): [optional] # noqa: E501 excess_weight_upload_id (str, none_type): [optional] # noqa: E501 e_tag (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) self = super(OpenApiModel, cls).__new__(cls) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) self.payment_requests = payment_requests self.mto_service_items = mto_service_items self.mto_shipments = mto_shipments for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) return self
def __init__(self, *args, **kwargs): # noqa: E501 """PPMShipment - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) id (str): [optional] # noqa: E501 shipment_id (str): [optional] # noqa: E501 created_at (datetime): [optional] # noqa: E501 updated_at (datetime): [optional] # noqa: E501 status (PPMShipmentStatus): [optional] # noqa: E501 expected_departure_date (date): Date the customer expects to move. . [optional] # noqa: E501 actual_move_date (date, none_type): [optional] # noqa: E501 submitted_at (datetime, none_type): [optional] # noqa: E501 reviewed_at (datetime, none_type): [optional] # noqa: E501 approved_at (datetime, none_type): [optional] # noqa: E501 pickup_postal_code (str): zip code. [optional] # noqa: E501 secondary_pickup_postal_code (str, none_type): [optional] # noqa: E501 destination_postal_code (str): [optional] # noqa: E501 secondary_destination_postal_code (str, none_type): [optional] # noqa: E501 sit_expected (bool): [optional] # noqa: E501 estimated_weight (int, none_type): [optional] # noqa: E501 net_weight (int, none_type): The net weight of the shipment once it has been weight . [optional] # noqa: E501 has_pro_gear (bool, none_type): Indicates whether PPM shipment has pro gear. . [optional] # noqa: E501 pro_gear_weight (int, none_type): [optional] # noqa: E501 spouse_pro_gear_weight (int, none_type): [optional] # noqa: E501 estimated_incentive (int, none_type): [optional] # noqa: E501 advance (int, none_type): The amount request for an advance, or null if no advance is requested . [optional] # noqa: E501 advance_requested (bool, none_type): Indicates whether an advance has been requested for the PPM shipment. . [optional] # noqa: E501 deleted_at (datetime, none_type): [optional] # noqa: E501 e_tag (str): A hash unique to this shipment that should be used as the \"If-Match\" header for any updates.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__,), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) if var_name in self.read_only_vars: raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " f"class with read only attributes.")
def _from_openapi_data(cls, re_service_code, reason, *args, **kwargs): # noqa: E501 """MTOServiceItemShuttleAllOf - a model defined in OpenAPI Args: re_service_code (str): A unique code for the service item. Indicates if shuttling is requested for the shipment origin (`DOSHUT`) or destination (`DDSHUT`). reason (str): The contractor's explanation for why a shuttle service is requested. Used by the TOO while deciding to approve or reject the service item. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) estimated_weight (int, none_type): An estimate of how much weight from a shipment will be included in the shuttling service.. [optional] # noqa: E501 actual_weight (int, none_type): A record of the actual weight that was shuttled. Provided by the movers, based on weight tickets.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) self = super(OpenApiModel, cls).__new__(cls) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__,), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.re_service_code = re_service_code self.reason = reason for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) return self
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """MTOShipment - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) id (str): The ID of the shipment.. [optional] # noqa: E501 move_task_order_id (str): The ID of the move for this shipment.. [optional] # noqa: E501 approved_date (date, none_type): The date when the Transportation Ordering Officer first approved this shipment for the move.. [optional] # noqa: E501 requested_pickup_date (date, none_type): The date the customer selects during onboarding as their preferred pickup date. Other dates, such as required delivery date and (outside MilMove) the pack date, are derived from this date. . [optional] # noqa: E501 scheduled_pickup_date (date, none_type): The date the Prime contractor scheduled to pick up this shipment after consultation with the customer.. [optional] # noqa: E501 actual_pickup_date (date, none_type): The date when the Prime contractor actually picked up the shipment. Updated after-the-fact.. [optional] # noqa: E501 first_available_delivery_date (date, none_type): The date the Prime provides to the customer as the first possible delivery date so that they can plan their travel accordingly. . [optional] # noqa: E501 required_delivery_date (date, none_type): The latest date by which the Prime can deliver a customer's shipment without violating the contract. This is calculated based on weight, distance, and the scheduled pickup date. It cannot be modified. . [optional] # noqa: E501 prime_estimated_weight (int): The estimated weight of this shipment, determined by the movers during the pre-move survey. This value **can only be updated once.** If there was an issue with estimating the weight and a mistake was made, the Prime contracter will need to contact the TOO to change it. . [optional] # noqa: E501 prime_estimated_weight_recorded_date (date, none_type): The date when the Prime contractor recorded the shipment's estimated weight.. [optional] # noqa: E501 prime_actual_weight (int): The actual weight of the shipment, provided after the Prime packs, picks up, and weighs a customer's shipment.. [optional] # noqa: E501 nts_recorded_weight (int, none_type): The previously recorded weight for the NTS Shipment. Used for NTS Release to know what the previous primeActualWeight or billable weight was.. [optional] # noqa: E501 customer_remarks (str, none_type): The customer can use the customer remarks field to inform the services counselor and the movers about any special circumstances for this shipment. Typical examples: * bulky or fragile items, * weapons, * access info for their address. Customer enters this information during onboarding. Optional field. . [optional] # noqa: E501 counselor_remarks (str, none_type): The counselor can use the counselor remarks field to inform the movers about any special circumstances for this shipment. Typical examples: * bulky or fragile items, * weapons, * access info for their address. Counselors enters this information when creating or editing an MTO Shipment. Optional field. . [optional] # noqa: E501 agents (MTOAgents): [optional] # noqa: E501 sit_extensions (SITExtensions): [optional] # noqa: E501 reweigh (Reweigh): [optional] # noqa: E501 mto_service_items ([MTOServiceItem]): A list of service items connected to this shipment.. [optional] # noqa: E501 pickup_address ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The address where the movers should pick up this shipment, entered by the customer during onboarding when they enter shipment details. . [optional] # noqa: E501 destination_address ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Where the movers should deliver this shipment. Often provided by the customer when they enter shipment details during onboarding, if they know their new address already. May be blank when entered by the customer, required when entered by the Prime. May not represent the true final destination due to the shipment being diverted or placed in SIT. . [optional] # noqa: E501 destination_type (DestinationType): [optional] # noqa: E501 secondary_pickup_address ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): A second pickup address for this shipment, if the customer entered one. An optional field.. [optional] # noqa: E501 secondary_delivery_address ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): A second delivery address for this shipment, if the customer entered one. An optional field.. [optional] # noqa: E501 storage_facility ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 shipment_type (MTOShipmentType): [optional] # noqa: E501 diversion (bool): This value indicates whether or not this shipment is part of a diversion. If yes, the shipment can be either the starting or ending segment of the diversion. . [optional] # noqa: E501 status (str): The status of a shipment, indicating where it is in the TOO's approval process. Can only be updated by the contractor in special circumstances. . [optional] # noqa: E501 rejection_reason (str, none_type): The reason why this shipment was rejected by the TOO.. [optional] # noqa: E501 ppm_shipment (PPMShipment): [optional] # noqa: E501 e_tag (str): A hash unique to this shipment that should be used as the \"If-Match\" header for any updates.. [optional] # noqa: E501 created_at (datetime): [optional] # noqa: E501 updated_at (datetime): [optional] # noqa: E501 point_of_contact (str): Email or ID of the person who will be contacted in the event of questions or concerns about this update. May be the person performing the update, or someone else working with the Prime contractor. . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) self = super(OpenApiModel, cls).__new__(cls) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__,), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) return self
def _from_openapi_data(cls, rank, order_number, lines_of_accounting, *args, **kwargs): # noqa: E501 """Order - a model defined in OpenAPI Args: rank (str): order_number (str): lines_of_accounting (str): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) id (str): [optional] # noqa: E501 customer (Customer): [optional] # noqa: E501 customer_id (str): [optional] # noqa: E501 entitlement (Entitlements): [optional] # noqa: E501 destination_duty_location (DutyLocation): [optional] # noqa: E501 origin_duty_location (DutyLocation): [optional] # noqa: E501 report_by_date (date): [optional] # noqa: E501 e_tag (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) self = super(OpenApiModel, cls).__new__(cls) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__,), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.rank = rank self.order_number = order_number self.lines_of_accounting = lines_of_accounting for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) return self
def __init__(self, re_service_code, sit_entry_date, *args, **kwargs): # noqa: E501 """MTOServiceItemDestSITAllOf - a model defined in OpenAPI Args: re_service_code (str): Service code allowed for this model type. sit_entry_date (date): Entry date for the SIT Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) time_military1 (str, none_type): Time of delivery corresponding to `firstAvailableDeliveryDate1`, in military format.. [optional] # noqa: E501 first_available_delivery_date1 (date, none_type): First available date that Prime can deliver SIT service item.. [optional] # noqa: E501 time_military2 (str, none_type): Time of delivery corresponding to `firstAvailableDeliveryDate2`, in military format.. [optional] # noqa: E501 first_available_delivery_date2 (date, none_type): Second available date that Prime can deliver SIT service item.. [optional] # noqa: E501 sit_departure_date (date, none_type): Departure date for SIT. This is the end date of the SIT at either origin or destination. This is optional as it can be updated using the UpdateMTOServiceItemSIT modelType at a later date.. [optional] # noqa: E501 sit_destination_final_address (Address): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) self.re_service_code = re_service_code self.sit_entry_date = sit_entry_date for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) if var_name in self.read_only_vars: raise ApiAttributeError( f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " f"class with read only attributes.")
def __init__(self, *args, **kwargs): """MTOServiceItemStatus - a model defined in OpenAPI Note that value can be passed either in args or in kwargs, but not in both. Args: args[0] (str): The status of a service item, indicating where it is in the TOO's approval process.., must be one of ["SUBMITTED", "APPROVED", "REJECTED", ] # noqa: E501 Keyword Args: value (str): The status of a service item, indicating where it is in the TOO's approval process.., must be one of ["SUBMITTED", "APPROVED", "REJECTED", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) """ # required up here when default value is not given _path_to_item = kwargs.pop('_path_to_item', ()) if 'value' in kwargs: value = kwargs.pop('value') elif args: args = list(args) value = args.pop(0) else: raise ApiTypeError( "value is required, but not passed in args or kwargs and doesn't have default", path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) self.value = value if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( kwargs, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), )
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """MTOServiceItemDomesticCrating - a model defined in OpenAPI Keyword Args: re_service_code (str): A unique code for the service item. Indicates if the service is for crating (DCRT) or uncrating (DUCRT). item ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The dimensions of the item being crated. crate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The dimensions for the crate the item will be shipped in. description (str): A description of the item being crated. move_task_order_id (str): The ID of the move for this service item. model_type (MTOServiceItemModelType): _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) reason (str, none_type): The contractor's explanation for why an item needed to be crated or uncrated. Used by the TOO while deciding to approve or reject the service item. . [optional] # noqa: E501 id (str): The ID of the service item.. [optional] # noqa: E501 mto_shipment_id (str): The ID of the shipment this service is for, if any. Optional.. [optional] # noqa: E501 re_service_name (str): The full descriptive name of the service.. [optional] # noqa: E501 status (MTOServiceItemStatus): [optional] # noqa: E501 rejection_reason (str, none_type): The reason why this service item was rejected by the TOO.. [optional] # noqa: E501 e_tag (str): A hash unique to this service item that should be used as the \"If-Match\" header for any updates.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) self = super(OpenApiModel, cls).__new__(cls) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) constant_args = { '_check_type': _check_type, '_path_to_item': _path_to_item, '_spec_property_naming': _spec_property_naming, '_configuration': _configuration, '_visited_composed_classes': self._visited_composed_classes, } composed_info = validate_get_composed_info(constant_args, kwargs, self) self._composed_instances = composed_info[0] self._var_name_to_model_instances = composed_info[1] self._additional_properties_model_instances = composed_info[2] discarded_args = composed_info[3] for var_name, var_value in kwargs.items(): if var_name in discarded_args and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self._additional_properties_model_instances: # discard variable. continue setattr(self, var_name, var_value) return self
def __init__(self, model_type, *args, **kwargs): # noqa: E501 """UpdateMTOServiceItem - a model defined in OpenAPI Args: model_type (UpdateMTOServiceItemModelType): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) id (str): ID of the service item. Must match path.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) self.model_type = model_type for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) if var_name in self.read_only_vars: raise ApiAttributeError( f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " f"class with read only attributes.")
def _from_openapi_data(cls, *args, **kwargs): """ServiceItemParamName - a model defined in OpenAPI Note that value can be passed either in args or in kwargs, but not in both. Args: args[0] (str):, must be one of ["ActualPickupDate", "ContractCode", "ContractYearName", "CubicFeetBilled", "CubicFeetCrating", "DimensionHeight", "DimensionLength", "DimensionWidth", "DistanceZip3", "DistanceZip5", "DistanceZipSITDest", "DistanceZipSITOrigin", "EIAFuelPrice", "EscalationCompounded", "FSCMultiplier", "FSCPriceDifferenceInCents", "FSCWeightBasedDistanceMultiplier", "IsPeak", "MarketDest", "MarketOrigin", "MTOAvailableToPrimeAt", "NTSPackingFactor", "NumberDaysSIT", "PriceAreaDest", "PriceAreaIntlDest", "PriceAreaIntlOrigin", "PriceAreaOrigin", "PriceRateOrFactor", "PSI_LinehaulDom", "PSI_LinehaulDomPrice", "PSI_LinehaulShort", "PSI_LinehaulShortPrice", "PSI_PriceDomDest", "PSI_PriceDomDestPrice", "PSI_PriceDomOrigin", "PSI_PriceDomOriginPrice", "PSI_ShippingLinehaulIntlCO", "PSI_ShippingLinehaulIntlCOPrice", "PSI_ShippingLinehaulIntlOC", "PSI_ShippingLinehaulIntlOCPrice", "PSI_ShippingLinehaulIntlOO", "PSI_ShippingLinehaulIntlOOPrice", "RateAreaNonStdDest", "RateAreaNonStdOrigin", "ReferenceDate", "RequestedPickupDate", "ServiceAreaDest", "ServiceAreaOrigin", "ServicesScheduleDest", "ServicesScheduleOrigin", "SITPaymentRequestEnd", "SITPaymentRequestStart", "SITScheduleDest", "SITScheduleOrigin", "WeightAdjusted", "WeightBilled", "WeightEstimated", "WeightOriginal", "WeightReweigh", "ZipDestAddress", "ZipPickupAddress", "ZipSITDestHHGFinalAddress", "ZipSITOriginHHGActualAddress", "ZipSITOriginHHGOriginalAddress", ] # noqa: E501 Keyword Args: value (str):, must be one of ["ActualPickupDate", "ContractCode", "ContractYearName", "CubicFeetBilled", "CubicFeetCrating", "DimensionHeight", "DimensionLength", "DimensionWidth", "DistanceZip3", "DistanceZip5", "DistanceZipSITDest", "DistanceZipSITOrigin", "EIAFuelPrice", "EscalationCompounded", "FSCMultiplier", "FSCPriceDifferenceInCents", "FSCWeightBasedDistanceMultiplier", "IsPeak", "MarketDest", "MarketOrigin", "MTOAvailableToPrimeAt", "NTSPackingFactor", "NumberDaysSIT", "PriceAreaDest", "PriceAreaIntlDest", "PriceAreaIntlOrigin", "PriceAreaOrigin", "PriceRateOrFactor", "PSI_LinehaulDom", "PSI_LinehaulDomPrice", "PSI_LinehaulShort", "PSI_LinehaulShortPrice", "PSI_PriceDomDest", "PSI_PriceDomDestPrice", "PSI_PriceDomOrigin", "PSI_PriceDomOriginPrice", "PSI_ShippingLinehaulIntlCO", "PSI_ShippingLinehaulIntlCOPrice", "PSI_ShippingLinehaulIntlOC", "PSI_ShippingLinehaulIntlOCPrice", "PSI_ShippingLinehaulIntlOO", "PSI_ShippingLinehaulIntlOOPrice", "RateAreaNonStdDest", "RateAreaNonStdOrigin", "ReferenceDate", "RequestedPickupDate", "ServiceAreaDest", "ServiceAreaOrigin", "ServicesScheduleDest", "ServicesScheduleOrigin", "SITPaymentRequestEnd", "SITPaymentRequestStart", "SITScheduleDest", "SITScheduleOrigin", "WeightAdjusted", "WeightBilled", "WeightEstimated", "WeightOriginal", "WeightReweigh", "ZipDestAddress", "ZipPickupAddress", "ZipSITDestHHGFinalAddress", "ZipSITOriginHHGActualAddress", "ZipSITOriginHHGOriginalAddress", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. Defaults to True _path_to_item (tuple/list): This is a list of keys or values to drill down to the model in received_data when deserializing a response _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _configuration (Configuration): the instance to use when deserializing a file_type parameter. If passed, type conversion is attempted If omitted no type conversion is done. _visited_composed_classes (tuple): This stores a tuple of classes that we have traveled through so that if we see that class again we will not use its discriminator again. When traveling through a discriminator, the composed schema that is is traveled through is added to this set. For example if Animal has a discriminator petType and we pass in "Dog", and the class Dog allOf includes Animal, we move through Animal once using the discriminator, and pick Dog. Then in Dog, we will make an instance of the Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) """ # required up here when default value is not given _path_to_item = kwargs.pop('_path_to_item', ()) self = super(OpenApiModel, cls).__new__(cls) if 'value' in kwargs: value = kwargs.pop('value') elif args: args = list(args) value = args.pop(0) else: raise ApiTypeError( "value is required, but not passed in args or kwargs and doesn't have default", path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) if args: raise ApiTypeError( "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( args, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) self._data_store = {} self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + ( self.__class__, ) self.value = value if kwargs: raise ApiTypeError( "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( kwargs, self.__class__.__name__, ), path_to_item=_path_to_item, valid_classes=(self.__class__, ), ) return self