Skip to content

Get shipping service name by its code #2

Description

@eriktelepovsky

It would be great if I could get service name by its code with something like this:

def get_service_name(service_code):
    """
    Given a service code, return the human-readable name for 
    that service

    @return: string on success or False
    """
    return SHIPPING_SERVICES_NAMES.get(service_code, service_code)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions