protected function prepare_fee_lines( $posted, $action = 'create', $item = null ) {
        $item = is_null( $item ) ? new WC_Order_Item_Fee( ! empty( $posted['id'] ) ? $posted['id'] : '' ) : $item;

        if ( 'create' === $action ) {
            if ( empty( $posted['name'] ) ) {