Example #1
0
def parse_pickup_update_response(
        response: dict,
        settings: Settings) -> Tuple[PickupDetails, List[Message]]:
    errors = parse_error_response(response, settings)
    details = None

    return details, errors
Example #2
0
def parse_shipment_response(
        response: dict,
        settings: Settings) -> Tuple[ShipmentDetails, List[Message]]:
    errors = parse_error_response(response, settings)
    details = None

    return details, errors
Example #3
0
def parse_shipment_cancel_response(
        response: dict,
        settings: Settings) -> Tuple[ConfirmationDetails, List[Message]]:
    errors = parse_error_response(response, settings)
    details = None

    return details, errors
Example #4
0
def parse_rate_response(response: dict, settings: Settings) -> Tuple[List[RateDetails], List[Message]]:
    errors = parse_error_response(response, settings)
    details: List[RateDetails] = []

    return details, errors