Пример #1
0
 def transit_from_type(cls, *args, **kwargs):
     """Returns the transit from data type
      (/TimeInTransitRequest/TransitFrom)
     :param PoliticalDivision3 (Optional)
     :param PoliticalDivision2 (Optional)
     :param PoliticalDivision1 (Optional)
     :param Country (Optional)
     :param CountryCode (Required)
     :param PostcodePrimaryHigh (Optional)
     :param PostcodePrimaryLow (Optional)
     :param ResidentialAddressIndicator (Required)
     """
     required_args = ('CountryCode', )
     elements = cls.make_elements(required_args, args, kwargs)
     # Construct the AddressArtifactFormat Element
     # /TimeInTransitRequest/TransitFrom/AddressArtifactFormat
     address_element = E.AddressArtifactFormat(*elements)
     return E.TransitFrom(address_element)
Пример #2
0
 def transit_to_type(cls, *args, **kwargs):
     """Returns the transit to data type. (/TimeInTransitRequest/TransitTo)
     :param PoliticalDivision3 (Optional) Town Accepted for
      International requests.
     :param PoliticalDivision2 (Optional) City Required for
      International if Postal
          Code is not used in the Origin Country.
     :param PoliticalDivision1 (Optional) State/Province Accepted
      if provided.
     :param Country (Optional)
     :param CountryCode (Required)
     :param PostcodePrimaryHigh (Optional)
     :param PostcodePrimaryLow (Optional)
     :param ResidentialAddressIndicator (Required)
     """
     required_args = ('CountryCode', )
     elements = cls.make_elements(required_args, args, kwargs)
     # Construct the AddressArtifactFormat Element
     # /TimeInTransitRequest/TransitTo/AddressArtifactFormat
     address_element = E.AddressArtifactFormat(*elements)
     return E.TransitTo(address_element)