@classmethod
def get_tryton_state(cls, name):
    """Get the tryton state corresponding to the prestashop state
        as per the predefined logic
        This method currently expects the value of name to be in US English.

        :param name: Name of the PS state

        :returns: A dictionary of tryton state and shipment and invoice methods
        """
    if name in ('Shipped', 'Delivered'):
        return {'order_state': 'shipment.sent', 'invoice_method': 'manual',
            'shipment_method': 'manual'}
    elif name == 'Canceled':
        return {'order_state': 'sale.cancel', 'invoice_method': 'manual',
            'shipment_method': 'manual'}
    elif name in ('Payment accepted', 'Payment remotely accepted'):
        return {'order_state': 'sale.processing', 'invoice_method': 'order',
            'shipment_method': 'invoice'}
    elif name == 'Preparation in progress':
        return {'order_state': 'sale.processing', 'invoice_method': 'order',
            'shipment_method': 'order'}
    else:
        return {'order_state': 'sale.confirmed', 'invoice_method': 'order',
            'shipment_method': 'order'}
